/* ============================================
   SMARTQ E-CONNECT - Scroll Animations
   ============================================ */

/* Fade Up */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Fade In */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Slide Left */
.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Slide Right */
.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.64s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Content Animation */
.hero-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease-out 0.3s forwards;
}

.hero-animate-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease-out 0.6s forwards;
}

.hero-animate-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease-out 0.9s forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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;
    }

    .fade-up,
    .fade-in,
    .slide-left,
    .slide-right,
    .scale-in,
    .stagger-children > *,
    .hero-animate,
    .hero-animate-delay,
    .hero-animate-delay-2 {
        opacity: 1;
        transform: none;
    }
}
