/* =============================================
   PEDRO LUCAS — PORTFOLIO CSS
   Premium Dark Theme · v2.0
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── TOKENS ─────────────────────────────────── */
:root {
    /* Colors */
    --c-bg:          #030712;
    --c-bg2:         #080f1e;
    --c-card:        rgba(10, 18, 36, 0.7);
    --c-card-hover:  rgba(14, 24, 48, 0.9);

    --c-blue:        #3b82f6;
    --c-blue-2:      #60a5fa;
    --c-violet:      #8b5cf6;
    --c-cyan:        #06b6d4;
    --c-emerald:     #10b981;
    --c-rose:        #f43f5e;

    --c-grad-1:      linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --c-grad-2:      linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --c-grad-text:   linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #67e8f9 100%);

    --c-border:      rgba(59, 130, 246, 0.18);
    --c-border-2:    rgba(139, 92, 246, 0.25);
    --c-text:        #f1f5f9;
    --c-muted:       #64748b;
    --c-muted-2:     #94a3b8;

    /* Shadows / Glow */
    --glow-blue:     0 0 30px rgba(59, 130, 246, 0.25);
    --glow-violet:   0 0 30px rgba(139, 92, 246, 0.25);
    --glow-strong:   0 0 60px rgba(59, 130, 246, 0.4), 0 0 120px rgba(139, 92, 246, 0.2);
    --shadow-card:   0 8px 40px -8px rgba(0,0,0,0.6);

    /* Misc */
    --radius:        14px;
    --radius-lg:     20px;
    --radius-xl:     28px;
    --radius-pill:   999px;
    --font-main:     'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    --font-mono:     'JetBrains Mono', monospace;
    --nav-h:         72px;
    --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

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

/* ── BACKGROUNDS ─────────────────────────────── */
/* Mesh grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Aurora orbs */
.radial-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.radial-bg::before,
.radial-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    animation: aurora 18s infinite alternate ease-in-out;
}

.radial-bg::before {
    width: 70vw; height: 70vh;
    background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
    top: -30vh; left: -20vw;
}

.radial-bg::after {
    width: 60vw; height: 60vh;
    background: radial-gradient(ellipse, rgba(139,92,246,0.1) 0%, transparent 70%);
    bottom: -20vh; right: -15vw;
    animation-delay: -6s;
}

/* Cyan orb */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

@keyframes aurora {
    0%   { transform: scale(1) translate(0, 0); }
    40%  { transform: scale(1.15) translate(6vw, -6vh); }
    100% { transform: scale(0.9) translate(-4vw, 6vh); }
}

section, footer, nav {
    position: relative;
    z-index: 1;
}

/* ── UTILITIES ───────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Gradient text */
.text-gradient {
    background: var(--c-grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Section header */
.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--c-blue-2);
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.section-title .highlight {
    background: var(--c-grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Divider line */
.section-line {
    width: 64px;
    height: 3px;
    background: var(--c-grad-1);
    border-radius: var(--radius-pill);
    margin-top: 14px;
}

/* ── GLASS CARD ──────────────────────────────── */
.glass-card {
    background: var(--c-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--c-border-2);
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.7), var(--glow-blue), inset 0 1px 0 rgba(255,255,255,0.08);
    background: var(--c-card-hover);
}

/* ── BADGE ───────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(59,130,246,0.08);
    color: var(--c-blue-2);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid rgba(59,130,246,0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    transition: var(--transition);
}

.badge:hover {
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.5);
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: var(--transition);
}

.btn:hover::after {
    background: rgba(255,255,255,0.08);
}

.btn-primary {
    background: var(--c-grad-1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,0.35), 0 2px 8px rgba(139,92,246,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59,130,246,0.45), 0 4px 15px rgba(139,92,246,0.3);
}

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

.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--c-text);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(59,130,246,0.5);
    background: rgba(59,130,246,0.08);
    box-shadow: var(--glow-blue);
}

/* ── NAVBAR ──────────────────────────────────── */
nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 2000;
    background: rgba(3,7,18,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59,130,246,0.1);
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(3,7,18,0.96);
    border-bottom-color: var(--c-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}

/* Logo */
.logo {
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-mono);
    background: var(--c-grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 18px rgba(59,130,246,0.4));
    transition: var(--transition);
}

.brand-logo {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-logo i {
    transition: var(--transition);
}

.brand-logo:hover i {
    color: var(--c-violet) !important;
}

.logo:hover {
    filter: drop-shadow(0 0 28px rgba(139,92,246,0.6));
}

@keyframes glitch {
    0%   { transform: translate(0); }
    20%  { transform: translate(-2px, 2px); }
    40%  { transform: translate(-2px,-2px); }
    60%  { transform: translate(2px, 2px); }
    80%  { transform: translate(2px,-2px); }
    100% { transform: translate(0); }
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--c-muted-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 14px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-text);
    background: rgba(59,130,246,0.08);
}

.nav-link.active {
    color: var(--c-blue-2);
}

/* Mobile menu */
#menu-toggle { display: none; }

.menu-icon {
    display: none;
    cursor: pointer;
    color: var(--c-text);
    font-size: 1.3rem;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-icon:hover { background: rgba(255,255,255,0.05); }

/* ── HERO ────────────────────────────────────── */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind hero */
#home::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 0;
}

.hero-content {
    flex: 1;
    max-width: 620px;
}

/* Typing badge */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: var(--c-blue-2);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
    font-family: var(--font-mono);
}

.hero-eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-emerald);
    box-shadow: 0 0 8px var(--c-emerald);
    animation: pulse-dot 2s infinite;
}

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

.hero-content h1 {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin-bottom: 18px;
}

.hero-role {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 600;
    color: var(--c-muted-2);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.role-pill {
    background: var(--c-grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-desc {
    font-size: 16px;
    color: var(--c-muted-2);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

/* Social icons */
.hero-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-social a {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--c-muted-2);
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
}

.hero-social a:hover {
    color: var(--c-text);
    border-color: rgba(59,130,246,0.4);
    background: rgba(59,130,246,0.08);
    transform: translateY(-3px);
    box-shadow: var(--glow-blue);
}

/* Hero image */
.hero-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Rotating ring */
.profile-ring {
    position: relative;
    width: 380px;
    height: 380px;
}

.profile-ring::before,
.profile-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: spin 8s linear infinite;
}

.profile-ring::before {
    inset: -8px;
    background: conic-gradient(from 0deg, transparent 60%, rgba(59,130,246,0.7), rgba(139,92,246,0.7), transparent);
    border-radius: 50%;
    animation: spin 6s linear infinite;
}

.profile-ring::after {
    inset: -16px;
    background: conic-gradient(from 180deg, transparent 60%, rgba(6,182,212,0.4), rgba(59,130,246,0.4), transparent);
    border-radius: 50%;
    animation: spin-rev 10s linear infinite;
}

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

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid rgba(59,130,246,0.3);
    box-shadow: 0 0 0 6px rgba(3,7,18,0.9), var(--glow-strong);
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.profile-pic:hover {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 6px rgba(3,7,18,0.9), 0 0 80px rgba(59,130,246,0.6), 0 0 150px rgba(139,92,246,0.3);
}

/* Floating badges */
.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10,18,36,0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    animation: float-badge 4s ease-in-out infinite;
}

.hero-badge i { font-size: 1rem; }

.hero-badge--1 {
    top: 8%;
    right: -14%;
    color: var(--c-blue-2);
    border-color: rgba(59,130,246,0.3);
    animation-delay: 0s;
}

.hero-badge--2 {
    bottom: 12%;
    left: -14%;
    color: var(--c-violet);
    border-color: rgba(139,92,246,0.3);
    animation-delay: -2s;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fade-up-in 1.2s 1.5s both;
}

.scroll-hint .arrow {
    width: 22px; height: 36px;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-hint .arrow::after {
    content: '';
    width: 4px; height: 8px;
    background: var(--c-blue-2);
    border-radius: 2px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    80%       { transform: translateY(10px); opacity: 0; }
}

/* ── SOBRE ────────────────────────────────────── */
#sobre { padding: 110px 0; }

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.sobre-card {
    padding: 44px;
    padding-left: 47px;
}

.sobre-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--c-grad-1);
}

.sobre-card p {
    color: var(--c-muted-2);
    font-size: 15.5px;
    line-height: 1.85;
    margin-bottom: 1.4rem;
}

.sobre-card p:last-child { margin-bottom: 0; }

.sobre-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    padding: 28px 24px;
    text-align: center;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-grad-1);
    opacity: 0.06;
    transition: var(--transition);
}

.stat-card:hover::before { opacity: 0.12; }

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: var(--c-grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--c-muted-2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── TECNOLOGIAS ─────────────────────────────── */
#tecnologias { padding: 110px 0; }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.tech-card {
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tech-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.tech-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-grad-1);
    opacity: 0.15;
}

.tech-icon-wrap i { position: relative; z-index: 1; }

.tech-card:nth-child(1) .tech-icon-wrap { color: var(--c-cyan); }
.tech-card:nth-child(1) .tech-icon-wrap::before { background: var(--c-grad-2); }
.tech-card:nth-child(2) .tech-icon-wrap { color: var(--c-emerald); }
.tech-card:nth-child(2) .tech-icon-wrap::before { background: linear-gradient(135deg, #10b981, #06b6d4); opacity: 0.15; }
.tech-card:nth-child(3) .tech-icon-wrap { color: var(--c-blue-2); }
.tech-card:nth-child(4) .tech-icon-wrap { color: var(--c-violet); }
.tech-card:nth-child(4) .tech-icon-wrap::before { background: linear-gradient(135deg, #8b5cf6, #ec4899); opacity: 0.15; }

.tech-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--c-text);
    margin-bottom: 18px;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-list li {
    color: var(--c-muted-2);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-list li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-grad-1);
    flex-shrink: 0;
}

/* ── PROJETOS ─────────────────────────────────── */
#projetos { padding: 110px 0; }

.project-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    color: var(--c-muted-2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    border-color: rgba(59,130,246,0.4);
    color: var(--c-text);
    background: rgba(59,130,246,0.06);
}

.filter-btn.active {
    background: var(--c-grad-1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.projeto-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    transition: var(--transition);
}

.projeto-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: rgba(10,18,36,0.9);
}

.projeto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.85);
}

.projeto-card:hover .projeto-img {
    transform: scale(1.08);
    filter: brightness(1);
}

.projeto-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.06));
    position: relative;
    overflow: hidden;
}

.projeto-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.05) 25%, transparent 75%);
}

.projeto-img-placeholder i {
    background: var(--c-grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.projeto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3,7,18,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(4px);
}

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

.projeto-overlay a {
    width: 46px; height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.projeto-overlay a:hover {
    background: var(--c-grad-1);
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--glow-blue);
}

.projeto-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.projeto-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--c-text);
}

.projeto-desc {
    color: var(--c-muted-2);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 22px;
    flex-grow: 1;
}

.projeto-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* ── EXPERIÊNCIA ─────────────────────────────── */
#experiencia { padding: 110px 0; }

.timeline {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--c-blue), var(--c-violet), transparent);
    margin-left: 0;
}

.timeline-card {
    padding: 32px 36px;
    padding-left: 38px;
    margin-left: 24px;
    position: relative;
}

.timeline-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--c-grad-1);
}

/* Dot on line */
.timeline-card::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 38px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-grad-1);
    border: 2px solid var(--c-bg);
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.timeline-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text);
    margin-bottom: 6px;
}

.timeline-company {
    color: var(--c-blue-2);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.timeline-company:hover { color: var(--c-violet); }

.timeline-date {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    color: var(--c-blue-2);
    font-weight: 700;
    white-space: nowrap;
    font-family: var(--font-mono);
}

.timeline-content {
    color: var(--c-muted-2);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-content li {
    font-size: 14.5px;
    padding-left: 20px;
    position: relative;
    line-height: 1.65;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-grad-1);
}

/* ── CERTIFICAÇÕES ───────────────────────────── */
#certificacoes { padding: 110px 0; }

.cert-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.cert-box {
    padding: 36px;
}

.cert-box-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--c-border);
}

.cert-logo {
    height: 40px;
    max-width: 140px;
    object-fit: contain;
}

.cert-logo.filter-white {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.cert-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cert-list li {
    color: var(--c-muted-2);
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    transition: var(--transition);
}

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

.cert-list li:hover { color: var(--c-text); }

.cert-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--c-blue-2);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── CONTATO ─────────────────────────────────── */
#contato { padding: 110px 0; }

.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

.contato-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contato-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    text-decoration: none;
    color: var(--c-text);
    transition: var(--transition);
}

.contato-card:hover {
    transform: translateX(6px);
}

.contato-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--c-blue-2);
    transition: var(--transition);
    flex-shrink: 0;
}

.contato-card:hover .contato-icon {
    background: var(--c-grad-1);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--glow-blue);
    transform: rotate(-8deg) scale(1.1);
}

.contato-card-info h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.contato-card-info span {
    color: var(--c-muted-2);
    font-size: 13px;
}

/* Form */
.form-container {
    padding: 40px;
}

.form-container h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
    background: var(--c-grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--c-muted-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--c-text);
    outline: none;
    transition: var(--transition);
    font-size: 14.5px;
    font-family: var(--font-main);
}

.form-control::placeholder { color: var(--c-muted); }

.form-control:focus {
    border-color: rgba(59,130,246,0.5);
    background: rgba(59,130,246,0.04);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 15px;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
    padding: 50px 0 32px;
    border-top: 1px solid var(--c-border);
    background: linear-gradient(to bottom, transparent, rgba(3,7,18,0.8));
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--c-grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--c-muted-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 7px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--c-text);
    background: rgba(255,255,255,0.04);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--c-muted-2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--c-text);
    border-color: rgba(59,130,246,0.4);
    background: rgba(59,130,246,0.08);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--c-border);
    margin: 4px 0 20px;
}

.footer-copy {
    color: var(--c-muted);
    font-size: 12.5px;
    text-align: center;
}

/* ── SCROLL ANIMATIONS ───────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fade-up-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
    .hero-wrapper { gap: 40px; }
    .profile-ring { width: 320px; height: 320px; }
    .sobre-grid { grid-template-columns: 1fr; }
    .contato-wrapper { grid-template-columns: 1fr; }
    .hero-badge--1 { right: -5%; }
    .hero-badge--2 { left: -5%; }
}

@media (max-width: 768px) {
    .menu-icon { display: block; }

    .nav-links {
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: rgba(3,7,18,0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        border-bottom: 1px solid transparent;
    }

    #menu-toggle:checked ~ .nav-links {
        max-height: 400px;
        border-bottom-color: var(--c-border);
    }

    .nav-link {
        display: block;
        padding: 16px 28px;
        border-radius: 0;
        border-top: 1px solid var(--c-border);
    }

    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
        padding-top: 16px;
    }

    .hero-content { align-items: center; }
    .hero-content h1 { letter-spacing: -1.5px; }
    .hero-role { justify-content: center; }
    .hero-desc { text-align: left; }
    .hero-actions { justify-content: center; }
    .hero-social { justify-content: center; }
    .hero-eyebrow { font-size: 11px; }

    .profile-ring { width: 260px; height: 260px; }
    .hero-badge { display: none; }
    .scroll-hint { display: none; }

    .sobre-stats { grid-template-columns: 1fr 1fr; }

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

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

    .cert-boxes { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-nav { justify-content: center; }

    .timeline::before { display: none; }
    .timeline-card { margin-left: 0; }
    .timeline-card::before { display: none; }

    .timeline-header { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .tech-grid { grid-template-columns: 1fr; }
    .sobre-stats { grid-template-columns: 1fr 1fr; }
    .btn { padding: 14px 24px; font-size: 13px; }
}