/* ========================
   NAVIGATION
======================== */
nav {
  background-color: var(--accent);
  box-shadow: 0 2px 5px var(--shadow);
  top: 0;
  z-index: 1000;
}

.nav-menu {
  display: flex;
  justify-content: space-around;
  padding: var(--spacing);
  list-style: none;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  position: relative;
  padding: 8px;
  transition: color 0.3s ease;
}

/* Nav bar highlight animation */
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--primary);
}

/* mobile NAV */
/* Hide toggle on desktop */
.nav-toggle {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: var(--accent);
    box-shadow: 0 4px 8px var(--shadow);
    border-radius: 8px;
    padding: 1rem;
    z-index: 1000;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 16px;
    right: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    /* font-size: 1.5rem; */
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    z-index: 1100;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  .nav-toggle:focus {
    outline: none;
  }

  nav.show {
    display: block;
  }
}
