/* =========================================================
   ADRIATECH - CLEAN CSS (FIXED NAV + STABLE MOBILE MENU)
   - Navbar: ALWAYS fixed
   - Mobile menu: fixed overlay, never scrolls away
   - Blur intro: done via ::before overlay (NOT filter on wrapper)
   ========================================================= */

/* -------------------------
   Variables
-------------------------- */
:root {
  --dark-blue: #001f3f;
  --accent-blue: #00a8e8;
  --text-color: #333;
  --light-bg: #f4f7f9;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* -------------------------
   Reset / Base
-------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden; /* mobilde yatay kaydırmayı kes */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   INTRO / CONTROL CENTER
   (senin efektlerin aynı, sadece düzenli)
   ========================================================= */

/* Giriş Ekranı Sabitleme */
#smart-control-center {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition: opacity 0.8s ease;
}

/* Panjur Şeritleri */
.shutter-slats-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: -1;
}

.slat {
  flex: 1;
  width: 100%;
  background: linear-gradient(to bottom, #0a0f14 0%, #050a0f 50%, #020508 100%);
  position: relative;
  border-bottom: 1px solid #000;
  transition: transform 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  overflow: visible;
}

.slat::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 219, 21, 0.15);
  box-shadow: 0 0 8px rgba(255, 219, 21, 0.4);
  z-index: 1;
}

.slat::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.03);
}

.slat.opened {
  transform: translateY(-100vh) scaleY(0.9);
}

/* Şerit Gecikmeleri */
.slat:nth-child(1) { transition-delay: 0.0s; }
.slat:nth-child(2) { transition-delay: 0.05s; }
.slat:nth-child(3) { transition-delay: 0.1s; }
.slat:nth-child(4) { transition-delay: 0.15s; }
.slat:nth-child(5) { transition-delay: 0.2s; }
.slat:nth-child(6) { transition-delay: 0.25s; }
.slat:nth-child(7) { transition-delay: 0.3s; }
.slat:nth-child(8) { transition-delay: 0.35s; }
.slat:nth-child(9) { transition-delay: 0.4s; }
.slat:nth-child(10){ transition-delay: 0.45s; }

/* Kontrol Paneli */
.control-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.switch-grid {
  display: flex;
  justify-content: center;
  width: 95%;
  gap: 20px;
  margin-top: 30px;
}

.control-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: 0.3s;
}

.control-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
}

/* =========================================================
   MAIN SITE WRAPPER
   - IMPORTANT: NO filter: blur() on wrapper
   - blur overlay is done with ::before
   ========================================================= */

#main-site-wrapper {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1),
              visibility 1.2s;
  position: relative;
}

/* blur overlay (site hazır olana kadar) */
#main-site-wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(10px);
  opacity: 1;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* site görünür */
#main-site-wrapper.site-ready {
  opacity: 1 !important;
  visibility: visible !important;
}

/* blur kalksın */
#main-site-wrapper.site-ready::before {
  opacity: 0;
}

/* =========================================================
   NAVBAR (FIXED ALWAYS)
   ========================================================= */

.navbar {
  position: fixed;          /* <-- kritik: fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
}

/* Mobilde logo */
@media (max-width: 480px) {
  .logo-img { height: 50px; }
}

/* Desktop menu */
.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-btn {
  background: var(--dark-blue);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 5px;
}

/* Language buttons (desktop + mobile) */
.lang-wrapper {
  display: flex;
  gap: 10px;
  margin-left: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--dark-blue);
}

.lang-btn {
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s;
}

.lang-btn.active {
  opacity: 1;
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Hamburger (default hidden on desktop) */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: var(--dark-blue);
  cursor: pointer;
  user-select: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  height: 100vh;
  background: url("https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=1920&q=80")
    center/cover;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  /* navbar fixed olduğu için üstten çakışmasın */
  padding-top: 90px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 31, 63, 0.7);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Buttons */
.btn {
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  margin-left: 15px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   SERVICES
   ========================================================= */

.services {
  padding: 100px 0;
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.underline {
  width: 80px;
  height: 4px;
  background: var(--accent-blue);
  margin: 15px auto;
}

.services-intro-text {
  margin: 0 15%;
  text-align: center;
}

.services_span {
  background: #00a8e8;
  color: white;
  font-size: larger;
  border: 5px solid navajowhite;
  padding: 10px 33px;
  display: inline-block;
  margin-top: 15px;
}

/* Cards Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid #eee;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-10px);
}

.card-icon {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.service-card i {
  transition: var(--transition);
}

.service-card:hover i {
  color: var(--dark-blue);
  transform: scale(1.1);
}

.package-list {
  list-style: none;
  text-align: left;
  width: 100%;
  margin: 25px 0;
}

.package-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-list li i {
  color: #25d366;
  font-size: 0.8rem;
}

.btn-card {
  margin-top: auto;
  padding: 10px 25px;
  background: var(--dark-blue);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-card:hover {
  background: var(--accent-blue);
}

/* =========================================================
   ABOUT
   ========================================================= */

.about {
  padding: 80px 0;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.about-item i {
  font-size: 2.5rem;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.about-item h4 {
  margin-bottom: 10px;
  color: var(--accent-blue);
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  padding: 100px 0;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark-blue);
  border-radius: 20px;
  overflow: hidden;
  color: var(--white);
}

.contact-info {
  padding: 60px;
}

.contact-form {
  background: var(--white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 40px 0;
  text-align: center;
  background: #00152b;
  color: #888;
}

/* =========================================================
   MOBILE (<=768px)
   - nav-links becomes fixed fullscreen overlay
   - menu-toggle visible
   ========================================================= */

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .contact-box { grid-template-columns: 1fr; }

  .menu-toggle {
    display: block;
    z-index: 10002;
    margin-right: 10px;
  }

  /* Mobile menu overlay */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
    z-index: 10001;

    /* IMPORTANT: desktop'taki flex yapısını koruyoruz, saklamak için right:-100% kullanıyoruz */
    display: flex;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 0; /* zaten gap var */
  }

  .lang-wrapper {
    margin: 20px 0 0;
    justify-content: center;
  }

  /* Mobilde butonlar */
  .btn {
    margin-left: 0;
    width: 70%;
    text-align: center;
  }

  .btn-whatsapp {
    margin-left: 0;
    margin-top: 10px;
  }
}



#smart-control-center { pointer-events: auto; }
#main-site-wrapper { pointer-events: none; }

#main-site-wrapper.site-ready { pointer-events: auto; }
#smart-control-center.control-fade-out { pointer-events: none; }