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

:root {
    --bg:            #060610;
    --surface:       rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border:        rgba(255, 255, 255, 0.08);
    --border-hi:     rgba(255, 255, 255, 0.18);

    --accent:        #00d4ff;
    --accent-dim:    rgba(0, 212, 255, 0.12);
    --accent-glow:   rgba(0, 212, 255, 0.35);
    --purple:        #7c3aed;
    --purple-dim:    rgba(124, 58, 237, 0.15);
    --green:         #00ff88;
    --green-dim:     rgba(0, 255, 136, 0.1);
    --red:           #ef4444;
    --yellow:        #fbbf24;

    --text:          #e2e8f0;
    --text-muted:    #94a3b8;
    --text-dim:      #475569;

    --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;

    --r-sm:  8px;
    --r:     16px;
    --r-lg:  24px;
    --r-xl:  32px;

    --ease:   cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: auto; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   BACKGROUND CANVAS
   ============================================================ */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   LIQUID GLASS COMPONENT
   ============================================================ */
.liquid-glass {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%),
        rgba(8, 8, 20, 0.80);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid var(--border);
    border-top-color: rgba(255, 255, 255, 0.16);
    border-left-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    z-index: 999;
    background: rgba(6, 6, 16, 0.55);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 12px 24px;
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar.scrolled {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    transition: filter 0.2s;
}

.nav-logo:hover { filter: brightness(1.2) drop-shadow(0 0 8px var(--accent)); }

.logo-bracket { color: var(--text-dim); }

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
    position: relative;
}

/* Pill deslizante — se move entre os botões no hover */
.nav-pill,
.lang-pill {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.09);
    border-radius: var(--r);
    pointer-events: none;
    opacity: 0;
    transition:
        left    0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
        width   0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
        top     0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
        height  0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
        opacity 0.2s ease;
}

.nav-pill.visible,
.lang-pill.visible { opacity: 1; }

/* Section pill — sliding brightness highlight for clickable cards */
.section-pill {
    position: absolute;
    background: transparent;
    backdrop-filter: brightness(1.3);
    -webkit-backdrop-filter: brightness(1.3);
    border-radius: var(--r);
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transition:
        left    0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
        width   0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
        top     0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
        height  0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
        opacity 0.2s ease;
}
.section-pill.visible { opacity: 1; }

.nav-link {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--r);
    transition: color 0.2s;
    letter-spacing: 0.01em;
    z-index: 1;
}

.nav-link:hover { color: var(--text); }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
}

.lang-sep {
    color: var(--text-dim);
    font-size: 11px;
    user-select: none;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    padding: 4px 6px;
    border-radius: 5px;
    transition: color 0.2s, background 0.2s;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--accent); }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    max-width: 960px;
}

.hero-layout {
    display: flex;
    align-items: flex-start;
    gap: 56px;
}

.hero-content {
    position: relative;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.hero-photo-wrap {
    flex-shrink: 0;
    padding-top: 6px;
}

.hero-photo-ring {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.45);
    box-shadow:
        0 0 0 8px rgba(0, 212, 255, 0.06),
        0 0 60px rgba(0, 212, 255, 0.18);
    overflow: hidden;
    display: block;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 47%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-family: var(--mono);
    letter-spacing: 0.03em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-name {
    font-size: clamp(48px, 6.5vw, 84px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.95;
    margin-bottom: 32px;
    white-space: nowrap;
}

.name-first { color: var(--text); }

.name-last {
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.18));
}

.hero-role {
    font-family: var(--mono);
    font-size: clamp(15px, 2.2vw, 21px);
    color: var(--accent);
    margin-bottom: 24px;
    min-height: 1.6em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.role-prefix { color: var(--text-dim); margin-right: 6px; }
.typed-text { }

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

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

.hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 44px;
}

.hero-desc strong { color: var(--text); }

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 64px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    border-radius: var(--r);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--accent-glow), 0 0 0 1px var(--accent);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-hi);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--r);
    font-weight: 500;
    font-size: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s var(--spring), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.3s;
}

.btn-glass:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-dim);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1.5px;
    font-family: var(--mono);
    line-height: 1;
}

.stat-label {
    font-size: 10.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    color: var(--text-dim);
    font-size: 13px;
    text-decoration: none;
    animation: scroll-bounce 2s ease-in-out infinite;
    transition: color 0.2s;
}

.scroll-indicator:hover { color: var(--accent); }

.scroll-indicator i:nth-child(1) { opacity: 0.35; }
.scroll-indicator i:nth-child(2) { opacity: 0.7; margin-top: -4px; }

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section:not(.hero) {
    position: relative;
    z-index: 1;
    padding: 48px 24px;
    max-width: 1100px;
    margin: 0 auto;
    scroll-margin-top: 88px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
    opacity: 0.8;
}

.section-header h2 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 15.5px;
}

.section-header code {
    font-family: var(--mono);
    color: var(--accent);
    background: var(--accent-dim);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 14px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* ============================================================
   TERMINAL SECTION
   ============================================================ */
section.terminal-section {
    padding: 48px 24px;
    max-width: 980px;
    scroll-margin-top: 88px;
}

.terminal-section .section-header {
    margin-bottom: 40px;
}

.terminal-window {
    border-radius: var(--r-lg);
    overflow: hidden;
    font-family: var(--mono);
    background: rgba(8, 8, 20, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255,255,255,0.06);
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid var(--border);
    user-select: none;
}

.traffic-lights {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.tl {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transition: filter 0.2s, transform 0.2s;
    cursor: pointer;
}

.tl:hover { filter: brightness(1.4); transform: scale(1.1); }

.tl.red    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.5); }
.tl.yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255,189,46,0.5); }
.tl.green  { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.5); }

.terminal-title-text {
    font-size: 12px;
    color: var(--text-dim);
    flex: 1;
    text-align: center;
}

.tbadge {
    font-size: 10px;
    color: var(--text-dim);
    padding: 2px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
    flex-shrink: 0;
}

.terminal-body {
    padding: 24px;
    min-height: 380px;
    max-height: 520px;
    overflow-y: auto;
    cursor: text;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.terminal-body::-webkit-scrollbar { width: 5px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Welcome screen */
.ascii-logo {
    font-size: 10px;
    line-height: 1.25;
    color: var(--accent);
    margin-bottom: 16px;
    white-space: pre;
    display: block;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.welcome-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.output-accent-inline { color: var(--accent); font-weight: 600; }

.welcome-hint {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 4px;
}

.cmd-highlight {
    color: var(--green);
    font-weight: 600;
}

/* Input row */
.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 8px;
}

.prompt-text {
    font-size: 13.5px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 8px;
    user-select: none;
}

.prompt-user   { color: var(--green); }
.prompt-at     { color: var(--text-dim); }
.prompt-host   { color: var(--accent); }
.prompt-colon  { color: var(--text-dim); }
.prompt-path   { color: var(--purple); filter: brightness(1.4); }
.prompt-dollar { color: var(--text-dim); }

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 13.5px;
    caret-color: var(--green);
    line-height: 1.6;
}

.terminal-input::placeholder {
    color: var(--text-dim);
    opacity: 0.5;
    font-style: italic;
}

/* Output blocks */
.output-command {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 6px;
    font-size: 13.5px;
}

.output-command .prompt-text { font-size: 13.5px; }

.output-block {
    margin-bottom: 4px;
    line-height: 1.65;
}

.output-line      { font-size: 13px; line-height: 1.7; }
.output-text      { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.output-success   { color: var(--green); font-size: 13px; }
.output-error     { color: var(--red); font-size: 13px; }
.output-accent    { color: var(--accent); font-size: 13px; }
.output-header    { color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.output-section   { color: var(--accent); font-size: 12px; margin-top: 10px; margin-bottom: 3px; opacity: 0.9; }
.output-empty     { height: 6px; display: block; }

.output-table {
    border-collapse: collapse;
    font-size: 13px;
    margin: 4px 0;
}

.output-table td {
    padding: 2px 20px 2px 0;
    vertical-align: top;
    line-height: 1.65;
}

.output-table td:first-child { color: var(--accent); white-space: nowrap; }
.output-table td:last-child   { color: var(--text-muted); }

.cert-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 3px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.cert-status {
    width: 90px;
    text-align: center;
    font-size: 11px;
    flex-shrink: 0;
    font-family: var(--mono);
}

.cert-status.active  { color: var(--green); }
.cert-status.planned { color: var(--text-dim); }

.progress-bar-ascii { color: var(--accent); }

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

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--r);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-left: 3px solid var(--accent);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.03);
}

.skill-category-header i {
    color: var(--accent);
    font-size: 15px;
    animation: icon-glow-pulse 3s ease-in-out infinite;
}

@keyframes icon-glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.3)); }
    50%       { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.9)); }
}

@keyframes skill-slide-in {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-left: 10px;
    padding-left: 14px;
    border-left: 1px solid rgba(0, 212, 255, 0.15);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-16px);
    transition:
        border-color 0.25s var(--ease),
        transform 0.3s var(--spring),
        box-shadow 0.3s var(--ease),
        background 0.25s;
    cursor: default;
}

.skill-category.visible .skill-item {
    animation: skill-slide-in 0.38s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 200ms);
}


@media (prefers-reduced-motion: reduce) {
    .skill-item { opacity: 1; transform: none; animation: none !important; }
    .skill-category-header i { animation: none; }
}

.skill-icon {
    font-size: 20px;
    color: var(--accent);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.skill-icon-svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
    flex-shrink: 0;
    fill: currentColor;
}

.skill-icon-img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline {
    display: flex;
    flex-direction: column;
    max-width: 740px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 36px 1fr;
    align-items: start;
}

.timeline-date {
    text-align: right;
    padding-right: 16px;
    padding-top: 15px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.5;
}

.timeline-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    margin-top: 13px;
    flex-shrink: 0;
    z-index: 1;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.timeline-dot.current {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-dim);
}

.timeline-vline {
    width: 1px;
    flex: 1;
    min-height: 28px;
    background: linear-gradient(to bottom, rgba(0,212,255,0.4), rgba(0,212,255,0.08));
}

.timeline-item:last-child .timeline-vline {
    opacity: 0;
}

.timeline-card {
    margin-left: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: var(--r);
    position: relative;
    transition:
        border-color 0.25s,
        transform 0.3s var(--spring),
        box-shadow 0.3s var(--ease);
}


.timeline-role {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.timeline-company {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-company i { color: var(--accent); font-size: 12px; }

.current-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 10px;
    font-family: var(--mono);
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(0,255,136,0.25);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-card {
    padding: 28px 32px;
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.project-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-icon {
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.project-company {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.03em;
}

.award-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffba08;
    background: rgba(255, 186, 8, 0.1);
    border: 1px solid rgba(255, 186, 8, 0.3);
    flex-shrink: 0;
}

.award-badge i { font-size: 10px; }

.project-metrics {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: calc(var(--r) - 4px);
    overflow: hidden;
}

.project-metric {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
}

.metric-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 0.03em;
}

.metric-divider {
    width: 1px;
    height: 44px;
    background: rgba(0, 212, 255, 0.12);
    flex-shrink: 0;
}

.project-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-chip {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 100px;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.07);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.project-proof-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--r);
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.04);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), gap 0.2s var(--ease);
    align-self: flex-start;
}

.project-proof-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    gap: 12px;
}

.project-proof-link .fa-arrow-right {
    font-size: 11px;
    transition: transform 0.2s var(--ease);
}

.project-proof-link:hover .fa-arrow-right {
    transform: translateX(3px);
}

/* ============================================================
   EDUCATION
   ============================================================ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.edu-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: var(--r-lg);
    transition:
        border-color 0.25s,
        transform 0.3s var(--spring),
        box-shadow 0.3s;
}


.edu-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 13px;
    flex-shrink: 0;
}

.edu-icon i { font-size: 22px; color: var(--accent); }

.edu-info { flex: 1; }

.edu-degree {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.edu-school {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.edu-period {
    font-size: 11px;
    font-family: var(--mono);
    color: var(--text-dim);
}

.edu-status {
    font-size: 10px;
    font-family: var(--mono);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    font-weight: 600;
}

.edu-status.in-progress {
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(0,212,255,0.28);
}

.edu-status.completed {
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(0,255,136,0.22);
}

/* Mission card */
.mission-card {
    padding: 30px;
    border-radius: var(--r-lg);
}

.mission-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.mission-icon { line-height: 1; }

.kubeastronaut-badge {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.2));
}

.mission-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}

.mission-desc { font-size: 13px; color: var(--text-muted); }

.cert-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

.cert-item.in-progress {
    border-color: rgba(0,255,136,0.15);
    background: rgba(0,255,136,0.03);
}

.cert-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cert-item.in-progress .cert-status-dot {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s infinite;
}

.cert-item.planned .cert-status-dot { background: var(--text-dim); }

.cert-name {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}

.cert-item.planned .cert-name { color: var(--text-muted); }

.cert-badge {
    font-size: 10px;
    font-family: var(--mono);
    padding: 3px 10px;
    border-radius: 100px;
    flex-shrink: 0;
    font-weight: 600;
}

.in-progress-badge {
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(0,255,136,0.28);
}

.planned-badge {
    color: var(--text-dim);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

.mission-progress {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent), var(--green));
    border-radius: 100px;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 1.2s var(--ease);
}

.progress-label {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--mono);
    white-space: nowrap;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
    position: relative;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    border-radius: var(--r-lg);
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.25s,
        transform 0.3s var(--spring),
        box-shadow 0.3s;
    cursor: pointer;
}

.contact-card:not(.static):hover {
    transform: translateY(-5px);
}

.contact-card:not(.static):hover .contact-arrow {
    transform: translateX(4px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 13px;
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s;
}

.contact-icon i { font-size: 20px; color: var(--accent); }

.contact-info { flex: 1; }

.contact-label {
    font-size: 10.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--mono);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.contact-arrow {
    color: var(--text-dim);
    font-size: 13px;
    transition: color 0.25s, transform 0.3s var(--spring);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 28px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: filter 0.2s;
}

.footer-logo:hover {
    filter: brightness(1.2) drop-shadow(0 0 6px var(--accent));
}

.footer-text {
    font-size: 13px;
    color: var(--text-dim);
}

/* ============================================================
   HAMBURGER BUTTON & MOBILE NAV
   ============================================================ */
.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    flex-shrink: 0;
    padding: 0;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-hamburger:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.hamburger-line {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.2s, width 0.2s;
}

.nav-hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 997;
    background: rgba(6, 6, 16, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 32px;
    border-radius: var(--r);
    letter-spacing: -0.5px;
    transition: color 0.2s, background 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--accent);
    background: var(--accent-dim);
}

.mobile-nav-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .hero-name {
        letter-spacing: -2px;
    }

    .terminal-section {
        padding: 80px 20px;
    }

    .terminal-badges {
        display: none;
    }

    .contact-value {
        word-break: break-all;
        font-size: 13px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
    /* Nav */
    .navbar {
        top: 8px;
        width: calc(100% - 20px);
        padding: 10px 14px;
    }

    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-nav { display: flex; }

    /* Hero */
    .hero {
        padding: 100px 20px 140px;
    }

    .hero-inner {
        gap: 32px;
    }

    .hero-layout {
        flex-direction: column-reverse;
        align-items: center;
        gap: 28px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-photo-wrap {
        padding-top: 0;
    }

    .hero-role {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-photo-ring {
        width: 160px;
        height: 160px;
    }

    .hero-name {
        font-size: clamp(44px, 12vw, 72px);
        letter-spacing: -2px;
    }

    .hero-badge {
        font-size: 11.5px;
        padding: 6px 14px;
        margin-bottom: 28px;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }

    .btn-primary,
    .btn-glass {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px 28px;
        width: 100%;
    }

    .stat-item {
        text-align: center;
        width: 100%;
    }

    .stat-label {
        white-space: normal;
        word-break: break-word;
        letter-spacing: 0.04em;
    }

    .stat-divider { width: 40px; height: 1px; }

    /* Sections */
    section:not(.hero) { padding: 64px 16px; }

    .section-header { margin-bottom: 40px; }

    /* Terminal */
    .terminal-section { padding: 64px 16px; }

    .terminal-titlebar { padding: 12px 14px; gap: 8px; }

    .terminal-badges { display: none; }

    .terminal-title-text { font-size: 11px; }

    .terminal-body {
        padding: 16px;
        min-height: 240px;
        max-height: 380px;
    }

    .ascii-logo { font-size: 6px; }

    /* Timeline */
    .timeline-item {
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto 1fr;
    }

    .timeline-date {
        grid-column: 1 / -1;
        text-align: left;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 6px;
        font-size: 10px;
    }

    .timeline-connector {
        grid-row: 2;
        grid-column: 1;
    }

    .timeline-card {
        grid-row: 2;
        grid-column: 2;
        margin-left: 8px;
    }

    /* Education */
    .edu-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .edu-status { align-self: flex-start; }

    .mission-card { padding: 20px 16px; }

    .cert-item {
        gap: 10px;
        flex-wrap: wrap;
    }

    .cert-name { font-size: 13px; }

    /* Contact */
    .contact-card {
        padding: 18px 20px;
    }

    .contact-value {
        font-size: 12.5px;
        word-break: break-all;
    }

    /* Footer */
    .footer { flex-direction: column; gap: 8px; }
}

/* ============================================================
   SELECTION & FOCUS
   ============================================================ */
::selection {
    background: rgba(0, 212, 255, 0.25);
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* terminal — sem outline de foco */
.terminal-input:focus,
.terminal-input:focus-visible,
#terminal-body:focus,
#terminal-body:focus-visible {
    outline: none;
    box-shadow: none;
}
