/* NAVIGATION MODULE (nav-wrapper.css) */

.nav-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: -1px; 
  width: 100%;
  z-index: 100;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
  
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.20) 40%,
    rgba(0, 0, 0, 0.20) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

.nav-wrapper.is-stuck {
  background: rgba(10, 10, 10, 0.9) !important; 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  padding: 1rem;
  color: #fff;
  text-align: center;
  user-select: none;
}

.nav-toggle-label::before {
  content: "\2600"; /* Sun icon */
}

/* Flex container for the nav parts */
.nav-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #fff;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links li a:hover {
  opacity: 1;
}

/* MOBILE RESPONSIVE OVERLAY */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-content-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
  }

  /* When checked, show the wrapper containing BOTH containers */
  #nav-toggle:checked ~ .nav-content-wrapper {
    max-height: 100vh;
    opacity: 1;
  }

  .nav-container {
    padding: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}