/* ============================================================
   MEGA MENU — Stunning dropdown navigation
   ============================================================ */

.mega-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(8, 45, 80, 0.97), rgba(6, 35, 65, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(135, 206, 250, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.mega-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(12px, 2vw, 28px);
  height: 64px;
}

/* Brand */
.mega-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e8f4fd;
  flex-shrink: 0;
}
.mega-brand-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(135, 206, 250, 0.2), rgba(70, 180, 255, 0.1));
  border: 1px solid rgba(135, 206, 250, 0.35);
  display: grid; place-items: center;
  color: #87CEEB;
  transition: transform 0.3s, box-shadow 0.3s;
}
.mega-brand:hover .mega-brand-icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 20px rgba(135, 206, 250, 0.3);
}
.mega-brand-icon svg { width: 22px; height: 22px; }
.mega-brand-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}
.mega-brand-sub {
  display: block;
  font-family: 'Heebo', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(135, 206, 250, 0.6);
  letter-spacing: 0.06em;
}

/* Main nav items */
.mega-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
}
.mega-nav-item {
  position: relative;
  padding: 20px 14px;
  color: rgba(232, 244, 253, 0.8);
  font-family: 'Heebo', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  user-select: none;
}
.mega-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 3px;
  background: linear-gradient(90deg, #87CEEB, #4db8ff);
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mega-nav-item:hover,
.mega-nav-item.is-open {
  color: #87CEEB;
}
.mega-nav-item:hover::after,
.mega-nav-item.is-open::after {
  width: 70%;
}
.mega-nav-item svg {
  display: inline-block;
  vertical-align: middle;
  width: 12px; height: 12px;
  margin-inline-start: 4px;
  transition: transform 0.25s;
}
.mega-nav-item.is-open svg {
  transform: rotate(180deg);
}

/* Simple nav links (no dropdown) */
.mega-nav-link {
  padding: 20px 14px;
  color: rgba(232, 244, 253, 0.8);
  font-family: 'Heebo', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.mega-nav-link:hover {
  color: #87CEEB;
}
.mega-nav-link.is-active {
  color: #87CEEB;
  font-weight: 700;
}

/* Mega dropdown panel */
.mega-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(8, 40, 72, 0.98), rgba(5, 30, 55, 0.98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 2px solid rgba(135, 206, 250, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 1px rgba(135, 206, 250, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 99;
}
.mega-dropdown.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-dropdown-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 24px clamp(16px, 3vw, 40px) 28px;
}

/* Mega dropdown category */
.mega-cat {
  padding: 16px;
  border-radius: 14px;
  transition: background 0.2s;
}
.mega-cat:hover {
  background: rgba(135, 206, 250, 0.06);
}
.mega-cat-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 14px;
  font-weight: 700;
  color: #87CEEB;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(135, 206, 250, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mega-cat-title .cat-icon {
  font-size: 18px;
}

.mega-cat-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-cat-links li {
  margin-bottom: 2px;
}
.mega-cat-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: rgba(232, 244, 253, 0.75);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.mega-cat-links a:hover {
  background: rgba(135, 206, 250, 0.1);
  color: #e8f4fd;
  transform: translateX(-3px);
}
.mega-cat-links a .link-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* Login button */
.mega-login {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(135, 206, 250, 0.2), rgba(70, 180, 255, 0.1));
  border: 1px solid rgba(135, 206, 250, 0.35);
  border-radius: 999px;
  color: #87CEEB;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.3s;
  white-space: nowrap;
}
.mega-login:hover {
  background: linear-gradient(135deg, rgba(135, 206, 250, 0.3), rgba(70, 180, 255, 0.2));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(135, 206, 250, 0.15);
}

/* Hamburger */
.mega-hamburger {
  display: none;
  width: 42px; height: 42px;
  background: rgba(135, 206, 250, 0.1);
  border: 1px solid rgba(135, 206, 250, 0.25);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.mega-hamburger:hover {
  background: rgba(135, 206, 250, 0.18);
}
.mega-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: #87CEEB;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.mega-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mega-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.mega-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mega-mobile-drawer {
  display: none;
  position: fixed;
  top: 64px; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(5, 30, 55, 0.99), rgba(3, 20, 40, 0.99));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 98;
  overflow-y: auto;
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mega-mobile-drawer.is-open {
  display: block;
  transform: translateX(0);
}
.mega-mobile-section {
  margin-bottom: 16px;
}
.mega-mobile-section-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 15px;
  font-weight: 700;
  color: #87CEEB;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(135, 206, 250, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.mega-mobile-links {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  display: none;
}
.mega-mobile-links.is-expanded {
  display: block;
}
.mega-mobile-links a {
  display: block;
  padding: 10px 16px;
  color: rgba(232, 244, 253, 0.8);
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
}
.mega-mobile-links a:hover {
  background: rgba(135, 206, 250, 0.08);
}

@media (max-width: 960px) {
  .mega-nav { display: none; }
  .mega-hamburger { display: inline-flex; }
  .mega-dropdown { display: none !important; }
  .mega-login span:last-child { display: none; }
}

/* ── Decorative glow effect on mega dropdown ── */
.mega-dropdown::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(135, 206, 250, 0.4), transparent);
}
