/* ==========================================================
   NAV CONTAINER
   ========================================================== */
#nav-container {
  position: sticky;
  top: 0;
  z-index: 5000;
}

/* ==========================================================
   NAV STYLES
   ========================================================== */
nav {
  display: flex;
  height: 5rem;
  padding: 0rem 6.25rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  align-self: stretch;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

#navcontents {
  display: flex;
  padding: 0.75rem 0rem;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  align-self: stretch;
  background: var(--color-bg-secondary);
}

/* ==========================================================
   LOGO
   ========================================================== */
#websitelogo {
  align-items: center;
  background-color: transparent;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--color-text-primary);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  overflow: hidden;
}

#websitelogo span {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

/* ==========================================================
   MENU SECTION
   ========================================================== */
#menu {
  display: flex;
  height: 3.5rem;
  align-items: center;
  gap: 3.75rem;
}

.menu-items {
  display: flex;
  padding: 1rem 0rem 1rem 1rem;
  justify-content: flex-end;
  align-items: center;
  gap: 0.625rem;
}

.menu-items a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.menu-items a:hover {
  text-decoration: underline;
}

/* ==========================================================
   HAMBURGER BASE STYLES (HIDDEN ON DESKTOP)
   ========================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 6000;
}

.hamburger span {
  height: 3px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  width: 100%;
  transform-origin: center;
}

/* Hamburger open animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ==========================================================
   TABLET AND BELOW (max-width: 1024px)
   ========================================================== */
@media screen and (max-width: 1024px) {
  nav {
    padding: 0 1.5rem;
    height: auto;
  }

  #navcontents {
    flex-direction: row;
    padding: 1rem 0;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    z-index: 6500;
    cursor: pointer;
  }

  .hamburger span {
    height: 3px;
    width: 100%;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: 0.3s;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }

  #menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--color-bg-white);
    backdrop-filter: blur(20px);
    box-shadow: -2px 0 10px var(--color-border-primary);
    padding: 3rem 2rem;
    gap: 2rem;
    z-index: 5000;
    transition: right 0.4s ease;
  }

  #menu.show {
    right: 0;
  }

  .menu-items {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-primary);
  }

  .menu-items a {
    font-size: 1.1rem;
    font-weight: 500;
  }

  .button-primary-filled-small-texticon {
    align-self: stretch;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* ==========================================================
   SMALL MOBILE (max-width: 480px)
   ========================================================== */
@media screen and (max-width: 480px) {
  nav {
    padding: 0 1.25rem;
  }

  #websitelogo {
    font-size: 1rem;
  }

  .menu-items a {
    font-size: 0.95rem;
  }
}
