/* ============================================
   NAVIGATION
============================================ */

header {
  background-color: #111;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Shadow when scrolling */
header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Hide on scroll down */
header.hide-header {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.nav-links a {
  text-decoration: none;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 4px;
}

/* Hover + Active */
.nav-links a:hover,
.nav-links a.active {
  background-color: var(--accent);
  color: #000;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  color: var(--accent);
  font-size: 1.8em;
  background: none;
  border: none;
  cursor: pointer;
}

/* ============================================
   MOBILE RESPONSIVE + ANIMATIONS
============================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  /* Hidden State */
  .nav-links {
    display: flex;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--accent);
    width: 200px;

    /* Animation state */
    transform-origin: top right;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* Open State */
  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 10px;
  }
}
