* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020006;
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  background-image: url("background.png");
  background-size: cover;
  background-position: center;
  animation: slowZoom 18s ease-in-out infinite alternate;
  filter: brightness(1.05) contrast(1.08) saturate(1.18);
}

.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(180, 50, 255, 0.28), transparent 22%),
    radial-gradient(circle at 20% 70%, rgba(217, 70, 239, 0.18), transparent 25%),
    radial-gradient(circle at 80% 65%, rgba(126, 34, 206, 0.2), transparent 28%),
    linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  pointer-events: none;
  animation: pulseGlow 3s ease-in-out infinite;
}

#waveCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.82;
}

.sound-button {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  z-index: 10;
  border: 1px solid rgba(216, 180, 254, 0.75);
  background: rgba(10, 0, 20, 0.48);
  color: white;
  padding: 18px 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 3px;
  box-shadow: 0 0 30px rgba(192, 38, 211, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.sound-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 55px rgba(217, 70, 239, 1);
  background: rgba(70, 0, 120, 0.58);
}

.sound-button.playing {
  background: linear-gradient(90deg, rgba(88,28,135,.7), rgba(192,38,211,.7));
}

#soundIcon {
  font-size: 20px;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .background {
    background-position: center;
  }

  .sound-button {
    top: 66%;
    padding: 15px 24px;
    font-size: 12px;
    letter-spacing: 2px;
  }
}
