/**
 * @file style.css
 * @description Estilos principais para o site pessoal de [Seu Nome], incluindo design responsivo, animações e componentes reutilizáveis.
 * @version 4.0 (corrigida) correções integradas para remover todos os estilos inline do seu HTML.
 */


/* ---
  ÍNDICE (VERSÃO CORRIGIDA 2.0)
  ============================================
  0. CONFIGURAÇÕES GLOBAIS & DESIGN SYSTEM
  1. LAYOUT & TIPOGRAFIA COMUM
  2. COMPONENTES REUTILIZÁVEIS (Botões, Rodapé, etc.)
  3. ESTILOS DE PÁGINAS E SEÇÕES ESPECÍFICAS
     3.1. Página Inicial (#index-page) - Estilos Únicos
     3.2. Páginas Internas (Navegação)
     3.3. Seção de Projetos (Unificada)
     3.4. Seção de Publicações (Unificada)
     3.5. Seção de Contato (Unificada e Corrigida)
     3.6. Página de Privacidade
  4. CLASSES UTILITÁRIAS E DE ESTADO
  5. ANIMAÇÕES (KEYFRAMES)
  6. RESPONSIVIDADE (MEDIA QUERIES)
============================================
*/

/* ---
0. CONFIGURAÇÕES GLOBAIS & DESIGN SYSTEM
--- */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #3b82f6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #f59e0b;
    --bg-card: rgba(30, 41, 59, 0.5);
    --border: rgba(148, 163, 184, 0.1);
    --glow: rgba(16, 185, 129, 0.5);
    --glass: rgba(255, 255, 255, 0.03);
    --error: #f44336;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}
#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---
1. LAYOUT & TIPOGRAFIA COMUM
--- */
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section { margin-bottom: 80px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
p, li { color: var(--text-muted); font-size: 1.05rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { text-decoration: underline; }
.container h1 { font-size: 2rem; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 30px; }
.container h2 { font-size: clamp(1.5rem, 4vw, 1.8rem); color: var(--primary); position: relative; padding-left: 20px; margin-top: 40px; margin-bottom: 25px; }
.container h2::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 70%; background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%); border-radius: 2px; }
.section-intro { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; background: rgba(30, 41, 59, 0.3); border-radius: 12px; border-left: 3px solid var(--primary); margin: -15px 0 40px 0; padding: 20px; }

/* ---
2. COMPONENTES REUTILIZÁVEIS
--- */

/* Barra de navegação GLOBAL (padrão para páginas internas) */
nav { 
    position: sticky; 
    top: 0; 
    background: rgba(15, 23, 42, 0.95); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border); 
    z-index: 1000; 
    padding: 15px 0; 
    transition: padding 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; 
}
nav.scrolled { padding: 8px 0; }
.nav-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; padding: 0 20px; align-items: center; }

.cta-btn {
    display: inline-flex;     
    align-items: center;     
    justify-content: center; 
    gap: 8px; /* ADICIONADO: Espaço entre o ícone e o texto */
    
    /* Suas propriedades existentes */
    padding: 12px 28px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    border: 1px solid transparent; 
    position: relative; 
    overflow: hidden; /* Cuidado: Pode esconder se o SVG for muito grande */
    z-index: 1; 
    text-align: center; 
    cursor: pointer;    
}

/* ============================================================ */
/* ADICIONE ESTA NOVA REGRA para garantir a visibilidade do SVG */
/* ============================================================ */
.cta-btn svg {
    width: 18px;        /* Garante a largura (igual ao HTML) */
    height: 18px;       /* Garante a altura (igual ao HTML) */
    flex-shrink: 0;     /* Impede que o ícone encolha se não houver espaço */
    fill: currentColor; /* Faz o ícone herdar a cor do texto do botão (branco ou preto) */
}
/* ============================================================ */


/* (Suas outras regras .cta-btn::before, .cta-btn.primary, etc., permanecem iguais) */
.cta-btn::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent); 
    transition: all 0.6s ease; 
    z-index: -1; 
}
.cta-btn:hover::before { left: 100%; }
.cta-btn.primary { background: var(--primary); color: var(--dark); }
.cta-btn.primary:hover { background: var(--primary-dark); transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
.cta-btn.secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.cta-btn.secondary:hover { background: rgba(16, 185, 129, 0.1); transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2); }

/* ========================================================================
   CORREÇÃO 1: Botão centralizado com Flexbox
   ======================================================================== */
.link-btn {
    display: inline-flex;     /* MUDANÇA: 'inline-block' para 'inline-flex' */
    align-items: center;     /* ADICIONADO: Alinha o texto verticalmente */
    justify-content: center; /* ADICIONADO: Alinha o texto horizontalmente */
    
    padding: 10px 16px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    text-align: center;      /* Mantido para segurança */
    cursor: pointer;
}
/* ======================================================================== */

.link-btn:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35); transform: translateY(-2px); text-decoration: none; color: #fff !important; }
.link-btn.secondary { background: transparent; color: var(--primary) !important; box-shadow: none; }
.link-btn.secondary:hover { background: rgba(16, 185, 129, 0.12); color: var(--primary) !important; transform: translateY(-2px); }

/* --- ADICIONADO: Classe para botões pequenos (remove style inline) --- */
.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}
/* --- FIM ADIÇÃO --- */

/* Estilo base unificado para o botão de idioma */
.lang-switcher {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s, opacity 0.3s, transform 0.3s;
}
.lang-switcher:hover {
    background: var(--primary);
    color: var(--dark);
}
.lang-switcher .lang-pt.active, .lang-switcher .lang-en.active {
    color: var(--text);
    font-weight: 700;
}

/* Estilo específico para o botão fixo da página inicial */
.lang-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}
/* Esconde o botão fixo ao rolar a página */
body.scrolled .lang-fixed {
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    pointer-events: none;
}

/* Estilo para o botão que aparece na barra de navegação da home ao rolar */
#index-page .nav-col-right .lang-switcher {
    opacity: 0;
    transform: scale(0);
}
#index-page nav.scrolled .nav-col-right .lang-switcher {
    opacity: 1;
    transform: scale(1);
}
.lang-switcher { background: var(--bg-card); border: 1px solid var(--primary); color: var(--primary); padding: 8px 12px; border-radius: 20px; cursor: pointer; backdrop-filter: blur(10px); font-weight: 500; line-height: 1; white-space: nowrap; transition: background 0.3s, color 0.3s; }
.lang-switcher:hover { background: var(--primary); color: var(--dark); }
.lang-switcher .lang-pt.active, .lang-switcher .lang-en.active { color: var(--text); font-weight: 700; }

footer { background: rgba(15, 23, 42, 0.95); border-top: 1px solid var(--border); padding: 60px 20px 40px; text-align: left; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-column h4 { color: var(--primary); margin-bottom: 15px; font-size: 1.1rem; position: relative; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.footer-column h4::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--primary); }
/* --- ADICIONADO: Seletor para h4 escondido (remove style inline) --- */
.footer-grid .footer-column:nth-child(5) h4 {
    visibility: hidden;
}
.footer-column p, .footer-column ul li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }
/* --- ADICIONADO: ul após p (remove style inline) --- */
.footer-column p + ul {
    margin-top: 15px;
}
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 10px; }
/* --- ADICIONADO: Estilo para li de localização (remove style inline) --- */
.footer-column ul li[data-key="footer-location"] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    padding-top: 10px;
}
.footer-column ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; display: flex; align-items: center; gap: 8px; }
.footer-column ul li a:hover { color: var(--primary); }
.footer-column ul li a svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-column ul li a .icon-img { width: 16px; height: 16px; flex-shrink: 0; background-color: var(--text-muted); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: background-color 0.3s ease; }
.footer-column ul li a:hover .icon-img { background-color: var(--primary); }
.icon-licae { -webkit-mask-image: url(LICAE.svg); mask-image: url(LICAE.svg); }
.icon-conectagem { -webkit-mask-image: url(ConectaGEM.svg); mask-image: url(ConectaGEM.svg); }
.icon-doi { -webkit-mask-image: url(https://upload.wikimedia.org/wikipedia/commons/1/11/DOI_logo.svg); mask-image: url(https://upload.wikimedia.org/wikipedia/commons/1/11/DOI_logo.svg); }
.footer-bottom { padding-top: 30px; margin-top: 30px; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; }
/* --- ALTERADO: margin-top (remove style inline) --- */
.footer-license { margin-top: 20px; margin-bottom: 15px; font-size: 0.8rem; color: var(--text-muted); }
.footer-license a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.footer-license a:hover { color: var(--primary); }
.footer-update { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; }
.footer-update svg { width: 14px; height: 14px; }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--primary); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 1000; box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--primary-dark); transform: translateY(-5px); }

/* ========================================================================
   Componente: Notificação (Toast) - VERSÃO CORRIGIDA GLOBAL
   Garante que a notificação funcione em TODAS as páginas.
   ======================================================================== */

#toast-notification {
    visibility: hidden; /* Começa escondido */
    opacity: 0;
    position: fixed;    /* ESSENCIAL: Faz o elemento flutuar sobre a página */
    z-index: 2000;      /* Garante que fique na frente de tudo */
    bottom: 30px;
    right: 30px;        /* Posição no canto inferior direito, como na sua imagem */
    
    min-width: 250px;
    background-color: var(--primary);
    color: var(--dark);
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    
    /* Transição suave para aparecer e desaparecer */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0.5s;
    transform: translateY(20px); /* Começa um pouco abaixo para um efeito de subida */
}

/* Classe adicionada via JavaScript para mostrar a notificação */
#toast-notification.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Move para a posição final */
}

/* ---
3. ESTILOS DE PÁGINAS E SEÇÕES ESPECÍFICAS
--- */

/* 3.1. Página Inicial (#index-page) - Estilos Únicos */

/* ========================================================================
   CORREÇÃO 2: Barra de Navegação Dinâmica
   ======================================================================== */

/* ADICIONADO: Torna a nav da Home transparente por padrão */
#index-page nav {
    background: transparent;
    border-bottom: 1px solid transparent; /* Esconde a borda tbm */
    box-shadow: none; /* Garante que não há sombra */
    /* A transição já está no seletor 'nav' global */
}

/* ADICIONADO: Define o estilo 'scrolled' para a nav da Home */
#index-page nav.scrolled {
    background: rgba(15, 23, 42, 0.95); /* Cor sólida ao rolar */
    border-bottom-color: var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* ======================================================================== */


#index-page .nav-col-left { justify-self: start; }
#index-page .nav-col-center { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; }
#index-page .nav-col-right { justify-self: end; }

/* O seu CSS existente já esconde/mostra o avatar com 'nav.scrolled' */
#index-page .nav-avatar { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary); transform: scale(0); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; box-shadow: 0 0 10px var(--glow); }
#index-page nav.scrolled .nav-avatar { transform: scale(1); opacity: 1; }

#index-page .nav-link { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.3s ease, transform 0.3s ease; position: relative; }
#index-page .nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
#index-page .nav-link:hover, #index-page .nav-link.active { color: var(--primary); transform: translateY(-2px); }
#index-page .nav-link:hover::after, #index-page .nav-link.active::after { width: 100%; }
#index-page header { position: relative; padding: 100px 20px 60px; text-align: center; background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.15) 0%, transparent 60%), linear-gradient(270deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9)); background-size: 200% 200%; border-bottom: 1px solid var(--border); animation: animated-gradient 15s ease-infinite; }
#index-page .hero-content { max-width: 900px; margin: 0 auto; animation: fadeInUp 0.8s ease; }
#index-page .avatar { width: 280px; height: 280px; border-radius: 50%; border: 4px solid var(--primary); box-shadow: 0 0 40px var(--glow); margin: 0 auto 30px; display: block; animation: glow 3s ease-in-out infinite; }
#index-page header h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; margin-bottom: 10px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; border-bottom: none; padding-bottom: 0; }
#index-page .subtitle { font-size: clamp(1.1rem, 3vw, 1.3rem); color: var(--text-muted); margin-bottom: 25px; font-weight: 300; height: 1.6em; min-height: 1.6em; }
#index-page .subtitle::after { content: '▋'; animation: blink 0.7s infinite; color: var(--primary); font-weight: 400; }
#index-page .hero-cta { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
#index-page .badges { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin: 30px 0; }
#index-page .badge { background: var(--bg-card); border: 1px solid var(--border); padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; color: var(--primary); backdrop-filter: blur(10px); transition: all 0.3s ease; }
#index-page .badge:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3); border-color: var(--primary); }
#index-page .scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
#index-page .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 25px; backdrop-filter: blur(10px); transition: all 0.3s ease; position: relative; overflow: hidden; }
#index-page .card:hover { transform: translateY(-5px); border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 5px 30px rgba(16, 185, 129, 0.2); }
#index-page .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(120px circle at var(--mouse-x) var(--mouse-y), rgba(16, 185, 129, 0.3), transparent 80%); border-radius: inherit; opacity: 0; transition: opacity 0.4s; z-index: 1; }
#index-page .card:hover::before { opacity: 1; }
#index-page .card > * { position: relative; z-index: 2; }
#index-page .card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.2rem; text-align: left;}
/* --- ALTERADO: Regra para parágrafos (remove style inline) --- */
#index-page .card p:not(.citations) {
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 20px; /* Adicionado para p2 e p3 */
}
#index-page #sobre .card p:first-of-type { /* Específico para o p1 do Sobre */
    font-size: 1.1rem;
    margin-top: 0;
}
/* --- FIM ALTERAÇÃO --- */
#index-page .icon { font-size: 2rem; margin-bottom: 15px; display: block; position: relative; overflow: hidden; }
#index-page .icon::after { content: ''; position: absolute; top: 0; transform: translateX(-100%); width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); }
#index-page .card.visible .icon::after { animation: shine-effect 2.5s ease-in-out infinite; }
#index-page .timeline { position: relative; padding: 20px 0; }
#index-page .timeline::before { content: ''; position: absolute; left: 30px; top: 0; height: 100%; width: 2px; background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%); }
#index-page .timeline-item { position: relative; padding-left: 70px; margin-bottom: 40px; }
#index-page .timeline-dot { position: absolute; left: 24px; top: 15px; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 20px var(--glow); transition: transform 0.3s ease; }
#index-page .timeline-item:hover .timeline-dot { transform: scale(1.5); }
#index-page .timeline-content.card { padding: 25px; }
/* --- ADICIONADO: margin-top para .small-muted (remove style inline) --- */
#index-page .timeline-header + .small-muted {
    margin-top: 5px;
}
#index-page .timeline-date { color: var(--accent); font-weight: 600; margin-bottom: 5px; }
#index-page .timeline-details { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; color: var(--text-muted); }
#index-page .timeline-item.expanded .timeline-details { max-height: 200px; }
#index-page .toggle-details-btn { background: none; border: 1px solid var(--primary); color: var(--primary); padding: 5px 10px; border-radius: 5px; cursor: pointer; margin-top: 15px; transition: all 0.3s; }
#index-page .toggle-details-btn:hover { background: rgba(16, 185, 129, 0.1); }
#index-page .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 20px; }
#index-page .skill-category.card { padding: 25px; }
#index-page .skill-category h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); position: relative; }
#index-page .skill-category h3::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 50px; height: 2px; background: var(--primary); }
#index-page .skill-item { display: flex; align-items: center; margin-bottom: 18px; font-size: 1rem; opacity: 0; transform: translateX(-20px); transition: opacity 0.5s ease, transform 0.5s ease; }
#index-page .skill-item.visible { opacity: 1; transform: translateX(0); }
#index-page .skill-name { width: 40%; color: var(--text); padding-right: 15px; font-weight: 500; }
#index-page .skill-bar-container { width: 60%; height: 10px; background-color: var(--dark-light); border-radius: 5px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
#index-page .skill-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%); border-radius: 5px; transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1); will-change: width; transform: translateZ(0); }
#index-page .skill-item.visible .skill-bar { width: var(--proficiency-level); }
/* --- ALTERADO: Adicionado margin-top (remove style inline) --- */
#index-page .scholar-summary-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 30px; margin-bottom: 40px; margin-top: 25px; }
#index-page .scholar-header { display: flex; align-items: center; gap: 15px; }
#index-page .scholar-header svg { width: 40px; height: 40px; color: #4285F4; }
#index-page .scholar-header h3 { margin: 0; font-size: 1.5rem; color: var(--text); }
#index-page .scholar-metrics { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
#index-page .metric-item { text-align: center; }
#index-page .metric-value { font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; }
#index-page .metric-label { font-size: 0.9rem; color: var(--text-muted); }
#index-page .scholar-chart-container { width: 100%; min-height: 450px; margin: 30px auto 0; }
#index-page .feature-section.card { padding: 40px; }
#index-page .feature-section { display: grid; grid-template-columns: 1fr; gap: 40px; }
/* --- ADICIONADO: margin-top para o segundo card (remove style inline) --- */
#index-page .feature-section + .feature-section {
    margin-top: 40px;
}
#index-page .feature-logo { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
#index-page .feature-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(125deg) brightness(95%) contrast(80%); }
#index-page .feature-content h3 { color: var(--primary); font-size: 1.8rem; margin-bottom: 10px; }
#index-page .feature-content p { color: var(--text-muted); margin-bottom: 20px; }
#index-page .feature-list { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
#index-page .feature-list li { display: flex; align-items: center; gap: 10px; }
#index-page .feature-list li::before { content: '✔️'; color: var(--primary); font-size: 1.2rem; }
#index-page .nav-toggle-checkbox { display: none; }
#index-page .nav-toggle-label { display: none; cursor: pointer; z-index: 1002; padding: 10px; }
#index-page .hamburger, #index-page .hamburger::before, #index-page .hamburger::after { content: ''; display: block; width: 24px; height: 2px; background-color: var(--primary); border-radius: 3px; position: relative; transition: all 0.3s ease-in-out; }
#index-page .hamburger::before { top: -7px; }
#index-page .hamburger::after { top: 5px; }
#index-page .nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger { transform: rotate(135deg); }
#index-page .nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger::before { top: 0; transform: rotate(90deg); }
#index-page .nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger::after { top: 0; transform: rotate(90deg); opacity: 0; }

/* 3.2. Páginas Internas (Navegação) */
body:not(#index-page) .nav-brand { justify-self: start; }
body:not(#index-page) .nav-brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
body:not(#index-page) .nav-avatar { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary); box-shadow: 0 0 10px var(--glow); }
body:not(#index-page) .nav-brand-text { color: var(--text); font-weight: 600; font-size: 1.1rem; }
body:not(#index-page) .nav-actions { justify-self: end; display: flex; align-items: center; gap: 15px; }
body:not(#index-page) .nav-title-container { text-align: center; }
body:not(#index-page) .nav-title { font-size: 1.1rem; color: var(--text); font-weight: 600; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 0; margin-bottom: 0; }
body:not(#index-page) nav.scrolled .nav-title { opacity: 1; visibility: visible; transform: translateY(0); }

/* 3.3. Seção de Projetos (Unificada) */
.sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 30px; backdrop-filter: blur(10px); box-shadow: 0 10px 35px rgba(2, 6, 23, 0.4); }
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.controls input { flex: 1; min-width: 160px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--glass); color: var(--text); transition: all 0.3s ease; }
.controls input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); outline: none; }
.controls button { padding: 10px 14px; border-radius: 12px; border: none; background: var(--primary); color: #042017; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.controls button:hover { background: var(--primary-dark); transform: translateY(-2px); }
/* --- ALTERADO: Adicionado margin-top (remove style inline) --- */
.projects { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
#page-projects .projects-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.project-card { background: rgba(255, 255, 255, 0.03); border-radius: 14px; padding: 16px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; transition: all 0.35s ease; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 6px 28px rgba(16, 185, 129, 0.15); }
#page-projects .project-card { min-height: 180px; }
.project-top h3 { margin: 0; font-size: 1.05rem; color: var(--primary); font-weight: 600; }
.project-description, .project-desc { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; flex-grow: 1; }
.project-topics { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.topic-tag { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: var(--secondary); padding: 3px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.topic-tag:hover, .topic-tag.active { background: var(--secondary); color: var(--dark); transform: scale(1.05); }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.meta-badge { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.language-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 50px; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.35); color: var(--secondary); font-size: 0.85rem; font-weight: 600; text-transform: capitalize; transition: all 0.3s ease; }
.language-badge:hover { background: var(--secondary); color: var(--dark); transform: scale(1.05); }
/* CORREÇÃO: Aumenta o espaçamento dos botões de ação */
.project-card .actions { margin-top: auto; padding-top: 10px; display: flex; gap: 15px; }


/* 3.4. Seção de Publicações (Unificada) */
.publication-card { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.publication-card.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 25px; backdrop-filter: blur(10px); transition: all 0.3s ease; }
.publication-card.card:hover { transform: translateY(-5px); border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 5px 30px rgba(16, 185, 129, 0.2); }
.publication-card h3 { color: var(--primary); font-size: 1.2rem; }
.publication-card > a { color: var(--primary); text-decoration: none; font-weight: 500; transition: color 0.3s ease; margin-top: auto; padding-top: 10px; }
.publication-card > a:hover { color: var(--primary-dark); }
.publication-meta { font-size: 0.9rem; color: var(--text-muted); }
.publication-card .citations { font-size: 0.9rem; color: var(--accent); font-weight: bold; }
.publication-doi { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 0.9rem; }
.publication-doi img { width: 20px; height: 20px; }
.publication-doi a { color: var(--text-muted); text-decoration: none; word-break: break-all; transition: color 0.3s ease; }
.publication-doi a:hover { color: var(--primary); }

/* style.css */

/* 3.5. Seção de Contato (VISUAL MELHORADO) */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px; /* Aumenta o espaço entre o formulário e os links */
    align-items: flex-start;
}
@media(min-width: 992px) {
    .contact-container { grid-template-columns: 2fr 1fr; }
}

/* Estilos do formulário */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { position: relative; }
.form-group label { display: block; color: var(--text-muted); margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; background-color: var(--glass); border: 1px solid var(--border); color: var(--text); padding: 14px; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px var(--glow); }
.form-group input.error, .form-group textarea.error { border-color: var(--error); }
.error-message { color: var(--error); font-size: 0.8rem; margin-top: 5px; display: none; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* Estilos para o botão de envio com ícone */
.contact-form button.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 1rem;
}
/* --- ALTERADO: Adicionado width/height (remove atributos inline) --- */
.contact-form button.link-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.contact-form button.link-btn:hover svg {
    transform: translateX(3px) rotate(15deg);
}

/* Estilos dos Links Rápidos */
.contact-links-aside h3 { margin-bottom: 20px; color: var(--primary); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    perspective: 1000px; /* Adiciona perspectiva para o efeito 3D */
}

/* Novo estilo para os links rápidos */
.contact-link {
    display: flex;
    flex-direction: row; /* Ícone e texto lado a lado */
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
}
.contact-link:hover {
    transform: scale(1.03) rotateY(3deg) translateX(5px); /* Efeito 3D */
    border-color: var(--primary);
    box-shadow: 0 8px 35px rgba(16, 185, 129, 0.3);
}
.contact-link svg {
    width: 24px; /* Tamanho ajustado */
    height: 24px;
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.contact-link:hover svg {
    transform: scale(1.1) rotate(-5deg);
}
.contact-link span {
    font-size: 1rem;
    font-weight: 500;
}

/* 3.6. Página de Privacidade */
#page-privacy .container { max-width: 800px; margin: 60px auto; padding: 40px; background: var(--dark-light); border-radius: 16px; border: 1px solid var(--border); }

/* ---
4. CLASSES UTILITÁRIAS E DE ESTADO
--- */
.small-muted { font-size: 0.9rem; color: var(--text-muted); padding-left: 20px; }

/* O seletor .center é uma classe utilitária. 
  A adição de 'flex-wrap: wrap' é uma segurança 
  para caso os dois botões não caibam lado a lado.
*/
.center { 
    display: flex; 
    justify-content: center;
    flex-wrap: wrap; /* Permite que os botões quebrem a linha se necessário */
    gap: 15px;       /* Define um espaçamento padrão */
}

.hidden { display: none; }

/* CORREÇÃO (Estilo Base = Mobile)
  O container agora é empilhado e centrado por padrão.
*/
.load-more-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column; /* Empilha verticalmente por padrão */
    align-items: center;     /* Centra tudo */
    gap: 15px;               /* Espaçamento entre o texto e os botões */
}

.back-to-home-container { margin-top: 40px; text-align: center; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-children .reveal { transition-delay: calc(var(--stagger-index) * 120ms); }
.animate-spin { animation: spin 1s linear infinite; }
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 25px; height: 220px; overflow: hidden; position: relative; }
.skeleton-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent); animation: shimmer 1.5s infinite linear; }
#page-projects .skeleton-card { height: 120px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px dashed rgba(255,255,255,0.02); }

/* ---
5. ANIMAÇÕES (KEYFRAMES)
--- */
@keyframes animated-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px var(--glow); } 50% { box-shadow: 0 0 40px var(--glow), 0 0 60px rgba(16, 185, 129, 0.3); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes shine-effect { 0% { transform: translateX(-150%) skewX(-30deg); } 100% { transform: translateX(250%) skewX(-30deg); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---
6. RESPONSIVIDADE (MEDIA QUERIES)
--- */

/* ADICIONADO: Media query para o .load-more-container (botões de projetos) */
@media (min-width: 768px) {
    .load-more-container {
        flex-direction: row;          /* Coloca lado a lado */
        justify-content: space-between; /* Volta ao layout original de desktop */
        align-items: center;          /* Alinha verticalmente */
    }
}

@media(min-width: 768px) { #index-page .feature-section { grid-template-columns: auto 1fr; align-items: center; text-align: left; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }

@media (max-width: 1024px) { #page-projects .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { #page-projects .projects-grid { grid-template-columns: 1fr; } }

@media (max-width: 992px) {
    #index-page .nav-container { grid-template-columns: 1fr auto 1fr; padding: 0 15px; }
    #index-page .nav-toggle-label { display: block; justify-self: center; }
    #index-page .nav-col-center { position: fixed; top: 75px; left: -300px; min-width: 240px; padding: 10px; background: rgba(30, 41, 59, 0.9); backdrop-filter: blur(15px); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); flex-direction: column; align-items: flex-start; gap: 4px; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; opacity: 0; z-index: 1001; }
    #index-page .nav-toggle-checkbox:checked ~ .nav-col-center { left: 15px; opacity: 1; }
    #index-page .nav-col-center .nav-link { padding: 10px; width: 100%; border-radius: 5px; }
    #index-page .nav-col-center .nav-link:hover { background-color: var(--primary); color: var(--dark); }
    #index-page .nav-col-center .nav-link::after { display: none !important; }
}

@media (max-width: 768px) {
    body:not(#index-page) .nav-container { grid-template-columns: auto 1fr auto; gap: 15px; padding: 0 15px; }
    body:not(#index-page) .nav-avatar { width: 40px; height: 40px; }
    body:not(#index-page) .nav-brand-text, body:not(#index-page) .nav-title { font-size: 1rem; }
}
@media (max-width: 520px) { #page-projects .project-top { flex-direction: column; gap: 6px; } #page-projects .project-meta { gap: 8px; } }
@media (max-width: 480px) { body:not(#index-page) .nav-brand-text { display: none; } }