html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body { overscroll-behavior: none; }
main > :first-child { margin-top: 0 !important; }
main > :last-child { margin-bottom: 0 !important; }

::-webkit-scrollbar { display: none; }

/* Custom Keyframes & Motion Classes */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px -3px rgba(247, 95, 40, 0.4); }
  50% { box-shadow: 0 0 28px 4px rgba(247, 95, 40, 0.75); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes soundWave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

.glow-btn-pulse {
  animation: pulseGlow 3s ease-in-out infinite;
}

.tilt-card-container {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tilt-card-inner {
  transform: translateZ(20px);
  transition: transform 0.25s ease-out;
}

/* Reveal transition styles */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Micro-interaction card hover elevation */
.interactive-card {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.interactive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px -10px rgba(247, 95, 40, 0.35);
}

/* Subtle magnetic/bounce buttons */
.interactive-btn {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}
.interactive-btn:hover {
  transform: translateY(-2px) scale(1.02);
}
.interactive-btn:active {
  transform: translateY(1px) scale(0.99);
}

/* Sound wave bar animations */
.sound-bar {
  animation: soundWave 1.2s ease-in-out infinite;
}
.sound-bar:nth-child(2) { animation-delay: 0.2s; }
.sound-bar:nth-child(3) { animation-delay: 0.4s; }
.sound-bar:nth-child(4) { animation-delay: 0.15s; }
.sound-bar:nth-child(5) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transform: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
