/* Hamburger Menu */

/***********************
          HEADER
  ***********************/

header {
  position: fixed;
  z-index: 999;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #ffffff12;
  background: rgba(90, 99, 194, 0.05);
  backdrop-filter: blur(5px);
  color: var(--color-white);
}

.nav-container {
  width: 70%;
  justify-content: center;
}

.nav {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.nav li {
  display: flex;
  list-style: none;
  padding: 10px;
  align-items: center;
}

.nav li a {
  color: var(--color-white);
  font-size: 13px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: normal;
}

.nav li a:hover {
  color: var(--color-secondary);
}

.nav li a::after {
  content: "";
  display: flex;
  width: 100%;
  height: 2px;
  position: absolute;
  bottom: -22px;
  background: var(--color-secondary);
  justify-content: center;
  left: -20px;
  opacity: 0;
  transition: 0.3s all;
}

.nav li:hover a::after {
  opacity: 1;
  left: 0px;
}

.logo {
  display: flex;
  max-height: 70px;
  align-items: center;
}

.logo:hover {
  opacity: 0.9;
  transform: scale(0.9);
}

.logo img {
  box-sizing: border-box;
  object-fit: contain;
  height: 64px;
  padding: 10px;
  width: 100%;
}

header.reverse a {
  color: black;
  transition: 0.3s all;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -20vw;
    width: 0;
    height: 100vh;
    background: url("/img/mobile-menu.jpg") var(--color-dark) no-repeat;
    background-position: bottom;
    background-size: contain;
    transition: width 0.4s;
    z-index: 9;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .nav.open {
    width: 100vw;
    right: 0px;
  }

  .nav-icon {
    width: 40px;
    height: 20px;
    position: absolute;
    right: 20px;
    top: 25px;
    margin: 0 auto;
    transform: rotate(0deg);
    transition: 0.2s all;
    cursor: pointer;
    z-index: 9;
  }

  .nav-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-white);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
  }

  .nav-icon span:nth-child(1) {
    top: 0;
  }

  .nav-icon span:nth-child(2) {
    top: 15px;
  }

  .nav-icon.open span:nth-child(1) {
    top: 18px;
    transform: rotate(135deg);
  }

  .nav-icon.open span:nth-child(2) {
    top: 18px;
    transform: rotate(-135deg);
  }

  .nav li a {
    font-size: 60px;
    font-family: var(--font-title);
  }

  .nav img {
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .nav li a {
    font-size: 32px;
  }

  .nav.open li:last-child {
    padding-bottom: 15vh;
  }
}
