/* === ReactBits Effects (ported to vanilla CSS) === */
/* Source: https://github.com/DavidHDev/react-bits (MIT) */

/* === Text Animations === */

/* --- GradientText --- */
.rb-gradient-text {
    background: linear-gradient(270deg, #fb923c, #00b4d8, #fb923c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rb-gradient-shift 4s ease infinite;
}

@keyframes rb-gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* --- BlurText --- */
.rb-blur-reveal {
    filter: blur(8px);
    opacity: 0;
    transition: filter 0.8s ease-out, opacity 0.8s ease-out;
}

.rb-blur-reveal.rb-visible {
    filter: blur(0);
    opacity: 1;
}

/* --- ScrollFloat --- */
.rb-scroll-float {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.rb-scroll-float.rb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ShinyText --- */
.rb-shiny-text {
    background: linear-gradient(
        120deg,
        var(--rb-text-color, #ffffff) 40%,
        rgba(255, 255, 255, 0.8) 50%,
        var(--rb-text-color, #ffffff) 60%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rb-shiny-sweep 3s linear infinite;
}

@keyframes rb-shiny-sweep {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* --- FadeContent --- */
.rb-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.rb-fade-in.rb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- AnimatedContent (staggered children) --- */
.rb-animated-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.rb-animated-content.rb-visible > *:nth-child(1) { transition-delay: 0s; }
.rb-animated-content.rb-visible > *:nth-child(2) { transition-delay: 0.1s; }
.rb-animated-content.rb-visible > *:nth-child(3) { transition-delay: 0.15s; }
.rb-animated-content.rb-visible > *:nth-child(4) { transition-delay: 0.2s; }
.rb-animated-content.rb-visible > *:nth-child(5) { transition-delay: 0.25s; }
.rb-animated-content.rb-visible > *:nth-child(n+6) { transition-delay: 0.3s; }

.rb-animated-content.rb-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* === Backgrounds === */

/* === Card/UI Effects === */

/* --- TiltedCard --- */
.rb-tilt {
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}

/* --- SpotlightCard --- */
.rb-spotlight {
    position: relative;
    overflow: hidden;
}

.rb-spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        300px circle at var(--rb-mouse-x, 50%) var(--rb-mouse-y, 50%),
        rgba(118, 185, 0, 0.15),
        transparent 60%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.rb-spotlight:hover::before {
    opacity: 1;
}

/* === Accessibility: Reduced Motion === */

@media (prefers-reduced-motion: reduce) {
    .rb-gradient-text,
    .rb-shiny-text {
        animation: none;
    }

    .rb-blur-reveal,
    .rb-scroll-float,
    .rb-fade-in,
    .rb-animated-content > * {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}
