/* --- Estilos Gerais e Variáveis --- */
:root {
    --cor-primaria: #0a2342; /* Azul escuro */
    --cor-secundaria: #2ca58d; /* Verde azulado */
    --cor-fundo: #f4f4f9;
    --cor-texto: #333;
    --cor-branco: #ffffff;
    --sombra-caixa: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

.container {
    max-width: 1275px;
    margin: auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

section:nth-of-type(even) {
    background-color: var(--cor-branco);
}

h1, h2, h3, h4 {
    color: var(--cor-primaria);
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--cor-secundaria);
    display: inline-block;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

a {
    color: var(--cor-secundaria);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style-type: none;
}

/* --- Cabeçalho e Navegação --- */
header {
    background-color: var(--cor-branco);
    box-shadow: var(--sombra-caixa);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cor-primaria);
}
.logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: var(--cor-primaria);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: var(--cor-secundaria);
    color: var(--cor-branco);
    text-decoration: none;
}

/* --- Botão Hambúrguer (invisível em telas grandes) --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--cor-primaria);
    transition: all 0.3s ease-in-out;
}


/* --- Seção Hero --- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.75), rgba(44, 62, 80, 0.75)), url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=2070&auto=format&fit=crop") no-repeat center center/cover;
    color: var(--cor-branco);
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 70px; /* Altura do header */
}
.hero h1 {
    color: var(--cor-branco);
    font-size: 3rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Cards e Grids --- */
.skills-grid, .projects-grid, .certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card, .project-card, .certification-item {
    background-color: var(--cor-branco);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--sombra-caixa);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover, .project-card:hover, .certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    margin-top: 0;
}

.project-card a {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

/* --- Experiência --- */
.job {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}
.job:last-child {
    border-bottom: none;
}
.job h3 {
    font-size: 1.5rem;
}
.job h4 {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}
.job ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.job ul li::before {
    content: '•';
    color: var(--cor-secundaria);
    font-weight: bold;
    position: absolute;
    left: 0;
}
.job .job-subtitle {
    font-weight: bold;
    color: var(--cor-primaria);
    margin-top: 20px;
    list-style: none;
}
.job .job-subtitle::before {
    content: '';
}

/* --- Outras seções --- */
.education-item, .certification-item, .bootcamps {
    margin-bottom: 20px;
}

#informatica ul li, #idiomas ul li {
    margin-bottom: 10px;
}

/* --- Rodapé --- */
footer {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    text-align: center;
    padding: 20px 0;
}
footer a {
    color: var(--cor-secundaria);
}

/* --- MEDIA QUERY PARA RESPONSIVIDADE (A MÁGICA ACONTECE AQUI) --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%; /* Começa fora da tela */
        top: 70px;
        height: calc(100% - 70px);
        width: 60%;
        max-width: 300px;
        background-color: var(--cor-branco);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0; /* Puxa o menu para dentro da tela */
    }

    .hamburger {
        display: block; /* Mostra o botão em telas pequenas */
    }
    
    /* Animação do Hambúrguer para "X" */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}