* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth; 
}

:root {
    --cor-primaria: #9370DB;
    --cor-texto-claro: white;
    --cor-texto-escuro: black;
    --cor-fundo-dark: #1a1a1a;
    --cor-fundo-secao-dark: #333333;
    --cor-fundo-light: #f0f0f0;
    --cor-fundo-secao-light: #ffffff;
}


/* --- DARK MODE (Padrão) --- */
.dark-mode {
    background-color: var(--cor-fundo-dark);
    color: var(--cor-texto-claro);
}
.dark-mode .cabecalho, .dark-mode .rodape, .dark-mode .skill-tag, 
.dark-mode .contato-info, .dark-mode .link-github-bloco, 
.dark-mode .informacao-extra, .dark-mode .mensagem-area {
    background-color: var(--cor-primaria);
    color: var(--cor-texto-escuro);
}
.dark-mode .cabecalho a, .dark-mode .nome-logo, .dark-mode .rodape-texto, 
.dark-mode .contato-info p, .dark-mode .skill-tag, .dark-mode .link-github-bloco {
    color: var(--cor-texto-escuro);
}
.dark-mode .bloco-texto, .dark-mode .soft-skill-bloco {
    background-color: var(--cor-fundo-secao-dark);
}
.dark-mode .caixa-foto, .dark-mode input, .dark-mode textarea {
    background-color: #ccc; 
    color: var(--cor-texto-escuro);
}
.dark-mode .botao-enviar {
    background-color: var(--cor-texto-claro);
    color: var(--cor-texto-escuro);
}
 
/* --- LIGHT MODE (Padrão) --- */
.light-mode {
    background-color: var(--cor-fundo-light);
    color: var(--cor-texto-escuro);
}
.light-mode .cabecalho a, .light-mode .nome-logo, .light-mode .rodape-texto {
    color: var(--cor-texto-escuro);
}
.light-mode .cabecalho, .light-mode .rodape, .light-mode .skill-tag, 
.light-mode .contato-info, .light-mode .link-github-bloco, 
.light-mode .informacao-extra, .light-mode .mensagem-area {
    background-color: var(--cor-primaria);
    color: var(--cor-texto-escuro);
}
.light-mode .bloco-texto, .light-mode .soft-skill-bloco {
    background-color: var(--cor-fundo-secao-light);
    border: 1px solid #ddd;
}
.light-mode .caixa-foto, .light-mode input, .light-mode textarea {
    background-color: #eee;
    color: var(--cor-texto-escuro);
}
.light-mode .botao-enviar {
    background-color: var(--cor-texto-escuro);
    color: var(--cor-texto-claro);
}


/* --- CABECALHO --- */
.cabecalho {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nome-logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.menu-navegacao a {
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    transition: color 0.3s;
}
.rodape {
    padding: 10px 5%;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.secao {
    padding: 80px 5%;
    min-height: 90vh; 
    display: flex;
    flex-direction: column;
}
.botao-tema {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
}

/* --- INICIO --- */
.secao-inicio {
    justify-content: center;
    align-items: center;
}
.bloco-apresentacao {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}
.caixa-foto {
    width: 250px;
    height: 250px;
    border-radius: 20px;
}
.texto-apresentacao h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.minha-foto {
    width: 300px; 
    height: 300px; 
    border-radius: 20px; 
    object-fit: cover; 
    border: 5px solid var(--cor-primaria); 
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
.texto-apresentacao p {
    font-size: 1.5rem;
    line-height: 1.5;
}

/* --- SOBRE --- */
.secao-sobre {
    align-items: center;
    text-align: center;
}
.bloco-texto {
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin-bottom: 40px;
}
.bloco-texto p {
    font-size: 1.2rem;
    line-height: 1.6;
}
.informacao-extra {
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* --- HABILIDADES --- */
.secao-habilidades {
    align-items: center;
}
.secao-habilidades h2 {
    font-size: 3rem;
    margin-bottom: 50px;
}
.container-habilidades {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    width: 100%;
    max-width: 1100px;
}
.skill-tag {
    display: block;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}
.soft-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
}
.soft-skill-bloco {
    padding: 40px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.1rem;
    min-height: 150px;
}

/* --- PROJETOS --- */
.secao-projetos {
    align-items: center;
}
.secao-projetos h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.link-github-bloco {
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
}

/* --- CONTATO --- */
.secao-contato {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}
.contato-info {
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
}
.contato-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    padding-top: 30px; 
}
.campo-form input, 
.mensagem-area textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--cor-primaria);
}
.mensagem-area {
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.mensagem-area label {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.botao-enviar {
    align-self: flex-end;
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
}

/* --- RESPONSIVIDADE */
@media (max-width: 900px) {
    .secao {
        padding: 50px 3%;
        min-height: auto;
    }
    /* Cabeçalho */
    .cabecalho {
        flex-direction: column;
        padding-bottom: 10px;
    }
    .menu-navegacao {
        margin-top: 15px;
        margin-bottom: 10px;
        text-align: center;
    }
    .menu-navegacao a {
        margin: 5px 8px;
        font-size: 0.9rem;
    }
    .rodape {
        flex-direction: column;
        text-align: center;
    }

    /* Início */
    .bloco-apresentacao {
        flex-direction: column;
        text-align: center;
    }
    .caixa-foto {
        margin-bottom: 30px;
    }

    /* Habilidades */
    .container-habilidades {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .hard-skills {
        text-align: center;
    }
    .skill-tag {
        display: inline-block;
        margin-right: 10px;
    }
    .soft-skills {
        grid-template-columns: 1fr;
    }

    /* Contato */
    .secao-contato {
        flex-direction: column;
        align-items: center;
    }
    .contato-info, .contato-form {
        max-width: 100%;
        width: 100%;
    }
    .contato-form {
        padding-top: 20px;
    }
    .botao-enviar {
        align-self: center;
    }
}