/* Fade Up Animation */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.3s ease forwards; /* Reduced from 0.6s to 0.3s */
}

.animate-fade-up-delay {
    animation-delay: 0.15s; /* Reduced from 0.3s to 0.15s */
}

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

/* Counter Animation */
.counter {
    display: inline-block;
    animation: countUp 1s ease-out forwards; /* Reduced from 2s to 1s */
}

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

/* Scroll Reveal Animations */
[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.3s ease; /* Reduced from 0.6s to 0.3s */
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease; /* Reduced from 0.6s to 0.3s */
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Hover Animations */
.hover-float {
    transition: transform 0.2s ease; /* Reduced from 0.3s to 0.2s */
}

.hover-float:hover {
    transform: translateY(-10px);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 1.5s infinite; /* Reduced from 2s to 1.5s */
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-rotate {
    animation: rotate 15s linear infinite; /* Reduced from 20s to 15s */
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.slide-in-left {
    animation: slideInLeft 0.3s ease forwards; /* Reduced from 0.6s to 0.3s */
}

.slide-in-right {
    animation: slideInRight 0.3s ease forwards; /* Reduced from 0.6s to 0.3s */
}

/* Loading Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite; /* Reduced from 1s to 0.7s */
}

/* Stagger Children Animations */
.stagger-children > * {
    opacity: 0;
    animation: fadeUp 0.3s ease forwards; /* Reduced from 0.5s to 0.3s */
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; } /* Reduced from 0.1s to 0.05s */
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; } /* Reduced from 0.2s to 0.1s */
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; } /* Reduced from 0.3s to 0.15s */
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; } /* Reduced from 0.4s to 0.2s */
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; } /* Reduced from 0.5s to 0.25s */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
