/* /css/scrollAnimations.css */
:root {
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --anim-duration: 0.8s;
}

html.js-enabled [data-animation] {
  --anim-delay: 0ms;
  opacity: 0;
  will-change: transform, opacity;
  transform: translateY(30px);
}

html.js-enabled .scroll-animate {
  transition:
    opacity var(--anim-duration) var(--ease-spring) var(--anim-delay),
    transform var(--anim-duration) var(--ease-spring) var(--anim-delay);
}

html.js-enabled .scroll-animate.animate-slide-up {
  transform: translateY(50px);
}
html.js-enabled .scroll-animate.animate-slide-down {
  transform: translateY(-50px);
}
html.js-enabled .scroll-animate.animate-slide-left {
  transform: translateX(-50px);
}
html.js-enabled .scroll-animate.animate-slide-right {
  transform: translateX(50px);
}
html.js-enabled .scroll-animate.animate-scale-up {
  transform: scale(0.9);
}
html.js-enabled .scroll-animate.animate-rotate-in {
  transform: rotate(-3deg) translateY(30px) scale(0.95);
}

html.js-enabled .scroll-animate.is-animated {
  opacity: 1;
  transform: none;
  will-change: auto;
}

html.js-enabled .scroll-animate.is-animated .hero-feature-card,
html.js-enabled .scroll-animate.is-animated .feature-card,
html.js-enabled .scroll-animate.is-animated .news-card,
html.js-enabled .scroll-animate.is-animated .competition-card,
html.js-enabled .scroll-animate.is-animated .partner-item,
html.js-enabled .scroll-animate.is-animated .pricing-card {
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.4s var(--ease-spring),
    background-color 0.4s var(--ease-spring);
}

html.js-enabled .scroll-animate.is-animated.pricing-card {
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.4s var(--ease-spring);
}

html.js-enabled .scroll-animate.is-animated:has(.hero-feature-card):hover,
html.js-enabled .scroll-animate.is-animated:has(.feature-card):hover,
html.js-enabled .scroll-animate.is-animated:has(.partner-item):hover {
  transform: translateY(-8px);
}

html.js-enabled .scroll-animate.is-animated:hover .hero-feature-card {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html.js-enabled .scroll-animate.is-animated:hover .feature-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

html.js-enabled .scroll-animate.is-animated:hover .partner-item {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  html.js-enabled [data-animation],
  html.js-enabled .scroll-animate {
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
