/* =============================================================================
   NAVIGATION
   ============================================================================= */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  min-width: 200px;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: translateX(-2px);
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
  padding: 10px 8px;
  position: relative;
  transition: all var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.65);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav Icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  justify-content: flex-end;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-btn:active {
  transform: translateY(0);
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  padding: 20px;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 99;
}

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

.mobile-menu a {
  display: block;
  color: #fff;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 24px;
}

/* Responsive */
@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: grid;
    place-items: center;
  }
  
  .brand {
    min-width: unset;
  }
  
  .nav-icons {
    min-width: unset;
  }
}
@media (max-width: 620px) {
  .nav-icons .social-icon {
    display: none;
  }
}
