/* Motion layer styles: Lenis base rules + vanilla ports of React Bits effects. */

/* Lenis (from lenis/dist/lenis.css, plus a scroll-behavior reset so CSS smooth scroll does not fight Lenis) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* BlurText / SplitText port: words animate as inline blocks. Arabic is split by word only,
   because splitting by letter breaks the joined letter forms. */
.rb-word { display: inline-block; will-change: transform, opacity, filter; }

/* SpotlightCard port: a green radial glow follows the pointer inside the card. */
.rb-spot { position: relative; isolation: isolate; }
.rb-spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(280px circle at var(--rb-x, 50%) var(--rb-y, 50%), rgba(61, 185, 122, .16), transparent 70%);
}
.rb-spot:hover::before { opacity: 1; }

/* ShinyText port: a light band sweeps across the hero badge every 4 seconds. */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { position: relative; overflow: hidden; }
  .hero-badge::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%);
    transform: translateX(120%); animation: rb-shine 4s ease-in-out 1.2s infinite;
  }
}
@keyframes rb-shine { 0% { transform: translateX(120%); } 45%, 100% { transform: translateX(-120%); } }
