/**
 * Scroll-triggered animation styles
 * Includes fade-in, parallax, and counter animations
 */

/* Fade-in animation base styles */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger animation delays for grid items */
.services-grid .service-item:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .service-item:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .service-item:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .service-item:nth-child(4) {
    transition-delay: 0.4s;
}

.portfolio-grid .portfolio-item:nth-child(1) {
    transition-delay: 0.1s;
}

.portfolio-grid .portfolio-item:nth-child(2) {
    transition-delay: 0.2s;
}

.portfolio-grid .portfolio-item:nth-child(3) {
    transition-delay: 0.3s;
}

.portfolio-grid .portfolio-item:nth-child(4) {
    transition-delay: 0.4s;
}

.portfolio-grid .portfolio-item:nth-child(5) {
    transition-delay: 0.5s;
}

.testimonials-grid .testimonial:nth-child(1) {
    transition-delay: 0.1s;
}

.testimonials-grid .testimonial:nth-child(2) {
    transition-delay: 0.2s;
}

.testimonials-grid .testimonial:nth-child(3) {
    transition-delay: 0.3s;
}

.technologies-grid .technology-item {
    transition-delay: 0.05s;
}

.technologies-grid .technology-item:nth-child(2) {
    transition-delay: 0.1s;
}

.technologies-grid .technology-item:nth-child(3) {
    transition-delay: 0.15s;
}

.technologies-grid .technology-item:nth-child(4) {
    transition-delay: 0.2s;
}

.technologies-grid .technology-item:nth-child(5) {
    transition-delay: 0.25s;
}

.technologies-grid .technology-item:nth-child(6) {
    transition-delay: 0.3s;
}

.leadership-profiles .leadership-profile:nth-child(1) {
    transition-delay: 0.1s;
}

.leadership-profiles .leadership-profile:nth-child(2) {
    transition-delay: 0.2s;
}

.leadership-profiles .leadership-profile:nth-child(3) {
    transition-delay: 0.3s;
}

/* Parallax container */
[data-parallax] {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Counter animation styles */
[data-counter] {
    font-weight: bold;
    font-size: 2.5em;
    color: var(--primary-color, #007bff);
    display: block;
    margin: 1rem 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    [data-parallax] {
        transform: none !important;
        transition: none;
    }

    [data-counter] {
        transition: none;
    }
}

/* Performance optimization: use GPU acceleration */
.scroll-fade-in,
[data-parallax] {
    backface-visibility: hidden;
    perspective: 1000px;
}
