/* ============================================================
   navbar.css — Navigation & Mobile Menu
============================================================ */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
}
#nav.scrolled {
  background: rgba(5,8,16,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(244,180,0,0.08);
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--solar-gold);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-logo span { color: var(--cool-grey); }

.nav-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--cool-grey);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--solar-gold);
  transition: width 0.3s var(--ease-silk);
}
.nav-links a:hover { color: var(--solar-gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--space-black);
  background: var(--solar-gold);
  border: none;
  padding: var(--space-2) var(--space-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--solar-gold);
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,8,16,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--stellar-white);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--solar-gold); }
.mobile-close {
  position: absolute;
  top: var(--space-5); right: var(--space-5);
  background: none; border: none;
  font-size: 2rem;
  color: var(--cool-grey);
  cursor: none;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}
