#menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}

#menu span {
  background-color: white;
  transition: 0.3s ease;
  transform-origin: center;
}

.line1 {
  width: 25px;
  height: 2px;
}

.line2 {
  width: 15px;
  height: 2px;
}

.open .line1 {
  transform: rotate(45deg) translateY(3px) translateX(4px);
}

.open .line2 {
  width: 25px;
  transform: rotate(-45deg) translateY(-2px) translateX(3px);
}

.nav-links {
  display: none;
}

/* Landscape orientation */
@media (max-width: 920px) and (orientation: landscape) {
  #menu {
    display: flex;
    z-index: 6;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    height: 100svh;
    width: 100%;
    background-color: #5151ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 1s ease;
    touch-action: none;
    z-index: 5;
  }

  .nav-links li a {
    font-weight: 400;
    font-size: 20px;
  }

  .nav-links.show {
    left: 0;
    opacity: 1;
  }
}

@media (max-width: 1140px) {
  #menu {
    display: flex;
    z-index: 6;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    height: 100svh;
    width: 100%;
    background-color: #5151ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 1s ease;
    touch-action: none;
    z-index: 5;
  }

  .nav-links li a {
    font-weight: 400;
    font-size: 20px;
  }

  .nav-links.show {
    left: 0;
    opacity: 1;
  }

  .services__mobile-title.hide {
    visibility: hidden;
  }
}

@media (max-width: 375px) {
  .nav-links li a {
    font-size: 18px;
  }

  .nav-links {
    gap: 30px;
  }
}
