body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background-color: #161616;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: 60px;
}

header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header .logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0;
}

main {
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin-top: 0px;
}

.headline {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    justify-content: center;
}

.service {
    flex: 1;
    min-width: calc(50% - 10px);
    max-width: 400px; /* Define uma largura máxima para os cartões */
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.service:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.service h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service p {
    font-size: 16px;
    margin-bottom: 20px;
}

.service-button {
    display: inline-block;
    background-color: #bb86fc;
    color: #121212;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
}

.service-button:hover {
    background-color: #9a67ea;
}

.service-button:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        padding: 10px; /* Ajuste o padding para dispositivos móveis */
        align-items: center; /* Alinha a logo e ícones ao centro */
    }

    header .logo {
        margin-top: 5px; /* Ajuste o espaço acima da logo */
        margin-bottom: 0px; /* Espaço abaixo da logo */
        flex: none; /* Remove a flexibilidade da logo */
    }

    header .icons {
        margin: 10px 0; /* Espaço acima e abaixo dos ícones */
        margin-left: 0; /* Remove o alinhamento à esquerda */
    }

    .headline {
        font-size: 24px;
    }

    .services {
        padding: 0 10px;
        margin: 0;
    }

    .service {
        min-width: 100%;
    }

    .service h2 {
        font-size: 20px;
    }

    .service p {
        font-size: 14px;
    }

    .service-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box; /* Garante que o padding e a borda não causem overflow */
    }
}
