.conteiner {
    max-width: 1700px; 
    margin: 20px auto; 
    padding: 40px 10px; 
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(12, 90, 74, 0.1); }
    to   { text-shadow: 0 0 25px rgba(0, 255, 204, 0.4), 0 0 50px rgba(0, 255, 204, 0.15); }
}

h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: glow 3s ease-in-out infinite alternate;
}

.subtitulo {
    font-size: 2rem;
    color: #8b949e;
    margin-bottom: 20px;
}

.titulo-secao, 
.botao-principal {
    font-family: var(--fonte-mono);
}

.titulo-secao {
    color: var(--cor-destaque);
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--cor-borda); 
    padding-bottom: 10px;
}

.descricao {
    font-size: 1.2rem;
    max-width: 600px; 
    margin-bottom: 30px;
    text-align: justify;
}

@keyframes typing {
    from { width: 0; }
    to   { width: 26ch; } 
}

.typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 2.5s steps(26, end) 0.5s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease var(--delay, 0s), transform 0.7s ease var(--delay, 0s);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.botoes-apresentacao {
    display: flex; 
    gap: 20px; 
    justify-content: flex-end;
}

.botao-principal {
    background: transparent;
    border: 2px solid var(--cor-destaque);
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: white;
}

.botao-principal:hover {
    background: var(--cor-destaque);
    color: var(--cor-fundo); 
    box-shadow: 0 0 20px var(--cor-destaque); 
}

.apresentacao { 
    display: flex; 
    align-items: center; 
    gap: 90px; 
    margin-top: 40px; 
}

.foto {
    width: 400px; 
    height: 400px;
    border-radius: 5%;
    object-fit: cover;
    box-shadow: 0 0 35px rgb(126, 177, 179);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-10px); }
}

.textos-apresentacao { 
    max-width: 700px; 
}

.secao-habilidades { 
    margin-top: 80px; 
}

.grade-habilidades { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

.cartao-habilidade {
    background-color: var(--cor-superficie);
    padding: 25px; 
    border-radius: 8px;
    border: 1px solid var(--cor-borda);
    display: flex; 
    align-items: flex-start; 
    gap: 20px; 
    transition: transform 0.3s, border-color 0.3s;
}

.cartao-habilidade:hover { 
    transform: translateY(-5px); 
    border-color: var(--cor-destaque); 
}

.cartao-habilidade h4 { 
    color: var(--cor-destaque); 
    font-family: var(--fonte-mono); 
    font-size: 1.1rem; 
    margin-bottom: 8px; 
}

.icone-habilidade { 
    width: 40px; 
    height: 40px; 
    object-fit: contain; 
    flex-shrink: 0; 
}

@keyframes fill { 
    from { width: 0; } 
    to { width: var(--nivel); } 
}

.barra-progresso { 
    margin-top: 12px; 
    background-color: var(--cor-borda); 
    border-radius: 999px; 
    height: 4px; 
    overflow: hidden; 
}

.barra-preenchimento {
    height: 100%; 
    background: linear-gradient(90deg, var(--cor-destaque), #00ccff);
    border-radius: 999px; 
    width: 0; 
    animation: fill 1.2s ease-out 0.5s forwards;
    box-shadow: 0 0 8px var(--cor-destaque);
}

.secao-projetos { 
    margin-top: 80px; 
}

.grade-projetos { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
}

.cartao-projeto { 
    background-color: var(--cor-superficie); 
    padding: 25px; 
    border-radius: 8px; 
    border: 1px solid var(--cor-borda); 
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; 
}

.cartao-projeto h4 { 
    color: #ffffff; 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
}

.cartao-projeto:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.15); 
    border-color: var(--cor-destaque); 
}

.link-jovem { 
    text-decoration: none; 
    color: #BEC7CE; 
}

.grafico-github {
    background-color: var(--cor-superficie); 
    padding: 10px; 
    border-radius: 8px;
    border: 1px solid var(--cor-borda); 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    width: 29%; 
    overflow-x: auto; 
    transition: transform 0.3s, border-color 0.3s;
}

.grafico-github:hover { 
    transform: translateY(-5px); 
    border-color: var(--cor-destaque); 
}

.grafico-github img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

.imagem-projeto { 
    width: 100%; 
    height: auto; 
    border-radius: 8px; 
    margin-top: 15px; 
}

@media (max-width: 768px) {
    .botoes-apresentacao { 
        justify-content: center; 
        flex-wrap: wrap; 
        gap: 10px; 
    }
    .apresentacao { 
        flex-direction: column; 
        align-items: center; 
        gap: 30px; 
        text-align: center; 
        margin-top: 30px; 
    }
    .foto { 
        width: 200px; 
        height: 200px; 
    }
    .textos-apresentacao { 
        max-width: 100%; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
    h1 { font-size: 2.5rem; }
    .subtitulo { font-size: 1.4rem; }
    .grafico-github { width: 100%; }
    .secao-habilidades, .secao-projetos { margin-top: 50px; }
    .grade-habilidades, .grade-projetos { grid-template-columns: 1fr; }
    .conteiner { padding: 20px 16px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .subtitulo { font-size: 1.2rem; }
    .descricao { font-size: 1rem; }
    .botao-principal { padding: 10px 16px; font-size: 0.85rem; }
    .foto { width: 160px; height: 160px; }
}