/* ===========================
   Alluvi - Animations
   =========================== */

/* === Fade In from Bottom === */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Fade In from Right (for RTL) === */
.fade-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === Fade In from Left (for RTL) === */
.fade-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === Scale In === */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* === Staggered Children === */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.12s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.19s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.26s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.33s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.40s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* === Hero Animations === */
.hero__content {
    animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Pulse for Stats Numbers === */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* === Float Animation for Scroll Top Button === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.scroll-top.visible {
    animation: float 3s ease-in-out infinite;
}

.scroll-top.visible:hover {
    animation: none;
}

/* === Shimmer Effect for Loading === */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* === Line decoration animation === */
.about__label {
    position: relative;
}

.about__label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.5s ease;
}

.about__label.visible::after {
    transform: translateX(-50%) scaleX(1);
}