/* =====================
   CSS VARIABLES
===================== */
:root {
  --nav-height: 80px;
  --nav-bg: #000;
  --nav-text: #fff;
  --nav-accent: #1163fb;
  --nav-hover: #9cc7ff;
  --sidebar-width: 300px;
  --transition: 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================
   HEADER BASE
===================== */
#header {
  background: var(--nav-bg) !important;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1050;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  height: var(--nav-height);
  padding: 0;
  width: 100%;
}

.navbar .container {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
}

/* =====================
   LOGO
===================== */
.navbar-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 1100;
  position: relative;
}

.logo {
  height: 30px;
  width: auto;
  display: block;
}

/* =====================
   DESKTOP NAV
===================== */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* reset mobile styles */
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
  }

  .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    margin: 0 auto !important;
  }

  .navbar-nav .nav-link {
    font-family: var(--font-main, 'Inter', sans-serif);
    font-size: 15px;
    color: var(--nav-text) !important;
    font-weight: 600;
    padding: 6px 0 !important;
    transition: color 0.2s;
    white-space: nowrap;
    position: relative;
  }

  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nav-accent);
    border-radius: 2px;
    transition: width 0.25s ease;
  }

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 100%;
  }

  .navbar-nav .nav-link:hover {
    color: var(--nav-hover) !important;
  }

  /* Services gradient */
  .navbar-nav .nav-item:first-child .nav-link {
    background: linear-gradient(270deg, #b5cfff 10.2%, #0487ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Dropdown hover on desktop */
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.18s ease forwards;
  }

  .dropdown-menu {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 8px !important;
    padding: 8px 0;
    min-width: 240px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    margin: 2px 6px;
    width: calc(100% - 12px);
    transition:
      background 0.2s,
      color 0.2s;
  }

  .dropdown-item:hover {
    background: var(--nav-accent);
    color: #fff;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hide toggler on desktop */
  .navbar-toggler {
    display: none !important;
  }

  /* Mobile-only elements hidden */
  .mobile-close,
  .mobile-overlay,
  .sidebar-header {
    display: none !important;
  }
}










  /* ============================================================
  STEP 2 — Add this CSS block inside your existing <style> tag
           (or append to header-new.css)
  ============================================================ */

/* ===== MEGA DROPDOWN — desktop only ===== */
@media (min-width: 992px) {
 
  /* Trigger the mega panel on parent hover */
  .mega-nav-item:hover .mega-dropdown,
  .mega-dropdown:hover {
    display: flex !important;
    animation: megaFadeIn 0.18s ease forwards;
  }
 
  @keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
 
  /* Override Bootstrap .dropdown-menu defaults */
  .mega-dropdown {
    display: none;
    position: fixed !important;
    top: var(--nav-height);
    left: 0; 
    right: 0;
    width: 100%;
    flex-direction: row;
    background: #fff;
    border: none;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    z-index: 9999;
    min-height: 425px;
    max-height: 425px;
  }
 
  /* ---- Left panel ---- */
  .mega-left {
    width: 380px;
    min-width: 270px;
    background: #f4f6fb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
  }
 
  .mega-left-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-radius: 8px;
    margin: 2px 10px;
    transition: background 0.16s, color 0.16s;
    cursor: pointer;
  }
  .mega-left-item:hover,
  .mega-left-item.active {
    background: #dce8ff;
    color: #1163fb;
    text-decoration: none;
  }
  .mega-arrow {
    font-size: 17px;
    color: #1163fb;
    opacity: 0;
    transition: opacity 0.15s;
  }
  .mega-left-item.active .mega-arrow,
  .mega-left-item:hover .mega-arrow { opacity: 1; }
 
  /* Promo block */
  .mega-promo {
    margin: auto 10px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #c8f73a 0%, #a8e020 100%);
    padding: 18px 16px 14px;
  }
  .mega-promo-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .mega-promo-icon {
    width: 26px; height: 26px; background: #111; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #c8f73a;
  }
  .mega-promo-name { font-size: 12px; font-weight: 700; color: #111; line-height: 1.2; }
  .mega-promo-sub  { font-size: 9px;  font-weight: 600; color: #333; letter-spacing: 1px; text-transform: uppercase; }
  .mega-promo-title { font-size: 14px; font-weight: 800; color: #111; margin: 0 0 5px; }
  .mega-promo-desc  { font-size: 12px; color: #333; margin: 0 0 10px; line-height: 1.4; }
  .mega-promo-link  { font-size: 12px; font-weight: 700; color: #111; text-decoration: none; }
  .mega-promo-link:hover { text-decoration: underline; }
 
  /* ---- Middle panel (shared) ---- */
  .mega-mid {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
    max-height: 520px;
    border-right: 1px solid #e5e7eb;
  }
  .mega-mid::-webkit-scrollbar       { width: 5px; }
  .mega-mid::-webkit-scrollbar-track { background: #f5f5f5; }
  .mega-mid::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
 
  /* Services links */
  .mega-mid:not(.mega-mid-blogs) a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
  }
  .mega-mid:not(.mega-mid-blogs) a:last-child { border-bottom: none; }
  .mega-mid:not(.mega-mid-blogs) a:hover { color: #1163fb; padding-left: 6px; }
 
  /* Blog panel header */
  .mega-blogs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .mega-blogs-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9ca3af;
  }
  .mega-blogs-viewall {
    font-size: 13px;
    font-weight: 600;
    color: #1163fb;
    text-decoration: none;
  }
  .mega-blogs-viewall:hover { text-decoration: underline; }
 
  /* Blog items */
  .mega-blog-item {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.45;
    transition: color 0.15s !important;
  }
  .mega-blog-item:last-child { border-bottom: none !important; }
  .mega-blog-item:hover { color: #1163fb !important; }
  .mega-blog-item img {
    width: 96px;
    height: 68px;
    object-fit: cover;
    border-radius: 7px;
    flex-shrink: 0;
  }
 
  /* ---- Right panel ---- */
  .mega-right {
    width: 380px;
    min-width: 270px;
    padding: 24px 22px;
    background: #fafafa;
  }
  .mega-right-title   { font-size: 16px; font-weight: 800; color: #111; margin-bottom: 14px; }
  .mega-featured-img  { border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
  .mega-featured-img img { width: 100%; height: 155px; object-fit: cover; display: block; }
  .mega-featured-caption { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 8px; }
  .mega-featured-link { font-size: 14px; font-weight: 600; color: #1163fb; text-decoration: none; }
  .mega-featured-link:hover { text-decoration: underline; }
 
  /* Keep Services gradient on this item */
  .mega-nav-item > .nav-link {
    background: linear-gradient(270deg,#b5cfff 10.2%,#0487ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}
 /* Gradient label — desktop mega item only */
.mega-nav-item > .nav-link {
  background: linear-gradient(270deg, #b5cfff 10.2%, #0487ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}










/* =====================
   CTA BUTTON
===================== */
.d-flex.gap-2 {
  flex: 0 0 auto;
}

.btn-outline-primary {
  position: relative;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main, 'Inter', sans-serif);
  background: linear-gradient(135deg, #0165c0, #015094);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(1, 80, 148, 0.35);
  text-decoration: none;
}

.btn-outline-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  background: rgba(217, 217, 217, 0.15);
  z-index: -1;
}

.btn-outline-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(1, 80, 148, 0.5);
}

/* =====================
   REMOVE BOOTSTRAP DEFAULTS
===================== */
.navbar-light {
  background: transparent !important;
}

.navbar-light .navbar-nav .nav-link {
  color: #fff !important;
}

.shadow-sm {
  box-shadow: none !important;
}

/* =====================
   HAMBURGER TOGGLER
===================== */
.navbar-toggler {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 6px;
  z-index: 1100;
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

/* Custom hamburger lines */
.navbar-toggler-icon {
  display: none; /* we draw lines manually below */
}

.navbar-toggler .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

/* Animate to X when active */
.navbar-toggler.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-toggler.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================
   MOBILE OVERLAY
===================== */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* =====================
   MOBILE SIDEBAR
===================== */
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: var(--sidebar-width) !important;
    height: 100dvh !important;
    background: #0a0a0a !important;
    padding: 0 !important;
    z-index: 1050 !important;
    transform: translateX(100%) !important;
    transition: transform var(--transition) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6) !important;
    /* kill Bootstrap collapse animation */
    height: 100dvh !important;
  }

  .navbar-collapse.show {
    transform: translateX(0) !important;
  }

  /* ---- Sidebar Header ---- */
  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
  }

  .sidebar-logo {
    height: 26px;
    width: auto;
  }

  /* ---- Close Button ---- */
  .mobile-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    border: none;
    line-height: 1;
  }

  .mobile-close:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  /* ---- Nav List ---- */
  .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    flex: 1;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    padding: 14px 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    transition:
      background 0.2s,
      color 0.2s !important;
    -webkit-text-fill-color: unset !important;
    background: none !important;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    -webkit-text-fill-color: unset !important;
  }

  /* Override Services gradient on mobile */
  .navbar-nav .nav-item:first-child .nav-link {
    background: none !important;
    -webkit-text-fill-color: unset !important;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  /* ---- Dropdown on Mobile ---- */
  .dropdown-toggle::after {
    margin-left: auto;
    border-top-color: rgba(255, 255, 255, 0.5);
  }

  .navbar-collapse .dropdown-menu {
    position: static !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 8px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .navbar-collapse .dropdown-item {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    padding: 10px 24px 10px 36px !important;
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    transition:
      color 0.2s,
      background 0.2s !important;
  }

  .navbar-collapse .dropdown-item:hover {
    color: #fff !important;
    background: rgba(17, 99, 251, 0.15) !important;
  }

  /* ---- CTA at bottom ---- */
  .d-flex.gap-2 {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
  }

  .btn-outline-primary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  :root {
    --sidebar-width: 280px;
  }
}

