/* Navigation Component Styles */
/* Premium Glass Navigation with Sophisticated Animations */

/* ============================================
   SITE HEADER - Sticky container for bar + nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* ============================================
   TOP ANNOUNCEMENT BAR
   ============================================ */
.top-announcement-bar {
  background: linear-gradient(135deg, #00ff9d 0%, #00d68f 50%, #00c8b0 100%);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* FIXED height to prevent ANY layout shift */
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  box-sizing: border-box;
}

/* Animated shimmer effect */
.top-announcement-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.top-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.top-announcement-text {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  /* FIXED width to prevent layout shift during typing animation */
  width: 420px;
  min-width: 420px;
  max-width: 420px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

/* Mobile: shorter phrases need less space */
@media (max-width: 768px) {
  .top-announcement-bar {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 10px 12px;
  }

  .top-announcement-text {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    text-align: center;
    font-size: 12px;
  }

  .top-announcement-cta {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .top-announcement-text {
    width: 340px;
    min-width: 340px;
    max-width: 340px;
  }
}

.top-announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  background: rgba(0,0,0,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.top-announcement-cta:hover {
  background: rgba(0,0,0,0.2);
}

.top-announcement-cta svg {
  width: 14px;
  height: 14px;
}

/* Typing cursor animation */
.typing-cursor {
  animation: blink 0.7s infinite;
  font-weight: 400;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Pulse indicator */
.announcement-pulse {
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.announcement-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.3);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Glowing CTA button */
.announcement-glow {
  position: relative;
  background: #000 !important;
  color: #00ff9d !important;
  padding: 6px 16px !important;
  font-weight: 700 !important;
}

.announcement-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #00ff9d, #00d4ff, #00ff9d);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.announcement-glow:hover::before {
  opacity: 1;
}

.announcement-glow:hover {
  transform: scale(1.05);
}

/* ============================================
   SIMPLE DROPDOWN MENU (No Icons)
   ============================================ */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  background: rgba(15, 15, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 1002;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(0, 255, 157, 0.15);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
  padding-left: 20px;
}

.dropdown-item:visited,
.dropdown-item:link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.dropdown-item:hover:visited,
.dropdown-item:hover:link {
  color: #00ff9d;
}

/* Mobile dropdown styles */
@media (max-width: 1024px) {
  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    border-radius: 0;
    border: none;
    padding: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 300px;
    padding: 8px 16px;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
    border-bottom: 1px solid rgba(0, 255, 157, 0.1);
  }

  .dropdown-item {
    padding: 10px 12px;
  }
}

/* Main Navigation - Inside sticky header */
.main-nav {
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  border-bottom: 1px solid rgba(0, 255, 157, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Subtle glow line at top */
.main-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 157, 0.3) 20%,
    rgba(0, 255, 157, 0.5) 50%,
    rgba(0, 255, 157, 0.3) 80%,
    transparent 100%
  );
  opacity: 0.7;
}

/* Scrolled state - more compact */
.main-nav.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 255, 157, 0.05);
}

.nav-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.6rem 2.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex: 1;
  justify-content: flex-end;
}

/* Navigation Toggle - Premium Hamburger */
.nav-toggle {
  display: none;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.65rem;
  color: var(--accent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(0, 255, 157, 0.1);
  border-color: rgba(0, 255, 157, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
}

.nav-toggle:hover::before {
  opacity: 1;
}

.nav-toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--accent);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: var(--accent);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-toggle-icon::before {
  top: -7px;
  width: 18px;
  right: 0;
}

.nav-toggle-icon::after {
  bottom: -7px;
  width: 14px;
  right: 0;
}

/* Hamburger hover - lines expand */
.nav-toggle:hover .nav-toggle-icon::before,
.nav-toggle:hover .nav-toggle-icon::after {
  width: 22px;
}

/* Hamburger Active State - Transform to X with glow */
.nav-toggle.active {
  background: rgba(0, 255, 157, 0.15);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.2);
}

.nav-toggle.active .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle.active .nav-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
  width: 22px;
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
}

.nav-toggle.active .nav-toggle-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
  width: 22px;
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
}

/* Navigation Links - Premium Styling */
.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.link-item {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  overflow: hidden;
}

/* Subtle background on hover */
.link-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.08), rgba(0, 255, 157, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 6px;
}

/* Animated underline */
.link-item::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.link-item:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.link-item:hover::before {
  opacity: 1;
}

.link-item:hover::after {
  width: 70%;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

/* Active state - Pill style */
.link-item.active {
  color: var(--accent);
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.2);
}

.link-item.active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.12), rgba(0, 255, 157, 0.04));
}

.link-item.active::after {
  width: 60%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.5);
}

/* Current section highlighting for dropdowns */
.nav-dropdown.current-section .dropdown-trigger {
  color: var(--accent);
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.2);
}

.nav-dropdown.current-section .dropdown-trigger::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.12), rgba(0, 255, 157, 0.04));
}

.nav-dropdown.current-section .dropdown-trigger::after {
  width: 60%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.5);
}

.link-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  z-index: 1;
}

/* Connect link - Special CTA styling */
.link-item[href="/connect/"] {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.15), rgba(0, 255, 157, 0.05));
  border: 1px solid rgba(0, 255, 157, 0.3);
  color: var(--accent);
}

.link-item[href="/connect/"]:hover {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.25), rgba(0, 255, 157, 0.1));
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

/* Site Logo - Premium Hover Effects */
.site-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.site-logo a::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.3), rgba(0, 255, 157, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.site-logo a:hover {
  transform: scale(1.08);
}

.site-logo a:hover::before {
  opacity: 1;
}

.site-logo img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 0 rgba(0, 255, 157, 0));
}

.site-logo a:hover img {
  filter: drop-shadow(0 0 12px rgba(0, 255, 157, 0.6));
}

/* Mobile center text */
.nav-center-mobile {
  display: none;
}

.center-ai-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.center-ai-text .divider {
  color: var(--accent);
  margin: 0 0.3rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .nav-center-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  .center-ai-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .center-ai-text {
    font-size: 0.7rem;
  }
}

/* Identity Toggle */
.identity-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    margin-right: 0.5rem;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.identity-toggle.flipped {
    transform: rotateY(180deg);
}

.identity-toggle a {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.identity-toggle a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.identity-toggle .ms-side {
    background: #1c1c1c;
    color: #00e0ac;
    font-family: 'Inter', sans-serif;
    transform: rotateY(0deg);
    border: 1px solid #00e0ac;
}

.identity-toggle .fj-side {
    background: #FFF5F0;
    color: #333333;
    font-family: 'Playfair Display', serif;
    transform: rotateY(180deg);
    border: 1px solid #FFE8D6;
}

.identity-toggle a:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
    .identity-toggle {
        transition: none;
    }
    .identity-toggle.flipped {
        transform: none;
    }
}

/* Responsive Navigation - Premium Mobile Experience */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .nav-right {
    gap: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(10, 10, 15, 0.98) 0%,
      rgba(5, 10, 12, 0.99) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 0;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 255, 157, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Staggered animation for mobile menu items */
  .nav-links.show .link-item {
    animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
  }

  .nav-links.show .link-item:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.show .link-item:nth-child(2) { animation-delay: 0.1s; }
  .nav-links.show .link-item:nth-child(3) { animation-delay: 0.15s; }
  .nav-links.show .link-item:nth-child(4) { animation-delay: 0.2s; }
  .nav-links.show .link-item:nth-child(5) { animation-delay: 0.25s; }
  .nav-links.show .link-item:nth-child(6) { animation-delay: 0.3s; }
  .nav-links.show .link-item:nth-child(7) { animation-delay: 0.35s; }
  .nav-links.show .link-item:nth-child(8) { animation-delay: 0.4s; }
  .nav-links.show .link-item:nth-child(9) { animation-delay: 0.45s; }

  @keyframes slideInFromRight {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .link-item {
    width: 100%;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    margin: 0;
  }

  .link-item:hover {
    background: rgba(0, 255, 157, 0.08);
    padding-left: 2.5rem;
  }

  .link-item::after {
    display: none;
  }

  .link-item.active {
    background: rgba(0, 255, 157, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 0;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Connect CTA in mobile menu */
  .link-item[href="/connect/"] {
    margin: 1rem 1.5rem;
    width: calc(100% - 3rem);
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 157, 0.3);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.5rem 1rem;
    justify-content: space-between !important;
    gap: 0 !important;
  }

  .nav-left {
    gap: 1rem !important;
    flex: none;
  }

  .nav-right {
    gap: 0 !important;
    flex: none;
    display: flex;
    align-items: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(10, 10, 15, 0.99) 0%,
      rgba(5, 8, 10, 1) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.5rem;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 255, 157, 0.15);
    z-index: 999;
    display: flex;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block !important;
    margin: 0 !important;
  }

  .link-item {
    padding: 0.9rem 1.5rem;
  }

  .link-title {
    font-size: 0.8rem;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .nav-container {
    padding: 0.4rem 0.75rem;
  }

  .link-item {
    padding: 0.85rem 1.25rem;
  }

  .link-title {
    font-size: 0.75rem;
  }
}

/* ============================================
   MEGA MENU DROPDOWN SYSTEM - 2026 STYLE
   ============================================ */

/* Dropdown Container */
.nav-dropdown {
  position: relative;
}

/* Dropdown Trigger Button */
.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.5rem 0.9rem;
}

.dropdown-trigger:hover {
  color: var(--accent);
}

.dropdown-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
  opacity: 1;
  transform: rotate(180deg);
}

/* Mega Menu Panel */
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 480px;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 22, 0.98) 0%,
    rgba(10, 10, 15, 0.99) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 255, 157, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 30px rgba(0, 255, 157, 0.05);
  z-index: 1001;
}

/* Smaller mega menu variant */
.mega-menu-sm {
  min-width: 280px;
}

/* Arrow pointer */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: rgba(15, 15, 22, 0.98);
  border-left: 1px solid rgba(0, 255, 157, 0.12);
  border-top: 1px solid rgba(0, 255, 157, 0.12);
}

/* Show mega menu on hover with delay */
.nav-dropdown:hover .mega-menu,
.nav-dropdown.active .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Delay before showing - prevents flicker */
.nav-dropdown .mega-menu {
  transition-delay: 0.15s;
}

.nav-dropdown:not(:hover) .mega-menu {
  transition-delay: 0s;
}

/* Mega Menu Inner Layout */
.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mega-menu-sm .mega-menu-inner {
  grid-template-columns: 1fr;
}

/* Mega Menu Column */
.mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Column Heading */
.mega-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 157, 0.1);
}

/* Mega Menu Item */
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  text-decoration: none !important;
  color: #fff !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mega-item:visited,
.mega-item:link {
  color: #fff !important;
  text-decoration: none !important;
}

.mega-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.08), transparent);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mega-item:hover {
  transform: translateX(4px);
}

.mega-item:hover::before {
  opacity: 1;
}

/* Mega Item Icon */
.mega-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 157, 0.08);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* Mega Item Text */
.mega-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: relative;
  z-index: 1;
}

.mega-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.25s ease;
}

.mega-item:hover .mega-title {
  color: var(--accent);
}

.mega-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* CTA Link Style */
.link-cta {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.15), rgba(0, 255, 157, 0.05)) !important;
  border: 1px solid rgba(0, 255, 157, 0.3) !important;
  color: var(--accent) !important;
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
}

.link-cta:hover {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.25), rgba(0, 255, 157, 0.1)) !important;
  border-color: rgba(0, 255, 157, 0.5) !important;
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.2);
}

.link-cta svg {
  transition: transform 0.3s ease;
}

.link-cta:hover svg {
  transform: translateX(3px);
}

/* Mobile Mega Menu */
@media (max-width: 1024px) {
  .nav-dropdown {
    width: 100%;
  }

  .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .mega-menu {
    position: static;
    transform: none;
    min-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0.75rem 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
    background: rgba(0, 0, 0, 0.3);
  }

  .mega-menu::before {
    display: none;
  }

  .nav-dropdown.active .mega-menu {
    max-height: 500px;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
    border-bottom: 1px solid rgba(0, 255, 157, 0.1);
  }

  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .mega-heading {
    display: none;
  }

  .mega-item {
    padding: 0.6rem 0.75rem;
  }

  .mega-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .mega-title {
    font-size: 0.85rem;
  }

  .mega-desc {
    font-size: 0.7rem;
  }

  .link-cta {
    margin: 0.5rem 0 !important;
    width: 100% !important;
    justify-content: center !important;
  }
} 