/* header.css */

BEFORE MAJOR EDIT

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--card-bg);
  box-shadow: 0 2px 10px var(--card-shadow);
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo */
.logo-img {
  height: clamp(40px, 6vw, 100px);
  max-width: 120px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Hamburger Button (mobile only) */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: deeppink;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  margin: 0 1rem;
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100vw;
    backdrop-filter: blur(6px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    display: none;
  }

  nav.show {
    display: flex;
  }

  nav a {
    font-size: 1.5rem;
    margin: 1rem 0;
    padding-left: 40%;
  }

  .darkmode-toggle {
    margin-top: 1rem;
  }
}

/* Dark Mode Toggle */
.darkmode-toggle .toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

[data-theme="dark"] .toggle-switch {
  background: #3B82F6;
}

[data-theme="dark"] .toggle-switch::after {
  transform: translateX(20px);
}
