﻿/* ==========================================================================
   VARIAVEIS E RESET GLOBAL
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface2: #181818;
    --border: #222222;
    --accent: #e8ff47;
    --text: #f0f0f0;
    --muted: #666666;
    --mono: 'Space Mono', monospace;
    --display: 'Syne', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 255, 71, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h1 .name-line {
    display: block;
}

h1 .role-line {
    display: block;
    color: var(--muted);
    font-weight: 400;
}

h1 .focus-line {
    display: block;
    font-size: 0.42em;
    line-height: 1.1;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 0.35rem;
}

.hero-desc {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 2.5rem;
}

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

.btn-primary {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.8rem 1.8rem;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.status-label {
    display: flex;
    align-items: center;
}

.status-text {
    font-family: var(--mono);
    font-size: 12px;
    color: #4ade80;
    margin-top: 4px;
}

.location-text {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    text-align: right;
}

.availability-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
    margin-right: 0.5rem;
}

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

    50% {
        opacity: 0.4;
    }
}

section {
    padding: 6rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.section-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.15em;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.about-text p strong {
    color: var(--text);
    font-weight: 700;
}

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

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 4px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-year {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    min-width: 40px;
    margin-top: 2px;
}

.timeline-role {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 3px;
}

.timeline-company {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
}

.skills-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bubbles-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bubbles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.bubble {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-weight: 700;
    color: #000;
    cursor: default;
    transition: transform 0.2s;
    text-align: center;
    line-height: 1.2;
}

.bubble:hover {
    transform: scale(1.08);
    z-index: 10;
}

.bubble.xl {
    width: 100px;
    height: 100px;
    font-size: 11px;
    background: var(--accent);
}

.bubble.lg {
    width: 80px;
    height: 80px;
    font-size: 10px;
    background: #c8ef00;
}

.bubble.md {
    width: 64px;
    height: 64px;
    font-size: 9px;
    background: #a8cf00;
    color: #111;
}

.bubble.sm {
    width: 48px;
    height: 48px;
    font-size: 8px;
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}

.skills-list {
    display: flex;
    flex-direction: column;
}

.skill-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.skill-row:last-child {
    border-bottom: none;
}

.skill-name {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
}

.skill-level {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
}

.skill-level.basico {
    color: #555;
}

.skill-level.inter {
    color: #999;
}

.skill-level.avancado {
    color: var(--accent);
}

.portfolio-group + .portfolio-group {
    margin-top: 4rem;
}

.portfolio-group-alt {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.portfolio-group-header {
    margin-bottom: 1.8rem;
}

.portfolio-group-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.portfolio-group-title {
    margin-top: 0.7rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.portfolio-group-desc {
    margin-top: 0.7rem;
    max-width: 700px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}

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

.portfolio-grid-single {
    grid-template-columns: minmax(300px, 1fr);
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.project-card::after {
    content: '↗';
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.1rem;
    color: var(--muted);
    transition: color 0.2s;
}

.project-card:hover::after {
    color: var(--accent);
}

.project-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: -0.02em;
}

.project-desc {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

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

.tag {
    font-family: var(--mono);
    font-size: 10px;
    padding: 3px 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--muted);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-headline {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.contact-headline span {
    color: var(--accent);
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.contact-link:hover {
    border-color: var(--accent);
    background: var(--surface2);
}

.contact-link-icon {
    color: var(--accent);
    font-size: 1rem;
}

.contact-link-label {
    flex: 1;
}

.contact-link-arrow {
    color: var(--muted);
}

.cv-buttons-wrap {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.cv-link {
    flex: 1;
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .skills-wrap,
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    section {
        padding: 4rem 2rem;
    }

    .hero {
        padding: 7rem 2rem 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 2rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid transparent;
    }

    .nav-links.active {
        max-height: 300px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1.5rem;
    }

    .stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .location-text {
        text-align: left;
    }

    .portfolio-grid,
    .portfolio-grid-single {
        grid-template-columns: 1fr;
    }

    .cv-buttons-wrap {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}
