.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 35px;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  transition: background .4s ease, padding .4s ease, backdrop-filter .4s ease;
}

.nav.scrolled {
  padding: 15px 35px;
  background: rgba(5,5,5,.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav .logo {
  color: #f5f5f0;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.04em;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.nav .logo:hover { transform: translateY(-2px); }
.nav .logo span { color: #ff5a45; }

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color .3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: white;
  transition: width .35s cubic-bezier(.22,1,.36,1);
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-contact {
  padding: 10px 17px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 100px;
  transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}

.nav-links .nav-contact::after { display: none; }
.nav-links .nav-contact:hover { background: white; color: black; transform: translateY(-2px); }

.nav .menu {
  display: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}

@media (max-width:900px) {
  .nav { padding: 18px 20px; }
  .nav.scrolled { padding: 14px 20px; }

  .nav .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 100%;
    height: 100vh;
    padding: 0;
    display: flex;
    background: #050505;
    border: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform .6s cubic-bezier(.22,1,.36,1);
  }

  .nav .nav-links.open { transform: translateX(0); }
  .nav .nav-links a { font-size: 30px; }
  .nav .nav-contact { padding: 0; border: 0; }

  .nav .menu {
    display: block;
    position: relative;
    z-index: 1001;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
  }
}
