/* ==========================================================================
   NAVIGATION DESKTOP
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(24px, 5vw, 64px);
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand .word { font-weight: 800; font-size: 22px; font-family: 'Space Grotesk', sans-serif; color: #fff; }
.brand .word b { color: #00F0FF; }

.nav-links { display: flex; gap: 32px; align-items: center; }

.dropdown { position: relative; }
.dropbtn {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  color: #9CA3AF; text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.3s ease; padding: 10px 0;
}
.dropbtn:hover { color: #fff; }

.dropdown-content {
  display: block; visibility: hidden; opacity: 0;
  position: absolute; top: 100%; left: 0; /* Perfectly aligns box to the left */
  background-color: #030712; /* Solid color prevents text bleed-through */
  min-width: 220px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0px 12px 30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 8px; 
  transform: translateY(10px); /* Smooth drop-down animation */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 9999; /* Forces menu on top of all page elements */
}

.dropdown:hover .dropdown-content { 
  visibility: visible; 
  opacity: 1; 
  transform: translateY(0); 
}

.dropdown-content a {
  color: #D1D5DB; padding: 10px 16px; text-decoration: none; display: block;
  font-size: 14px; border-radius: 6px; transition: all 0.2s;
}
.dropdown-content a:hover { background-color: rgba(0, 240, 255, 0.1); color: #00F0FF; }

.nav-cta { display: flex; }
.nav-mobile-cta { display: none; }
.mobile-menu-btn { display: none; }

/* ==========================================================================
   NAVIGATION MOBILE
   ========================================================================== */
@media(max-width: 900px) {
  .nav-cta { display: none; }
  .mobile-menu-btn {
    display: flex; background: none; border: none; color: #fff;
    cursor: pointer; padding: 8px; z-index: 101;
  }
  .mobile-menu-btn svg { width: 28px; height: 28px; }

  .nav-links {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #030712; flex-direction: column; align-items: flex-start;
    padding: 80px 24px 40px; gap: 0;
    transform: translateX(100%); transition: transform 0.4s ease;
    overflow-y: auto; z-index: 99;
  }
  .nav-links.active { transform: translateX(0); }

  .dropdown { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dropbtn {
    width: 100%; padding: 20px 0; font-size: 18px; color: #fff;
    justify-content: space-between;
  }
  
  .dropdown-content {
    position: static; visibility: visible; opacity: 1; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0; display: none; margin-bottom: 16px;
  }
  .dropdown.active .dropdown-content { display: block; }

  .dropdown-content a { padding: 12px 16px; font-size: 16px; color: #9CA3AF; }
  .nav-mobile-cta { display: flex; width: 100%; margin-top: 32px; }
  .nav-mobile-cta .btn { width: 100%; }
}