:root {
    --cafe: #654321;
    --marrom-claro: #A2805D;
    --azul-marinho: #214365;
    --azul-ceu: #5D80A2;
    --white: #ffffff;
    --bg-flat: #ffffff; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* FUNDO AURORA */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1;
    background: linear-gradient(125deg, #A2805D, #214365, #5D80A2, #654321);
    background-size: 300% 300%;
    animation: auroraAnim 20s ease infinite;
}
@keyframes auroraAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- HEADER / HERO --- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: rgba(101, 67, 33, 0.70);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--white);
    padding: 0 20px;
}

header.shrink {
    height: 80px;
    background-color: rgba(101, 67, 33, 1);
    flex-direction: row;
    justify-content: space-between;
    padding: 0 5%;
}

.hero-info { text-align: center; transition: all 0.5s; }
header.shrink .hero-info { text-align: left; }

.hero-info h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
header.shrink .hero-info h1 { font-size: 1.3rem; margin: 0; }
header.shrink .hero-info h2 { display: none; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    animation: bounce 2s infinite;
    cursor: pointer;
}
header.shrink .scroll-indicator { opacity: 0; pointer-events: none; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.nav-menu {
    opacity: 0; pointer-events: none;
    display: flex; gap: 20px;
}
header.shrink .nav-menu { opacity: 1; pointer-events: auto; }
.nav-link { color: var(--white); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; text-decoration: none;}

/* --- CONTEÚDO --- */
.about-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
    font-size: 1.15rem;
    color: #444;
    max-width: 850px;
    margin: 0 auto;
}
.main-wrapper {
    margin-top: 100vh;
    position: relative;
    z-index: 10;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }

section { 
    padding: 100px 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 90vh; 
}

.flat-panel {
    background: var(--bg-flat);
    padding: 60px 50px;
    width: 100%;
    border-bottom: 5px solid var(--cafe);
}

/* --- REVEAL BIDIRECIONAL --- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}
.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
    font-size: 2rem; color: var(--cafe); text-transform: uppercase;
    position: relative; display: inline-block; padding-bottom: 15px;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background-color: var(--marrom-claro);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.skill-card {
    background: #fff; padding: 30px; border-top: 4px solid var(--azul-marinho);
}
.skill-card h3 { color: var(--azul-marinho); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 1.2rem;}
.skill-list li { margin-bottom: 10px; list-style: none; font-weight: 500; color: #444;}

.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 2px; background: #eee; }
.timeline-item { margin-left: 30px; margin-bottom: 45px; position: relative; }
.timeline-item::before {
    content: ''; position: absolute; left: -36px; top: 6px;
    width: 12px; height: 12px; background: var(--azul-marinho); border-radius: 50%;
}
.timeline-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 5px;}
.timeline-header h3 { color: var(--cafe); font-size: 1.25rem; }
.timeline-header span { color: var(--azul-ceu); font-size: 0.9rem; font-weight: 700; }
.timeline-role { color: var(--azul-marinho); font-weight: 700; display: block; margin-bottom: 12px; text-transform: uppercase; font-size: 0.95rem; }
.timeline-desc li { margin-bottom: 10px; color: #444; font-size: 1rem; list-style: none; padding-left: 20px; padding-right: 10px; position: relative; text-align: justify; text-justify: inter-word;}
.timeline-desc li::before { content: '—'; position: absolute; left: 0; color: var(--marrom-claro); }

.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.info-group h3 { color: var(--cafe); margin-bottom: 20px; font-size: 1.1rem; text-transform: uppercase; border-bottom: 2px solid #eee; padding-bottom: 5px;}
.info-card {
    background: #fff; padding: 20px; border: 1px solid #eee; margin-bottom: 15px;
}
.info-card strong { color: var(--azul-marinho); font-size: 1rem; display: block; margin-bottom: 4px;}
.info-card span { color: #666; font-size: 0.9rem; }
.info-card .lang-level { color: var(--azul-ceu); font-weight: 700; display: block; margin-top: 4px;}

footer { background-color: var(--cafe); color: var(--white); padding: 80px 0 40px; text-align: center; }
.contact-wrap { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 30px; }
.btn-foot {
    background: rgba(255,255,255,0.1); color: var(--white); padding: 12px 25px;
    text-decoration: none; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s;
}
.btn-foot:hover { background: var(--marrom-claro); }

#toast {
    visibility: hidden; background: #333; color: #fff; padding: 16px;
    position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2000;
}
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

@media (max-width: 992px) {
    .skills-grid { grid-template-columns: 1fr; }
    .side-by-side { grid-template-columns: 1fr; }
    header.shrink .nav-menu { display: none; }
    section { min-height: auto; padding: 60px 0; }
}
