#services {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #ffffff;
} 

/* Previne o flash de carregamento no portfólio */
.gallery-header, 
.filter-btn, 
.gallery-item {
    visibility: hidden;
}

/* O ScrollReveal ativa a visibilidade */
.sr .gallery-header, 
.sr .filter-btn, 
.sr .gallery-item {
    visibility: visible;
}

/* Previne o "pulo" de carregamento nos serviços */
.section-services-1,
.section-card,
.section-services-text,
.section-services-3 .btn-default {
    visibility: hidden;
}

/* Classe que a biblioteca usa para revelar */
.sr .section-services-1,
.sr .section-card,
.sr .section-services-text,
.sr .section-services-3 .btn-default {
    visibility: visible;
}

.section-services-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    justify-content: center;
    width: 700px;
    margin-bottom: 70px;
}

.section-services-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas inicialmente */
    gap: 32px; /* mantém o espaçamento */
    width: 100%;
    justify-items: center; /* centraliza cada card na coluna */
}

.section-card {
    width: 100%; /* essencial para o grid */
    min-width: 200px; /* garante que não fique muito pequeno */
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #F8FAFC;
    border-radius: 30px;
    padding: 28px;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-card:hover {
    transform: translateY(-6px);
    background-color: #0F172A;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}
 
.spot {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 100PX;
    right: -60px;
    top: -60px;
    opacity: 0.3;
}

.section-card-icon {
    width: 64px;
    height: 64px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0F172A;
    -webkit-text-stroke: 0px;
    font-size: 40px; 
    color: #ffffff;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.section-card:hover .section-card-icon{
    transform: scale(1.1);
}

.section-card:hover .section-subtitle-smaller-2{
    color: #ffffff;
}

.section-card:hover .section-description-2{
    color: #94a3b8;
}

.card_element_color_1{
    background-color: #3B82F6;
} 
.card_element_color_2{
    background-color: #d416ab;
} 
.card_element_color_3{
    background-color: #06B6D4;
} 
.card_element_color_4{
    background-color: #22C55E;
} 
.card_element_color_5{
    background-color: #EAB308;
} 
.card_element_color_6{
    background-color: #EF4444;
}

.section-services-3 {
    margin-top: 60px;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0F172A;
    padding: 50px;
    gap: 50px;
    border-radius: 30px;
}

.section-services-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-services-text h3 {
    font-size: clamp(2rem, 4vw, 2.4rem);
    color: #ffffff;
}

.section-services-text p {
    color: #77859a;
}

@media (max-width: 1099px) {
    .section-services-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 999px) {     
    .section-services-1 {
        width: 100%;
    }
}

@media screen and (max-width: 850px) {     
    .section-services-3 {
        width: 100%;
        flex-direction: column;
    }
}


@media (max-width: 699px) {
    .section-services-2 {
        grid-template-columns: 1fr;
    }

    .section-services-3 button {
        transform: scale(clamp(0.20, 0.85, 1));
    }

}