@keyframes twinkle {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  animation: twinkle 7s infinite;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #0a0a0a;
  color: #e2e8f0;
  position: relative;
  overflow-x: hidden;
}

.menu-item {
  position: relative;
  overflow: hidden;
}

.menu-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4d4d, #f0abfc);
  transition: width 0.3s;
}

.menu-item:hover::after {
  width: 100%;
}

.gradient-text {
  background: linear-gradient(90deg, #ff4d4d, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 77, 77, 0.2);
}

.slide-in {
  animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.toggle-checkbox:checked {
  right: 0;
  border-color: #f0abfc;
}

.toggle-checkbox:checked + .toggle-label {
  background: linear-gradient(90deg, #ff4d4d, #f0abfc);
}

/* Music Player Styles */
.slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.slider::-webkit-slider-track {
  background: #374151;
  height: 4px;
  border-radius: 2px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #8b5cf6, #ef4444);
  height: 12px;
  width: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.slider::-moz-range-track {
  background: #374151;
  height: 4px;
  border-radius: 2px;
  border: none;
}

.slider::-moz-range-thumb {
  background: linear-gradient(90deg, #8b5cf6, #ef4444);
  height: 12px;
  width: 12px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Music Player Animation */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.music-playing {
  animation: pulse 2s infinite;
}
