
/* =====================
   HEADER
===================== */
.site-header {
  margin: 20px;
  border-radius: 16px;
  position: relative;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo strong {
  font-size: 22px;
  letter-spacing: 1px;
}


/* =====================
   header css
===================== */

.mega-parent {
  position: relative;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 40px;
  left: -200px;
  width: 600px;
  padding: 30px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mega-menu h4 {
  margin-bottom: 10px;
}

.mega-menu a {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.mega-menu a:hover {
  color: #fff;
}

/* =====================
   MENU
===================== */
.menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

/* Links */
.menu a {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
}

.menu a:hover {
  color: var(--accent);
}

/* CTA spacing fix */
.menu-cta {
  margin-left: 10px;
}

/* =====================
   MEGA MENU
===================== */
.mega-menu {
  display: none;
  position: fixed;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  padding: 50px 70px;
  border-radius: 18px;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
}

.mega-menu.active {
  display: grid;
}

.mega-menu h4 {
  font-size: 20px;
  /* 👈 thoda aur bada */
  font-weight: 800;
  /* 👈 strong heading */
  margin-bottom: 14px;
  /* 👈 neeche space */
  line-height: 1.3;
  white-space: normal;
  max-width: 100%;
}

.mega-menu h4 a {
  font: inherit;
  /* h4 ka font-size + weight inherit */
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}


.mega-menu>div>a {
  display: block;
  font-size: 15.5px;
  /* 👈 text bigger */
  font-weight: 500;
  /* 👈 slightly bold */
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mega-menu a:hover {
  color: var(--accent);
}

.mega-parent {
  position: relative;
}

/* =====================
   MOBILE MENU ICON
===================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* Animate icon */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 15, 26, 0.95);
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    border-radius: 0 0 20px 20px;
    display: none;
  }

  .menu.open {
    display: flex;
  }

  .mega-menu {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .mega-menu.show {
    display: grid;
  }

  .menu-cta {
    width: 100%;
  }

  .menu-cta a {
    display: block;
    text-align: center;
  }
}
/* =====================
   HEADER RESPONSIVE HARDENING
===================== */
@media (max-width: 1200px) {
  .site-header {
    margin: 12px;
  }

  .menu {
    gap: 18px;
  }

  .mega-menu {
    width: min(92vw, 900px);
    left: 50%;
    transform: translateX(-50%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 32px 24px;
    max-height: 72vh;
    overflow: auto;
  }
}

@media (max-width: 768px) {
  .site-header {
    margin: 10px;
  }

  .menu {
    max-height: calc(100vh - 100px);
    overflow: auto;
  }

  .mega-menu {
    max-height: none;
    overflow: visible;
  }
}