/**
 * Animation Styles
 * Modern animations for BoDuo website
 */

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

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

/* Staggered animations for cards */
.service-card:nth-child(1),
.industry-card:nth-child(1),
.blog-card:nth-child(1),
.client-logo:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2),
.industry-card:nth-child(2),
.blog-card:nth-child(2),
.client-logo:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3),
.industry-card:nth-child(3),
.blog-card:nth-child(3),
.client-logo:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4),
.industry-card:nth-child(4),
.blog-card:nth-child(4),
.client-logo:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:nth-child(5),
.industry-card:nth-child(5),
.blog-card:nth-child(5),
.client-logo:nth-child(5) {
    transition-delay: 0.5s;
}

/* Hover animations */
.service-card,
.industry-card,
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.industry-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease;
    z-index: -1;
    transform: skewX(-15deg);
}

.btn:hover::before {
    transform: skewX(-15deg) translateX(100%);
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 86, 179, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

.cta-section .btn-primary {
    animation: pulse 2s infinite;
}

/* Smooth page transitions */
body {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Floating animation for hero image */
.hero-image img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Gradient text animation */
@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cta-section h2 {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientText 5s ease infinite;
    display: inline-block;
}
