/**
 * React Bits — High-Performance UI Animation Primitives (Vanilla Web Engine)
 * Source: reactbits.dev
 * Components: SpotlightCard, BlurText, SplitText
 */

/* SpotlightCard — Dynamic mouse-following radial spotlight border */
.spotlight-card {
  position: relative;
  overflow: hidden;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --spotlight-color: rgba(194, 167, 104, 0.18);
  --spotlight-radius: 320px;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle var(--spotlight-radius) at var(--spotlight-x) var(--spotlight-y),
    var(--spotlight-color),
    transparent 80%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  z-index: 1;
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* BlurText — Smooth blur-to-clear entrance */
.blur-text-char {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 400ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}
.blur-text-char.is-revealed {
  opacity: 1;
  filter: blur(0px);
  transform: translate3d(0, 0, 0);
}

/* SplitText — Staggered word/char entrance */
.split-text-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-text-inner {
  display: inline-block;
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  transition:
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 400ms ease;
}
.split-text-inner.is-in {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-card::before {
    display: none !important;
  }
  .blur-text-char {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .split-text-inner {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}
