/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #2e5c3a;    /* Verde Escuro */
    --secondary-color: #27ae60;  /* Verde */
    --background-color: #eaf5eb; /* Verde Leve */
    --text-color: #2d4033;       /* Texto Esverdeado */
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --footer-bg: var(--primary-color);
    --footer-text: #eaf5eb;
    --light-border: #a3c2ac;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Header & Navegação */
.main-header {
    background: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Seção Sobre (Hero) */
#about {
    background: var(--card-bg);
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--secondary-color);
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.about-text h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.about-text .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Seção Formação Acadêmica */
#academic-formation {
    background: var(--background-color);
}
.formation-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.formation-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15);
}
.formation-card .degree {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}
.formation-card .period {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.formation-card .institution {
    font-weight: 700;
    margin-bottom: 1rem;
}
.formation-card .thesis-title {
    font-style: italic;
    font-size: 0.9rem;
    border-left: 3px solid var(--light-border);
    padding-left: 1rem;
    margin-top: 1rem;
}

/* Seção Citações */
#citations {
    background: var(--primary-color);
}
#citations h2 {
    color: white;
}
#citations h2::after {
    background: var(--card-bg);
}
.citations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
    color: white;
}
.citation-card {
    background: rgba(255,255,255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}
.citation-card:hover {
    background: rgba(255,255,255, 0.2);
}
.citation-card .count {
    font-size: 3rem;
    font-weight: 700;
}
.citation-card .platform {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.citation-card .h-index {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Seção Publicações */
.publication-list {
    list-style: none;
}
.publication-item {
    background: var(--card-bg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.publication-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.publication-item .authors {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.publication-item .details {
    font-weight: 600;
    margin-bottom: 1rem;
}
.publication-item .doi-link {
    display: inline-block;
    text-decoration: none;
    background: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.publication-item .doi-link:hover {
    background: #219d53;
}

/* Atuação e Projetos */
.professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.grid-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.grid-item ul {
    list-style-position: inside;
}
.grid-item li {
    margin-bottom: 0.5rem;
}

/* Formação Complementar */
.complementary-courses ul {
    list-style: none;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 2rem;
}
.complementary-courses li {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    break-inside: avoid-column;
}
.course-title {
    font-weight: 700;
}
.institution {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Footer */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 3rem 0;
}
.footer-socials a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}
.footer-socials a:hover {
    color: var(--secondary-color);
}

/* Animações e Responsividade */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .professional-grid {
        grid-template-columns: 1fr;
    }
}

/* Settings Dropdown */
.nav-settings {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}
#settings-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s;
    margin-top: 3px;
}
#settings-btn:hover {
    color: var(--secondary-color);
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--light-border);
}
.dropdown-content.show {
    display: block;
}
.dropdown-content div {
    margin-bottom: 10px;
}
.dropdown-content span {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 0.9rem;
}
.dropdown-content a, .theme-switch button {
    color: var(--text-color);
    padding: 5px 10px;
    text-decoration: none;
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
    font-family: inherit;
}
.dropdown-content a:hover, .theme-switch button:hover {
    background-color: var(--background-color);
    color: var(--secondary-color);
}
.dropdown-content a.active {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Dark Mode */
body.dark-mode {
    --primary-color: #a3c2ac;
    --secondary-color: #27ae60;
    --background-color: #121e15;
    --text-color: #eaf5eb;
    --header-bg: #1a2a1e;
    --card-bg: #1a2a1e;
    --footer-bg: #0a110c;
    --light-border: #2d4033;
}
body.dark-mode .formation-card,
body.dark-mode .grid-item,
body.dark-mode .publication-item {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Print Specific */
@media print {
    .print-hide, .main-header, .main-footer {
        display: none !important;
    }
    body { background-color: white !important; color: black !important; }
    .container { max-width: 100%; padding: 0; }
    #about { padding-top: 0; }
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--header-bg);
        position: absolute;
        top: 60px; /* Below header */
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding-bottom: 1rem;
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 15px 0;
    }

    .nav-settings {
        margin-left: 0;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: 100%;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .profile-pic {
        width: 200px;
        height: 200px;
    }
    .citations-grid {
        grid-template-columns: 1fr;
    }
    .complementary-courses ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
}