/* Custom CSS for Animations and Parallax */
.parallax-bg {
    background-image: url('https://startnearshoring.com/wp-content/uploads/2023/07/Green_Coding.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/* Base styles for all animated elements */
.not-visible {
    opacity: 0;
}

/* * Fade-in Animation 
 * Used for hero text, titles, and sections
 */
.animate-fade-in.is-visible {
    opacity: 1;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* * Slide-up Animation 
 * Used for cards, team members, and other content blocks
 */
.animate-slide-up.not-visible {
    opacity: 0;
    transform: translateY(30px);
}

.animate-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* * Staggered animation for a more beautiful effect
 * Apply this to parent containers like the grid of cards
 */
.animate-slide-up.is-visible:nth-child(2) { transition-delay: 0.15s; }
.animate-slide-up.is-visible:nth-child(3) { transition-delay: 0.3s; }
.animate-slide-up.is-visible:nth-child(4) { transition-delay: 0.45s; }
.animate-slide-up.is-visible:nth-child(5) { transition-delay: 0.6s; }
.animate-slide-up.is-visible:nth-child(6) { transition-delay: 0.75s; }

/* * Enhanced Parallax Effect 
 * Note: Use background-attachment: fixed; in your HTML for this to work
 */
.parallax-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: background-position; /* Improves performance */
}

/* Custom Animations for Services Page */

/* Floating Circles Animation */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 10s ease-in-out infinite;
}

.animate-float-slow {
    animation: float 12s ease-in-out infinite;
}

/* Soft Pulse Animation for the badges */
@keyframes pulse-soft {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}