/* navbar */


.menu__wrapper {
  display: flex;
  position: relative;
  flex-direction: row;
  z-index: 2;
}

.menu__bar {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
  padding: 2rem 0.50rem;
  gap: 32px;
  height: 150px;
  opacity: 0.9;
  background-color: var(--clr-background);

}

.menu-icon {
  cursor: pointer;
  display: flex;
  height: 70px;
  width: 70px;

}

.navigation {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  align-items: center;
  gap: 24px;

}

.logo img {
  max-width: 250px;
  height: auto;
}

.navigation>li {
  display: flex;
  position: relative;
  cursor: pointer;
  line-height: 1.2;
  letter-spacing: 3px;
  font-family: var(--ff-secondary);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 300;
  white-space: nowrap;

}

.navigation>li>a {
  color: var(--clr-primary);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 3px 0;
  position: relative;
  transition: all 0.2s ease-in-out;
}

.navigation>li>a:before {
  content: '';
  background: var(--primary);
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  transition: all 0.2s ease-in-out;
}

.navigation>li>a:hover {
  background-position: 0;
  color: var(--clr-grey);
  font-weight: 400;
}

.navigation>li>a:hover::before {
  width: 100%;
  background: var(--clr-accent);
}

@media (min-width: 600px) {
  .menu-icon {
    display: none;
  }

}

@media (max-width: 600px) {
  .nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--clr-background);

  }

  .navigation>li {
    cursor: pointer;
    line-height: 1.5;
    letter-spacing: 4px;
    font-family: var(--ff-secondary);
    font-size: clamp(22px, 5vw, 24px);


  }

  .logo img {
    width: 100%;
    height: auto;
    padding: 0;
    max-width: 220px;
  }

  .menu__bar {
    justify-content: space-evenly;
    padding: 0%;
  }

  .navigation {
    display: none;
  }

  .menu-icon {
    display: block;
    background-color: var(--clr-accent);
  }

  .navigation--mobile {
    top: 135px;
    position: absolute;
    right: 0px;
    display: flex;
    padding: 80px 60px;
    min-height: 100%;
    background-color: var(--clr-background);
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0.95;
    animation: fadein 0.3s forwards;
  }



  @keyframes fadein {
    0% {
      opacity: 0;
      width: 0;
      height: 0;
    }

    100% {
      opacity: 1;
      width: 100%;
      height: calc(100vh - 150px)
    }
  }

  .navigation--mobile--fadeout {
    animation: fadeout 300ms forwards;
  }

  @keyframes fadeout {
    0% {
      opacity: 1;
      width: 100%;
      height: calc(100vh - 150px);
    }

    100% {
      opacity: 0;
      width: 0;
      height: 0;
    }
  }
}
