
nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--accent-color);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 0%; height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 70%; height: 100vh;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
  }
  .nav-links.active { right: 0; }
  .hamburger { display: block; z-index: 1001; }
}
