/**
 * Single responsibility: All keyframe animations, scroll-reveal utilities,
 * animated background orbs, and motion effects.
 */

/* ─── Core Keyframes ─────────────────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.75) translateY(20px);
  }

  60% {
    transform: scale(1.04) translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: -200% center;
  }

  to {
    background-position: 200% center;
  }
}

/* ─── Scroll Reveal ──────────────────────────────────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for child elements in a reveal group */
.reveal-group>*:nth-child(1) {
  transition-delay: 0ms;
}

.reveal-group>*:nth-child(2) {
  transition-delay: 90ms;
}

.reveal-group>*:nth-child(3) {
  transition-delay: 180ms;
}

.reveal-group>*:nth-child(4) {
  transition-delay: 270ms;
}

.reveal-group>*:nth-child(5) {
  transition-delay: 360ms;
}

.reveal-group>*:nth-child(6) {
  transition-delay: 450ms;
}

/* ─── Background Orbs ────────────────────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 7s ease-in-out infinite;
}

.orb--primary {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
}

.orb--secondary {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  bottom: -50px;
  right: 3%;
  animation-delay: 3.5s;
  animation-duration: 9s;
}

.orb--tertiary {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  top: 35%;
  left: 2%;
  animation-delay: 1.5s;
  animation-duration: 11s;
}

/* ─── Float Animation ────────────────────────────────────────────────────────── */
.animate-float {
  animation: float 5.5s ease-in-out infinite;
}

/* ─── Page Load  Staggered Fade Slide Up ────────────────────────────────────── */
.animate-fade-slide-up {
  animation: fadeSlideUp 0.85s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.10s;
  opacity: 0;
}

.animate-delay-2 {
  animation-delay: 0.22s;
  opacity: 0;
}

.animate-delay-3 {
  animation-delay: 0.36s;
  opacity: 0;
}

.animate-delay-4 {
  animation-delay: 0.52s;
  opacity: 0;
}

.animate-delay-5 {
  animation-delay: 0.70s;
  opacity: 0;
}

/* ─── Bounce Entrance (floating buttons) ─────────────────────────────────────── */
.animate-bounce-in {
  animation: bounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ─── Shimmer Utility ────────────────────────────────────────────────────────── */
.shimmer {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 200%;
  animation: shimmer 2.5s infinite;
}

/* ─── Reduced Motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}