.services {
    position: relative;
    text-align: center;
    height: 85vh; /* Garantir que a seção ocupe toda a altura da tela */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    
}

/* Adiciona uma transição suave ao conteúdo que aparece */
[data-aos] {
    opacity: 0;
    transform: translateY(30px); /* Leve movimento para baixo */
    transition-property: opacity, transform;
    transition-duration: 1s;
    transition-timing-function: ease;
  }
  
  [data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0); /* Retorna para a posição normal */
  }
  

  .video-background {
    position: relative; /* Para que o img absoluto se posicione dentro deste container */
    width: 100%;
    height: 85vh; /* Mantém altura igual à da imagem */
    overflow: hidden;
}

.video-background img {
    width: 100%;
    height: 100%;
    opacity: 0.7;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
    object-position: center;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* CENTRO ABSOLUTO */
    text-align: center;
    color: white; /* Para garantir visibilidade */
    padding: 20px;
}

.section-title h1 {
    font-size: 3rem;
    color:  #222;
    font-weight: bold;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.btn-container .btn-contact {
    font-size: 1.2rem;
    color: #fff;
    background-color:#333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: 3px solid #333;
    display: inline-block;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.btn-container .btn-contact:hover {
    background-color: #222;
    color: #fff;
}

.links .link {
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    margin: 0 15px;
}

.links .link:hover {
    text-decoration: underline;
    color: #222;
}

/* Animações */
.animated {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/* Container de serviços */
.services-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

/* Estilo de cada coluna de serviço */
.service-column {
    flex: 1;
    padding: 20px 20px 80px 20px;
}

/* Títulos das colunas */
.service-column h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #34495e;
    margin-bottom: 30px;
    margin-top: 20px;
}

.services-particulares{
    background-color: #333333;
    padding-bottom: 30px;
}

.services-particulares h2{
    color: #fff;
}

/* Cards de serviços */
.services-empreendedores .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards por linha */
    gap: 20px; /* Espaçamento entre os cards */
}

.services-particulares .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards por linha */
    gap: 20px; /* Espaçamento entre os cards */
    justify-items: center; /* Centraliza os cards no espaço disponível */
}

.services-particulares .cards2 {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 cards por linha */
    gap: 20px; /* Espaçamento entre os cards */
    justify-items: center; /* Centraliza os cards no espaço disponível */
}

.card {
    background-color: #fff; /* Cor de fundo branca para visibilidade */
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px); /* Efeito de elevação no hover */
}

.card i{
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    color: #555;
}

/* Responsividade para telas médias e pequenas */

/* Para telas pequenas (menos de 768px) */
@media (max-width: 767px) {

    .services {
        height: 60vh; /* Ajuste a altura conforme necessário para telas menores */
    }
    .video-background {
        height: 60vh;
    }

    .overlay-content{
        top: 25%;
        left: 0%;
        transform: none;
    }

    .services-container {
        flex-direction: column;
    }

    .service-column {
        margin-bottom: 20px;
        flex: none;
    }

    /* Ajuste do número de cards por linha para telas pequenas */
    .services-empreendedores .cards,
    .services-particulares .cards {
        grid-template-columns: 1fr; /* 1 card por linha */
    }

    /* Ajuste das fontes e espaçamentos para telas pequenas */
    .section-title h1 {
        font-size: 2.0rem;
    }

    .section-title p {
        font-size: 1.0rem;
    }

    .btn-container .btn-contact {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .links .link {
        font-size: 1rem;
        margin: 0 10px;
    }

    .services-particulares .cards2 {
        grid-template-columns: 1fr; /* 1 card por linha em telas pequenas */
    }
}

/* Para telas médias (entre 768px e 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .services-container {
        flex-direction: column;
        gap: 20px;
    }


    /* Ajustes para as fontes e botões */
    .section-title h1 {
        font-size: 2.8rem;
    }

    .section-title p {
        font-size: 1.4rem;
    }

    .btn-container .btn-contact {
        font-size: 1.1rem;
    }

    .links .link {
        font-size: 1.1rem;
    }


    .video-background img {
        object-fit: cover; /* Usamos 'contain' para garantir que a imagem se ajuste bem e não estique */
    }
}