.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(76, 110, 245, 0.06);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  background: linear-gradient(135deg, #1a1a2e, #3b5bdb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-brand:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #4a4a6a;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.nav-link:hover {
  color: #4c6ef5;
  background: rgba(76, 110, 245, 0.1);
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #4c6ef5, #3b5bdb);
  box-shadow: 0 4px 14px rgba(76, 110, 245, 0.35);
}

@media (max-width: 640px) {
  .navbar-inner {
    padding: 0.7rem 1rem;
    flex-wrap: wrap;
  }
  .nav-brand {
    font-size: 1.1rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}