/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

/* Main navigation container */
nav {
  background: #1a1a1a; /* dark gray */
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  margin: 0 auto;
  z-index: 2;
}

/* Navigation links */
nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus,
nav a:active {
  color: #8fcae5; /* light blue */
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE NAVIGATION TOGGLE
   ========================================================================== */

/* Toggle button for mobile menu */
#nav-list button {
  padding: 0.25rem 0.5rem;
  background: transparent;
  background-size: 2rem 2rem;
  border: none;
  width: 3.75rem;
  height: 3.75rem;
}

#nav-list button:hover {
  background: #fff;
  background-size: 2rem 2rem;
}

/* Hide/show toggle button and nav items based on screen width */
@media screen and (max-width: 745px) {
  #nav-list button {
    display: block;
  }

  .nav-buttons {
    display: none;
  }

  .sticky {
    position: relative !important;
  }
}

@media screen and (min-width: 746px) {
  #nav-list button {
    display: none;
  }

  .nav-buttons {
    display: block;
  }
}

/* Optional image inside button */
#nav-list button img {
  width: 1.5rem;
  height: 1.5rem;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-nav-menu {
  display: none;
  background-color: #1a1a1a;
  color: #fff;
  padding: 0;
}

.mobile-nav-menu.show-menu {
  display: block;
}

.mobile-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu ul li {
  margin: 0;
  padding: 0;
}

.mobile-nav-menu ul li:hover,
.mobile-nav-menu ul li:focus {
  background-color: #333; /* lighter hover */
}

.mobile-nav-menu ul a {
  display: block;
  color: #fff;
  font-size: 1.25em;
  line-height: 1.65em;
  width: fit-content;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-menu ul a:hover,
.mobile-nav-menu ul a:focus,
.mobile-nav-menu ul a:active {
  color: #8fcae5;
  text-decoration: none;
}

/* ==========================================================================
   DESKTOP NAV BUTTONS
   ========================================================================== */

.nav-buttons {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.nav-buttons li {
  display: inline-block;
  color: #fff;
  font-size: 1.3em;
  padding: 20px;
  margin: 0;
}

/* Desktop nav item hover */
.nav-buttons li:hover {
  background-color: #8fcae5; /* light blue background */
  box-shadow: 0 3px 0 0 #fff;
  transition: 0.5s;
}

.nav-buttons li:hover a {
  color: #1a1a1a; /* dark text on light background */
  text-decoration: none;
}

.nav-buttons li:focus a,
.nav-buttons li:active a {
  color: #1a1a1a;
}



/* ==========================================================================
   STICKY NAVIGATION
   ========================================================================== */

.sticky {
  position: sticky;
  top: 0;
  width: 100%;
}