/* DESKTOP */

#desktop-nav {
  position: fixed;
  width: 100vw;
  text-align: center;
  transition: top 0.3s ease;
  z-index: 1000;
  height: 10vh;
  background-color: rgba(37, 37, 39, 1);
}

/* HAMBURGER MENU */

#hamburger-nav {
  position: relative;
  display: none;
  background-color: rgb(37, 37, 39);
}

.hamburger-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  background-color: rgb(37, 37, 39);
}

.hamburger-icon {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  /* background-color: #fff; */
  width: 100%;
}

.hamburger-icon span {
  height: 3px;
  width: 25px;
  background-color: rgb(216, 216, 216);;;
  margin: 4px 0;
  transition: all 0.3s;
}

.menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  flex-direction: column;
  width: 100%;
  background-color: rgb(37, 37, 39);
  position: absolute;
  top: 100%;
  left: 0;
}

.menu-links li {
  width: 100%;
}

.menu-links a {
  text-decoration: none;
  text-align: left;
  padding: 1rem;
  display: block;
  transition: background-color 0.3s, transform 0.4s;
  font-size: 2rem;
  color: rgb(58, 107, 214);
  font-weight: 900;
}

.menu-links.open {
  display: flex;
  animation: slideDown 0.4s forwards;
}

.menu-links.close {
  animation: slideUp 0.4s forwards;
}

@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
    transform: translateY(-100vh); /* Start position for links */
  }
  to {
    height: 100vh;
    opacity: 1;
    transform: translateY(0); /* End position for links */
  }
}

@keyframes slideUp {
  from {
    max-height: 50vh;
    opacity: 1;
    transform: translateY(0); /* Start position for links */
  }
  to {
    max-height: 0;
    opacity: 0;
    transform: translateY(-70vh); /* End position for links */
  }
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

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

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:nth-child(2) {
  opacity: 1;
}

.hamburger-icon span:last-child {
  transform: none;
}
