/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Stars */
.stars, .stars2, .stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  transform: rotate(45deg);
  pointer-events: none;
}

.stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #fff, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: zoom 20s infinite;
  opacity: 0.5;
}

.stars2 {
  background-image: 
    radial-gradient(1px 1px at 40px 60px, #fff, transparent),
    radial-gradient(1px 1px at 120px 20px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 60px 90px, #fff, transparent);
  background-repeat: repeat;
  background-size: 300px 150px;
  animation: zoom 10s infinite;
  opacity: 0.3;
}

.stars3 {
  background-image: 
    radial-gradient(1px 1px at 80px 10px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 180px 50px, #fff, transparent);
  background-repeat: repeat;
  background-size: 250px 120px;
  animation: zoom 15s infinite;
  opacity: 0.2;
}

@keyframes zoom {
  0%, 100% { transform: rotate(45deg) scale(0); }
  50% { transform: rotate(45deg) scale(1); }
}

/* Container Styles */
.container {
  position: relative;
  z-index: 1;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

#title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Drum Set Layout */
.drum-set {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.drum-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.drum-container {
  position: relative;
}

/* Drum Button Styles */
.drum {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 2px 10px rgba(255, 255, 255, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.1);
  outline: none;
  overflow: hidden;
}

.drum::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 50%);
  border-radius: 50%;
  pointer-events: none;
}

.drum::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  pointer-events: none;
}

.drum:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 2px 15px rgba(255, 255, 255, 0.3),
    0 0 0 4px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 255, 255, 0.1);
}

.drum:hover::after {
  width: 100%;
  height: 100%;
  opacity: 0;
}

/* Key Labels and Drum Names */
.key-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 
    0 0 10px rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
  pointer-events: none;
}

.drum-name {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: none;
}

/* Pressed Animation */
.pressed {
  transform: translateY(-2px) scale(0.95) !important;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.4),
    inset 0 5px 15px rgba(0, 0, 0, 0.3) !important;
  animation: drumHit 0.3s ease;
}

@keyframes drumHit {
  0% { transform: translateY(-8px) scale(1.05); }
  50% { transform: translateY(-2px) scale(0.9); }
  100% { transform: translateY(-2px) scale(0.95); }
}

/* Ripple Effect Animation */
@keyframes ripple-effect {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Specific Drum Colors */
.w { background-color: #ff6b6b; }
.a { background-color: #4ecdc4; }
.s { background-color: #45b7d1; }
.d { background-color: #96ceb4; }
.j { background-color: #feca57; }
.k { background-color: #ff9ff3; }
.l { background-color: #54a0ff; }

/* Footer Styles */
.footer {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.footer p {
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sound Waves Animation */
.sound-waves {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 3px;
  height: 20px;
}

.wave {
  width: 3px;
  background: linear-gradient(to top, #4ecdc4, #45b7d1);
  border-radius: 2px;
  animation: wave 1.5s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }
.wave:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { height: 5px; }
  50% { height: 20px; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container { padding: 1rem; }
  
  .drum {
    width: 90px;
    height: 90px;
  }
  
  .key-label {
    font-size: 2rem;
  }
  
  .drum-row {
    gap: 1rem;
  }
  
  .drum-set {
    gap: 1.5rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .drum {
    width: 70px;
    height: 70px;
  }
  
  .key-label {
    font-size: 1.5rem;
  }
  
  .drum-name {
    font-size: 0.8rem;
    bottom: -25px;
  }
  
  .drum-row {
    gap: 0.8rem;
  }
}
