/* Simple CSS Animations - No dependencies, just works */

/* Hero Animations (immediate on load) */
#heroTitle {
    animation: fadeInUp 0.8s ease-out;
}

#heroSubtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#heroValue {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

#heroButtons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Scroll-triggered animations setup */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fade in and up (default) - exclude headers from hover */
.animate-on-scroll:not(.scale):not(.slide-left):not(.slide-right):not(:hover):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    transform: translateY(30px);
}

/* Headers initial state (before in-view) */
h1.animate-on-scroll:not(.in-view),
h2.animate-on-scroll:not(.in-view),
h3.animate-on-scroll:not(.in-view),
h4.animate-on-scroll:not(.in-view),
h5.animate-on-scroll:not(.in-view),
h6.animate-on-scroll:not(.in-view) {
    opacity: 0;
    transform: translateY(30px);
}

/* Headers on hover stay the same as non-hover */
h1.animate-on-scroll:not(.in-view):hover,
h2.animate-on-scroll:not(.in-view):hover,
h3.animate-on-scroll:not(.in-view):hover,
h4.animate-on-scroll:not(.in-view):hover,
h5.animate-on-scroll:not(.in-view):hover,
h6.animate-on-scroll:not(.in-view):hover {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.in-view:not(:hover):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Headers always stay at translateY(0) when in view */
h1.animate-on-scroll.in-view,
h2.animate-on-scroll.in-view,
h3.animate-on-scroll.in-view,
h4.animate-on-scroll.in-view,
h5.animate-on-scroll.in-view,
h6.animate-on-scroll.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-on-scroll.in-view {
    opacity: 1 !important;
}

/* Scale animations */
.animate-on-scroll.scale {
    transform: scale(0.9);
}

.animate-on-scroll.scale.in-view:not(:hover) {
    transform: scale(1);
}

/* Slide from left */
.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-left.in-view:not(:hover) {
    transform: translateX(0);
}

/* Slide from right */
.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

.animate-on-scroll.slide-right.in-view:not(:hover) {
    transform: translateX(0);
}

/* Staggered animations for groups */
.animate-group > *:nth-child(1) { transition-delay: 0ms; }
.animate-group > *:nth-child(2) { transition-delay: 100ms; }
.animate-group > *:nth-child(3) { transition-delay: 200ms; }
.animate-group > *:nth-child(4) { transition-delay: 300ms; }
.animate-group > *:nth-child(5) { transition-delay: 400ms; }
.animate-group > *:nth-child(6) { transition-delay: 500ms; }

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Counter animation */
.counter {
    display: inline-block;
}

.counter.counting {
    animation: pulse 0.3s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}