/* ===== NAVIGATION BAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(2, 6, 1, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  border-color: var(--border);
  text-shadow: 0 0 10px var(--green);
  background: rgba(57, 255, 20, 0.05);
}
.nav-discord {
  background: rgba(88, 101, 242, 0.15) !important;
  border-color: rgba(88, 101, 242, 0.35) !important;
  color: #9ba8f5 !important;
}
.nav-discord:hover {
  background: rgba(88, 101, 242, 0.3) !important;
  color: #c5ccff !important;
  text-shadow: 0 0 10px #5865f2 !important;
  border-color: #5865f2 !important;
}

/* ===== BURGER BUTTON ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  padding: 8px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  transition: all 0.25s;
  box-shadow: 0 0 6px var(--green);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE DRAWER ===== */
.nav-drawer {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(2, 6, 1, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  z-index: 490;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
}
.nav-drawer ul {
  list-style: none;
  padding: 0.5rem 0 1rem;
}
.nav-drawer ul li a {
  display: block;
  padding: 0.9rem 2rem;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.nav-drawer ul li a:hover,
.nav-drawer ul li a.active {
  color: var(--green);
  border-left-color: var(--green);
  background: rgba(57, 255, 20, 0.04);
  text-shadow: 0 0 10px var(--green);
}
.nav-drawer .drawer-discord a { color: #9ba8f5 !important; }
.nav-drawer .drawer-discord a:hover {
  background: rgba(88, 101, 242, 0.1) !important;
  border-left-color: #5865f2 !important;
  color: #c5ccff !important;
}

/* ===== MOBILE BREAKPOINT ===== */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: block; }
}
