/* ==========================================================================
   ANIMATIONS & MOTION
   Halus, elegan, menghormati prefers-reduced-motion
   ========================================================================== */

@keyframes floralSwayRight {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-2.2deg);
  }
}

@keyframes floralSwayLeft {
  0%, 100% {
    transform: scaleX(-1) rotate(0deg);
  }
  50% {
    transform: scaleX(-1) rotate(-2.2deg);
  }
}

@keyframes floralSwayTopRight {
  0%, 100% {
    transform: scaleY(-1) rotate(0deg);
  }
  50% {
    transform: scaleY(-1) rotate(-2deg);
  }
}

@keyframes floralSwayTopLeft {
  0%, 100% {
    transform: scale(-1, -1) rotate(0deg);
  }
  50% {
    transform: scale(-1, -1) rotate(-2deg);
  }
}

@keyframes floralShoulderSway {
  0%, 100% {
    transform: rotate(22deg) translateY(0);
  }
  50% {
    transform: rotate(25deg) translateY(-3px);
  }
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.floral-corner--right {
  animation: floralSwayRight 7s ease-in-out infinite;
}

.floral-corner--left {
  animation: floralSwayLeft 7.5s ease-in-out infinite;
}

.floral-corner--top-right {
  animation: floralSwayTopRight 8s ease-in-out infinite;
}

.floral-corner--top-left {
  animation: floralSwayTopLeft 8.4s ease-in-out infinite;
}

.arch-frame__floral-shoulder--right,
.hero-oval-stage__floral-top {
  animation: floralShoulderSway 6.8s ease-in-out infinite;
}

.arch-frame__floral-center,
.hero-oval-stage__floral {
  animation: gentleFloat 6.5s ease-in-out infinite;
}

.music-fab.is-playing svg {
  animation: spinSlow 6s linear infinite;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .floral-corner--right,
  .floral-corner--left,
  .floral-corner--top-right,
  .floral-corner--top-left,
  .arch-frame__floral-shoulder--right,
  .hero-oval-stage__floral-top,
  .arch-frame__floral-center,
  .hero-oval-stage__floral,
  .music-fab.is-playing svg {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
