/* ============================================================
   reca tech Academy — animations.css
   Complete Animation System
   ============================================================ */

/* ============================================================
   1. KEYFRAMES — FADE VARIANTS
   ============================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ============================================================
   2. KEYFRAMES — SCALE VARIANTS
   ============================================================ */

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInSpring {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
    }
    80% {
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.85);
    }
}

/* ============================================================
   3. KEYFRAMES — FLOAT
   ============================================================ */

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatX {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0px);
    }
}

@keyframes floatRotate {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(3deg);
    }
    66% {
        transform: translateY(-5px) rotate(-2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* ============================================================
   4. KEYFRAMES — ROTATION
   ============================================================ */

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCCW {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes rotateY {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================================
   5. KEYFRAMES — GLOW PULSE
   ============================================================ */

@keyframes glowPulse {
    0% {
        box-shadow:
            0 0 10px var(--accent-glow),
            0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow:
            0 0 25px var(--accent-glow),
            0 0 50px var(--accent-glow),
            0 0 80px var(--accent-glow);
    }
    100% {
        box-shadow:
            0 0 10px var(--accent-glow),
            0 0 20px var(--accent-glow);
    }
}

@keyframes glowPulseText {
    0% {
        text-shadow: 0 0 10px var(--accent-glow);
    }
    50% {
        text-shadow:
            0 0 25px var(--accent-glow),
            0 0 50px var(--accent-glow);
    }
    100% {
        text-shadow: 0 0 10px var(--accent-glow);
    }
}

@keyframes glowPulseBorder {
    0% {
        border-color: rgba(0, 180, 255, 0.2);
    }
    50% {
        border-color: rgba(0, 180, 255, 0.7);
    }
    100% {
        border-color: rgba(0, 180, 255, 0.2);
    }
}

/* ============================================================
   6. KEYFRAMES — SHIMMER
   ============================================================ */

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes shimmerSweep {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading skeleton shimmer */
@keyframes skeletonPulse {
    0% {
        background-color: var(--bg-card);
    }
    50% {
        background-color: var(--bg-secondary);
    }
    100% {
        background-color: var(--bg-card);
    }
}

/* ============================================================
   7. KEYFRAMES — DRAW CHECK (SVG SUCCESS)
   ============================================================ */

@keyframes drawCheck {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkCircle {
    0% {
        stroke-dashoffset: 166;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes checkTick {
    0% {
        stroke-dashoffset: 48;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkSuccess {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    75% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================
   8. KEYFRAMES — CONFETTI
   ============================================================ */

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes confettiWiggle {
    0% {
        transform: translateY(-100px) rotate(0deg) translateX(0);
    }
    25% {
        transform: translateY(25vh) rotate(180deg) translateX(30px);
    }
    50% {
        transform: translateY(50vh) rotate(360deg) translateX(-20px);
    }
    75% {
        transform: translateY(75vh) rotate(540deg) translateX(25px);
    }
    100% {
        transform: translateY(110vh) rotate(720deg) translateX(0);
        opacity: 0;
    }
}

@keyframes confettiBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================================
   9. KEYFRAMES — HERO SHAPE FLOAT
   ============================================================ */

@keyframes heroShapeFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.12;
    }
    25% {
        transform: translateY(-20px) rotate(3deg);
        opacity: 0.18;
    }
    50% {
        transform: translateY(-30px) rotate(-2deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.18;
    }
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.12;
    }
}

@keyframes heroFloat1 {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-25px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes heroFloat2 {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    40% {
        transform: translateY(-18px) scale(1.02) rotate(2deg);
    }
    80% {
        transform: translateY(-8px) scale(0.99) rotate(-1deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes heroRotate {
    from {
        transform: rotate(0deg) translateY(0);
    }
    50% {
        transform: rotate(180deg) translateY(-10px);
    }
    to {
        transform: rotate(360deg) translateY(0);
    }
}

@keyframes heroBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    30% {
        transform: translateY(-20px) scale(1.05);
    }
    60% {
        transform: translateY(-8px) scale(0.98);
    }
    80% {
        transform: translateY(-14px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes heroSpin {
    from {
        transform: translate(0, -50%) rotate(0deg);
    }
    to {
        transform: translate(0, -50%) rotate(360deg);
    }
}

@keyframes heroCardFloat {
    0% {
        transform: translateY(0px) rotate(-1deg);
    }
    50% {
        transform: translateY(-16px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(-1deg);
    }
}

/* ============================================================
   10. KEYFRAMES — CARD ENTRANCE
   ============================================================ */

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardEntranceLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.95);
    }
    70% {
        opacity: 1;
        transform: translateX(5px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes cardEntranceRight {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    70% {
        opacity: 1;
        transform: translateX(-5px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ============================================================
   11. KEYFRAMES — TEXT REVEAL
   ============================================================ */

@keyframes textReveal {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0% 0 0);
        opacity: 1;
    }
}

@keyframes textRevealUp {
    from {
        clip-path: inset(100% 0 0 0);
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textSlideIn {
    from {
        opacity: 0;
        letter-spacing: -0.1em;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        letter-spacing: inherit;
        transform: translateY(0);
    }
}

/* ============================================================
   12. KEYFRAMES — BORDER GLOW (animated gradient border)
   ============================================================ */

@keyframes borderGlow {
    0% {
        border-color: rgba(0, 180, 255, 0.2);
        box-shadow: 0 0 10px rgba(0, 180, 255, 0.1);
    }
    33% {
        border-color: rgba(123, 94, 167, 0.4);
        box-shadow: 0 0 20px rgba(123, 94, 167, 0.2);
    }
    66% {
        border-color: rgba(0, 180, 255, 0.6);
        box-shadow: 0 0 30px rgba(0, 180, 255, 0.3);
    }
    100% {
        border-color: rgba(0, 180, 255, 0.2);
        box-shadow: 0 0 10px rgba(0, 180, 255, 0.1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* ============================================================
   13. KEYFRAMES — COUNT UP (base CSS, controlled via JS)
   ============================================================ */

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes numberPop {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.25);
    }
    60% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================================
   14. KEYFRAMES — PROGRESS FILL
   ============================================================ */

@keyframes progressFill {
    from {
        width: 0%;
        opacity: 0.5;
    }
    to {
        width: var(--fill-width, 100%);
        opacity: 1;
    }
}

@keyframes progressStripe {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 40px 0;
    }
}

@keyframes progressPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* ============================================================
   15. KEYFRAMES — SLIDE IN VARIANTS
   ============================================================ */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* ============================================================
   16. KEYFRAMES — BOUNCE IN
   ============================================================ */

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    20% {
        opacity: 1;
        transform: scale(1.1);
    }
    40% {
        transform: scale(0.9);
    }
    60% {
        transform: scale(1.05);
    }
    80% {
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.9);
    }
    40% {
        opacity: 1;
        transform: translateY(-20px) scale(1.02);
    }
    60% {
        transform: translateY(8px) scale(0.99);
    }
    80% {
        transform: translateY(-5px) scale(1.01);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceX {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-6px);
    }
    40% {
        transform: translateX(6px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(4px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes scrollBounce {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   17. KEYFRAMES — TYPEWRITER
   ============================================================ */

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    0%,
    100% {
        border-right-color: var(--accent);
    }
    50% {
        border-right-color: transparent;
    }
}

@keyframes typewriterReveal {
    0% {
        max-width: 0;
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    100% {
        max-width: 600px;
        opacity: 1;
    }
}

/* ============================================================
   18. KEYFRAMES — BADGE FLOAT (hero floating badges)
   ============================================================ */

@keyframes badgeFloat {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
    100% {
        transform: translateY(0px) rotate(-2deg);
    }
}

@keyframes badgeEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   19. KEYFRAMES — NOTIFICATION / TOAST
   ============================================================ */

@keyframes toastSlideIn {
    from {
        transform: translateX(110%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(110%);
        opacity: 0;
    }
}

/* ============================================================
   20. KEYFRAMES — RIPPLE EFFECT
   ============================================================ */

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes rippleOut {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================================
   21. KEYFRAMES — SHAKE / WIGGLE (for errors)
   ============================================================ */

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(-8px);
    }
    30% {
        transform: translateX(8px);
    }
    45% {
        transform: translateX(-6px);
    }
    60% {
        transform: translateX(6px);
    }
    75% {
        transform: translateX(-3px);
    }
    90% {
        transform: translateX(3px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    40% {
        transform: rotate(8deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    80% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* ============================================================
   22. KEYFRAMES — MORPHING / BLOB
   ============================================================ */

@keyframes morphBlob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 70% 30% 50% 60% / 30% 70% 40% 60%;
    }
    75% {
        border-radius: 40% 70% 30% 60% / 70% 40% 60% 30%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* ============================================================
   23. ANIMATION UTILITY CLASSES
   ============================================================ */

/* Base animate classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease both;
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease both;
}
.animate-fade-in-down {
    animation: fadeInDown 0.6s ease both;
}
.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease both;
}
.animate-fade-in-right {
    animation: fadeInRight 0.6s ease both;
}
.animate-scale-in {
    animation: scaleIn 0.5s ease both;
}
.animate-scale-in-spring {
    animation: scaleInSpring 0.6s ease both;
}
.animate-bounce-in {
    animation: bounceIn 0.7s ease both;
}
.animate-bounce-in-up {
    animation: bounceInUp 0.7s ease both;
}
.animate-slide-in-right {
    animation: slideInRight 0.5s ease both;
}
.animate-slide-in-left {
    animation: slideInLeft 0.5s ease both;
}
.animate-slide-in-up {
    animation: slideInUp 0.5s ease both;
}
.animate-card-entrance {
    animation: cardEntrance 0.65s ease both;
}

/* Continuous animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-slow {
    animation: float 9s ease-in-out infinite;
}
.animate-float-fast {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: glowPulse 2.5s ease-in-out infinite;
}
.animate-glow-border {
    animation: borderGlow 3s ease-in-out infinite;
}

.animate-spin-slow {
    animation: rotate 20s linear infinite;
}
.animate-spin-medium {
    animation: rotate 10s linear infinite;
}
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2.5s ease-in-out infinite;
}

.animate-gradient-shift {
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
}

.animate-shake {
    animation: shake 0.5s ease;
}
.animate-wiggle {
    animation: wiggle 0.5s ease;
}
.animate-bounce-x {
    animation: bounceX 0.6s ease;
}
.animate-typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent);
    animation:
        typewriter 3s steps(40) 1s both,
        blinkCursor 0.8s step-end infinite;
}

/* Skeleton loading */
.skeleton {
    animation: skeletonPulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

/* ============================================================
   24. ANIMATION DELAY UTILITY CLASSES
   ============================================================ */

.delay-0 {
    animation-delay: 0ms;
}
.delay-100 {
    animation-delay: 100ms;
}
.delay-150 {
    animation-delay: 150ms;
}
.delay-200 {
    animation-delay: 200ms;
}
.delay-300 {
    animation-delay: 300ms;
}
.delay-400 {
    animation-delay: 400ms;
}
.delay-500 {
    animation-delay: 500ms;
}
.delay-600 {
    animation-delay: 600ms;
}
.delay-700 {
    animation-delay: 700ms;
}
.delay-800 {
    animation-delay: 800ms;
}
.delay-1000 {
    animation-delay: 1000ms;
}
.delay-1200 {
    animation-delay: 1200ms;
}
.delay-1500 {
    animation-delay: 1500ms;
}

/* Named delay variants */
.--delay-1 {
    animation-delay: 0.1s;
}
.--delay-2 {
    animation-delay: 0.2s;
}
.--delay-3 {
    animation-delay: 0.3s;
}
.--delay-4 {
    animation-delay: 0.4s;
}
.--delay-5 {
    animation-delay: 0.5s;
}
.--delay-6 {
    animation-delay: 0.6s;
}

/* ============================================================
   25. ANIMATION DURATION UTILITY CLASSES
   ============================================================ */

.duration-150 {
    animation-duration: 150ms;
}
.duration-300 {
    animation-duration: 300ms;
}
.duration-500 {
    animation-duration: 500ms;
}
.duration-700 {
    animation-duration: 700ms;
}
.duration-1000 {
    animation-duration: 1000ms;
}
.duration-1500 {
    animation-duration: 1500ms;
}
.duration-2000 {
    animation-duration: 2000ms;
}

/* ============================================================
   26. SCROLL REVEAL SYSTEM
   ============================================================ */

/* Base reveal state — hidden */
.reveal {
    opacity: 0;
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
    will-change: opacity, transform;
}

/* Direction variants — initial hidden positions */
.reveal--up {
    transform: translateY(40px);
}

.reveal--down {
    transform: translateY(-40px);
}

.reveal--left {
    transform: translateX(-50px);
}

.reveal--right {
    transform: translateX(50px);
}

.reveal--scale {
    transform: scale(0.88);
}

.reveal--scale-up {
    transform: scale(0.88) translateY(20px);
}

.reveal--rotate {
    transform: rotate(-6deg) scale(0.92);
}

.reveal--fade {
    /* opacity only, no transform */
}

/* Revealed state — all directions resolve here */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
}

/* Staggered delay variants for reveal */
.reveal.reveal--delay-1 {
    transition-delay: 0.1s;
}
.reveal.reveal--delay-2 {
    transition-delay: 0.2s;
}
.reveal.reveal--delay-3 {
    transition-delay: 0.3s;
}
.reveal.reveal--delay-4 {
    transition-delay: 0.4s;
}
.reveal.reveal--delay-5 {
    transition-delay: 0.5s;
}
.reveal.reveal--delay-6 {
    transition-delay: 0.6s;
}

/* Fast / slow reveal durations */
.reveal.reveal--fast {
    transition-duration: 0.35s;
}
.reveal.reveal--slow {
    transition-duration: 1s;
}
.reveal.reveal--slower {
    transition-duration: 1.4s;
}

/* Spring easing variant */
.reveal.reveal--spring {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   27. INTERACTIVE HOVER ANIMATION HELPERS
   ============================================================ */

/* Lift on hover */
.hover-lift {
    transition:
        transform var(--transition-spring),
        box-shadow var(--transition-base);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Scale on hover */
.hover-scale {
    transition: transform var(--transition-spring);
}
.hover-scale:hover {
    transform: scale(1.04);
}

/* Glow on hover */
.hover-glow {
    transition: box-shadow var(--transition-base);
}
.hover-glow:hover {
    box-shadow:
        0 0 30px var(--accent-glow),
        0 0 60px var(--accent-glow);
}

/* Shimmer overlay on hover */
.hover-shimmer {
    position: relative;
    overflow: hidden;
}
.hover-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.07) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}
.hover-shimmer:hover::after {
    left: 160%;
}

/* ============================================================
   28. LOADING SPINNERS
   ============================================================ */

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner--sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner--lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.spinner--gradient {
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent-secondary);
    animation: spin 1s linear infinite;
}

/* Dots loading */
@keyframes dotBounce {
    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.dot-loader {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.dot-loader span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot-loader span:nth-child(1) {
    animation-delay: 0s;
}
.dot-loader span:nth-child(2) {
    animation-delay: 0.2s;
}
.dot-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ============================================================
   29. GRADIENT TEXT ANIMATION
   ============================================================ */

.animate-gradient-text {
    background: linear-gradient(270deg, #00b4ff, #7b5ea7, #00c896, #00b4ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* ============================================================
   30. PAGE TRANSITION HELPERS
   ============================================================ */

.page-enter {
    animation: fadeIn 0.4s ease both;
}

.page-exit {
    animation: fadeOut 0.3s ease both;
}

.section-enter > * {
    animation: fadeInUp 0.6s ease both;
}

.section-enter > *:nth-child(1) {
    animation-delay: 0s;
}
.section-enter > *:nth-child(2) {
    animation-delay: 0.1s;
}
.section-enter > *:nth-child(3) {
    animation-delay: 0.2s;
}
.section-enter > *:nth-child(4) {
    animation-delay: 0.3s;
}

/* ============================================================
   31. SPECIFIC COMPONENT ANIMATIONS
   ============================================================ */

/* Navbar scroll animation */
.navbar-animate-in {
    animation: fadeInDown 0.5s ease both;
}

/* Hero content staggered entrance */
.hero__badge {
    animation: fadeInDown 0.6s ease 0.1s both;
}
.hero__headline {
    animation: fadeInUp 0.7s ease 0.2s both;
}
.hero__subtitle {
    animation: fadeInUp 0.7s ease 0.3s both;
}
.hero__cta-group {
    animation: fadeInUp 0.7s ease 0.4s both;
}
.hero__stats {
    animation: fadeInUp 0.7s ease 0.5s both;
}
.hero__visual {
    animation: fadeInRight 0.8s ease 0.3s both;
}

/* Pricing card featured pulse */
.pricing__card--featured {
    animation: glowPulseBorder 4s ease-in-out infinite;
}

/* Success screen elements */
.success-screen__checkmark {
    animation: checkSuccess 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.success-screen__emoji {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}
.success-screen__title {
    animation: fadeInUp 0.5s ease 1s both;
}
.success-screen__welcome {
    animation: fadeInUp 0.5s ease 1.1s both;
}
.success-screen__summary {
    animation: fadeInUp 0.5s ease 1.2s both;
}
.success-screen__note {
    animation: fadeIn 0.5s ease 1.3s both;
}
.success-screen__actions {
    animation: fadeInUp 0.5s ease 1.4s both;
}

/* Stepper step completion */
.stepper__step--completed .stepper__circle {
    animation: scaleInSpring 0.4s ease both;
}

/* Filter button active */
.filter-btn.active {
    animation: scaleIn 0.2s ease both;
}

/* Course card entrance for newly revealed */
.course-card.revealed {
    animation: cardEntrance 0.65s ease both;
}

/* Rating bar fill on reveal */
.rating-bar__fill {
    animation: progressFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* Accordion open panel */
.accordion__item.open .accordion__panel {
    animation: fadeIn 0.3s ease both;
}

/* Carousel slide transition */
.carousel__slide--entering {
    animation: fadeInRight 0.4s ease both;
}

.carousel__slide--exiting {
    animation: fadeOutUp 0.3s ease both;
}

/* Plan card selection */
.plan-card--selected {
    animation: scaleIn 0.25s ease both;
}

/* Footer heart beat */
.footer__heart {
    display: inline-block;
    animation: bounceX 2s ease-in-out infinite;
}

/* ============================================================
   32. REDUCED MOTION — ACCESSIBILITY
   ============================================================ */

@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;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }

    .animate-float,
    .animate-float-slow,
    .animate-float-fast,
    .animate-spin-slow,
    .animate-spin-medium,
    .animate-spin,
    .animate-pulse-glow,
    .animate-glow-border,
    .animate-shimmer,
    .animate-gradient-shift,
    .animate-gradient-text {
        animation: none !important;
    }

    .hero-bg-shape,
    .hero__badge-float,
    .hero__card {
        animation: none !important;
    }

    .hero__badge,
    .hero__headline,
    .hero__subtitle,
    .hero__cta-group,
    .hero__stats,
    .hero__visual {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .carousel__slide {
        transition: none !important;
    }

    .hover-lift:hover,
    .hover-scale:hover {
        transform: none !important;
    }

    .btn:hover {
        transform: none !important;
    }

    .features__card:hover,
    .pricing__card:hover,
    .course-card:hover,
    .testimonial__card:hover,
    .paths__card:hover {
        transform: none !important;
    }

    .pricing__card--featured {
        animation: none !important;
    }

    .footer__heart {
        animation: none !important;
    }

    .scroll-progress {
        transition: none !important;
    }

    .checkmark-circle,
    .checkmark-tick {
        animation: drawCheck 0.01ms ease forwards !important;
    }

    .rating-bar__fill {
        animation: none !important;
        width: var(--fill-width, 100%) !important;
    }
}
