/* ==========================================================================
   1. REAL RESET & APPAREL (Ümumi Sıfırlama və Əsas Stillər)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth; /* Brauzer səviyyəsində yumşaq sürüşmə */
}

body {
  background-color: #0b1220; /* Dərin lüks tünd fon */
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   2. PREMIUM NAVIGATION BAR (iOS Sürüşən Şüşə Kapsullu Menyu)
   ========================================================================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(45deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Linklərin Konteyneri */
.nav-links {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Linklərin Sadə Vəziyyəti */
.nav-link {
  position: relative;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, background-color 0.2s ease;
  z-index: 2; /* Şüşə kapsulun üstündə qalması üçün */
  border-radius: 24px;
}

/* Linkin üzərinə gələndə */
.nav-link:hover {
  color: #ffffff;
}

/* 🔥 Aktiv Səhifənin Link Stili (Ağ qutunun içində tünd lüks yazı) */
.nav-link--active {
  color: #0b1220 !important;
  font-weight: 600;
  background: #ffffff; /* Slaydsız səhifələrdə birbaşa ağ fon verir */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 🍏 Sürüşən iOS Şüşə Kapsulu (YALNIZ ANA SƏHİFƏDƏ AKTİV OLACAQ) */
.nav-links::before {
  content: '';
  position: absolute;
  top: 4px;
  left: var(--slide-left, 4px);
  width: var(--slide-width, 0px);
  height: calc(100% - 8px);
  background: #ffffff; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: all 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  display: none; /* Standart olaraq gizlədirik ki, digər səhifələrdə slayd yaranmasın */
}

/* Ana səhifədə (index.html) slayd elementini aktiv etmək üçün sinif */
.nav-links-slider-active::before {
  display: block;
}

/* Slayd olan yerdə aktiv linkin öz daxili fonunu söndürürük ki, üst-üstə düşməsin */
.nav-links-slider-active .nav-link--active {
  background: transparent !important;
  box-shadow: none !important;
}

/* Sağ tərəfdəki Əlaqə Butonu */
.nav-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-contact-btn {
  background: #ffffff;
  color: #0b1220;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.nav-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* Hamburger Menyu (Mobil üçün) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* ==========================================================================
   3. HERO SECTION (Giriş / Video Hissəsi)
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11,18,32,0.5), #0b1220);
  z-index: -1;
}

.main-title {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.main-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-main {
  background: #ffffff;
  color: #0b1220;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   4. CALCULATOR FORM & CONTAINERS (Kalkulyator Dizaynı)
   ========================================================================== */
.calc-section {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.calc-container {
  width: 100%;
  max-width: 600px;
  background: rgba(17, 26, 46, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.calc-title-badge {
  text-align: center;
  margin-bottom: 32px;
}

.calc-title-badge h2 {
  font-size: 26px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group select,
.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.form-group select option {
  background: #111a2e;
  color: #fff;
}

.btn-calc {
  width: 100%;
  background: #ffffff;
  color: #0b1220;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-calc:hover {
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* Loader (Hesablama Animasiyası) */
.loader {
  display: none;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  border-top-color: #fff;
  margin: 20px auto 0;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ✨ NƏTİCƏ QUTUSUNUN YAĞ KİMİ RƏVAN AÇILMASI ÜÇÜN MASTER CSS */
.result-box {
  display: block !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 16px;
  transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.4s ease-out, 
              padding 0.4s ease-out, 
              margin-top 0.4s ease-out,
              border-color 0.4s ease;
}

.result-box.show {
  max-height: 1000px;
  opacity: 1;
  margin-top: 30px;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.05);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.result-row:last-child {
  border-bottom: none;
}

/* Yekun Qiymət Vurğusu */
.result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.result-total span:last-child {
  font-size: 20px;
  color: #ffffff;
}

.error-box {
  display: none;
  margin-top: 20px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
}

/* ==========================================================================
   5. ABOUT PAGE STYLES (Haqqımızda Səhifəsi Ümumi)
   ========================================================================== */
.about-section {
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.about-section h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ==========================================================================
   6. CONTACT SECTION & CARDS (Əlaqə Bölməsi və Kartları)
   ========================================================================== */
.contact-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-icon {
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.contact-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}
.contact-card:hover .card-icon {
  transform: scale(1.1);
}
.wa-card:hover { border-color: rgba(37, 211, 102, 0.3); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.08); }
.insta-card:hover { border-color: rgba(225, 48, 108, 0.3); box-shadow: 0 8px 24px rgba(225, 48, 108, 0.08); }
.tiktok-card:hover { border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.05); }
.call-card:hover { border-color: rgba(52, 152, 219, 0.3); box-shadow: 0 8px 24px rgba(52, 152, 219, 0.08); }
.mail-card:hover { border-color: rgba(241, 196, 15, 0.3); box-shadow: 0 8px 24px rgba(241, 196, 15, 0.08); }

/* Sabit WhatsApp Düyməsi */
.whatsapp-sticky {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-sticky:hover {
  transform: scale(1.08) rotate(8deg);
}

/* ==========================================================================
   7. PREMIUM SCROLL TO TOP BUTTON (Yuxarı Qayıtma Düyməsi)
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 46px;
  height: 46px;
  background-color: #ffffff;
  color: #0b1220;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease;
}

.scroll-to-top:hover {
  background-color: #f4f5f7;
  transform: translateY(-3px);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (Mobil və Planşet Uyğunlaşdırılması)
   ========================================================================== */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 16px 24px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Mobil Menyu */
  .nav-links {
    position: fixed;
    top: 75px;
    left: -100%;
    width: calc(100% - 48px);
    margin: 0 24px;
    flex-direction: column;
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px;
    gap: 8px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.open {
    left: 0;
  }

  .nav-link {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 14px;
  }

  /* Mobildə Aktiv Səhifə */
  .nav-link--active {
    background: #ffffff !important;
    color: #0b1220 !important;
  }

  /* Mobildə Slayderi tamamilə ləğv edirik */
  .nav-links::before, 
  .nav-links-slider-active::before {
    display: none !important;
  }

  .nav-contact-btn {
    display: none;
  }

  .main-title { font-size: 44px; }
  .main-subtitle { font-size: 16px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
  
  .calc-container { padding: 24px; }
  .contact-section { padding: 40px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  
  .whatsapp-sticky { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .scroll-to-top {
    bottom: 85px;
    right: 22px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}