@import './theme.css';

#services {
    padding: 100px 0;
    background: var(--background-color);
    color: var(--paragraph-color);
    min-height: 400px;
}

#services .container {
    max-width: 1200px;
    margin: 0 auto;
}

#services .section-title h2 {
    color: var(--primary-text);
    position: relative;
    margin-bottom: 40px;
}

#services .section-title h2::after {
    position: absolute;
    content: "";
    background: rgba(255, 255, 255, 0.3);
    height: 4px;
    width: 60px;
    bottom: -10px;
    margin-left: -30px;
    left: 50%;
}

#services .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#services .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    display: flex;
    justify-content: center;
}

#services .card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 15px;
    transition: transform 0.8s ease, opacity 0.8s ease;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0; /* invisível antes */
}

/* Quando entra na tela */
#services .card.visible {
    opacity: 1;
}

/* Ícone */
#services i.fa {
    font-size: 42px;
    width: 80px;
    height: 80px;
    padding: 20px 0;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#services h3 {
    font-weight: 900;
    padding: 5px 0;
    color: var(--paragraph-color);
    font-size: 20px;
}

#services p {
    color: var(--paragraph-color);
    font-size: 15px;
    line-height: 1.5;
}

#services .service-desc {
    margin-bottom: 20px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    #services .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #services .card {
        margin: 10px 0;
    }
    #services .row {
        flex-direction: column;
        align-items: center;
    }
}

/* ===================== */
/* Animações             */
/* ===================== */

/* Esquerda → entra deslizando */
.card.slide-left {
    transform: translateX(-100px);
}
.card.slide-left.visible {
    transform: translateX(0);
}

/* Direita → entra deslizando */
.card.slide-right {
    transform: translateX(100px);
}
.card.slide-right.visible {
    transform: translateX(0);
}

/* Meio (de baixo pra cima) */
.card.slide-up {
    transform: translateY(100px);
}
.card.slide-up.visible {
    transform: translateY(0);
}
