html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6%;

  background: rgb(15 23 42 / 0%);
  border-bottom: 1px solid transparent;

  animation: nav-scroll linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 160px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;

    @media (max-width: 600px) {
        gap: 1rem;
        font-size: 0.7rem;
    }
}

nav a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 200ms ease;
}

@keyframes nav-scroll {
  from {
    background: rgb(15 23 42 / 0%);
    border-color: transparent;
    box-shadow: 0 0 0 transparent;
    backdrop-filter: blur(0);
  }

  to {
    background: rgb(15 23 42 / 92%);
    border-color: rgb(148 163 184 / 20%);
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
    backdrop-filter: blur(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  nav {
    animation: none;
  }
}
