/* --- Reset Básico e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 16px;
}

.social-links {
    text-align: right;
}

.social-links a {
    font-size: 28px;
    /* Tamanho dos ícones */
    color: #333;
    /* Cor padrão */
    margin: 0 15px;
    /* Espaçamento entre os links */
    text-decoration: none;
    /* Remove o sublinhado */
    transition: color 0.3s ease;
    /* Efeito suave na mudança de cor */
}

.social-links a:hover {
    color: #0077b5;
    /* Cor do LinkedIn ao passar o mouse */
}

.social-links a.github:hover {
    color: #171515;
    /* Cor do GitHub ao passar o mouse */
}

.social-links .link-text {
    font-size: 16px;
    /* Tamanho do texto */
    vertical-align: middle;
    margin-left: 8px;
}


.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- Cabeçalho --- */
header {
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 35px;
    border-bottom: 2px solid #e9ecef;
}

header h1 {
    font-size: 2.8rem;
    color: #0056b3;
    /* ALTERADO: Cor do título agora é azul escuro, não preto. */
    font-weight: 700;
    margin-bottom: 10px;
}

/*
header .contact-info {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 300;
}
*/



/* ======================================================= */
/*   CÓDIGO CORRIGIDO PARA O CABEÇALHO E LINHA DE CONTATO  */
/* ======================================================= */

/* 1. Define o estilo para a linha inteira */
header .contact-info {
    font-size: 1rem;
    color: #0056b3;
    /* Define o azul desejado para a linha toda */
    font-weight: 400;
}

/* 2. Força o link (a) a obedecer e ter o estilo certo */
header .contact-info a {
    /* A MÁGICA: Diz ao link para ignorar a cor padrão do navegador 
       e usar a cor do seu elemento pai (a div .contact-info) */
    color: inherit;

    font-weight: 700;
    /* Deixa o link mais forte para se destacar */
    text-decoration: underline;
    /* Deixa claro que é clicável */
    cursor: pointer;
    transition: color 0.2s ease;
}

/* 3. (Opcional, mas recomendado) Adiciona um efeito hover no link */


header .contact-info a:hover {
    color: #004494;
    /* Um azul um pouco mais escuro ao passar o mouse */
}









/* --- Estilos de Seção --- */
section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.8rem;
    color: #0056b3;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* --- Seções Específicas --- */
#summary p {
    font-size: 1.1rem;
    font-weight: 400;
    /* ALTERADO: Peso da fonte aumentado de 300 para 400 (normal) para melhor legibilidade. */
    line-height: 1.7;
}

#competencies ul,
#experience ul,
#languages ul {
    list-style-position: outside;
    padding-left: 20px;
}

#competencies li,
#languages li {
    margin-bottom: 10px;
}

#competencies strong,
#languages strong {
    color: #343a40;
    font-weight: 700;
}

/* --- Experiência Profissional --- */
.job {
    margin-bottom: 30px;
}

.job:last-child {
    margin-bottom: 0;
}

.job h3 {
    font-size: 1.3rem;
    color: #343a40;
    font-weight: 700;
    margin-bottom: 5px;
}

.job .job-meta {
    font-size: 1rem;
    font-style: italic;
    color: #6c757d;
    margin-bottom: 15px;
}

.job ul li {
    margin-bottom: 10px;
    text-align: justify;
}

/* --- Educação --- */
#education h3 {
    font-size: 1.3rem;
    color: #343a40;
    margin-bottom: 5px;
}

#education p {
    color: #6c757d;
    margin: 0;
}

/* --- Rodapé --- */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 20px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    header .contact-info {
        font-size: 0.9rem;
    }

    header .contact-info span {
        display: block;
        margin-bottom: 5px;
    }

    header .contact-info span:last-child {
        margin-bottom: 0;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* --- Seção do Gatilho de Contato --- */
#contact-trigger {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 40px;
}

#contact-trigger h2 {
    border-bottom: none;
    margin-bottom: 10px;
}

#contact-trigger p {
    margin-bottom: 25px;
    color: #6c757d;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#open-modal-btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #0056b3;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

#open-modal-btn:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

/* --- Estilos do Modal --- */
#contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#contact-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

#modal-box {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

#contact-modal-overlay.hidden #modal-box {
    transform: translateY(-30px);
}

#close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    line-height: 1;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}

#close-modal-btn:hover {
    color: #333;
}

#modal-box h2 {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
}

/* --- Estilos do Formulário no Modal --- */
#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #495057;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

#contact-form button {
    width: 100%;
    padding: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #0056b3;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#contact-form button:hover {
    background-color: #004494;
}

#form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    min-height: 1.2em;
    /* Evita que o layout pule quando a mensagem aparece */
}