.header {
  z-index: 988;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  /* background-size: cover; */
  z-index: 9999;
}

.main-nav-box {
  padding-bottom: 3rem;
  /* background-image: url(../imgs/nav/nav-background.svg); */
}

.main-nav-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../imgs/nav/nav-background.svg);
  height: 100%;
  opacity: 0.85;
  z-index: -5;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 10rem;
  padding: 0 5rem 0 5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  /* gap: 2rem; */
  list-style: none;
}

.nav-link,
.nav-link:link,
.nav-link:visited {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-1);
  font-weight: 600;
  font-size: var(--font-size-6);
  font-family: var(--font-1);
}

.nav-link__box {
  position: relative;
}

.nav-link {
  border-right: 0.2rem solid var(--color-2);
  padding: 0 1rem;
}

.nav-link__box:last-child a {
  border-right: 0;
  padding-left: 1rem;
}

/* Logo in navigation */
.nav-logo img {
  width: 20rem;
  height: 10rem;
}

/* Social links in nav Instagram and Facebook */
.nav-socials {
  display: flex;

  align-items: flex-start;
  gap: 1rem;
}
.nav-socials img {
  width: 3.6rem;
  height: 3.6rem;
}

/* MAKE NAV SMALLER ONCE YOU SCROLL */
.main-nav-box__scrolling {
  padding-bottom: 7.5rem;
}

.main-nav-box__scrolling::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../imgs/nav/nav-background.svg);
  opacity: 1;
  z-index: -5;
}

/* RESPONSIVE DESIGN */

.nav-logo__white {
  display: none;
}

.hamburger-menu {
  display: none;
  z-index: 99999;
}

/* dropdown menu */
.dropdown-menu {
  display: flex;
  visibility: hidden;
  gap: 2.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: end;

  position: fixed;
  width: 20%;
  padding-top: 5%;
  z-index: 900;
  top: 0;
  right: 0;
  height: 100vh;

  background-image: url(../imgs/nav/mobile-nav-background.svg);
  background-size: cover;
  /* padding-left: 10rem; */
  /* background-color: var(--color-3); */

  list-style: none;
  transform: translateX(100%);
  animation-name: navbarSlideClose;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.dropdown-menu .nav-link__box .nav-link {
  margin-right: 1rem;
}

.open {
  animation-duration: 0.5s;
  animation-name: navbarSlideOpen;
  animation-fill-mode: forwards;
}

@keyframes navbarSlideOpen {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
    visibility: visible;
  }
}

@keyframes navbarSlideClose {
  0% {
    transform: translateX(0%);
    visibility: visible;
  }
  100% {
    transform: translateX(100%);
    visibility: hidden;
  }
}

.dropdown-menu .nav-link__box a {
  border-right: none;
}

@media screen and (max-width: 1340px) {
  .nav-socials img {
    width: 2.4rem;
    height: 2.4rem;
  }
  .nav-link,
  .nav-link:link,
  .nav-link:visited {
    font-size: var(--font-size-4);
  }
  .nav-logo img {
    width: 15rem;
    height: 7.5rem;
  }
}

@media screen and (max-width: 1135px) {
  .nav-links {
    display: none;
  }
  .nav-socials {
    display: none;
  }
  .main-nav {
    justify-content: space-between;
  }
  .main-nav-box::before {
    display: none;
  }
  .nav-logo {
    display: none;
  }

  .nav-logo__white {
    display: inline-block;
  }
  .logo__white {
    width: 8rem;
    height: 8rem;
  }
  .hamburger-menu {
    display: block;
    position: fixed;
    right: 5rem;
    top: 5rem;
  }
  .hamburger-icon-closed {
    width: 4rem;
    height: 4rem;
  }
  .main-nav {
    padding: 1.8rem 2.5rem;
    gap: 0;
  }
}

@media screen and (max-width: 1000px) {
  .dropdown-menu {
    gap: 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: end;

    position: fixed;
    width: 25%;
    padding-top: 5%;
    height: 100vh;

    background-image: url(../imgs/nav/mobile-nav-background.svg);
    background-size: cover;
    /* padding-left: 10rem; */
    /* background-color: var(--color-3); */
  }
}

@media screen and (max-width: 800px) {
  .dropdown-menu {
    gap: 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: end;

    position: fixed;
    width: 30%;
    padding-top: 5%;
    height: 100vh;

    background-image: url(../imgs/nav/mobile-nav-background.svg);
    background-size: cover;
    /* padding-left: 10rem; */
    /* background-color: var(--color-3); */
  }
}

@media screen and (max-width: 700px) {
  .logo-white {
    width: 100%;
  }

  .dropdown-menu {
    gap: 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: end;

    position: fixed;
    width: 35%;
    padding-top: 5%;
    height: 100vh;

    background-image: url(../imgs/nav/mobile-nav-background.svg);
    background-size: cover;
    /* padding-left: 10rem; */
    /* background-color: var(--color-3); */
  }
}

@media screen and (max-width: 600px) {
  .logo-white {
    width: 75%;
  }

  .dropdown-menu {
    gap: 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: end;

    position: fixed;
    width: 40%;
    padding-top: 5%;
    height: 100vh;

    background-image: url(../imgs/nav/mobile-nav-background.svg);
    background-size: cover;
    /* padding-left: 10rem; */
    /* background-color: var(--color-3); */
  }
}
@media screen and (max-width: 500px) {
  .logo-white {
    width: 65%;
  }

  .dropdown-menu {
    gap: 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: end;

    position: fixed;
    width: 50%;
    padding-top: 5%;
    height: 100vh;

    background-image: url(../imgs/nav/mobile-nav-background.svg);
    background-size: cover;
    /* padding-left: 10rem; */
    /* background-color: var(--color-3); */
  }
  .hamburger-menu {
    display: block;
    position: fixed;
    right: 3rem;
    top: 3rem;
  }
  .hamburger-icon-closed {
    width: 4rem;
    height: 4rem;
  }
}
@media screen and (max-width: 400px) {
  .logo-white {
    width: 55%;
  }

  .dropdown-menu {
    gap: 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: end;

    position: fixed;
    width: 55%;
    padding-top: 5%;
    height: 100vh;

    background-image: url(../imgs/nav/mobile-nav-background.svg);
    background-size: cover;
    /* padding-left: 10rem; */
    /* background-color: var(--color-3); */
  }
}

@media screen and (max-width: 350px) {
  .logo-white {
    width: 55%;
  }

  .dropdown-menu {
    gap: 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: end;

    position: fixed;
    width: 60%;
    padding-top: 5%;
    height: 100vh;

    background-image: url(../imgs/nav/mobile-nav-background.svg);
    background-size: cover;
    /* padding-left: 10rem; */
    /* background-color: var(--color-3); */
  }
  .hamburger-menu {
    display: block;
    position: fixed;
    right: 3rem;
    top: 3rem;
  }
  .hamburger-icon-closed {
    width: 3.2rem;
    height: 3.2rem;
  }
}

@media screen and (max-width: 320px) {
  .logo-white {
    width: 55%;
  }

  .dropdown-menu {
    gap: 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: end;

    position: fixed;
    width: 68%;
    padding-top: 5%;
    height: 100vh;

    background-image: url(../imgs/nav/mobile-nav-background.svg);
    background-size: cover;
    /* padding-left: 10rem; */
    /* background-color: var(--color-3); */
  }
  .hamburger-menu {
    display: block;
    position: fixed;
    right: 3rem;
    top: 3rem;
  }
  .hamburger-icon-closed {
    width: 3.2rem;
    height: 3.2rem;
  }
}
