/* Creating the hambuger menu button using spans */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 35px;
  height: 30px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 128px;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Menu Open State */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 1000;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu li {
  margin: 0;
}

.mobile-menu a {
  text-decoration: none;
  color: white;
  font-size: 50px;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #00c2bc;
}

/* Hide original navigation on mobile */
@media (max-width: 768px) {
  .nav-menu,
  #sign-in {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
  .mobile-menu a {
    font-size: 36px;
  }
}
