*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cor-primaria: #3A86FF;
    --cor-secundaria: #265DCC;

    --cor-fundo: #0D1117;
    --cor-header: #0A0F1F;

    --cor-texto: #E6E6E6;
    --cor-texto-claro: #FFFFFF;

    --cor-caixa: #161B22;
    --cor-borda: #30363D;

    --cor-input-bg: #0D1117;
    --cor-input-borda: #3A86FF;
    --cor-input-texto: #FFFFFF;

    --cor-link: #3A86FF; 
    --cor-link-hover: #FFFFFF;

    --cor-botao-bg: #3A86FF;
    --cor-botao-hover: #265DCC;
    --cor-botao-texto: #FFFFFF;

    --cor-body-bg: #0D1117;
    --cor-main-bg: transparent;
    --cor-h2: #FFFFFF;
    --cor-h3: #3A86FF;
}

html {
    height: -webkit-fill-available;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--cor-body-bg);
    color: var(--cor-texto);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100svh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

header {
    text-align: center;
    margin-bottom: 1rem;
    background-color: var(--cor-header);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 20px 1rem;
}

header h1 {
    font-size: 2rem;
    color: var(--cor-texto-claro);
    margin-bottom: 15px;
}

main {
    flex: 1;
    width: 100%;
    padding: 0 1rem;
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.menu li a {
    text-decoration: none;
    color: var(--cor-texto-claro);
    padding: 8px 12px;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.3s;
    display: inline-block;
}

.menu li a:hover {
    background-color: var(--cor-primaria);
    transform: scale(1.05);
}

.principal {
    display: flex;
    text-align: left;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.foto img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border: 3px solid var(--cor-primaria);
    border-radius: 50%;
}

.texto {
    flex: 1;
}

.texto h2 {
    font-size: 2rem;
    color: var(--cor-h2);
    margin-bottom: 1rem;
}

.texto p {
    line-height: 1.5;
    text-align: left;
}

.habili {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--cor-caixa);
    border: 1px solid var(--cor-borda);
    border-radius: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.habili h2 {
    color: var(--cor-h2);
    margin-bottom: 1rem;
}

.habili ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.habili li {
    background-color: var(--cor-primaria);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--cor-botao-texto);
    transition: transform 0.2s ease, background-color 0.3s ease;
    cursor: pointer;
}

.habili li:hover {
    transform: scale(1.05);
    background-color: var(--cor-secundaria);
}

@media (max-width: 768px) {
    header {
        padding: 15px 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .menu ul {
        gap: 5px;
    }

    .menu li a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .principal {
        flex-direction: column;
        text-align: center;
    }

    .foto img {
        width: 180px;
        height: 180px;
    }

    .texto h2 {
        font-size: 1.5rem;
    }

    .texto p {
        text-align: center;
    }

    .habili {
        padding: 1.2rem;
        margin-top: 2rem;
    }

    .habili ul {
        gap: 0.5rem;
    }

    .habili li {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}