body {
    font-family: Arial, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    margin: 0;
    padding: 0;
    text-align: center;
    --scrollbar-color-thumb: #343541;
    --scrollbar-color-track: #40414f;
    --scrollbar-width: thin;
    --scrollbar-width-legacy: 4px;
    --scrollbar-height-legacy: 4px;
    line-height: 1.6; /* Espaçamento geral do texto */
}

section {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: justify;
    line-height: 1.7; /* Parágrafos dentro de seções */
}

.language-switch {
    margin-left: 60px !important; /* Mantido como estava */
}

.language-switch button {
    padding: 10px 20px;
    margin: 5px;
    background: #58a6ff;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    line-height: 1.5; /* Botões */
}

header {
    background: #161b22;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
    line-height: 1.5; /* Itens de navegação */
}

nav ul li a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a[aria-current="page"] {
    color: #ffffff;
    border-bottom: 2px solid #58a6ff; /* Destaque para a página atual */
}

.hero {
    background: url('https://source.unsplash.com/1600x900/?ai,technology') no-repeat center center/cover;
    padding: 100px 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Melhora o contraste do texto */
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #58a6ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    line-height: 1.5; /* Botão no hero */
    transition: background 0.3s ease, transform 0.2s ease; /* Animação suave */
}

.hero .btn:hover {
    background: #1a73e8;
    transform: translateY(-2px);
}

.features {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
}

.feature {
    width: 30%;
    background: #21262d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    line-height: 1.6; /* Texto nas features */
    transition: transform 0.3s ease; /* Animação ao passar o mouse */
}

.feature:hover {
    transform: translateY(-5px); /* Elevação ao passar o mouse */
}

.feature-icon {
    font-size: 2em;
    color: #58a6ff;
    margin-bottom: 10px;
}

.feature h3 {
    margin: 10px 0;
}

footer {
    background: #161b22;
    color: white;
    padding: 10px;
    margin-top: 20px;
    line-height: 1.6; /* Rodapé */
}

ul {
    padding-left: 20px;
    line-height: 1.8; /* Listas, aumentando o espaçamento */
}

li {
    margin-bottom: 5px;
    line-height: 1.8; /* Itens de lista */
}

hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

.indice a {
    display: block;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 5px;
    line-height: 1.6; /* Links no índice */
}

.indice a:hover {
    text-decoration: underline;
}

/* Estilos para cabeçalhos */
h1, h2, h3 {
    line-height: 1.4; /* Cabeçalhos */
    margin-bottom: 15px; /* Espaçamento abaixo dos cabeçalhos */
}

/* Estilo para caixas de código */
code {
    display: inline-block; /* Códigos inline */
    background: #282c34; /* Fundo escuro */
    color: #ffffff; /* Texto branco */
    padding: 2px 6px; /* Espaçamento interno menor para inline */
    border-radius: 3px; /* Bordas arredondadas */
    font-family: "Menlo", "Consolas", "Courier New", monospace; /* Fonte monoespaçada */
    font-size: 14px; /* Tamanho de fonte consistente */
    line-height: 1.5; /* Espaçamento interno */
}

/* Para blocos de código dentro de <pre> */
pre code {
    display: block; /* Ocupa a largura total */
    padding: 10px; /* Mais espaço interno para blocos */
    margin: 10px 0; /* Margem vertical */
    overflow-x: auto; /* Rolagem horizontal se necessário */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra sutil */
    border: 1px solid #444; /* Borda leve */
}

/* Estilo para tabelas (desktop) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: #21262d;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #444;
}

th {
    background: #161b22;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #282c34;
}

tr:hover {
    background: #343541;
}

@supports (scrollbar-width: auto) {
    body {
        scrollbar-color: var(--scrollbar-color-thumb) var(--scrollbar-color-track);
        scrollbar-width: thin !important;
    }
}

@supports selector(::-webkit-scrollbar) {
    body::-webkit-scrollbar {
        width: 4px !important;
        height: 4px !important;
        background: var(--scrollbar-color-track);
    }
    body::-webkit-scrollbar-thumb {
        background: var(--scrollbar-color-thumb);
        border-radius: 2px;
    }
    body::-webkit-scrollbar-track {
        background: var(--scrollbar-color-track);
    }
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    /* Ajuste geral para seções */
    section {
        max-width: 100%;
        padding: 15px;
    }

    /* Ajuste para o header */
    header {
        padding: 15px;
    }

    /* Navegação empilhada */
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    /* Hero no mobile */
    .hero {
        padding: 60px 15px;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    /* Features em coluna sem margem à esquerda */
    .features {
        flex-direction: column;
        padding: 10px;
        margin-left: -10px; /* Removido margem à esquerda no mobile */
		max-width: 90vw;
    }

    .feature {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Ajuste para language-switch */
    .language-switch {
        margin-left: 0 !important;
        text-align: center;
    }

    .language-switch button {
        display: inline-block;
        width: 45%;
    }

    /* Transformação da tabela em layout empilhado sem margem à esquerda */
    table {
        display: block;
        width: 100%;
        margin-left: -30px; /* Removido margem à esquerda no mobile */
    }

    thead {
        display: none; /* Esconde os cabeçalhos no mobile */
    }

    tbody, tr, td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 15px;
        background: #21262d;
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    td {
        border: none;
        padding: 8px;
        text-align: left;
        position: relative;
    }

    td:before {
        content: attr(data-label); /* Usa o atributo data-label */
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #58a6ff; /* Cor destacada para títulos */
    }

    tr:nth-child(even) {
        background: #282c34;
    }

    tr:hover {
        background: #343541;
    }
}