/* Simple Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
  padding-top: 60px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #4f46e5;
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #4f46e5;
}

.nav-links a.active {
  color: #4f46e5;
  font-weight: 600;
}

/* Hamburger button (hidden on desktop by default) */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.navbar.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Legacy simple navbar variants (.nav-content / .nav-menu) */
.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s;
}

.nav-menu a:hover {
  background: #4f46e5;
  color: white;
}

.nav-menu a.active {
  background: #4f46e5;
  color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.2s ease, opacity 0.2s ease;
  }

  .navbar.nav-open .nav-links {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }
}

