/* ==========================================================================
   ACTINN SOLUTIONS - MODERN HEADER & NAVIGATION (header.css)
   - Color Scheme: Premium Off-White Glass Capsule
   - Features: Non-overlapping Floating Layout, Seamless Scroll Morphing,
     Solid White Mobile Drawer, Touch Dropdowns & Blur Overlay
   ========================================================================== */

:root {
  /* Header Color Tokens */
  --header-bg-offwhite: rgba(248, 250, 252, 0.95);
  --header-bg-solid: #F8FAFC;
  --header-border: rgba(15, 23, 42, 0.08);
  --header-shadow: 0 10px 30px rgba(3, 10, 22, 0.12);

  /* Typography & Hover Colors */
  --nav-text-primary: #0F172A;       /* High-contrast dark slate */
  --nav-text-hover: #0D6EFD;         /* Actinn Electric Blue */
  --nav-dropdown-bg: #FFFFFF;
  --nav-dropdown-border: rgba(13, 110, 253, 0.15);

  /* Dimensions & Animation Defaults */
  --topbar-height: 38px;
  --header-height: 68px;
  --header-height-scrolled: 60px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. TOP NOTIFICATION BAR (Fixed Above Floating Header)
   ========================================================================== */
.top-header-bar {
  background: #030B17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1002;
}

.top-header-container {
  max-width: var(--container-max, 1280px);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-badge {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.top-social-links a:hover {
  color: var(--nav-text-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   2. FLOATING HEADER CONTAINER (Off-White Capsule)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 48px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg-offwhite);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0 28px;
  box-shadow: var(--header-shadow);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   3. MORPHED SCROLLED STATE (Full-Width Sticky Bar)
   ========================================================================== */
.site-header.scrolled {
  top: 0;
  padding: 0;
}

.site-header.scrolled .header-container {
  max-width: 100%;
  height: var(--header-height-scrolled);
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(13, 110, 253, 0.15);
  background: rgba(248, 250, 252, 0.98);
  padding: 0 32px;
  box-shadow: 0 8px 24px rgba(3, 11, 23, 0.08);
}

/* ==========================================================================
   4. BRAND LOGO STYLING (Sharp on Off-White)
   ========================================================================== */
.brand-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.site-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  transition: height 0.3s ease;
}

.site-header.scrolled .site-logo-img {
  height: 38px;
}

/* ==========================================================================
   5. DESKTOP NAVIGATION
   ========================================================================== */
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-link {
  color: var(--nav-text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--nav-text-hover);
}

.nav-link span,
.nav-link i {
  font-size: 11px;
}

/* ==========================================================================
   6. DESKTOP DROPDOWNS & MEGA MENU
   ========================================================================== */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--nav-dropdown-bg);
  border: 1px solid var(--nav-dropdown-border);
  border-radius: 12px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  z-index: 1010;
}

.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.standard-dropdown {
  min-width: 210px;
  list-style: none;
  margin: 0;
}

.standard-dropdown li a {
  display: block;
  padding: 9px 14px;
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.standard-dropdown li a:hover {
  background: rgba(13, 110, 253, 0.08);
  color: var(--nav-text-hover);
  padding-left: 18px;
}

.mega-menu {
  width: 560px;
  left: -100px;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.service-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #1E293B;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.service-menu-item:hover {
  background: rgba(13, 110, 253, 0.08);
  color: var(--nav-text-hover);
  transform: translateX(4px);
}

.service-icon {
  color: var(--nav-text-hover);
  display: flex;
  align-items: center;
}

/* ==========================================================================
   7. CTA BUTTON & ACTIONS
   ========================================================================== */
.header-action {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary-glow {
  background: linear-gradient(135deg, var(--nav-text-hover) 0%, #0052CC 100%);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.btn-primary-glow:hover {
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.55);
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* Desktop default hidden elements */
.mobile-nav-backdrop,
.mobile-drawer-header,
.mobile-drawer-cta {
  display: none;
}

/* ==========================================================================
   INDEPENDENT MOBILE DRAWER ENGINE (NO CLIPPING, NO CONFLICTS)
   ========================================================================== */

/* Hide mobile elements on desktop */
.mobile-drawer,
.mobile-drawer-backdrop {
  display: none;
}

@media (max-width: 992px) {
  /* Hide Desktop nav */
  .desktop-nav {
    display: none !important;
  }

  /* Header adjustments */
  .site-header {
    top: 38px !important;
    padding: 0 14px !important;
  }

  .header-container {
    height: 56px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .header-action .btn-primary-glow {
    display: none !important;
  }

  /* Hamburger Toggle */
  .mobile-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 36px !important;
    height: 32px !important;
    padding: 6px 4px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
  }

  .mobile-toggle span {
    display: block !important;
    width: 100% !important;
    height: 2.5px !important;
    background: #0F172A !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
  }

  .mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }
  .mobile-toggle.is-active span:nth-child(2) {
    opacity: 0 !important;
  }
  .mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }

  /* Backdrop */
  .mobile-drawer-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(3, 11, 23, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 999990 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
  }

  .mobile-drawer-backdrop.show {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* FULLSCREEN INDEPENDENT DRAWER */
  .mobile-drawer {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: -100% !important; /* Screen se bahar */
    width: 82% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: #FFFFFF !important;
    z-index: 999999 !important;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.4) !important;
    padding: 24px 20px !important;
    overflow-y: auto !important;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* JAB OPEN HO */
  .mobile-drawer.open {
    right: 0 !important; /* Screen par slide ho jayega */
  }

  /* Drawer Top Header */
  .drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #E2E8F0 !important;
    margin-bottom: 14px !important;
  }

  .drawer-heading {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
  }

  .drawer-close {
    background: #F1F5F9 !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    color: #0F172A !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Links List */
  .drawer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .drawer-link,
  .drawer-dropdown-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 6px !important;
    color: #1E293B !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
    background: transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    cursor: pointer !important;
    text-align: left !important;
  }

  .drawer-link.active,
  .drawer-link:hover {
    color: #0D6EFD !important;
  }

  /* Accordion Sub-Menu */
  .drawer-sub-menu {
    display: none !important;
    background: #F8FAFC !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
  }

  .drawer-dropdown.expanded .drawer-sub-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .drawer-sub-menu a {
    color: #334155 !important;
    font-size: 0.88rem !important;
    text-decoration: none !important;
    padding: 6px 0 !important;
    font-weight: 500 !important;
  }

  /* Bottom CTA */
  .drawer-cta-wrapper {
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px solid #E2E8F0 !important;
  }

  .btn-full {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    padding: 12px !important;
    border-radius: 999px !important;
  }
}