/* Menu Container */
.menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  background-color: #121212;
  padding: 20px 0;
  flex-wrap: wrap;
}

/* Link Styles */
.menu a {
  position: relative;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 10px;
  transition: color 0.3s ease;
}

/* Underline Animation */
.menu a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4b1f, #1fddff);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu a:hover {
  color: #1fddff; /* Warna teks saat di-hover */
}

.menu a:hover::before {
  width: 100%;
}

/* Glow Effect */
.menu a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(31, 221, 255, 0.4), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.4s ease;
}

.menu a:hover::after {
  width: 150px;
  height: 150px;
  opacity: 0.2;
  transform: translate(-50%, -50%) scale(1.2);
}

/* Responsive Style for Mobile */
@media (max-width: 768px) {
  .menu {
    flex-direction: column; /* Stack items vertically on small screens */
    align-items: center;
    gap: 10px; /* Reduce the gap for smaller screens */
  }

  .menu a {
    font-size: 16px; /* Slightly smaller font size for mobile */
  }
}
