/* ═══════════════════════════════════════════════════════
   Q-Hub Section Animations
   Controlled via data-animation attribute on section wrappers.
   Presets: fade-up, fade-in, slide-left, slide-right, scale, none
   ═══════════════════════════════════════════════════════ */

[data-animation] {
  opacity: 0;
  transition: opacity 0.6s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1)),
              transform 0.6s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
  will-change: opacity, transform;
}

[data-animation="fade-up"] {
  transform: translateY(24px);
}

[data-animation="fade-in"] {
  transform: none;
}

[data-animation="slide-left"] {
  transform: translateX(-40px);
}

[data-animation="slide-right"] {
  transform: translateX(40px);
}

[data-animation="scale"] {
  transform: scale(0.95);
}

[data-animation="none"] {
  opacity: 1;
  transform: none;
}

/* Visible state — applied by IntersectionObserver */
[data-animation].is-visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-animation] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
