@import url("root.css");

nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  margin: auto;
  background-color: var(--soft-dark);
  width: 100%;
  height: 80px;
  z-index: 99;
  border-bottom: 2px solid var(--white);

}

.nav_logo {
  width: 134px;
}

.nav_hamburger-icon {
  display: none;
  width: 40px;
  cursor: pointer;
}

.nav_menu-items {
  display: flex;
  list-style-type: none;
  gap: 20px;

}

.nav_toggle-menu {
  border: none;
  outline: none;
  background: transparent;
  height: max-content;
  width: max-content;
}

.nav_menu-items button {
  position: absolute;
  top: 10px;
  right: 30px;
  font-size: 60px;
  transform: rotate(45deg);
  cursor: pointer;
  color: var(--white);
}

.nav_item a {
  position: relative;
  font-size: 1.8em;
  text-decoration: none;
  color: var(--white);
  font-family: var(--roboto);
  opacity: 0.6;
  transition: opacity 0.4s linear;
}

.nav_item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background-color: var(--purple);
  opacity: 0;
  transition: opacity 0.3s linear, transform 0.3s linear;
}

.nav_item a:hover::after {
  opacity: 1;
  transform: translateY(8px);
}

.nav_item a:hover {
  opacity: 1;
}

.nav_close-menu {
  display: none;
}

/* **************************************************************** */
/* ************************MEDIA QUERIES*************************** */
/* **************************************************************** */

@media screen and (max-width: 900px) {
  nav {
    padding: 10px 30px;
  }


  .nav_hamburger-icon {
    display: block;
  }

  .nav_menu {
    position: absolute;
    flex-direction: column;
    top: 0;
    left: 0;
    background-color: var(--dark);
    height: 100vh;
    padding: 30px 50px;
    width: 100%;
    transform: translateX(-140%);
    z-index: 999;
    transition: transform 0.2s linear;
  }

  .nav_close-menu {
    display: inline-block;



  }

  .nav_active-menu {
    transition: transform 0.2s linear;
    transform: translateX(0);
  }

  .nav_menu-items {
    margin: 0;
    justify-content: center;
    flex-direction: column;

  }

  .nav_item a {
    font-size: 3rem;
    font-weight: 400;
  }
}