/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis simples */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --accent-color: #2c3e50;
    --card-bg: #ffffff;
}

/* Tipografia básica */
body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

/* Navegação */
.navbar {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1rem;
    font-weight: normal;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-color);
}

.navbar a:hover {
    border-bottom: 2px solid #1e3a8a;
}

.navbar a.active {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 4px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* Seção Home */
.home-section {
    display: none;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 4rem;
}

.home-section.active {
    display: flex;
}

.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: normal;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.affiliation {
    font-size: 1.1rem;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.bio {
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Links de contato */
.contact-links {
    display: table;
    width: 100%;
    margin-top: 4rem;
    border-spacing: 0 0.2rem;
}

.contact-link {
    display: table-row;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #1a252f;
}

.contact-link:hover .contact-text {
    text-decoration: underline;
}

.contact-link i {
    display: table-cell;
    font-size: 1em;
    width: 20px;
    padding-right: 0.5rem;
    vertical-align: middle;
}

.contact-text {
    display: table-cell;
    vertical-align: middle;
}


/* Seções de conteúdo */
.content-section {
    display: none;
    margin-bottom: 3rem;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--text-color);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 2rem 0 3rem;
    text-align: left;
}

/* Seção de pesquisa */
.research-highlight,
.research-interests {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
}

.interest-item i {
    font-size: 1rem;
    color: var(--accent-color);
}

/* Grid de projetos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.project-header {
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: bold;
    margin: 0;
    display: inline;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #f8f9fa;
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: normal;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: normal;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
}

.project-link:hover {
    background: var(--accent-color);
    color: white;
}

/* Seção de publicações */
.publications-section {
    margin-top: 1rem;
}

.publication-item {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.publication-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-item h3 a {
    color: var(--accent-color);
    text-decoration: none;
}

.publication-item h3 a:hover {
    text-decoration: underline;
}

.authors {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.journal {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.abstract {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 3px solid var(--accent-color);
    margin: 1.5rem 0;
}

.abstract h4 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.abstract p {
    text-align: justify;
    line-height: 1.6;
}

.publication-links {
    margin-top: 1.5rem;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.link-button:hover {
    background: #1a252f;
}

/* Seção de Ensino */
.teaching-info {
    margin-top: 1rem;
}

.teaching-experience {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.teaching-experience h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.teaching-experience h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 1.5rem 0 0.8rem;
    font-weight: bold;
}

.teaching-experience p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.teaching-experience ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.teaching-experience li {
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

/* Seção de CV */
.cv-section {
    margin-top: 1rem;
}

.cv-summary,
.cv-education,
.cv-skills,
.cv-download,
.cv-contact {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.cv-section h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.cv-section ul {
    margin-left: 1.5rem;
}

.cv-section li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 1rem;
}

.cv-button:hover {
    background: var(--accent-color);
    color: white;
}

.cv-contact p {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.content-section a {
    color: var(--accent-color);
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Botão de download */
.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #2c3e50;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
}

.download-button:hover,
.download-button:focus {
    background: #2c3e50;
    color: white;
    border: 2px solid transparent;
}

/* Design responsivo */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 1rem 1rem;
    }
    
    .navbar a {
        margin: 0 1rem;
        font-size: 0.9rem;
    }
    
    .home-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-photo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .profile-photo img {
        width: 150px;
        height: 150px;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem 3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        align-items: center;
    }
    
    .contact-link {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.3rem 0;
        gap: 0.5rem;
    }
    
    .contact-link i {
        display: block;
        text-align: center;
        order: 1;
    }
    
    .contact-text {
        display: block;
        text-align: center;
        order: 2;
    }
    
    .affiliation {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar a {
        margin: 0 0.5rem;
        font-size: 0.85rem;
    }
    
    .project-links {
        flex-direction: column;
    }
}