/* Animation Styles */
.animate-text {
    overflow: hidden;
}

.animate-text span {
    opacity: 0;
    transform: translateY(30px);
    display: inline-block;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-text span:nth-child(2) {
    animation-delay: 0.3s;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.animate-slide {
    opacity: 0;
    transform: translateY(30px);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hero Animation Effects */
.hero-backdrop {
    animation: pulse 20s infinite ease-in-out;
}

.cta-button {
    background-size: 200% 200%;
    animation: gradientShift 5s infinite linear;
}

/* Parallax Scroll Effect */
.solutions, 
.features, 
.testimonials {
    position: relative;
    overflow: hidden;
}

.solutions::before,
.features::before,
.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.solutions::before {
    background: radial-gradient(circle at 20% 50%, rgba(172, 168, 131, 0.1) 0%, transparent 50%);
    transform: translateY(var(--parallax-speed, 0));
}

.features::before {
    background: radial-gradient(circle at 80% 30%, rgba(55, 83, 107, 0.2) 0%, transparent 60%);
    transform: translateY(var(--parallax-speed, 0));
}

.testimonials::before {
    background: radial-gradient(circle at 40% 70%, rgba(28, 37, 54, 0.2) 0%, transparent 50%);
    transform: translateY(var(--parallax-speed, 0));
}

/* Intersection Observer Animation Classes */
.in-view {
    animation: fadeIn 0.8s ease forwards;
}

.in-view.animate-slide {
    animation: slideInUp 0.8s ease forwards;
}

.solution-card.in-view:nth-child(odd) {
    animation: slideInLeft 0.8s ease forwards;
}

.solution-card.in-view:nth-child(even) {
    animation: slideInRight 0.8s ease forwards;
}

.feature-card.in-view:nth-child(odd) {
    animation-delay: 0.2s;
}

.feature-card.in-view:nth-child(even) {
    animation-delay: 0.4s;
}

.testimonial-card.in-view:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card.in-view:nth-child(2) {
    animation-delay: 0.3s;
}

.testimonial-card.in-view:nth-child(3) {
    animation-delay: 0.5s;
}

/* Feature Grid Staggered Animation */
.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.6s; }