/* animations.css - Animations */

/* Keyframes */
@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(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 166, 81, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 166, 81, 0.8);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-fadeIn {
    animation: fadeIn var(--transition-slow) ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp var(--transition-slow) ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown var(--transition-slow) ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft var(--transition-slow) ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight var(--transition-slow) ease-out;
}

.animate-glow {
    animation: glow 2s infinite;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow) ease-out;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base) ease-out;
}

.stagger-children.show > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.show > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.show > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.show > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.show > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.show > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.show > *:nth-child(6) { transition-delay: 0.6s; }

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 166, 81, 0.3);
}

/* Loading Animation */
.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    width: 100px;
    margin: var(--spacing-lg) auto;
}