/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* contem o menu mobile, que fica deslocado para fora da viewport.
       clip em vez de hidden para nao criar contexto de rolagem proprio */
    overflow-x: clip;
}

/* CSS Variables */
:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: rgba(34, 197, 94, 0.12);
    --dark: #0a1410;
    --dark-2: #10201a;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.18);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 30px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    /* o menu mobile fechado fica em right:-100% e puxava a pagina de lado */
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 0;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 20, 16, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
}

.navbar-container {
    width: 100%;
    max-width: 1800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-badge {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.04em;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-mark {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.45));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.logo-lockup {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.18em;
    transition: color 0.35s ease;
}

.logo-sub {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    color: var(--primary);
    margin-top: 0.22rem;
}

.logo-badge:hover .logo-mark {
    transform: scale(1.08);
    filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.75));
}

.logo-badge:hover .logo-title {
    color: var(--primary);
}

@media screen and (max-width: 768px) {
    .logo-mark {
        width: 50px;
        height: 50px;
    }

    .logo-title {
        font-size: 1.45rem;
    }

    .logo-sub {
        font-size: 0.64rem;
    }
}

@media screen and (max-width: 480px) {
    .logo-lockup {
        display: none;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5rem;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

/* Sublinhado animado no hover */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--primary);
}

/* Link ativo */
.nav-links li a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* fundo em CSS puro: substitui a foto de 2,4 MB que pesava 93% da home */
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(34, 197, 94, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 105%, rgba(34, 197, 94, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 12% 88%, rgba(22, 163, 74, 0.10) 0%, transparent 55%),
        linear-gradient(165deg, #0d1f18 0%, var(--dark) 45%, #060d0a 100%);
}



.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    /* leve escurecimento nas bordas para o texto central ganhar contraste */
    background: radial-gradient(ellipse 75% 65% at 50% 48%, transparent 0%, rgba(6, 13, 10, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}



/* About Section */
.about {
    padding: 5rem 10%;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-image {
    flex-shrink: 0;
}

.about-profile-img {
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--primary);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3436;
}

.about-highlight {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-highlight h3 {
    color: #22c55e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-value {
    margin: 2rem 0;
}

.about-value h3 {
    color: #22c55e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.value-list {
    list-style: none;
    padding: 0;
}

.value-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.value-list i {
    color: #22c55e;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.about-closing {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3436;
    font-style: italic;
    margin: 2rem 0;
}

.skills {
    margin-top: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-tags span {
    padding: 0.5rem 1rem;
    background: #f1f2f6;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags i {
    font-size: 1.1rem;
}

.skill-tags .fa-python {
    color: #3776AB;
}

.skill-tags .fa-database {
    color: #E48E00;
}

.skill-tags .fa-chart-bar {
    color: #F2C811;
}

.skill-tags .fa-r-project {
    color: #276DC3;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0.3rem;
    vertical-align: middle;
}

.skill-tags .r-logo {
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
    margin-right: 0.3rem;
}

.skill-tags .ml-logo {
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
    margin-right: 0.3rem;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 10%;
    background: #f5f7fa;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 197, 94, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    padding: 2rem;
    text-align: center;
    color: white;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #22c55e;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 10%;
    background: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: #333;
    font-size: 2.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #22c55e;
}

/* Footer */
/* Projeto de codigo fechado: sem link, sem cursor de clique */
.project-card-private {
    cursor: default;
}

.project-card-private .project-overlay {
    background: rgba(10, 20, 16, 0.82);
}

.project-card-private .project-overlay span {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.92);
}

/* ===== Hero: bloco de texto ===== */
.hero-greeting {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0.9rem;
}

.hero-title {
    margin: 0 0 1.1rem;
    line-height: 1;
}

.hero-name {
    /* tipografia fluida: cresce com a tela sem nunca quebrar o nome ao meio */
    display: inline-block;
    font-size: clamp(2.9rem, 8.4vw, 6.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    white-space: nowrap;
    padding-bottom: 0.06em;
}

/* Cores solidas de verdade, nao recorte de gradiente.
   A versao anterior pintava o texto de transparente e mostrava um
   gradiente por tras; onde esse recorte falha (outro navegador,
   extensao de tema escuro, alto contraste) o nome sumia no fundo. */
.hero-name-a {
    color: #ffffff;
}

.hero-name-b {
    color: #34d97b;
}

/* Sem gradiente recortado no texto, de proposito. Alem de sumir quando o
   recorte falha, ele clareava "Ribeiro" ate quase branco e diluia o verde
   da marca. Duas cores solidas leem melhor e nao dependem de nada. */

.hero-role {
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
    margin-bottom: 1.6rem;
}

.hero-role span {
    color: var(--primary);
    font-weight: 400;
    margin: 0 0.15em;
}

/* linha de digitacao com cara de terminal */
.hero-typing-container {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(0.95rem, 1.7vw, 1.12rem);
    padding: 0.5rem 1.3rem;
    margin-bottom: 1.9rem;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: var(--radius-lg);
    background: rgba(34, 197, 94, 0.07);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* comporta o maior texto da lista para a pilula nao mudar de tamanho */
    min-width: 25rem;
    justify-content: center;
}

.typing-prefix {
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
}

.hero-typing-container .typing-text {
    color: var(--primary);
    font-weight: 600;
}

.hero-typing-container .cursor {
    color: var(--primary);
    margin-left: -0.42rem;
}

@media screen and (max-width: 768px) {
    .hero-greeting {
        font-size: 0.82rem;
        letter-spacing: 0.26em;
    }

    .hero-typing-container {
        gap: 0.35rem;
        padding: 0.45rem 1rem;
    }

    .hero-typing-container {
        min-width: 0;
        width: 100%;
        max-width: 21rem;
    }
}

/* a navbar e' fixa: garante folga ao chegar por ancora do menu */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Trajetoria: botao de abrir ===== */
.timeline-toggle {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1rem;
    padding: 1.2rem 1.6rem;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    background: var(--white);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-toggle:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.timeline-toggle:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.5);
    outline-offset: 3px;
}

.timeline-toggle-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.25rem;
}

.timeline-toggle-text {
    flex: 1;
    min-width: 0;
}

.timeline-toggle-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.timeline-toggle-sub {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.timeline-toggle-arrow {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1rem;
    transition: transform 0.35s ease;
}

.timeline-toggle[aria-expanded="true"] .timeline-toggle-arrow {
    transform: rotate(180deg);
}

/* painel recolhivel: 0fr -> 1fr anima altura sem precisar saber o valor */
.timeline-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-panel.is-open {
    grid-template-rows: 1fr;
}

.timeline-panel-inner {
    overflow: hidden;
    /* enquanto fechado, o conteudo sai da ordem de foco e dos leitores */
    visibility: hidden;
    transition: visibility 0s linear 0.45s;
}

.timeline-panel.is-open .timeline-panel-inner {
    visibility: visible;
    transition-delay: 0s;
}

.timeline-panel .timeline-legend {
    padding-top: 2.2rem;
}

@media screen and (max-width: 768px) {
    .timeline-toggle {
        gap: 0.9rem;
        padding: 1rem 1.1rem;
    }

    .timeline-toggle-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .timeline-toggle-title { font-size: 1rem; }
    .timeline-toggle-sub   { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-panel,
    .timeline-toggle-arrow {
        transition: none;
    }
}

/* ===== Trajetoria ===== */
.timeline-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    margin: 0 auto 3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-legend-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* marcador sobre a linha vertical */
/* o item atual pulsa discretamente */
@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--light), 0 0 0 5px var(--marker), 0 0 0 5px rgba(161, 98, 7, 0.5); }
    50%      { box-shadow: 0 0 0 4px var(--light), 0 0 0 5px var(--marker), 0 0 0 14px rgba(161, 98, 7, 0); }
}

@media screen and (max-width: 768px) {
}

@media (prefers-reduced-motion: reduce) {
    .timeline-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Hero: rede de dados animada ===== */
.hero-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-grid-pattern,
.hero-content {
    z-index: 2;
}

/* ===== Hero: entrada escalonada ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: revealUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero: numeros ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 3.2rem;
    margin-top: 3.2rem;
    padding-top: 2.2rem;
    border-top: 1px solid rgba(34, 197, 94, 0.22);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-num {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 22px rgba(34, 197, 94, 0.45);
}

.hero-stat-label {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Hero: brilho no botao principal ===== */
.hero-cta .btn-primary {
    position: relative;
    overflow: hidden;
}

.hero-cta .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-20deg);
}

.hero-cta .btn-primary:hover::after {
    animation: btnShine 0.85s ease;
}

@keyframes btnShine {
    to { left: 130%; }
}

/* ===== Hero: indicador de rolagem ===== */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: block;
    opacity: 0;
    animation: revealUp 0.8s ease forwards;
    animation-delay: 1.1s;
}

.hero-scroll-mouse {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(34, 197, 94, 0.65);
    border-radius: 14px;
    position: relative;
}

.hero-scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--primary);
    animation: scrollWheel 1.7s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%   { transform: translateY(0);    opacity: 1; }
    70%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 0; }
}

@media screen and (max-width: 768px) {
    .hero-stats {
        gap: 0.8rem 2rem;
        margin-top: 2.4rem;
        padding-top: 1.6rem;
    }

    .hero-stat-num { font-size: 1.9rem; }
    .hero-stat-label { font-size: 0.72rem; }
    .hero-scroll { display: none; }
}

/* Respeita quem pediu menos animacao no sistema */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-scroll {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-scroll-mouse::before,
    .hero-cta .btn-primary:hover::after {
        animation: none;
    }
}

/* ===== Grupos de habilidades ===== */
.skills-group-title {
    max-width: 1000px;
    margin: 2.5rem auto 1.2rem;
    padding: 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skills-group-title i {
    color: var(--primary);
    font-size: 1rem;
}

.skills-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.35), transparent);
}

/* ===== Rodape LRN Analytics ===== */
.site-footer {
    background: linear-gradient(180deg, var(--dark) 0%, #060d0a 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.footer-bar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding: 1.4rem 2.2rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.10) 0%, rgba(10, 20, 16, 0.92) 45%, rgba(34, 197, 94, 0.10) 100%);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 999px;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.12), inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-mark {
    width: 46px;
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
}

.footer-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}

.footer-lrn {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.12em;
}

.footer-analytics {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.42em;
    color: var(--primary);
    margin-top: 0.3rem;
}

.footer-identity {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-left: 2rem;
    border-left: 1px solid rgba(34, 197, 94, 0.35);
}

.footer-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
}

.footer-role {
    font-size: 0.95rem;
    color: var(--primary);
    margin-top: 0.18rem;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.35rem;
}

.footer-location {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-location i {
    color: var(--primary);
    margin-right: 0.35rem;
}

.footer-tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.62);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1.2rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.05rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.25);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--dark);
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

@media screen and (max-width: 900px) {
    .footer-bar {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 1.8rem 1.4rem;
        gap: 1.2rem;
    }

    .footer-identity {
        align-items: center;
        text-align: center;
        width: 100%;
        padding-left: 0;
        padding-top: 1.2rem;
        border-left: none;
        border-top: 1px solid rgba(34, 197, 94, 0.28);
    }

    .footer-meta {
        align-items: center;
        text-align: center;
    }

    .hero-slogan {
        font-size: 1.22rem;
    }
}

/* Mobile Navigation */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        /* deslocado por transform, que nao entra no layout e nao cria
           barra de rolagem horizontal como o antigo right: -100% fazia */
        transform: translateX(100%);
        transition: transform 0.4s ease;
        flex-direction: column;
        background: rgba(10, 20, 16, 0.95);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about,
    .portfolio,
    .contact {
        padding: 3rem 5%;
    }

    .logo-img {
        height: 45px;
        width: 45px;
    }
}

/* Certificates Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    position: relative;
    margin: 2rem auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #636e72;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #2d3436;
}

.certificates-list-container {
    margin-top: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dfe6e9;
}

.category-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f2f6;
    border-radius: 50%;
}

.category-icon i {
    font-size: 1.5rem;
    color: #0984e3;
}

.category-header h3 {
    color: #2d3436;
    font-size: 1.5rem;
    margin: 0;
}

.certificate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.certificate-info h3 {
    color: #2d3436;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.certificate-info p {
    color: #636e72;
    margin: 0;
    font-size: 0.9rem;
}

.view-certificate-btn {
    background: #0984e3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-certificate-btn:hover {
    background: #0773c5;
}

@media (max-width: 768px) {
    .certificate-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .view-certificate-btn {
        width: 100%;
    }

    .modal-content {
        margin: 1rem;
        padding: 1rem;
    }
}

/* Certificates Section */
.certificates {
    padding: 5rem 10%;
    background: #f8f9fa;
}

.certificates h2,
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #2d3436;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.certificate-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #22c55e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px 6px #91c68d;
    border-color: #91c68d;
    background: rgba(145, 198, 141, 0.08);
}

.certificate-card:hover::before {
    transform: scaleX(1);
}

.certificate-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-icon {
    transform: scale(1.1);
}

.certificate-icon i {
    font-size: 2.5rem;
    color: #22c55e;
}

.certificate-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #2d3436;
}

.certificate-card p {
    color: #636e72;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.certificate-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: #22c55e;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 80%;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
}

.certificate-link:hover {
    background: #16a34a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.certificate-link:active {
    transform: translateY(-1px);
}

/* Skills Section */
.skills-section {
    padding: 5rem 10%;
    background: #f8f9fa;
}

.skills-section h2,
.timeline-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #2d3436;
}

.skills-section .skills {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-section .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.skills-section .skill-tags span {
    padding: 1.2rem 2rem;
    background: white;
    border-radius: 25px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-section .skill-tags span:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.skills-section .skill-tags i {
    font-size: 1.8rem;
}

.skills-section .skill-tags .r-logo {
    width: 1.8rem;
    height: 1.8rem;
}

/* Mantendo as cores específicas dos ícones */
.skills-section .skill-tags .fa-python {
    color: #3776AB;
}

.skills-section .skill-tags .fa-database {
    color: #E48E00;
}

.skills-section .skill-tags .fa-chart-bar {
    color: #F2C811;
}

.skills-section .skill-tags .fa-file-excel {
    color: #217346;
}

/* Responsividade para telas menores */
@media screen and (max-width: 768px) {
    .skills-section .skill-tags span {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
    }
    
    .skills-section .skill-tags i {
        font-size: 1.5rem;
    }
    
    .skills-section h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .certificate-card {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }

    .certificate-link {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .certificate-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

    .certificate-icon i {
        font-size: 2rem;
    }

    .certificate-card h3 {
        font-size: 1.4rem;
    }

    .certificate-card p {
        font-size: 1rem;
    }

    .certificates h2,
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
}

.certificate-icon img.certificate-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.category-icon img.certificate-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* ===== HERO COMPONENTS ===== */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(34, 197, 94, 0.18) 1px, transparent 1px);
    background-size: 38px 38px;
    z-index: 0;
}





@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.typing-text {
    color: var(--primary);
    font-weight: 600;
}

.cursor {
    color: var(--primary);
    animation: blink 1s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hero-slogan::before {
    content: '';
    display: block;
    width: 52px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 auto 1.3rem;
}

.hero-slogan strong {
    font-weight: 600;
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.55);
}

.btn-secondary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== SECTION TITLE ACCENT ===== */
.about h2::after,
.skills-section h2::after,
.timeline-section h2::after,
.portfolio h2::after,
.contact h2::after,
.section-title::after {
    content: '';
    display: block;
    width: 55px;
    height: 4px;
    background: var(--primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

/* ===== TIMELINE ===== */
.timeline-section {
    padding: 5rem 2rem;
    background: var(--light);
    text-align: center;
}

.timeline-toggle-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    padding: 1.4rem 2rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: left;
}

.timeline-toggle-btn:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.timeline-toggle-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.timeline-toggle-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.timeline-toggle-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.timeline-toggle-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-toggle-arrow {
    font-size: 1rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.timeline-toggle-arrow.open {
    transform: rotate(180deg);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 110px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}

.timeline-item {
    display: flex;
    gap: 3.6rem;
    margin-bottom: 2.2rem;
    position: relative;
    align-items: flex-start;
    /* entrada ao rolar, ativada por JS */
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-year {
    min-width: 85px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 0.3rem 0.6rem;
    text-align: center;
    position: relative;
    z-index: 1;
    height: fit-content;
    margin-top: 0.2rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 104px;
    top: 0.6rem;
    width: 14px;
    height: 14px;
    background: var(--marcador, var(--primary));
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--marcador, var(--primary));
    z-index: 2;
    transition: transform 0.3s ease;
}

/* cada cor casa com o badge da categoria dentro do card */
.item-experiencia { --marcador: #22c55e; }
.item-formacao    { --marcador: #0369a1; }
.item-projeto     { --marcador: #15803d; }
.item-cursando    { --marcador: #a16207; }

.timeline-item:hover::after {
    transform: scale(1.35);
}

.timeline-item-current::after {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px var(--marcador, var(--primary)); }
    50%      { box-shadow: 0 0 0 7px rgba(161, 98, 7, 0.18); }
}

.timeline-content {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.3rem 1.6rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(34, 197, 94, 0.4);
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.timeline-content p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.timeline-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-category-formacao {
    background: #e0f2fe;
    color: #0369a1;
}

.timeline-category-projeto {
    background: #f0fdf4;
    color: #15803d;
}

.timeline-category-experiencia {
    background: var(--dark);
    color: #4ade80;
}

.timeline-category-cursando {
    background: #fef9c3;
    color: #a16207;
}

.timeline-tags span {
    padding: 0.2rem 0.7rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 500;
}



/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px 6px #91c68d;
    border-color: #91c68d;
    background: rgba(145, 198, 141, 0.08);
}

.project-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 16, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-lg);
}

.project-card-body {
    padding: 1.5rem;
}

.project-card-body h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.project-card-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

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

.project-tags span {
    padding: 0.3rem 0.85rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 500;
}


@media screen and (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-greeting {
        font-size: 1.2rem;
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .hero-typing-container {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== ABOUT TWO-COLUMN RESPONSIVE ===== */
@media screen and (max-width: 900px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .about-profile-img {
        width: 200px;
        height: 240px;
    }
}

/* ===== SKILL CARDS ===== */
.skills-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px 6px #91c68d;
    border-color: #91c68d;
    background: rgba(145, 198, 141, 0.08);
}

.skill-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-card-icon i {
    font-size: 1.8rem;
}

.skill-card-info {
    flex: 1;
}

.skill-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.6rem;
}

.skill-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-radius: 4px;
    transition: width 1.4s cubic-bezier(0.34, 1.36, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.skill-fill.animated {
    width: var(--level);
}

.skill-fill.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    animation: shimmer 1.6s ease forwards;
    animation-delay: 0.3s;
}

@keyframes shimmer {
    0%   { left: -60%; }
    100% { left: 120%; }
}

/* ===== CONTACT CARDS ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem auto 0;
    max-width: 900px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.contact-card i {
    font-size: 2.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.contact-card:hover i {
    transform: scale(1.15);
}

.contact-card span {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.contact-card small {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Trajetoria no celular.
   Fica no fim do arquivo de proposito: .timeline-item::after e' definido
   mais acima, e regra de mesma especificidade so vence se vier depois. */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 17px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.7rem;
        padding-left: 3.2rem;
        margin-bottom: 1.8rem;
    }

    .timeline-item::after {
        left: 11px;
        top: 0.5rem;
    }

    .timeline-year {
        min-width: 0;
        align-self: flex-start;
        font-size: 0.78rem;
    }

    .timeline-content:hover {
        transform: none;
    }

    .timeline-item:hover::after {
        transform: none;
    }
}
