.menu a,
.menu p,
.menu span {
  font-family: Geist, sans-serif;
  text-transform: uppercase;
  font-size: 10px;
  line-height: 100%;
  cursor: pointer;
}
.menu-container {
  position: fixed;
  top: 50%;
  left: -100%;
  transform: translateY(-50%);
  padding: 1.5em;
  width: 45%;
  height: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 12;
  opacity: 95%;
  transition: left 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}
.menu {
  width: 100%;
  height: 100%;
  background-color: #000;
  color: #fff;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
}
.menu-main {
  flex: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.125);
}
.menu-sidebar {
  flex: 0.2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-main .menu-top {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.125);
}
.menu-main .menu-bottom {
  display: flex;
  flex-direction: column;
}
.menu-top-title {
  flex: 1;
  padding: 2em;
}
.menu-top-content {
  padding: 1.25em 0;
  flex: 4;
  display: flex;
  flex-direction: column;
}
.menu-item {
  position: relative;
  left: -100px;
  padding: 0.5em 0;
  transition: left 0.3s;
}
.menu-item-link {
  position: relative;
}
.menu-item-link a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 40px;
  line-height: 100%;
  font-family: Geist, sans-serif;
  font-weight: 800;
  padding-left: 10px;
  z-index: 2;
}
.menu-item#active .menu-item-link a {
  color: #000;
}
.menu-item:hover .menu-item-link a {
  color: #000;
}
.bg-hover {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #bda6ee;
  color: #0d0d0d;

  clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
  transform-origin: center;
  transition: all cubic-bezier(0.1, 0.5, 0.5, 1) 0.4s;

  display: flex;
  flex-direction: column;
  justify-content: center;
}
.menu-item:hover .bg-hover {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 1;
}
.menu-item#active .bg-hover {
  background-color: #7953cd;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%, 0% 50%);
  opacity: 1;
}
.menu-item span {
  position: absolute;
  top: Opx;
}
.menu-item span .word .char {
  color: #000;
}
.menu-item#active span .word .char {
  color: #fff;
}
.menu-item:hover span .word .char.char-active {
  color: #fff;
}
.menu-item span .word .char.char-active {
  color: #000;
}
.menu-sub-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.125);
  padding: 1em 2em;
}
.menu-title {
  flex: 1;
}
.menu-content {
  flex: 4;
  padding-left: 2em;
}
.menu-content p {
  position: relative;
  width: max-content;
  padding: 0.125em;
}
.menu-content p::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #fff;
  mix-blend-mode: difference;
}
@keyframes hoverEffect {
  0%,
  100% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  51% {
    left: auto;
    right: 0;
    width: 100%;
  }
  100% {
    left: auto;
    right: 0;
    width: 0;
  }
}
.menu-content:hover p::after {
  animation: hoverEffect 1s ease forwards;
}
.close-btn,
.logo {
  padding: 1.5em;
}
.close-btn {
  border-bottom: 1px solid rgba(255, 255, 255, 0.125);
  cursor: pointer;
}
.logo {
  cursor: pointer;
}
@media (max-width: 1273px) {
  .menu-container {
    width: 50%;
  }
}
@media (max-width: 1144px) {
  .menu-container {
    width: 55%;
  }
}
@media (max-width: 1037px) {
  .menu-container {
    width: 70%;
    opacity: 90%;
  }
}
@media (max-width: 900px) {
  .menu-container {
    width: 80%;
    opacity: 90%;
  }
}
@media (max-width: 632px) {
  .menu-container {
    width: 100%;
    opacity: 90%;
  }
  .menu-top-content {
    padding: 1.5em;
  }
  .menu-top-title,
  .menu-title {
    display: none;
  }
  .menu-item#active .menu-item-link a {
    color: #000;
  }
  .menu-item:hover .menu-item-link a {
    color: #000;
  }
  .menu-item span .word .char {
    color: #000;
  }
  .menu-item#active span .word .char {
    color: #fff;
  }
  .menu-item:hover span .word .char.char-active {
    color: #fff;
  }
  .menu-item span .word .char.char-active {
    color: #000;
  }
}
