/* ============================================================
   Lightspeed Software — Scroll Entrance Animations
   ============================================================ */

/* ---- Fade In (from bottom) ---- */

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

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

/* ---- Fade In Left ---- */

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Fade In Right ---- */

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Scale In ---- */

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---- Stagger Delays ---- */

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ---- No-JS Fallback: make elements visible if JS fails ---- */

@keyframes fade-in-fallback {
    to {
        opacity: 1;
        transform: none;
    }
}

.fade-in,
.fade-in-left,
.fade-in-right,
.scale-in {
    animation: fade-in-fallback 0.01s 3s forwards;
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.scale-in.visible {
    animation: none;
}

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .stagger-1,
    .stagger-2,
    .stagger-3,
    .stagger-4 {
        transition-delay: 0s !important;
    }
}
