body {
  overflow-x: hidden;

  &.nav-open {
    overflow: hidden;
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  position: absolute;
  inset-inline: 0;
  top: 0;

  .logo {
    position: relative;
    z-index: 99;

    img {
      width: clamp(50px, -0.875rem + 8vw, 88px);
      height: auto;
    }
  }
}

/* Hamburger Icon */
.hamburger {
  /* position: fixed; */
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px; /* fixed thickness */
  background: #000;
  transition: all 0.3s ease;
}

/* top, middle, bottom bars */
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

/* active (X state) */
.hamburger.active span {
  outline: none;
}

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Fullscreen Menu */
.side-menu {
  position: fixed;
  top: 0;
  right: -105%;
  width: 100vw;
  height: 100vh;
  background: var(--primary-color);
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 60px 20px 20px;
  transition: right 0.5s ease;
  z-index: 1000;
}
.side-menu.active {
  right: 0;
}

/* Menu Links */
.side-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  text-transform: uppercase;
  text-align: right;
}

.side-menu ul li {
  line-height: 1;
}

.side-menu ul li a {
  color: var(--text-color);
  font-size: clamp(2rem, -0.875rem + 16vh, 6rem);
  transition: all 0.3s;
  padding-right: 0;
  position: relative;
  overflow: hidden;
  display: block;
  letter-spacing: -6px;

  &::after {
    content: "";
    display: block;
    width: 54px;
    height: 54px;
    background-image: url("../images/icons/black_arrow_left.png");
    background-position: right;
    background-size: 52px;
    background-repeat: no-repeat;
    right: -55px;
    top: calc(50% - 4px);
    transform: translateY(-50%);
    position: absolute;
    transition: all 0.3s ease;
  }
}
.side-menu ul li a:hover {
  padding-right: 4rem;

  &::after {
    right: 0;
  }
}

@media only screen and (max-width: 768px) {
  .header {
    padding: 0.8rem 0.4rem;

    .hamburger {
      width: 40px;
      height: 24px;

      span {
        height: 5px;
      }
    }
  }

  .side-menu {
    flex-direction: column;
  }

  .side-menu ul li a {
    font-size: clamp(2rem, -0.875rem + 14vh, 4.5rem);
    letter-spacing: -4px;

    &::after {
      height: 44px;
      width: 44px;
      background-size: 40px;
    }

    &:hover {
      padding-right: 3.4rem;
    }
  }
}

@media only screen and (max-width: 576px) {
  .side-menu ul li a {
    font-size: clamp(2rem, -0.875rem + 10vh, 4rem);

    &::after {
      height: 38px;
      width: 38px;
      background-size: 34px;
    }

    &:hover {
      padding-right: 2.8rem;
    }
  }
}
