/* ============================================================
   NAV.CSS — Shared Navigation Styles
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-cyan), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: none;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-cyan);
  letter-spacing: 0.3em;
  text-shadow: var(--glow-cyan);
  line-height: 1;
  animation: logoPulse 4s ease-in-out infinite;
}

.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}

@keyframes logoPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(0,245,255,0.4), 0 0 60px rgba(0,245,255,0.15); }
  50%       { text-shadow: 0 0 30px rgba(0,245,255,0.7), 0 0 80px rgba(0,245,255,0.3); }
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  cursor: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--accent-cyan);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

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

.nav-link-cta {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  margin-left: 0.5rem;
}

.nav-link-cta:hover {
  background: rgba(0, 245, 255, 0.08);
  box-shadow: var(--glow-cyan);
}

.nav-link-cta::after { display: none; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 0.5rem;
  border: 1px solid var(--border-cyan);
  border-radius: 4px;
  background: transparent;
  transition: var(--transition);
}

.nav-hamburger:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
  transition: var(--transition);
  display: block;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ── */
.nav-mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-cyan);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile .nav-link {
  font-size: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(107, 114, 128, 0.1);
}

.nav-mobile .nav-link:last-child { border-bottom: none; }

/* ── HUD side indicator ── */
.nav-hud-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.nav-hud-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 1.5s ease-in-out infinite;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-hud-indicator { display: none; }
}
