@import url("style.css");

header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: var(--padding-horizontal);
  padding-right: var(--padding-horizontal);
}

header nav .logo a {
  display: flex;
  color: var(--color-light);
  font-weight: var(--bold);
  align-items: center;
  text-decoration: none;
}

header nav .logo img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: var(--color-light);
  font-weight: var(--semi-bold);
}

header .hamburger-menu-button {
  display: none;
}

header .close-menu-button {
  display: none;
}

.close-menu-overlay {
  display: none;
}

@media screen and (max-width: 1000px) {
  header {
    z-index: 2;
    position: fixed;
    backdrop-filter: blur(10px);
  }
  header nav ul {
    position: absolute;
    background-color: black;
    flex-direction: column;
    top: 0;
    right: -100vw;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    min-width: 60vw;
    transition: all 0.5s;
    z-index: 999;
  }
  header nav.dark {
    background-color: rgba(0, 0, 0, 0.794);
  }
  header nav ul.show {
    right: 0;
  }
  header .hamburger-menu-button {
    display: block;
    width: 50px;
    height: 50px;
    background-image: url(../assets/ham.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  header .close-menu-button {
    display: block;
    position: relative;
    width: 50px;
    height: 50px;
    background-image: url(../assets/close.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 999;
    display: none;
  }

  .close-menu-overlay {
    display: block;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.711);
    will-change: transform;
    width: 100px;
    height: 100px;
    z-index: 2;
    border-radius: 50%;
    transition: all 0.7s;
    opacity: 0;
    top: -300px;
    right: -300px;
  }
  .close-menu-overlay.show {
    transform: scale(30);
    opacity: 1;
  }
  header nav .logo {
    font-size: 12px;
  }
  header nav .logo img {
    width: 30px;
    height: 30px;
  }
}
