/* NAVIGATION */
.desktop-nav {
  width: 100%;
  height: 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  /* justify-content: space-around; */
  /* align-items: center; */

  /* height: 5vh; Keep the height as is */

  padding-bottom: 30px; /* Adjust padding if necessary */
  position: fixed;

  /* top: 0; /* Position it at the top */
  /* left: 0; /* Align to the left */
  /*right: 0; Align to the right */
  background-color: white; /* Set a background color */
  padding-top: 30px;
  z-index: 1000;
  width: 100%;
}

.nav-links {
  font-weight: 300;
  gap: 4rem;
  list-style: none;
  font-size: 1.25rem;
}

a {
  color: #000;
  text-decoration: none;
  text-decoration-color: white;
}

/*need to add section specific underlining*/

/* text underline on hover and color change*/
a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

/* logo */
.logo {
  /* Where is this ? */
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

.nav-links a.active {
  text-decoration: underline;
  text-decoration-color: rgb(181, 181, 181);
  text-underline-offset: 1rem;
  transition: 200ms ease;
}

/* Hamburger button (hidden on desktop) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #424242;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile responsive nav */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  }

  .hamburger-btn {
    display: flex;
  }

  ul.nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
    font-size: 1rem;
  }

  ul.nav-links.mobile-open {
    display: flex;
  }

  ul.nav-links li {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  ul.nav-links li:last-child {
    border-bottom: none;
  }

  ul.nav-links a:hover {
    text-decoration: none;
    color: #424242;
    background-color: #f8f8f8;
  }
}
