:root {
    --bg-dark: #1f1c2c;
    --bg-primary: #2a253a;
    --bg-secondary: #3e3852;
    --bg-tertiary: #494264;
    --bg-card: #2f2a40;

    --accent: #8b7ff0;
    --accent-dim: rgba(139, 127, 240, 0.1);
    --accent-glow: rgba(139, 127, 240, 0.35);
    --accent-soft: #b3a9ff;

    --text-primary: #f2f2f2;
    --text-secondary: #b3b0c0;
    --text-muted: #9a95ae;

    --border: #4a435c;
    --border-light: #635c7a;

    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Outfit', sans-serif;

    /* Spacing */
    --section-gap: 120px;

    /* Raios (3 valores para todo o site) */
    --radius-card: 12px;
    --radius-input: 8px;
    --radius-pill: 999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.4s;
}

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

html {
    scroll-behavior: auto;
    font-size: 16px;
}

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

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-input);
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: #a99cf5;
}

/* [hidden] vence qualquer display definido por classe */
[hidden] {
    display: none !important;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient animated background (soft drifting glow) */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.45;
    will-change: transform;
}

.blob-a {
    width: 36vw;
    height: 36vw;
    top: -10vw;
    left: -8vw;
    background: radial-gradient(circle, rgba(96, 88, 140, 0.55), transparent 70%);
    animation: blobDrift1 26s ease-in-out infinite alternate;
}

.blob-b {
    width: 32vw;
    height: 32vw;
    bottom: -10vw;
    right: -6vw;
    background: radial-gradient(circle, rgba(64, 58, 90, 0.65), transparent 70%);
    animation: blobDrift2 32s ease-in-out infinite alternate;
}

.blob-c {
    width: 26vw;
    height: 26vw;
    top: 38%;
    left: 52%;
    background: radial-gradient(circle, rgba(139, 127, 240, 0.06), transparent 70%);
    animation: blobDrift3 28s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
    from { transform: translate(0, 0); }
    to { transform: translate(6vw, 4vw); }
}

@keyframes blobDrift2 {
    from { transform: translate(0, 0); }
    to { transform: translate(-5vw, -4vw); }
}

@keyframes blobDrift3 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-4vw, 3vw) scale(1.18); }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(31, 28, 44, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

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

.logo-name {
    color: var(--text-primary);
    margin: 0 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.nav-link > span:first-child {
    color: var(--accent);
    font-size: 0.75rem;
}

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

.nav-toggle {
    display: none;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    border-radius: 4px;
}

.lang-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
    font-weight: 600;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    border-color: var(--border);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.7rem;
    opacity: 0.4;
    user-select: none;
}

.nav-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle span:first-child {
    top: 0;
}

.nav-toggle span:last-child {
    bottom: 0;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 40px 80px;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    /* texto ganha espaço; a coluna da foto acompanha o frame */
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 720px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s backwards;
}

.hero-name {
    font-family: var(--font-sans);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.name-line {
    display: block;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s backwards;
}

.name-line.accent {
    color: var(--accent);
    animation-delay: 0.3s;
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-role-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s backwards;
}

.role-prefix {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.2rem;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.typed-cursor {
    font-family: var(--font-mono);
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s backwards;
}

.text-accent {
    color: var(--accent);
    font-weight: 500;
}
.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s var(--ease-out) 0.7s backwards;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-value::after {
    content: '+';
    color: var(--accent);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
    animation: fadeIn 1s var(--ease-out) 0.5s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

.profile-frame {
    position: relative;
    width: 320px;
    height: 400px; /* 4:5, igual à foto da seção Sobre */
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    z-index: 2;
}

.frame-corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.frame-corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.frame-corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.frame-corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.frame-line {
    position: absolute;
    background: var(--border);
}

.frame-line.top {
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
}

.frame-line.bottom {
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
}

.frame-line.left {
    left: 0;
    top: 30px;
    bottom: 30px;
    width: 1px;
}

.frame-line.right {
    right: 0;
    top: 30px;
    bottom: 30px;
    width: 1px;
}

.profile-image {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.profile-frame:hover .profile-image {
    filter: grayscale(0%);
}


.tech-orbit {
    position: absolute;
    width: 450px;
    height: 450px;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(139, 127, 240, 0.18);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 380px;
    height: 380px;
    box-shadow: inset 0 0 40px rgba(139, 127, 240, 0.05);
    animation: ringSpin 40s linear infinite;
}

.ring-2 {
    width: 440px;
    height: 440px;
    border-color: rgba(139, 127, 240, 0.10);
    border-style: dashed;
    animation: ringSpin 60s linear infinite reverse;
}

@keyframes ringSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-item {
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.2rem;
    top: 50%;
    left: 50%;
    transform: rotate(var(--angle)) translateX(190px) rotate(calc(-1 * var(--angle)));
    animation: orbit 25s linear infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 15px rgba(139, 127, 240, 0.1);
}

@keyframes orbit {
    from {
        transform: rotate(var(--angle)) translateX(190px) rotate(calc(-1 * var(--angle)));
    }

    to {
        transform: rotate(calc(var(--angle) + 360deg)) translateX(190px) rotate(calc(-1 * (var(--angle) + 360deg)));
    }
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* some assim que a pessoa começa a rolar (classe no body via script) */
body.scrolled .scroll-hint {
    opacity: 0;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        top: -50%;
    }

    100% {
        top: 100%;
    }
}

.hero-decoration {
    position: absolute;
    bottom: 100px;
    right: 40px;
    writing-mode: vertical-rl;
}

.deco-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    opacity: 0.5;
}

section {
    padding: var(--section-gap) 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-header.centered {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
}

.section-title {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 12) a linha vai até a margem direita */
.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.about {
    background: var(--bg-primary);
    padding-bottom: 60px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.about-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    transform: translate(10px, 10px);
    z-index: -1;
}

.about-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.5s ease;
}

.about-image-frame:hover .about-image {
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    mix-blend-mode: multiply;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.about-image-frame:hover .image-overlay {
    opacity: 0;
}

.about-image-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* About Content */
.about-content {
    padding-top: 20px;
}

.about-intro {
    margin-bottom: 30px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.code-comment {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.intro-text strong {
    color: var(--accent);
}

.about-details p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0;
}

/* Info Card */
.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--accent);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
}

/* Compact variant for Formação card */
.info-card--compact {
    padding: 8px 10px;
    gap: 10px;
    max-width: 320px;
}

.info-card--compact .info-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
}

.info-card--compact .info-content {
    line-height: 1.2;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Tech Stack */
.about-tech {
    margin: 40px 0;
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.tech-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tech-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: start;
}

.tech-group-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding-top: 9px;
}

.tech-group-label::before {
    content: '// ';
    color: var(--accent);
    opacity: 0.7;
}

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

.tech-tag {
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tech-tag i {
    color: var(--accent);
    font-size: 1rem;
}

.tech-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-dark) 100%);
    position: relative;
    padding-top: 0;
    padding-bottom: 60px;
}

.services-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 55px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.services-subtitle .code-comment {
    color: var(--text-muted);
    display: inline;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 40px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.service-item:hover {
    border-color: var(--border-light);
}

.service-item-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.service-item:hover .service-item-icon {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.service-item-name {
    font-family: var(--font-sans);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.service-item-tags {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.service-item-tags span:not(:last-child)::after {
    content: '·';
    margin: 0 7px;
    color: var(--accent);
    opacity: 0.55;
}

.experience {
    background: var(--bg-dark);
    padding-top: 0;
}

.exp-layout {
    display: block;
}

/* Experiência: cada cargo é uma linha da trajetória.
   Coluna da esquerda = período; direita = o que foi feito. */
.exp-panel {
    position: relative;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 40px;
    padding: 30px 32px;
    border-bottom: 1px solid var(--border);
    transition: background 0.35s ease;
}

.exp-panel:last-child {
    border-bottom: 0;
}

/* linha da trajetória, entre as duas colunas */
.exp-panel::before {
    content: '';
    position: absolute;
    left: 218px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.exp-panel:first-child::before {
    top: 34px;
}

.exp-panel:last-child::before {
    bottom: 34px;
}

/* ponto na linha, alinhado ao cargo */
.exp-panel::after {
    content: '';
    position: absolute;
    left: 213px;
    top: 36px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.exp-panel:hover::after,
.exp-panel.is-current::after {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-dim);
}

.exp-panel:hover {
    background: linear-gradient(90deg, transparent, rgba(139, 127, 240, 0.05) 30%, transparent);
}

.exp-header {
    margin-bottom: 15px;
}

.exp-title {
    font-family: var(--font-sans);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.exp-company {
    font-size: 1.4rem;
    color: var(--accent);
}

.exp-meta {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 28px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-align: left;
}

.exp-header,
.exp-list,
.exp-stack {
    grid-column: 2;
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-badge {
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exp-badge.current {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(139, 127, 240, 0.2);
}

.exp-list {
    list-style: none;
    margin-bottom: 30px;
}

.exp-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.list-marker {
    flex-shrink: 0;
    width: 14px;
    height: 1px;
    margin-top: 0.8em;
    background: var(--accent);
    opacity: 0.8;
}

.exp-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-stack span {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.projects {
    background: var(--bg-primary);
    position: relative;
}

.projects-subtitle {
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.projects-subtitle .code-comment {
    color: var(--text-muted);
}

/* Filter Buttons */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.filter-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.filter-btn:hover .filter-indicator,
.filter-btn.active .filter-indicator {
    height: 100%;
}

.filter-btn span,
.filter-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.filter-icon {
    color: var(--accent);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(139, 127, 240, 0.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.project-card.hidden {
    display: none;
}

/* 14) degradê no fim da grade quando há mais projetos escondidos */
.projects-grid.is-collapsed {
    position: relative;
}

.projects-grid.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
}

.projects-more {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.btn-view-more .btn-icon {
    transition: transform 0.3s ease;
}

.btn-view-more.is-open .btn-icon {
    transform: rotate(180deg);
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

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

.project-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


.project-card:hover .project-image-container img {
    filter: saturate(1.05);
}

/* Vídeo de apresentação: fica por cima da imagem (que segue como poster
   e fallback) e só aparece quando já tem dados para tocar. */
.project-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    background: transparent;
}

.project-video.is-ready {
    opacity: 1;
}

.project-card:hover .project-video {
    filter: saturate(1.05);
}

.project-card[data-image-type="mobile"] .project-video {
    object-position: center;
}@media (prefers-reduced-motion: reduce) {
    .project-video {
        display: none;
    }
}



.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-type i {
    font-size: 0.75rem;
}

.project-links {
    display: flex;
    gap: 8px;
}

.link-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.link-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

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

.project-hover-content {
    opacity: 1;
    transform: translateY(0);
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    /* mesma altura de texto em todos os cards: o rodapé fica alinhado */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tech Stack */
.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto; /* empurra a stack para a base do card */
}

.project-stack span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-stack span:hover {
    border-color: rgba(139, 127, 240, 0.3);
    color: var(--accent);
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-view-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 127, 240, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-view-more:hover::before {
    transform: translateX(100%);
}

.btn-view-more:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 30px rgba(139, 127, 240, 0.15);
}

.btn-view-more .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-view-more:hover .btn-icon {
    transform: translateX(4px);
}

.contact {
    background: var(--bg-primary);
    padding-top: 0;
}

.projects {
    padding-bottom: 60px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: start;
}

.contact-header-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-header-text p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-item--link {
    cursor: pointer;
}

.method-item--link:hover .method-icon--wa {
    background: rgba(37, 211, 102, 0.18);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.5);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.method-item:hover .method-icon {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.method-info a,
.method-info span:last-child {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form-new {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-light);
}

.form-header {
    background: var(--bg-tertiary);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.form-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.form-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group input,
.input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.input-group input:focus-visible,
.input-group textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Foco por teclado: anel coral, sem afetar clique com mouse */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.btn-submit {
    margin-top: 10px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.btn-submit[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 14px;
    min-height: 1.2em;
    color: var(--text-secondary);
}

.form-status.is-ok {
    color: #7ee0c3;
}

.form-status.is-error {
    color: var(--accent);
}

.btn-submit:hover {
    background: #a99cf5;
    transform: translateY(-2px);
}

/* ============================================
   PAC-MAN ANIMATION (footer)
   ============================================ */
.pacman-game {
    position: relative;
    height: 48px;
    margin-bottom: 45px;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pacman {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    z-index: 3;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.pac-jaw {
    position: absolute;
    left: 0;
    width: 26px;
    height: 13px;
    background: var(--accent);
}

.pac-jaw.top {
    top: 0;
    border-radius: 26px 26px 0 0;
    transform-origin: bottom center;
    animation: chompTop 0.35s linear infinite;
}

.pac-jaw.bottom {
    bottom: 0;
    border-radius: 0 0 26px 26px;
    transform-origin: top center;
    animation: chompBottom 0.35s linear infinite;
}

@keyframes chompTop {
    0%, 100% { transform: rotate(-32deg); }
    50% { transform: rotate(0); }
}

@keyframes chompBottom {
    0%, 100% { transform: rotate(32deg); }
    50% { transform: rotate(0); }
}

.pac-eye {
    position: absolute;
    top: 5px;
    left: 13px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--bg-dark);
    z-index: 4;
}

.pac-cover {
    position: absolute;
    left: 0;
    top: 0;
    width: 54px;
    height: 100%;
    background: var(--bg-primary);
    z-index: 2;
}

.pac-dots {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    align-items: center;
    gap: 26px;
    padding-left: 60px;
    z-index: 1;
    transform: translateY(-50%);
    animation: pacDots 4.5s linear infinite;
}

.pac-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.pac-dot.power {
    width: 13px;
    height: 13px;
    background: var(--accent);
    animation: pacPower 0.6s ease-in-out infinite;
}

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

@keyframes pacDots {
    from { transform: translate(0, -50%); }
    to { transform: translate(-136px, -50%); }
}@media (prefers-reduced-motion: reduce) {
    .pac-dots { animation: none !important; }
    .pac-jaw { animation: none !important; }
}

.footer {
    background: var(--bg-primary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}


.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.footer-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.code-tag {
    color: var(--accent);
}

.footer-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}@media (max-width: 992px) {
    .project-card[data-image-type="mobile"] {
        grid-column: 1 / -1;
    }

    .services-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        padding: 100px 40px;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .lang-toggle {
        margin-left: auto;
        margin-right: 15px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        order: -1;
    }

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

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

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .profile-frame {
        width: 260px;
        height: 260px;
    }

    .tech-orbit {
        width: 340px;
        height: 340px;
        top: 45%;
    }

    .orbit-ring.ring-1 {
        width: 280px;
        height: 280px;
    }

    .orbit-ring.ring-2 {
        width: 320px;
        height: 320px;
    }

    .orbit-item {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        transform: rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle)));
    }

    @keyframes orbit {
        from {
            transform: rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle)));
        }
        to {
            transform: rotate(calc(var(--angle) + 360deg)) translateX(140px) rotate(calc(-1 * (var(--angle) + 360deg)));
        }
    }

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

    .about-image-wrapper {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .exp-layout {
        grid-template-columns: 1fr;
    }

                        .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        min-height: auto;
    }

    .project-card[data-image-type="mobile"] {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .nav {
        padding: 0 20px;
    }
}@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-name {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

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

    .section-title {
        font-size: 1.9rem;
    }

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

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-decoration {
        display: none;
    }

    .tech-orbit {
        width: 300px;
        height: 300px;
    }

    .orbit-item {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        transform: rotate(var(--angle)) translateX(120px) rotate(calc(-1 * var(--angle)));
    }

    .orbit-ring.ring-1 {
        width: 240px;
        height: 240px;
    }

    .orbit-ring.ring-2 {
        width: 270px;
        height: 270px;
    }

    @keyframes orbit {
        from {
            transform: rotate(var(--angle)) translateX(120px) rotate(calc(-1 * var(--angle)));
        }
        to {
            transform: rotate(calc(var(--angle) + 360deg)) translateX(120px) rotate(calc(-1 * (var(--angle) + 360deg)));
        }
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .project-image-container {
        aspect-ratio: 16 / 9;
    }

    .project-content {
        padding: 16px;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.8rem;
    }

    .projects-filter {
        gap: 8px;
        margin-bottom: 40px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .contact-header-text h3 {
        font-size: 1.5rem;
    }

    .form-body {
        padding: 20px;
    }

    .method-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .intro-text {
        font-size: 1.05rem;
    }

    .tech-tags {
        justify-content: center;
    }
}@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 50px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 20px;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .profile-frame {
        width: 200px;
        height: 200px;
    }

    .tech-orbit {
        width: 260px;
        height: 260px;
    }

    .orbit-item {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        transform: rotate(var(--angle)) translateX(105px) rotate(calc(-1 * var(--angle)));
    }

    .orbit-ring.ring-1 {
        width: 210px;
        height: 210px;
    }

    .orbit-ring.ring-2 {
        width: 235px;
        height: 235px;
    }

    @keyframes orbit {
        from {
            transform: rotate(var(--angle)) translateX(105px) rotate(calc(-1 * var(--angle)));
        }
        to {
            transform: rotate(calc(var(--angle) + 360deg)) translateX(105px) rotate(calc(-1 * (var(--angle) + 360deg)));
        }
    }

    .project-card {
        border-radius: var(--radius-input);
    }


    .link-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .project-stack span {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .metric-divider {
        display: none;
    }

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

    .btn-view-more {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 16px;
    }

            .exp-title {
        font-size: 1.2rem;
    }

    .exp-company {
        font-size: 1.2rem;
    }

    .section-header {
        gap: 12px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .about-image-frame::before {
        transform: translate(6px, 6px);
    }
}

/* ============================================
   VISUAL ENHANCEMENTS & EXTRA ANIMATIONS
   ============================================ */

/* Animated hamburger toggle (3 lines -> X) */
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: transform 0.35s var(--ease-out), opacity 0.2s ease, background 0.3s ease;
}

.nav-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    left: 0;
}

.nav-toggle span::before {
    top: -8px;
}

.nav-toggle span::after {
    top: 8px;
}

.nav-toggle.active span {
    background: transparent;
}

.nav-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--accent);
}

.nav-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--accent);
}

/* Nav logo hover */
.nav-logo {
    transition: transform 0.3s var(--ease-out);
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo:hover .logo-bracket {
    text-shadow: 0 0 12px var(--accent-glow);
}

/* Section title gets an accent tick */
.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Project card: animated top accent line on hover */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
    z-index: 3;
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-glow);
}

/* Orbit item hover pop */
.orbit-item {
    transition: box-shadow 0.3s ease;
    cursor: default;
}

.orbit-item:hover {
    color: var(--bg-dark);
    background: var(--accent);
    box-shadow: 0 0 22px var(--accent-glow);
    z-index: 5;
}

/* Tech tag lift */
.tech-tag {
    transform: translateZ(0);
}

.tech-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Info card lift */
.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Experience panel list stagger on activation */
.exp-panel .exp-list li {
    animation: fadeInLeft 0.5s var(--ease-out) backwards;
}

.exp-panel .exp-list li:nth-child(1) { animation-delay: 0.05s; }
.exp-panel .exp-list li:nth-child(2) { animation-delay: 0.12s; }
.exp-panel .exp-list li:nth-child(3) { animation-delay: 0.19s; }
.exp-panel .exp-list li:nth-child(4) { animation-delay: 0.26s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .orbit-item {
        animation: none !important;
    }

    .ambient-blob {
        animation: none !important;
    }
}

/* ============================================
   MOBILE REFINEMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Lighter background on phones */
    .ambient-blob {
        opacity: 0.4;
    }

    /* Services: single column on phones */
    .services-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tech-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tech-group-label {
        padding-top: 0;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        text-align: left;
    }

    .services-subtitle {
        margin-top: -15px;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-line {
        display: none;
    }

    /* Language toggle spacing next to hamburger */
    .lang-toggle {
        margin-right: 12px;
    }
}@media (max-width: 600px) {
    /* Mobile project cards: stack vertically for readability */
    .project-card[data-image-type="mobile"] {
        flex-direction: column;
    }

    .project-card[data-image-type="mobile"] .project-image-container {
        width: 100%;
        height: 220px;
        border-radius: 12px 12px 0 0;
    }

    .project-card[data-image-type="mobile"] .project-content {
        width: 100%;
    }
}@media (max-width: 480px) {
    .hero-name {
        letter-spacing: -1px;
    }

    /* Tighten metrics when stacked */
    .hero-metrics {
        gap: 16px;
    }

    .metric-value {
        font-size: 2rem;
    }

    /* Experience tabs comfortable tap targets */
        .exp-stack span,
    .tech-tag {
        font-size: 0.72rem;
    }

    /* Contact form fits small screens */
    .contact-form-new {
        margin: 0 -4px;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* ============================================================
   RECURSOS EXTRAS (features.js)
   ============================================================ */

/* 13) progresso de leitura */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 1100;
    pointer-events: none;
}

/* 14) toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1200;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.copy-btn {
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}

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

.copy-btn .fa-check { display: none; color: #5fd18b; }
.copy-btn.is-done .fa-copy { display: none; }
.copy-btn.is-done .fa-check { display: inline; }

/* 16) toggle de tema */
.theme-toggle {
    width: 34px;
    height: 34px;
    margin-right: 12px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(20deg);
}


/* 4) relógio */
.local-time-wrap {
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: var(--text-muted);
}

.dot-live {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5fd18b;
    box-shadow: 0 0 8px rgba(95, 209, 139, 0.8);
    animation: pulse 2s ease-in-out infinite;
}


/* 1) heatmap do GitHub */
.gh-heatmap {
    margin-top: 26px;
}

.gh-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.gh-title i {
    color: var(--accent);
    margin-right: 6px;
}

.gh-meta b {
    color: var(--text-primary);
    font-weight: 600;
}

.gh-grid {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
    width: 100%;
}

.gh-grid i {
    aspect-ratio: 1;
    border-radius: 2px;
    background: var(--border);
}

.gh-grid i[data-level="-1"] { background: transparent; }
/* mesma escala de verdes do GitHub */
.gh-grid i[data-level="0"] { background: #161b22; }
.gh-grid i[data-level="1"] { background: #0e4429; }
.gh-grid i[data-level="2"] { background: #006d32; }
.gh-grid i[data-level="3"] { background: #26a641; }
.gh-grid i[data-level="4"] { background: #39d353; }

[data-theme="light"] .gh-grid i[data-level="0"] { background: #ebedf0; }
[data-theme="light"] .gh-grid i[data-level="1"] { background: #9be9a8; }
[data-theme="light"] .gh-grid i[data-level="2"] { background: #40c463; }
[data-theme="light"] .gh-grid i[data-level="3"] { background: #30a14e; }
[data-theme="light"] .gh-grid i[data-level="4"] { background: #216e39; }

/* 6) luz que segue o mouse */
.has-spotlight {
    position: relative;
}

.has-spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 127, 240, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.has-spotlight:hover::after {
    opacity: 1;
}

.project-card.has-spotlight::after {
    z-index: 3;
}

/* 10) métrica de impacto no card */
.project-metric {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.project-metric b {
    color: var(--accent);
    font-weight: 600;
}

/* 11) linha do tempo da carreira */
.career-timeline {
    position: relative;
    height: 190px;
    margin: 0 30px 36px;
}

.tl-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--border-light), var(--accent));
}

.tl-year {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.tl-year::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    margin-bottom: 4px;
    width: 1px;
    height: 12px;
    background: var(--border-light);
}

.tl-dot {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    cursor: pointer;
    padding: 0;
    z-index: 1;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.tl-dot:hover,
.tl-dot.is-active {
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-dim), 0 0 18px var(--accent-glow);
}

.tl-dot.is-current::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

/* conector do ponto até a etiqueta */
.tl-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 1px;
    height: 22px;
    background: var(--border-light);
}

.tl-dot.is-below::before {
    bottom: auto;
    top: 100%;
}

.tl-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 22px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    white-space: nowrap;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.tl-dot.is-below .tl-label {
    bottom: auto;
    top: calc(100% + 22px);
}

.tl-name {
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tl-date {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.tl-dot.is-active .tl-label,
.tl-dot:hover .tl-label {
    border-color: var(--accent);
}

.tl-dot.is-active .tl-name,
.tl-dot:hover .tl-name {
    color: var(--accent);
}

/* ---- responsivo dos extras ---- */
@media (max-width: 992px) {
    .career-timeline {
        display: none;
    }
}

@media (max-width: 600px) {
    .now-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .theme-toggle {
        margin-right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-spotlight::after {
        display: none;
    }
}

/* ============================================================
   TEMA CLARO (data-theme="light"; toggle no header)
   ============================================================ */
[data-theme="light"] {
    --bg-dark: #f5f2fa;
    --bg-primary: #ffffff;
    --bg-secondary: #ece8f3;
    --bg-tertiary: #e2ddec;
    --bg-card: #ffffff;
    --accent: #5b4bd6;
    --accent-dim: rgba(91, 75, 214, 0.10);
    --accent-glow: rgba(91, 75, 214, 0.3);
    --text-primary: #1f1c2c;
    --text-secondary: #4d4763;
    --text-muted: #6e6885;
    --border: #dcd7e6;
    --border-light: #c9c3d6;
}

[data-theme="light"] .header.scrolled {
    background: rgba(245, 242, 250, 0.92);
}

[data-theme="light"] .ambient-blob {
    opacity: 0.35;
}

[data-theme="light"] .noise-overlay {
    opacity: 0.02;
}

[data-theme="light"] ::selection {
    background: var(--accent);
    color: #fff;
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-submit,
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .lang-btn.active {
    color: #fff;
}

[data-theme="light"] .pac-eye {
    background: #fff;
}


/* ============================================================
   16) CAPTURAS EM MOCKUP
   Cards web ganham uma barra de navegador; cards de app mostram a
   captura inteira dentro de uma moldura de celular.
   ============================================================ */
.project-card .project-image-container > img,
.project-card .project-video {
    padding-top: 30px; /* espaço da barra do navegador */
    background: var(--bg-secondary);
}

.browser-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    z-index: 3;
    pointer-events: none;
}

.browser-dots {
    display: inline-flex;
    gap: 5px;
    flex-shrink: 0;
}

.browser-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
}

.browser-url {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    flex: 1;
}

/* apps: captura inteira, centralizada, com moldura de celular */
.project-card[data-image-type="mobile"] .project-image-container {
    background:
        radial-gradient(ellipse at 50% 115%, rgba(139, 127, 240, 0.16), transparent 65%),
        var(--bg-secondary);
}

.project-card[data-image-type="mobile"] .project-image-container > img,
.project-card[data-image-type="mobile"] .project-video {
    object-fit: contain;
    object-position: center bottom;
    padding-top: 18px;
    background: transparent;
}



/* ============================================================
   EXPERIÊNCIA — acabamento
   ============================================================ */
.exp-content {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    padding: 6px 0;
    overflow: hidden;
}

.exp-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 18px;
}

.exp-company {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--accent);
}

.exp-date {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;
}

.exp-date i {
    display: none;
}

.exp-badge {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.64rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.exp-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 68ch; /* linha curta o bastante para ler sem esforço */
}

.exp-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.exp-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.exp-stack span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

@media (max-width: 860px) {
    .exp-panel {
        grid-template-columns: 1fr;
        padding: 24px 22px;
        row-gap: 14px;
    }

    .exp-panel::before,
    .exp-panel::after {
        display: none;
    }

    .exp-meta {
        grid-column: 1;
        grid-row: auto;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding-top: 0;
        order: -1;
    }

    .exp-header,
    .exp-list,
    .exp-stack {
        grid-column: 1;
    }
}

/* ============================================================
   EXPERIÊNCIA v3 — lista editorial
   Sem cards e sem caixa: período à esquerda, cargo e empresa na
   linha, detalhes abrem ao clicar. Sobrescreve as versões anteriores.
   ============================================================ */
.exp-content {
    gap: 0;
    border-top: 1px solid var(--border);
}

.exp-panel,
.exp-panel:hover {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 40px;
    column-gap: 28px;
    align-items: start;
    padding: 22px 4px 22px 12px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible;
    transition: background 0.3s ease;
}

.exp-panel:hover {
    background: linear-gradient(90deg, rgba(139, 127, 240, 0.05), transparent 70%);
}

.exp-panel::before,
.exp-panel::after {
    content: none;
    display: none;
}

.exp-index {
    display: none;
}

/* período */
.exp-meta {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 5px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.exp-date {
    color: var(--text-muted);
    letter-spacing: 1px;
    line-height: 1.55;
}

.exp-panel.is-current .exp-date {
    color: var(--text-secondary);
}

.exp-badge {
    margin: 0;
    font-size: 0.6rem;
    padding: 3px 9px;
}

/* cargo + empresa na mesma linha */
.exp-header {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.exp-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color 0.25s ease;
}

.exp-panel:hover .exp-title,
.exp-panel.is-open .exp-title {
    color: var(--accent-soft);
}

.exp-company {
    padding: 4px 11px;
    font-size: 0.7rem;
}

/* seta */
.exp-toggle {
    grid-column: 3;
    grid-row: 1;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out), border-color 0.25s ease, color 0.25s ease;
}

.exp-panel:hover .exp-toggle,
.exp-panel.is-open .exp-toggle {
    border-color: var(--accent);
    color: var(--accent);
}

.exp-panel.is-open .exp-toggle {
    transform: rotate(180deg);
}

/* bloco expansível */
.exp-body {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease-out);
}

.exp-body-inner {
    overflow: hidden;
}

.exp-panel.is-open .exp-body {
    grid-template-rows: 1fr;
}

.exp-list {
    margin: 0;
    padding: 16px 0 14px;
    background: none;
    border: 0;
    border-radius: 0;
    gap: 8px;
    max-width: 66ch;
}

.exp-list li {
    font-size: 0.94rem;
}

.exp-stack {
    margin-bottom: 6px;
}

@media (max-width: 860px) {
    .exp-panel,
    .exp-panel:hover {
        grid-template-columns: minmax(0, 1fr) 34px;
        padding: 18px 0;
        column-gap: 14px;
        row-gap: 8px;
    }

    .exp-meta {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding-top: 0;
        margin: 0;
    }

    .exp-header {
        grid-column: 1;
        grid-row: 2;
    }

    .exp-toggle {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .exp-body {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}


/* ============================================================
   AJUSTES GLOBAIS (passada final)
   ============================================================ */
/* Sobre: cards de Formação/Localização empilhados sob a foto */
.about-image-wrapper .about-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0 0;
}

.about-image-wrapper .info-card {
    padding: 12px 14px;
}

/* stack: rótulo dos grupos numa linha só */
.tech-group {
    grid-template-columns: 156px 1fr;
}

.tech-group-label {
    white-space: nowrap;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
    .tech-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tech-group-label {
        padding-top: 0;
    }
}


/* ============================================================
   BASE SÓBRIA — tipografia e detalhes de volta ao essencial
   ============================================================ */
.hero-name,
.section-title,
.contact-header-text h3,
.project-title,
.metric-value,
.exp-title,
.name-line.accent {
    font-family: var(--font-sans);
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
}

.hero-name {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
}

.name-line.accent {
    font-size: inherit;
    line-height: inherit;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
}

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

/* volta ao ponto discreto antes do título */
.section-title::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.contact-header-text h3 {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
}

.project-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.metric-value {
    font-family: var(--font-mono);
    font-weight: 700;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0;
    margin-bottom: 10px;
}

.hero-visual::before {
    display: none;
}

.section-line::after {
    display: none;
}

.noise-overlay {
    opacity: 0.03;
}

/* marcador de lista simples */
.list-marker::before {
    content: '';
}

.list-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 0.6em;
    opacity: 0.9;
}

/* empresa: texto, sem pílula */
.exp-company,
.exp-panel.is-current .exp-company {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
}

/* stack: chips discretos, não linha em caixa alta */
.exp-stack {
    gap: 6px;
}

.exp-stack span {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-secondary);
    font-size: 0.68rem;
    letter-spacing: 0.3px;
    text-transform: none;
    color: var(--text-muted);
}

.exp-stack span:not(:last-child)::after {
    content: none;
}

/* linha do tempo mais discreta */
.tl-label {
    padding: 4px 10px;
    border-color: var(--border);
    background: var(--bg-primary);
}

.tl-name {
    font-size: 0.78rem;
    font-weight: 500;
}

.tl-dot.is-current::after {
    animation: none;
}

.hero-description .text-accent {
    color: var(--accent-soft);
}

.method-icon--ig {
    background: linear-gradient(135deg, rgba(139, 127, 240, 0.18), rgba(224, 124, 180, 0.18));
}

.method-item--link:hover .method-icon--ig {
    background: linear-gradient(135deg, #8b7ff0, #e07cb4);
    color: #fff;
    border-color: transparent;
}

/* botão do Instagram no hero como os demais */
.hero-cta .btn-outline {
    font-family: var(--font-mono);
}

/* experiência: lista limpa, sem caixa em volta */
.exp-content {
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    padding: 0;
    overflow: visible;
}

.exp-panel,
.exp-panel:hover {
    grid-template-columns: 170px minmax(0, 1fr) 40px;
    padding: 22px 0;
}

/* a coluna do período ocupa as duas linhas: o texto abre logo abaixo do cargo */
.exp-meta {
    grid-row: 1 / span 2;
}

.exp-date {
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.exp-list {
    padding-top: 12px;
}

@media (max-width: 860px) {
    .exp-panel,
    .exp-panel:hover {
        grid-template-columns: minmax(0, 1fr) 34px;
    }

    .exp-meta {
        grid-row: 1;
    }
}


/* ============================================================
   EXPERIÊNCIA v4 — um cargo por vez
   A linha do tempo escolhe o cargo; abaixo, um único card compacto
   no mesmo padrão dos cards de projeto. Sobrescreve as versões anteriores.
   ============================================================ */
.exp-content {
    position: relative;
    border: 0;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.exp-panel:not(.is-active) {
    display: none;
}

.exp-panel.is-active,
.exp-panel.is-active:hover {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 36px;
    row-gap: 0;
    align-items: start;
    padding: 28px 32px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    box-shadow: none;
    transform: none;
}

.exp-panel.is-entering {
    animation: exp-in 0.4s var(--ease-out) both;
}

@keyframes exp-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* setas + contador no canto do card */
.exp-nav {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exp-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.exp-nav-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

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

/* coluna da esquerda: período, empresa, situação */
.exp-meta {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 6px;
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: normal;
}

.exp-badge {
    margin: 2px 0 0;
}

/* coluna da direita */
.exp-header {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 4px;
    padding-right: 130px; /* espaço para as setas */
    margin: 0;
    cursor: default;
    user-select: auto;
}

.exp-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.exp-panel:hover .exp-title,
.exp-panel.is-open .exp-title {
    color: var(--text-primary);
}

.exp-company {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
}

/* itens em duas colunas para o card ficar baixo */
.exp-list {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 28px;
    margin: 0;
    padding: 16px 0 14px;
    max-width: none;
}

.exp-list li {
    font-size: 0.88rem;
    line-height: 1.55;
}

.exp-stack {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
}

@media (max-width: 992px) {
    .exp-panel.is-active,
    .exp-panel.is-active:hover {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px 20px 20px;
    }

    .exp-nav {
        position: static;
        justify-content: flex-end;
        margin-bottom: 14px;
    }

    .exp-meta {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 14px;
        padding-top: 0;
        margin-bottom: 12px;
    }

    .exp-header,
    .exp-list,
    .exp-stack {
        grid-column: 1;
        grid-row: auto;
    }

    .exp-header {
        padding-right: 0;
    }

    .exp-list {
        grid-template-columns: 1fr;
    }
}

/* a órbita é só decoração: não pode roubar o hover da foto */
.tech-orbit {
    pointer-events: none;
}

/* o mockup do Sobre já tem a cor da marca: sem filtro nem véu lilás */
.about-image,
.about-image-frame:hover .about-image {
    filter: none;
}

.image-overlay {
    display: none;
}

/* Sobre: o mockup é recortado (fundo transparente), sem moldura nem véu */
.about-image-frame,
.about-image-frame::before {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.about-image-frame::before {
    display: none;
}

.about-image {
    object-fit: contain;
}

/* ============================================================
   RITMO ENTRE SEÇÕES
   Mesmo respiro em todas as seções e fundos alternados sem
   degradês, para as fronteiras ficarem limpas e previsíveis.
   ============================================================ */
:root {
    --section-gap: 96px;
}

.about,
.services,
.projects,
.experience,
.contact {
    padding: var(--section-gap) 0;
}

.about { background: var(--bg-primary); }
.services { background: var(--bg-dark); }
.projects { background: var(--bg-primary); }
.experience { background: var(--bg-dark); }
.contact { background: var(--bg-primary); }

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

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

.footer {
    padding: 48px 0 28px;
}

@media (max-width: 768px) {
    :root {
        --section-gap: 72px;
    }

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

/* Sobre: mapa do GitHub abaixo das duas colunas, na largura toda */
.gh-heatmap {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* Projetos em três colunas nas telas largas: seção mais curta */
@media (min-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.gh-grid {
    gap: 5px;
}

/* Experiência: card sem preenchimento, só o contorno */
.exp-panel.is-active,
.exp-panel.is-active:hover {
    background: transparent;
}

/* ============================================================
   ÍCONES NAS CORES DAS MARCAS (chips do Sobre e órbita do hero)
   ============================================================ */
[data-tech="python"] i { color: #4b8bbe; }
[data-tech="fastapi"] i { color: #05998b; }
[data-tech="django"] i { color: #44b78b; }
[data-tech="flask"] i { color: #e6e6e6; }
[data-tech="c-net"] i { color: #a78bfa; }
[data-tech="node-js"] i { color: #8cc84b; }
[data-tech="php"] i { color: #8892bf; }
[data-tech="react"] i { color: #61dafb; }
[data-tech="typescript"] i { color: #3178c6; }
[data-tech="flutter"] i { color: #54c5f8; }
[data-tech="postgresql"] i,
[data-tech="database"] i { color: #6ba0e8; }
[data-tech="mongodb"] i { color: #47a248; }
[data-tech="redis"] i { color: #dc382d; }
[data-tech="sql-server"] i { color: #e5534b; }
[data-tech="docker"] i { color: #2496ed; }
[data-tech="aws"] i { color: #ff9900; }
[data-tech="git"] i { color: #f05032; }
[data-tech="linux"] i { color: #fcc624; }

.tech-tag:hover i,
.orbit-item:hover i {
    color: inherit;
}

/* ============================================================
   HERO NO CELULAR — foto 4:5 sem a órbita por cima, altura menor,
   botões e métricas em grade
   ============================================================ */
@media (max-width: 992px) {
    .hero {
        min-height: 0;
        padding: 96px 20px 48px;
    }

    .hero-container {
        gap: 28px;
    }

    .hero-visual {
        justify-content: center;
        padding-right: 0;
    }

    .profile-frame {
        width: 240px;
        height: 300px;
    }

    .tech-orbit {
        display: none;
    }

    .hero-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }

    .hero-cta > .btn-primary {
        grid-column: 1 / -1;
    }

    .hero-cta > * {
        width: 100%;
        justify-content: center;
    }

    .hero-metrics {
        flex-direction: row;
        justify-content: space-around;
        gap: 12px;
        margin-top: 8px;
        padding-top: 22px;
    }

    .hero-metrics .metric-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 88px 16px 40px;
    }

    .profile-frame {
        width: 208px;
        height: 260px;
    }

    .hero-name {
        font-size: 2.4rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }
}

/* ============================================================
   ÓRBITA DO HERO
   A órbita agora fica dentro de .profile-frame, então gira em
   volta da foto em qualquer largura. O raio é uma variável (--r)
   e o container é achatado no eixo Y (--sy) para a órbita ser
   uma elipse que acompanha a foto 4:5 sem passar por cima dela.
   ============================================================ */
.tech-orbit {
    --r: 215px;      /* raio horizontal */
    --sy: 1.22;      /* raio vertical = --r * --sy */
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--r) * 2 + 60px);
    height: calc(var(--r) * 2 + 60px);
    transform: translate(-50%, -50%) scaleY(var(--sy));
    pointer-events: none;
}

.orbit-ring.ring-1 {
    width: calc(var(--r) * 2);
    height: calc(var(--r) * 2);
}

.orbit-ring.ring-2 {
    width: calc(var(--r) * 2 + 50px);
    height: calc(var(--r) * 2 + 50px);
}

.orbit-item {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    /* o scaleY final desfaz o achatamento do container no ícone */
    transform: rotate(var(--angle)) translateX(var(--r)) rotate(calc(-1 * var(--angle))) scaleY(calc(1 / var(--sy)));
    animation: orbitEllipse 25s linear infinite;
    /* sem atraso: o --delay do HTML somava mais um giro ao ângulo e os ícones
       ficavam em pares no mesmo ponto */
    animation-delay: 0s;
}

@keyframes orbitEllipse {
    from {
        transform: rotate(var(--angle)) translateX(var(--r)) rotate(calc(-1 * var(--angle))) scaleY(calc(1 / var(--sy)));
    }
    to {
        transform: rotate(calc(var(--angle) + 360deg)) translateX(var(--r)) rotate(calc(-1 * (var(--angle) + 360deg))) scaleY(calc(1 / var(--sy)));
    }
}

/* Entre 1200 e 1399px a coluna da foto é mais estreita: raio menor */
@media (min-width: 1200px) and (max-width: 1399px) {
    .tech-orbit {
        --r: 195px;
    }
}

/* Entre 993 e 1199px: foto e órbita menores para não passar da borda da tela */
@media (min-width: 993px) and (max-width: 1199px) {
    .profile-frame {
        width: 260px;
        height: 325px;
    }

    .tech-orbit {
        --r: 165px;
    }

    .orbit-item {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}

@media (max-width: 992px) {
    .tech-orbit {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-item {
        animation: none !important;
    }
}
