/* Service Card Animations */
.service-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    display: none;
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.service-card.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance optimized animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .animate-on-scroll {
        transition: none;
        animation: none;
    }
    
    .service-card.fade-in {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}