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

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

.hero-content {
    animation: fadeIn 1s ease-out;
}

.btn-primary {
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Service Cards Animation */
.service-card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }

/* Portfolio Animations */
@keyframes portfolioOverlay {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-overlay {
    animation: portfolioOverlay 0.3s ease-out;
}

.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Testimonial Cards Animation */
.testimonial-card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.testimonials-grid .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonials-grid .testimonial-card:nth-child(2) { animation-delay: 0.2s; }

/* Partners Animation */
.partners-grid img {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.partners-grid img:nth-child(1) { animation-delay: 0.1s; }
.partners-grid img:nth-child(2) { animation-delay: 0.2s; }
.partners-grid img:nth-child(3) { animation-delay: 0.3s; }
.partners-grid img:nth-child(4) { animation-delay: 0.4s; }

/* CTA Secondary Animation */
.cta-secondary {
    position: relative;
    overflow: hidden;
}

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

.cta-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: gradientMove 3s linear infinite;
}

/* Footer Animation */
.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
} 