/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

/* ===== NAV INNER ===== */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ===== LOGO ===== */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  flex-shrink: 0;
}

.nav-logo .logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

.nav-logo .logo-icon-fallback {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
}

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-body);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
}

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

/* ===== NAV RIGHT ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== HAMBURGER ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(250, 250, 250, 0.98);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-body);
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.nav-mobile a:hover {
  color: var(--color-primary);
  background: var(--color-bg-soft);
}

.nav-mobile a.mobile-cta {
  margin: 16px 24px 20px;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-pill);
  text-align: center;
  border-bottom: none;
  box-shadow: var(--shadow-glow);
}

.nav-mobile a.mobile-cta:hover {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-lg);
  transform: translateY(-1px);
}
