/* Animations CSS */
:root {
    --animate-duration: 1s;
    --animate-delay: 0.5s;
}

/* Fade In */
.fade-in {
    animation: fadeIn var(--animate-duration) ease-in;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Slide Up */
.slide-up {
    animation: slideUp var(--animate-duration) ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Slide In */
.slide-in-left {
    animation: slideInLeft var(--animate-duration) ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.slide-in-right {
    animation: slideInRight var(--animate-duration) ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Scale Up */
.scale-up {
    animation: scaleUp var(--animate-duration) ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Bounce */
.bounce {
    animation: bounce var(--animate-duration) ease-out;
}

/* Service Card Hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation Delays */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transition: all 1s;
}

.scroll-animate.active {
    opacity: 1;
}

/* Interactive Elements */
.highlight-on-hover {
    transition: all 0.3s ease;
}

.highlight-on-hover:hover {
    color: var(--primary-blue);
    transform: scale(1.1);
}

/* Loading Animations */
.loading-spinner {
    border: 4px solid rgba(0,0,0,0.1);
    border-left-color: var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}