/* ==================================================================
// main.css
// Estilização do conteúdo, widgets e grids modulares
================================================================== */

/* 1. Containers e layout (Grid System e Cards) */
/*****************************************************************/
.grid-row { display: grid; gap: 20px; margin-bottom: 30px; width: 100%; }
.grid-100 { grid-template-columns: 1fr; }
.grid-50-50 { grid-template-columns: 1fr 1fr; }
.grid-20-80 { grid-template-columns: 2fr 8fr; }
.grid-80-20 { grid-template-columns: 8fr 2fr; }
.grid-30-70 { grid-template-columns: 3fr 7fr; }
.grid-70-30 { grid-template-columns: 7fr 3fr; }
.margin-top-5 { margin-top: 5rem; }
.margin-top-3 { margin-top: 3rem; }
.margin-top-2 { margin-top: 2rem; }
.col-1 { padding: 0px; margin-bottom: 30px; }
.col-1a { padding-bottom: 30px; margin-bottom: 50px; border-bottom: 1px solid var(--border-color); font-size: 1.2rem; }
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 20px; width: 100%; }
.col-2 > div { background-color: var(--box-bg); padding: 0px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }

/* 2. Utilitários de texto */
/*****************************************************************/
p { line-height: 1.3; margin-bottom: 16px; }
a.inline-link, a { color: var(--heading-color); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--transition-normal); }
a.inline-link:hover { border-bottom-color: var(--heading-color); }
blockquote { border-left: 4px solid var(--heading-color); background-color: rgba(90, 114, 158, 0.05); padding: 15px 20px; margin: 20px 0; font-style: italic; color: #555; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
code { background-color: #f1f5f9; color: #d90429; padding: 2px 6px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.9em; }
ul.custom-list, ol.custom-list { margin: 15px 0 20px 30px; line-height: 1.5; }
ul.custom-list li, ol.custom-list li { margin-bottom: 6px; }
/* ==== Tamanhos ==== */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: var(--font-size-sm, 0.875rem); }
.text-base { font-size: var(--font-size-base, 18px); }
.text-lg { font-size: var(--font-size-lg, 1.25rem); }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 2rem; }
/* ==== Pesos da fonte ==== */
.font-light { font-weight: 300; }
.font-regular { font-weight: var(--font-weight-regular, 400); }
.font-medium { font-weight: 500; }
.font-bold { font-weight: var(--font-weight-bold, 700); }
/* ==== Alinhamento ==== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
/* ==== Altura da linha (Line Height) ==== */
.leading-tight { line-height: 1.1; }
.leading-normal { line-height: 1.6; }
.leading-loose { line-height: 1.9; }
/* ==== Cores e Modificadores ==== */
.text-primary { color: var(--heading-color); }
.text-claro { color: var(--text-main-3)} 
.text-muted { color: var(--text-main); opacity: 0.7; }
.italic { font-style: italic; }
.mb-0 { margin-bottom: 0; }

/* 3. Página inicial (intro e redes sociais) */
/*****************************************************************/
.intro-title { font-size: 3rem; line-height: 1; font-weight: 900; color: var(--heading-color); margin: 40px 0 25px 0; }
.cover-image { width: 80%; height: auto; object-fit: cover; }
.intro-text { font-size: 1.3rem; line-height: 1.2; margin-bottom: 16px; }
.social-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 20px; margin-top: 40px; }
.social-box { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: var(--box-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; text-decoration: none; color: var(--text-main); transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal); box-shadow: var(--shadow-sm); text-align: center; }
.social-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.social-box img { width: 35px; height: 35px; transition: transform var(--transition-normal); }
.social-box:hover img { transform: scale(1.1); }
.social-box span { font-weight: 500; font-size: 0.95rem; }
[data-theme="dark"] .social-box img { filter: brightness(0.8) contrast(1.2); }

/* 4. Widgets de conteúdo (artigos e projetos) */
/*****************************************************************/
.article-item { padding: 0 0 20px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.article-item:last-child { border-bottom: none; padding-bottom: 0; }
.article-title { font-size: 1.2rem; margin-bottom: 2px; color: var(--text-main)}
.article-journal { font-size: 1rem; font-style: italic; color: var(--text-main); opacity: 0.8; margin-bottom: 10px; }
.doi-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--heading-color); text-decoration: none; font-weight: 500; padding: 0; transition: border-color 0.2s; border-bottom: 1px solid transparent; }
.doi-link::before { content: ''; display: inline-block; width: 16px; height: 16px; background-image: url('../assets/icons/doi.svg'); background-size: contain; background-repeat: no-repeat; margin-right: 0; vertical-align: middle; }
.doi-link:hover { border-bottom: 1px solid var(--heading-color); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 15px; }
.project-card { background-color: var(--box-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 25px; transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.project-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.project-card p { font-size: 0.95rem; margin-bottom: 15px; }
.tag-container { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 0.8rem; background-color: rgba(90, 114, 158, 0.1); color: var(--heading-color); padding: 4px 10px; border-radius: 20px; font-weight: 600; }

/* 5. Componentes de perfil (card, timeline, skills) */
/*****************************************************************/
.profile-card { display: flex; align-items: center; gap: 30px; padding: 20px; }
.profile-img { width: 150px; height: 150px; border-radius: var(--radius-full); object-fit: cover; border: 4px solid var(--border-color); box-shadow: var(--shadow-md); }
.profile-info h3 { margin-bottom: 5px; }
.profile-info h4 { font-weight: 500; color: var(--text-main); opacity: 0.7; margin-bottom: 15px; font-size: 1rem; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline::after { content: ''; position: absolute; width: 10px; background-color: var(--border-color); top: 0; bottom: 0; left: 20px; border-radius: 2px; }
.timeline-item { padding: 15px 30px 15px 60px; position: relative; background-color: inherit; width: 100%; }
.timeline-item::after { content: ''; position: absolute; width: 16px; height: 16px; right: auto; left: 14px; background-color: var(--box-bg); border: 4px solid var(--heading-color); top: 20px; border-radius: var(--radius-full); z-index: 1; }
.timeline-date { font-weight: bold; color: var(--heading-color); font-size: 0.9rem; margin-bottom: 8px; display: block; }
.timeline-content { background-color: var(--color-bg-surface-1); padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.timeline-content h3 { margin-bottom: 10px; font-size: 1.1rem; }
.skill-box { margin-bottom: 15px; }
.skill-name { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 5px; font-size: 0.95rem; }
.skill-bar { width: 100%; height: 8px; background-color: var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.skill-fill { height: 100%; background-color: var(--heading-color); border-radius: var(--radius-sm); }

/* 6. Métricas */
/*****************************************************************/
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; margin-top: 15px; }
.metric-card { background-color: var(--box-bg); padding: 16px 20px; text-align: center; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color-2); transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.metric-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.metric-label { font-size: 1.1rem; font-weight: 500; margin-bottom: 10px; color: var(--text-main); }
.metric-number { font-size: 4rem; font-weight: 700; line-height: 1; display: block; }
.metric-color-1, .metric-color-2 { color: #4369bb; }
.metric-color-3 { color: #4CB96E; }
.metrics-sources { font-size: 1em; margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--border-color); line-height: 1.6; }

/* 7. Elementos de formulário */
/*****************************************************************/
.form-group { display: flex; flex-direction: column; margin-bottom: 15px; }
.form-group label, .form-label { font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-bottom: 6px; display: inline-block; }
.form-control, input[type="text"], input[type="email"], input[type="number"], input[type="password"], select, textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; background-color: var(--color-bg-surface-1); color: var(--text-main); transition: border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal); }
.form-control:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--heading-color); background-color: var(--box-bg); box-shadow: 0 0 0 3px rgba(90, 114, 158, 0.15); }
.form-control:disabled, input:disabled, select:disabled, textarea:disabled { background-color: rgba(0, 0, 0, 0.05); cursor: not-allowed; opacity: 0.7; }
[data-theme="dark"] .form-control:disabled, [data-theme="dark"] input:disabled { background-color: rgba(255, 255, 255, 0.05); }
textarea { resize: vertical; min-height: 120px; }
.form-tip, .tip { font-size: 0.75rem; color: var(--text-main); opacity: 0.7; margin-top: 5px; }
/* ==== Checkboxes e radios ==== */
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 0.9rem; color: var(--text-main); }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--heading-color); }
/* ==== Estruturas em grid ==== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group.full-width { grid-column: 1 / -1; }

/* 8. Página de erro 404 */
/*****************************************************************/
.error-404-section { text-align: center; padding: 80px 40px; max-width: 600px; margin: 4em auto; border-radius: var(--radius-lg); }
.error-404-section h1 { font-size: 6rem; color: var(--heading-color); margin-bottom: 10px; line-height: 1; }
.error-404-section h2 { font-size: 3rem; margin-bottom: 20px; }
.error-404-section p { font-size: 1.1rem; }

/* 9. Páginas especiais */
/*****************************************************************/
.card-img-container { padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; border: none; box-sizing: border-box; }
.img-animated { width: 80%; object-fit: cover; border-radius: var(--radius-md); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease; filter: brightness(0.9); }
.grid-row:hover .img-animated { transform: scale(1.03); filter: brightness(1.2); }
.card-text-animated { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.card-title-bold { font-size: 3rem; font-weight: 900; letter-spacing: -0.5px; background: linear-gradient(135deg, var(--heading-color) 0%, #a2c2d3 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; display: inline-block; }
.card-subtitle { font-size: 1.5rem; font-weight: 600; color: var(--text-main); opacity: 0.85; margin-bottom: 20px; line-height: 1.4; border-left: 3px solid var(--heading-color); padding-left: 10px; }

/* 10. Efeitos */
/*****************************************************************/
/* ==== Image reveal ==== */
.img-reveal-box { position: relative; overflow: hidden; border-radius: var(--radius-md); display: flex; width: 100%; min-height: 350px; background-color: var(--box-bg); }
.img-reveal-box::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--heading-color); transform-origin: left; transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); z-index: 2; }
.img-reveal-box.active::after { transform: scaleX(0); transform-origin: right; }
.img-reveal-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 0.1s ease 0.3s, transform 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.3s; }
.img-reveal-box.active .img-reveal-img { opacity: 1; transform: scale(1); }
/* ==== Scroll reveal ==== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
/* ==== Vidro ==== */
.glass-panel { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-md, 16px); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1); padding: 25px; }
[data-theme="dark"] .glass-panel { background: rgba(29, 27, 27, 0.171); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4); }

/* 11. Componentes Elegantes (hero e animações) */
/*****************************************************************/
.hero-fullscreen { position: relative; width: 100%; min-height: 90vh; display: flex; align-items: center; justify-content: center; background: url('/assets/cover.png') no-repeat center center/cover; margin-bottom: 4rem; overflow: hidden; }
.hero-fullscreen::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2), var(--bg-color)); pointer-events: none; z-index: 1; }
.hero-content-glass { padding: 30px; position: relative; z-index: 2; width: 100%; max-width: 1000px; text-align: center; opacity: 0; animation: fadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards; }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(90px); } 100% { opacity: 1; transform: translateY(0); } }
.glass-hover { transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease; }
.glass-hover:hover { transform: translateY(-10px); box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.2); }
[data-theme="dark"] .glass-hover:hover { box-shadow: 0 20px 20px 0 rgba(3, 7, 36, 0.199); }

/* 12. Tags */
/*****************************************************************/
.ui-tag { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; border: 1px solid transparent; }
.ui-tag:hover { transform: translateY(-2px); }
/* ==== Variantes Clássicas ==== */
.ui-tag-solid-primary { background-color: var(--heading-color, #5a729e); color: #ffffff; }
.ui-tag-solid-success { background-color: #4CB96E; color: #ffffff; }
.ui-tag-solid-danger { background-color: #dc2626; color: #ffffff; }
.ui-tag-solid-warning { background-color: #d97706; color: #ffffff; }
.ui-tag-solid-dark { background-color: #1A1F26; color: #ffffff; }
/* ==== Variantes Suaves ==== */
.ui-tag-soft-primary { background-color: rgba(90, 114, 158, 0.15); color: var(--heading-color, #5a729e); }
.ui-tag-soft-success { background-color: rgba(76, 185, 110, 0.15); color: #2ea053; }
.ui-tag-soft-danger { background-color: rgba(220, 38, 38, 0.15); color: #dc2626; }
.ui-tag-soft-warning { background-color: rgba(217, 119, 6, 0.15); color: #d97706; }
.ui-tag-soft-purple { background-color: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
/* ==== Variantes de Contorno ==== */
.ui-tag-outline-primary { background-color: transparent; border-color: var(--heading-color, #5a729e); color: var(--heading-color, #5a729e); }
.ui-tag-outline-success { background-color: transparent; border-color: #4CB96E; color: #4CB96E; }
.ui-tag-outline-danger { background-color: transparent; border-color: #dc2626; color: #dc2626; }
.ui-tag-outline-warning { background-color: transparent; border-color: #d97706; color: #d97706; }
.ui-tag-outline-dark { background-color: transparent; border-color: #444444; color: #444444; }
[data-theme="dark"] .ui-tag-outline-dark { border-color: #E5E5E5; color: #E5E5E5; }
/* ==== Variantes Modernas ==== */
.ui-tag-gradient-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: #ffffff; border: none; }
.ui-tag-gradient-pink { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); color: #ffffff; border: none; }
.ui-tag-gradient-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; border: none; }
.ui-tag-gradient-dark { background: linear-gradient(135deg, #434343 0%, #000000 100%); color: #ffffff; border: none; }
/* ==== Variantes Especiais ==== */
.ui-tag-glow-primary { background-color: var(--heading-color, #5a729e); color: #ffffff; box-shadow: 0 0 12px rgba(90, 114, 158, 0.7); }
.ui-tag-glow-success { background-color: #4CB96E; color: #ffffff; box-shadow: 0 0 12px rgba(76, 185, 110, 0.7); }
.ui-tag-glass { background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.4); color: inherit; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.ui-tag-pulse { background-color: #dc2626; color: #ffffff; animation: tagPulse 2s infinite; }
@keyframes tagPulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }

/* 13. Estrutura Base das Tags ODS */
/*****************************************************************/
.ui-tag-ods { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #ffffff; white-space: nowrap; transition: transform 0.2s ease, filter 0.2s ease; border: none; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.ui-tag-ods:hover { transform: translateY(-2px); filter: brightness(1.1); }
.ui-tag-ods img, .ui-tag-ods svg { width: 14px; height: 14px; fill: currentColor; }
.ui-tag-ods .ods-icon { font-size: 1.1em; line-height: 1; }
/* ==== Cores ==== */
.ods-1 { background-color: #E5243B; }
.ods-2 { background-color: #DDA63A; }
.ods-3 { background-color: #4C9F38; }
.ods-4 { background-color: #C5192D; }
.ods-5 { background-color: #FF3A21; }
.ods-6 { background-color: #26BDE2; }
.ods-7 { background-color: #FCC30B; color: #333333; }
.ods-8 { background-color: #A21942; }
.ods-9 { background-color: #FD6925; }
.ods-10 { background-color: #DD1367; }
.ods-11 { background-color: #FD9D24; }
.ods-12 { background-color: #BF8B2E; }
.ods-13 { background-color: #3F7E44; }
.ods-14 { background-color: #0A97D9; }
.ods-15 { background-color: #56C02B; }
.ods-16 { background-color: #00689D; }
.ods-17 { background-color: #19486A; }

/*****************************************************************/
/* #1 Responsividade (media queries) */
/*****************************************************************/
/* ==== Tablet (até 1024px) ==== */
@media (max-width: 1024px) {
    .intro-title { font-size: 2.5rem; }
    .grid-row { gap: 15px; }
    .card-title-bold { font-size: 2.5rem; }
}

/* ==== Mobile (até 768px) ==== */
@media (max-width: 768px) {
    .col-1 { padding: 0; }
    .col-2, .grid-row, .grid-50-50, .grid-20-80, .grid-80-20, .grid-30-70, .grid-70-30 { grid-template-columns: 1fr; gap: 20px; }
    .card-text-animated { padding: 25px; }
    .img-animated { min-height: 220px; }
    .intro-title { font-size: 2.2rem; margin: 20px 0 15px 0; }
    .intro-text { font-size: 1.15rem; }
    .cover-image { width: 100%; }
    .margin-top-5 { margin-top: 3rem; }
    .margin-top-3 { margin-top: 2rem; }
    .timeline::after { left: 15px; }
    .timeline-item { padding: 10px 20px 10px 45px; }
    .timeline-item::after { left: 7px; width: 12px; height: 12px; }
}

/* ==== Small mobile (até 600px e 480px) ==== */
@media (max-width: 600px) {
    .profile-card { flex-direction: column; text-align: center; gap: 15px; }
    .contact-form { padding: 10px 0; }
}

@media (max-width: 480px) {
    .intro-title { font-size: 1.8rem; }
    .social-container { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .social-box { padding: 15px 10px; }
    .social-box img { width: 28px; height: 28px; }
    .metric-number { font-size: 3rem; }
    .card-title-bold { font-size: 2rem; }
    .project-card { padding: 15px; }
}