/* ═══════════════════════════════════════════════════════════════
   תאוריה.IL · Animations
   ═══════════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

[data-split] {
  overflow: hidden;
}

[data-split] span span,
[data-split] span {
  display: inline-block;
}

/* Particle dots around hero */
.hero__container::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,201,60,0.3) 0%, transparent 1%),
    radial-gradient(circle at 80% 20%, rgba(27,95,217,0.3) 0%, transparent 1%),
    radial-gradient(circle at 30% 80%, rgba(74,133,232,0.3) 0%, transparent 1%),
    radial-gradient(circle at 70% 70%, rgba(255,201,60,0.3) 0%, transparent 1%);
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Float on scroll for promo bar */
@keyframes promo-pulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.promo-bar {
  background-size: 200% 100%;
  animation: promo-pulse 8s var(--ease) infinite;
}

/* Card glow on hover */
.feature::before,
.category::before,
.plan::before {
  pointer-events: none;
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Rotating subtle gradient */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Shimmer on plan featured */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.plan--featured {
  background-size: 200% 200%;
  animation: gradient-shift 6s var(--ease) infinite;
}

/* Reveal animations fallbacks */
@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Magnetic hover effect */
[data-magnetic] {
  transition: transform 0.3s var(--ease);
}

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