/* ─── NAVBAR ───────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(10,12,15,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(245,247,250,0.92);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
/* ─── THEME TOGGLE ──────────────────────────────────────── */
.theme-toggle {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--text2);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text3); }
.theme-icon { font-size: 15px; line-height: 1; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text2); border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,12,15,0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  [data-theme="light"] .nav-links { background: rgba(245,247,250,0.98); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.75rem 2rem; }
}
