.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.menu-icon span {
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 0px;
  transition: all 0.3s ease;
}

.menu-icon span:nth-child(1) {
  transform: translateY(-8px);
}

.menu-icon span:nth-child(2) {
  transform: translateY(0);
}

.menu-icon span:nth-child(3) {
  transform: translateY(8px);
}

.menu-icon.open span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-icon.open span:nth-child(2) {
  opacity: 0;
}

.menu-icon.open span:nth-child(3) {
  transform: rotate(-45deg);
}

