.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(5, 8, 15, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
}

.nav-logo {
  height: 38px;
  min-height: 4rem;
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text-muted);
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;

  /* smooth color animation */
  transition: color 0.35s ease;
}

/* Active nav link */
nav a.active {
  color: var(--accent-cyan);
}

/* Optional: subtle underline indicator (very clean) */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.35s ease;
}

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

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 5%;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 5%;
    background: rgba(5, 8, 15, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    flex-direction: column;
    gap: 1rem;
  }

  nav a {
    margin-left: 0;
  }

  nav.open {
    display: flex;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 5%;
    width: min(90vw, 320px);

    background: rgba(10, 14, 22, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 18px;
    padding: 1.4rem 1.6rem;

    box-shadow:
      0 20px 50px rgba(0,0,0,0.45),
      inset 0 1px 0 rgba(255,255,255,0.05);

    flex-direction: column;
    gap: 1.2rem;

    animation: navDrop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  nav.open {
    display: flex;
  }
}
@media (max-width: 768px) {
  nav a {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    color: var(--text-main);
  }

  nav a::after {
    display: none;
  }
}
.nav-toggle {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  opacity: 0.9;
}

.nav-toggle:hover {
  opacity: 1;
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

