/* ===== SCROLL-TRIGGERED REVEAL ANIMATIONS ===== */

[data-animate] {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-40px); }
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-in"]    { transform: none; }
[data-animate="scale-up"]   { transform: scale(0.9); }
[data-animate="zoom-in"]    { transform: scale(0.8); }

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ===== CONTINUOUS KEYFRAME ANIMATIONS ===== */

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40%  { transform: translateX(-50%) translateY(-12px); }
  60%  { transform: translateX(-50%) translateY(-6px); }
}

@keyframes bounceInFlow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40%  { transform: translateY(-8px); }
  60%  { transform: translateY(-4px); }
}

@keyframes petalFloat {
  0%   { translate: 0 0; opacity: 0; }
  8%   { opacity: var(--petal-opacity, 0.5); }
  90%  { opacity: var(--petal-opacity, 0.5); }
  100% { translate: 0 -105vh; opacity: 0; }
}

@keyframes petal-sway-1 {
  0%, 100% { rotate: 0deg; }
  25%  { rotate: 25deg; }
  50%  { rotate: -15deg; }
  75%  { rotate: 20deg; }
}

@keyframes petal-sway-2 {
  0%, 100% { rotate: 0deg; }
  25%  { rotate: -20deg; }
  50%  { rotate: 30deg; }
  75%  { rotate: -10deg; }
}

@keyframes petal-sway-3 {
  0%, 100% { rotate: 0deg; }
  33%  { rotate: 35deg; }
  66%  { rotate: -25deg; }
}

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

@keyframes digitFlip {
  0%   { transform: rotateX(0); opacity: 1; }
  50%  { transform: rotateX(-90deg); opacity: 0; }
  51%  { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0); opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.8; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
