/* ==========================================================================
   nav.css — Glass navigation, landing variant
   Mobile-first. Base = 320px.
   ========================================================================== */

/* ---------- Base nav (mobile) ---------- */

.nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.2rem;
  z-index: 100;
  padding: 0.75rem;
}

.nav a {
  font-family: 'Press Start 2P', 'VT323', monospace;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

/* Current page underline */
.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  width: 100%;
}

/* ---------- Landing nav variant ---------- */

.nav-landing {
  bottom: 30px;
}

/* ---------- Glass nav (subpages) ---------- */

.nav.nav-glass {
  bottom: 0;
  left: 0;
  right: 0;
  transform: none;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: rgba(10, 10, 15, 0.35);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- sm: 640px+ ---------- */

@media (min-width: 640px) {
  .nav {
    gap: 2rem;
  }

  .nav a {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }
}

/* ---------- md: 768px+ ---------- */

@media (min-width: 768px) {
  .nav {
    bottom: 30px;
    gap: 2.5rem;
    padding: 1rem;
  }

  .nav a {
    font-size: 0.55rem;
  }
}

/* ---------- lg: 1024px+ ---------- */

@media (min-width: 1024px) {
  .nav {
    bottom: 40px;
    gap: 3rem;
  }

  .nav a {
    font-size: 0.6rem;
  }

  .nav.nav-glass {
    padding: 1.5rem 2rem;
  }
}
