/*
=================================================================
--- Animations Stylesheet ---
=================================================================
*/

/* --- General Animation Utility Classes --- */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* --- Keyframes --- */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Section Scroll Animation --- */
.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Section Animation --- */
.hero-content,
.hero-content h2,
.hero-content p,
.hero-content .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content { animation-delay: 0.5s; }
.hero-content h2 { animation-delay: 0.7s; }
.hero-content p { animation-delay: 1.0s; }
.hero-content .btn { animation-delay: 1.3s; }

/* --- Service Card Scroll Animation --- */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Button Loading Spinner --- */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}