/* Estilos Gerais */
:root {
    --primary-color: #4CAF50; /* Verde */
    --secondary-color: #333;   /* Cinza escuro */
    --text-color: #555;      /* Cinza médio */
    --bg-light: #f4f4f4;    /* Cinza claro para seções alternadas */
    --bg-dark: #222;       /* Fundo escuro para cabeçalho/rodapé */
    --white: #fff;
    --border-color: #ddd;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    color: var(--white);
}

h2 {
    font-size: 2em;
}

p {
    margin-bottom: 1em;
}

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

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.btn:hover {
    background-color: #45a049; /* Um pouco mais escuro */
    text-decoration: none;
}

/* Cabeçalho (Hero Section) */
.hero {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative; /* Para posicionar elementos filhos, se houver */
}

.hero .subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ccc;
}

/* Navegação */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas pequenas */
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    color: var(--white);
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Seções */
.section {
    padding: 60px 0;
    text-align: center;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Habilidades (Skills Grid) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.skill-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.skill-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    text-align: left;
    margin-bottom: 10px;
}

.skill-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-item li {
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Linha do Tempo (Experiência) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box; /* Garante que padding e border sejam incluídos na largura */
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -7px;
    background-color: var(--primary-color);
    border: 2px solid var(--white);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-item h3 {
    text-align: left;
    margin-top: 0;
    color: var(--secondary-color);
}

.timeline-item .company {
    font-weight: bold;
    color: var(--primary-color);
}

.timeline-item .dates {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

.timeline-item ul {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
}

/* Formação Acadêmica */
.education-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.education-item h3 {
    color: var(--secondary-color);
    margin-top: 0;
    text-align: left;
}

.education-item .institution {
    font-weight: bold;
    color: var(--primary-color);
}

.education-item .dates {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

/* Contato */
address {
    font-style: normal;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box; /* Inclui padding e borda na largura total */
}

.form-group textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
}

/* Rodapé */
footer {
    background-color: var(--bg-dark);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
    }

    .nav-list li {
        margin: 10px 0;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent white;
    }

    .timeline-item::after {
        left: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
}