/* ============================================
   NETINHO PORTFOLIO — style.css
   Visual: Terminal meets Street Art meets RPG
   ============================================ */

/* ---- CSS VARIABLES ---- */
:root {
    --bg: #0d0d0f;
    --bg2: #13131a;
    --bg3: #1a1a25;
    --surface: #1e1e2e;
    --surface2: #252535;
    --border: #2e2e45;
    --accent: #ff6b35;
    --accent2: #ffe66d;
    --accent3: #4ecdc4;
    --accent4: #c77dff;
    --text: #f0f0f5;
    --text-muted: #888899;
    --green: #56cf91;
    --red: #ff4d6d;
    --font-mono: 'Space Mono', monospace;
    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, .45);
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---- RESET ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-body);
}

canvas {
    display: block;
}

/* ---- UTILITIES ---- */
.hidden {
    display: none !important;
}

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

.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--bg2);
}

.green-text {
    color: var(--green);
    font-weight: 700;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.bounce {
    animation: bounce 1.5s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(8px)
    }
}

/* ============================================
   LOADER
   ============================================ */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    width: min(560px, 90vw);
}

.loader-logo {
    font-family: var(--font-title);
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.loader-logo span {
    color: var(--accent2);
}

.loader-terminal {
    background: #0a0a0f;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: clamp(.75rem, .9vw+.5rem, .9rem);
    min-height: 220px;
}

.terminal-line {
    margin: .4rem 0;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInLine .3s ease forwards;
}

@keyframes fadeInLine {
    to {
        opacity: 1;
    }
}

.terminal-line .warn {
    color: var(--accent2);
}

.terminal-line .highlight {
    color: var(--accent);
    font-weight: 700;
}

.terminal-line .ok {
    color: var(--green);
}

#progress-wrap {
    margin: 1rem 0;
}

.progress-label {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: .4rem;
}

.progress-bar-bg {
    background: var(--surface);
    border-radius: 99px;
    height: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 99px;
    width: 0%;
    transition: width .4s ease;
}

.progress-bar-fill.green {
    background: linear-gradient(90deg, var(--green), var(--accent3));
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 2rem;
    background: rgba(13, 13, 15, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--accent2);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color var(--transition);
    text-transform: uppercase;
    letter-spacing: .5px;
}

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

.nav-toggle {
    display: none;
    background: none;
    color: var(--text);
    font-size: 1.4rem;
}

/* ============================================
   HERO
   ============================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem 3rem;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 107, 53, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, .06) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.hero-noise {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255, 107, 53, .12) 0%, transparent 65%),
        radial-gradient(ellipse at 20% 80%, rgba(78, 205, 196, .08) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(86, 207, 145, .15);
    border: 1px solid rgba(86, 207, 145, .3);
    color: var(--green);
    border-radius: 99px;
    padding: .3rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-glow 2s ease infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(86, 207, 145, .2)
    }

    50% {
        box-shadow: 0 0 0 8px rgba(86, 207, 145, 0)
    }
}

.hero-name {
    font-family: var(--font-title);
    font-size: clamp(5rem, 18vw, 10rem);
    line-height: 1;
    color: var(--text);
    letter-spacing: 4px;
    margin-bottom: .5rem;
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-family: var(--font-title);
    font-size: inherit;
    letter-spacing: inherit;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::before {
    color: var(--accent);
    animation: glitch1 4s infinite;
    left: 3px;
}

.glitch::after {
    color: var(--accent3);
    animation: glitch2 4s infinite;
    left: -3px;
}

@keyframes glitch1 {

    0%,
    90%,
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 0%, 0 0%);
        transform: translate(0)
    }

    92% {
        clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
        transform: translate(-4px, 2px)
    }

    94% {
        clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
        transform: translate(3px, -1px)
    }

    96% {
        clip-path: polygon(0 10%, 100% 10%, 100% 25%, 0 25%);
        transform: translate(-2px, 1px)
    }
}

@keyframes glitch2 {

    0%,
    91%,
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 0%, 0 0%);
        transform: translate(0)
    }

    93% {
        clip-path: polygon(0 50%, 100% 50%, 100% 70%, 0 70%);
        transform: translate(4px, -2px)
    }

    95% {
        clip-path: polygon(0 30%, 100% 30%, 100% 45%, 0 45%);
        transform: translate(-3px, 1px)
    }
}

.hero-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.underline-anim {
    color: var(--accent);
    position: relative;
}

.underline-anim::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    animation: underline-grow 1.5s ease 1.5s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes underline-grow {
    to {
        transform: scaleX(1);
    }
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: .3rem;
}

.hero-sub2 {
    font-size: clamp(.85rem, 2vw, 1rem);
    color: var(--accent2);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: .8rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-primary:hover {
    background: #ff8c5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, .4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    padding: .8rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

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

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat span {
    display: block;
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent);
    line-height: 1;
}

.stat small {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hero-footnote {
    font-size: .75rem;
    color: #555;
    margin-top: .5rem;
    font-style: italic;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: .8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: .5rem;
}

.section-title span {
    color: var(--accent);
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SOBRE
   ============================================ */
.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.sobre-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sobre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

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

.sobre-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: .8rem;
}

.sobre-card h3 {
    font-weight: 800;
    color: var(--accent2);
    margin-bottom: .4rem;
}

.sobre-card p {
    color: var(--text-muted);
    font-size: .92rem;
}

.sobre-reveal-wrap {
    text-align: center;
}

.btn-reveal {
    background: linear-gradient(135deg, var(--accent4), var(--accent));
    color: #fff;
    padding: .8rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.btn-reveal:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(199, 125, 255, .4);
}

.hidden-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.hs-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .8rem 1.2rem;
    font-size: .9rem;
    color: var(--text);
    animation: popIn .4s ease;
}

@keyframes popIn {
    from {
        transform: scale(.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    position: relative;
    transition: var(--transition);
    cursor: default;
}

.skill-card:hover {
    border-color: var(--accent3);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(78, 205, 196, .12);
}

/* Tooltip */
.skill-card[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .5rem .8rem;
    font-size: .78rem;
    color: var(--text-muted);
    white-space: normal;
    width: 220px;
    z-index: 10;
    pointer-events: none;
    box-shadow: var(--shadow);
    line-height: 1.4;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .8rem;
}

.skill-icon {
    font-size: 1.4rem;
}

.skill-name {
    font-weight: 800;
    font-size: .95rem;
    flex: 1;
}

.skill-level {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--accent2);
    background: rgba(255, 230, 109, .1);
    padding: .1rem .4rem;
    border-radius: 4px;
}

.skill-bar-bg {
    background: var(--bg);
    border-radius: 99px;
    height: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: .4rem;
}

.skill-bar-fill {
    height: 100%;
    background: var(--clr, var(--accent));
    border-radius: 99px;
    width: 0%;
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 8px var(--clr, var(--accent));
}

.skill-pct {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--text-muted);
}

/* ============================================
   EXPERIÊNCIA / TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1rem;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 12px var(--accent);
}

.future-dot {
    background: var(--border);
    box-shadow: none;
    border-color: var(--bg2);
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.future-card {
    opacity: .4;
    border-style: dashed;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--accent2);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: .3rem;
}

.timeline-company {
    color: var(--accent3);
    font-size: .88rem;
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(255, 107, 53, .12);
    border: 1px solid rgba(255, 107, 53, .3);
    color: var(--accent);
    padding: .2rem .7rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 700;
}

.btn-box {
    background: rgba(255, 107, 53, .15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: .5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.btn-box:hover {
    background: var(--accent);
    color: #fff;
}

.caixas-animation {
    margin-top: 1.2rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--border);
}

.box-emoji {
    font-size: 2rem;
    animation: shake .4s ease infinite alternate;
}

@keyframes shake {
    from {
        transform: rotate(-5deg) scale(1);
    }

    to {
        transform: rotate(5deg) scale(1.1);
    }
}

.box-text {
    flex: 1;
    font-size: .85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   MINI GAME
   ============================================ */
.game-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.game-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: .7rem 1.2rem;
    font-family: var(--font-mono);
    font-size: .9rem;
    color: var(--text-muted);
}

.game-info strong {
    color: var(--accent2);
}

#gameCanvas {
    width: 100%;
    background: #0a0a14;
    border: 1px solid var(--border);
    border-top: none;
    border-bottom: none;
    image-rendering: pixelated;
}

.game-overlay {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 36px;
    background: rgba(10, 10, 20, .93);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.game-overlay-content {
    text-align: center;
    padding: 2rem;
}

.game-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-overlay-content h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: .5rem;
}

.game-overlay-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: .95rem;
    line-height: 1.6;
}

.game-controls-hint {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: .6rem 1.2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--text-muted);
}

.game-controls-hint i {
    margin-right: .3rem;
}

/* ============================================
   VIDA PESSOAL
   ============================================ */
.vida-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vida-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: var(--transition);
}

.vida-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.vida-card-icon {
    font-size: 2.5rem;
    margin-bottom: .8rem;
}

.vida-card h3 {
    font-weight: 800;
    margin-bottom: .5rem;
    color: var(--text);
}

.vida-card p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: .8rem;
}

.status-badge {
    display: inline-block;
    background: rgba(255, 107, 53, .15);
    border: 1px solid rgba(255, 107, 53, .3);
    color: var(--accent);
    padding: .2rem .8rem;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: .8rem;
}

.hobby-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.hobby-list li {
    font-size: .88rem;
    color: var(--text-muted);
    padding: .3rem 0;
    border-bottom: 1px solid var(--border);
}

.hobby-list li:last-child {
    border-bottom: none;
}

.rotina-timeline {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.rt-item {
    display: flex;
    gap: .8rem;
    font-size: .85rem;
    color: var(--text-muted);
    align-items: center;
}

.rt-item span {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--accent3);
    min-width: 45px;
}

.btn-mini {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .4rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-mini:hover {
    border-color: var(--accent4);
    color: var(--accent4);
}

/* ============================================
   METAS
   ============================================ */
.metas-wrap {
    max-width: 700px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.meta-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.meta-item:hover {
    border-color: var(--accent3);
    transform: translateX(5px);
}

.meta-item.done {
    background: rgba(86, 207, 145, .07);
    border-color: rgba(86, 207, 145, .3);
}

.meta-item.done .meta-content h4 {
    text-decoration: line-through;
    color: var(--text-muted);
}

.meta-checkbox {
    width: 26px;
    height: 26px;
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.meta-item.done .meta-checkbox {
    background: var(--green);
    border-color: var(--green);
}

.meta-item.done .meta-checkbox::after {
    content: '✓';
    color: #fff;
    font-weight: 900;
}

.meta-content {
    flex: 1;
}

.meta-content h4 {
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: .2rem;
    transition: var(--transition);
}

.meta-content p {
    font-size: .82rem;
    color: var(--text-muted);
}

.meta-icon {
    font-size: 1.8rem;
}

.metas-progress {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.metas-progress p {
    margin-bottom: .5rem;
    color: var(--text-muted);
    font-size: .9rem;
}

.metas-progress strong {
    color: var(--green);
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 230, 109, .12);
    border: 1px solid rgba(255, 230, 109, .3);
    color: var(--accent2);
    border-radius: 99px;
    padding: .3rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.cta-title span {
    color: var(--accent);
}

.cta-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-contratar {
    background: linear-gradient(135deg, var(--green), var(--accent3));
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(86, 207, 145, .3);
}

.btn-contratar:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(86, 207, 145, .5);
}

.btn-pensar {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-pensar:hover {
    border-color: var(--accent2);
    color: var(--accent2);
}

.btn-rever {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-rever:hover {
    border-color: var(--accent4);
    color: var(--accent4);
}

.cta-contato p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: .8rem;
    justify-content: center;
}

.social-btn {
    width: 44px;
    height: 44px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

#confetti-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: fadeInOverlay .2s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: min(480px, 90vw);
    width: 100%;
    position: relative;
    animation: slideUp .3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.modal-emoji {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-box h3 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.modal-content {
    margin-bottom: 1.5rem;
}

.modal-row {
    display: flex;
    gap: .5rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text-muted);
}

.modal-row strong {
    color: var(--text);
    min-width: 130px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .85rem;
}

.footer-small {
    font-size: .75rem;
    color: #444;
    margin-top: .3rem;
}

/* ============================================
   [NOVO] HERO — LAYOUT DUAS COLUNAS + IMAGEM
   ============================================ */

/* Wrapper que substitui o centramento simples do hero-content */
.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 0 1.5rem;
}

/* Coluna texto: alinhamento à esquerda no desktop */
.hero-inner .hero-content {
    flex: 1;
    text-align: left;
    max-width: 580px;
}

.hero-inner .hero-content .hero-btns {
    justify-content: flex-start;
}

.hero-inner .hero-content .hero-stats {
    justify-content: flex-start;
}

/* Coluna imagem */
.hero-img-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper da imagem com efeitos */
.hero-img-wrap {
    position: relative;
    width: clamp(220px, 28vw, 340px);
}

/* Anel de glow girando ao redor da foto */
.hero-img-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 0deg,
            var(--accent2) 90deg,
            var(--accent3) 180deg,
            var(--accent4) 270deg,
            var(--accent) 360deg);
    animation: ring-spin 6s linear infinite;
    opacity: 0.6;
    filter: blur(6px);
    z-index: 0;
}

@keyframes ring-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Badge flutuante sobre a foto */
.hero-img-badge {
    position: absolute;
    top: -14px;
    right: -14px;
    background: var(--accent2);
    color: #111;
    font-size: .75rem;
    font-weight: 900;
    padding: .3rem .8rem;
    border-radius: 99px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
    animation: float-badge 2.5s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

/* A foto em si */
.hero-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50% 50% 45% 45%;
    border: 3px solid rgba(255, 107, 53, .4);
    position: relative;
    z-index: 1;
    /* Fade-in ao carregar */
    animation: hero-photo-in 1s ease .4s both;
    /* Hover: zoom suave */
    transition: transform .4s ease, box-shadow .4s ease, filter .4s ease;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, .35));
}

@keyframes hero-photo-in {
    from {
        opacity: 0;
        transform: scale(.92) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-photo:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 16px 48px rgba(255, 107, 53, .4);
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, .6)) brightness(1.05);
}

/* ============================================
   [NOVO] EXÉRCITO — BLOCO DE EXPERIÊNCIA
   ============================================ */

/* Dot especial: verde militar */
.exercito-dot {
    background: #6ab04c;
    box-shadow: 0 0 12px #6ab04c;
}

/* Card com borda verde militar */
.exercito-card {
    border-color: rgba(106, 176, 76, .4);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(106, 176, 76, .06) 100%);
}

.exercito-card:hover {
    border-color: #6ab04c;
    box-shadow: 0 8px 32px rgba(106, 176, 76, .2);
}

/* Faixa de alerta no topo do card */
.exercito-alerta {
    background: linear-gradient(90deg, #6ab04c22, #6ab04c44, #6ab04c22);
    border: 1px solid rgba(106, 176, 76, .3);
    border-radius: var(--radius-sm);
    color: #6ab04c;
    font-size: .78rem;
    font-weight: 900;
    font-family: var(--font-mono);
    text-align: center;
    padding: .4rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    animation: alerta-pulse 2s ease infinite;
}

@keyframes alerta-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .6;
    }
}

/* Layout interno: texto + imagem */
.exercito-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.exercito-texto {
    flex: 1;
    min-width: 0;
}

/* Stats militares */
.exercito-stats {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin: 1rem 0;
    background: rgba(0, 0, 0, .25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
}

.estat-row {
    display: flex;
    gap: .6rem;
    font-size: .83rem;
    align-items: center;
}

.estat-label {
    color: var(--text-muted);
    min-width: 120px;
    font-weight: 700;
}

.estat-val {
    color: var(--text);
}

.blink-green {
    color: #6ab04c;
    animation: blink 1.2s step-end infinite;
}

.red-text {
    color: var(--red);
    font-weight: 700;
}

/* Tags temáticas do exército */
.tag-army {
    background: rgba(106, 176, 76, .12);
    border-color: rgba(106, 176, 76, .3);
    color: #6ab04c;
}

/* Barra "chance de sobreviver" */
.exercito-barra-wrap {
    margin-top: 1rem;
}

.exercito-barra-label {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .4rem;
}

.exercito-barra-pct {
    font-family: var(--font-mono);
    color: #6ab04c;
    font-weight: 700;
}

.exercito-fill {
    background: linear-gradient(90deg, #6ab04c, #a8e063);
    box-shadow: 0 0 8px #6ab04c66;
}

.exercito-barra-note {
    font-size: .72rem;
    color: #555;
    font-style: italic;
    margin-top: .3rem;
}

/* Coluna da imagem no bloco exército */
.exercito-img-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(130px, 20%, 190px);
}

.exercito-img-wrap {
    position: relative;
    width: 100%;
    text-align: center;
}

.exercito-img-badge {
    display: inline-block;
    background: #6ab04c;
    color: #fff;
    font-size: .7rem;
    font-weight: 900;
    padding: .2rem .7rem;
    border-radius: 99px;
    margin-bottom: .5rem;
    letter-spacing: .5px;
}

.exercito-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    border: 2px solid rgba(106, 176, 76, .4);
    /* Fade-in via IntersectionObserver */
    opacity: 0;
    transform: scale(.93);
    transition: opacity .7s ease, transform .7s ease,
        box-shadow .3s ease, filter .3s ease;
    filter: drop-shadow(0 4px 16px rgba(106, 176, 76, .25));
}

.exercito-photo.visible {
    opacity: 1;
    transform: scale(1);
}

.exercito-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(106, 176, 76, .4);
    filter: drop-shadow(0 4px 20px rgba(106, 176, 76, .5)) brightness(1.05);
}

.exercito-img-caption {
    margin-top: .6rem;
    font-size: .75rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg2);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: .8rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .sobre-grid,
    .skills-grid,
    .vida-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.2rem;
    }

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

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline::before {
        left: .5rem;
    }

    .timeline-dot {
        left: -1.4rem;
    }

    .game-info {
        font-size: .78rem;
        gap: .8rem;
    }

    .skill-card[data-tooltip]:hover::after {
        display: none;
    }

    /* [NOVO] Hero duas colunas → coluna única no mobile */
    .hero-inner {
        flex-direction: column-reverse;
        /* imagem acima do texto */
        gap: 2rem;
        text-align: center;
    }

    .hero-inner .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-inner .hero-content .hero-btns {
        justify-content: center;
    }

    .hero-inner .hero-content .hero-stats {
        justify-content: center;
    }

    .hero-img-col {
        width: 100%;
    }

    .hero-img-wrap {
        width: clamp(180px, 55vw, 260px);
        margin: 0 auto;
    }

    /* [NOVO] Bloco exército: coluna única no mobile */
    .exercito-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .exercito-img-col {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .exercito-img-wrap {
        width: 120px;
        flex-shrink: 0;
    }

    .exercito-img-caption {
        text-align: left;
        margin-top: 0;
    }
}

@media (max-width: 400px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}