/* ===== FIXED NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(246,245,242,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Scrolled state: logo needs to be dark */
.nav.scrolled .nav-logo a { color: var(--gray-900); }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0px;
  background: rgba(128, 130, 129, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 0px;
}

.nav.scrolled .nav-links {
  background: rgba(128, 130, 129, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-links a {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  border-radius: 100px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: rgba(255,255,255,0.8);
}

.nav.scrolled .nav-links a {
  color: white;
}

.nav.scrolled .nav-links a:hover {
  color: rgba(255,255,255,0.8);
}

.nav.scrolled .nav-links a.active {
  color: #000;
}

.nav-links a.active {
  background: linear-gradient(rgb(249,247,245) 0%, rgb(236,235,233) 100%);
  color: #000;
  box-shadow:
    rgb(255, 255, 255) 0px 2px 0px 0px inset,
    rgba(255, 255, 255, 0.5) 0px 1px 1px 0px inset,
    rgba(0, 0, 0, 0.5) 0px 0px 1px 0px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
    rgba(0, 0, 0, 0.1) 0px 12px 30px 0px;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-right .btn-primary {
  padding: 10px 22px;
  font-size: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav.scrolled .hamburger span {
  background: var(--text);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: white !important;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: white !important;
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  display: flex;
  flex-direction: column;
  padding: 100px 40px 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .mobile-link {
  display: block;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.9);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.32s; }

.mobile-menu .mobile-link:active {
  color: rgba(255,255,255,0.5);
}

.mobile-menu .mobile-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.mobile-menu.active .mobile-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu .mobile-footer .btn-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #000;
  background: #fff;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.mobile-menu .mobile-footer .btn-mobile-cta:active {
  transform: scale(0.97);
  background: rgba(255,255,255,0.85);
}

.mobile-menu .mobile-footer .mobile-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 8px;
}

.mobile-menu .mobile-footer .mobile-meta a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.mobile-menu .mobile-footer .mobile-meta a:active {
  color: rgba(255,255,255,0.6);
}
