/* CORES */
:root {
    --color-bg: #F4F1EA;
    --color-surface: #EAE6DE;
    --color-text: #292925;
    --color-muted: #73716A;
    --color-border: #D9D4CA;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'JetBrains Mono', monospace;

}

.site-header {
    border-bottom: 1px solid var(--color-border);
}


/* NAVBAR */
.navbar-custom {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--color-text);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -1px;
}

.brand span {
    color: var(--color-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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



/* HERO SECTION */
.hero {
    min-height: calc(100vh - 81px);
    display: flex;
    align-items: center;
    padding: 80px 0 32px;
}

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

.eyebrow {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 28px;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.055em;
    margin-bottom: 28px;
}

.hero h1 span {
    color: var(--color-muted);
}

.hero-description {
    max-width: 560px;
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-main,
.btn-secondary {
    min-height: 50px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--color-text);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-main {
    background: var(--color-text);
    color: var(--color-bg);
}

.hero .btn-main {
    border: none;
}

.btn-main:hover {
    background: #d9d9d9;
    color: var(--color-bg);
}

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

.btn-secondary:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.btn-main:focus-visible,
.btn-secondary:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}

.hero-footer {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--color-muted);
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .navbar-custom {
        min-height: 72px;
        flex-wrap: wrap;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 28px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 11vw, 3.5rem);
    }

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

    .hero-footer {
        margin-top: 56px;
        flex-direction: column;
    }
}



/* ===== IDEs flutuantes ===== */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.ide-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    perspective: 1000px;
}

.ide-window {
    position: absolute;
    width: 310px;
    height: 215px;
    overflow: hidden;
    border-radius: 12px;

    background: linear-gradient(
        145deg,
        rgba(43, 44, 48, 0.96),
        rgba(20, 21, 25, 0.98)
    );

    border: 1px solid rgba(255, 255, 255, 0.22);

    box-shadow:
        0 25px 60px rgba(38, 34, 28, 0.22),
        0 0 25px rgba(111, 139, 190, 0.10),
        inset 0 1px rgba(255, 255, 255, 0.14);

    transform-style: preserve-3d;
    will-change: transform;
}

/* Reflexo colorido nas bordas */

.ide-window::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;

    background: linear-gradient(
        125deg,
        rgba(126, 180, 255, 0.8),
        transparent 28%,
        transparent 60%,
        rgba(190, 112, 255, 0.8),
        rgba(91, 220, 202, 0.7)
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
    z-index: 4;
}

.ide-top {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 13px;

    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ide-dots {
    display: flex;
    gap: 6px;
}

.ide-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.ide-dots span:nth-child(1) {
    background: #ff6259;
}

.ide-dots span:nth-child(2) {
    background: #ffbd44;
}

.ide-dots span:nth-child(3) {
    background: #35c96b;
}

.ide-tab {
    width: 78px;
    height: 17px;
    border-radius: 4px 4px 0 0;
    background: rgba(255, 255, 255, 0.07);
}

.ide-body {
    display: flex;
    height: calc(100% - 36px);
}

.ide-sidebar {
    width: 39px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    background: rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.ide-sidebar i {
    display: block;
    width: 15px;
    height: 4px;
    border-radius: 4px;
    background: rgba(193, 201, 218, 0.25);
}

.ide-editor {
    flex: 1;
    padding: 17px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-line {
    display: block;
    height: 5px;
    border-radius: 5px;
    opacity: 0.9;
    box-shadow: 0 0 8px currentColor;
}

.w40 { width: 40%; }
.w45 { width: 45%; }
.w50 { width: 50%; }
.w55 { width: 55%; }
.w65 { width: 65%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w80 { width: 80%; }
.w85 { width: 85%; }

.indent {
    margin-left: 15px;
}

.purple {
    background: #b59af7;
    color: #b59af7;
}

.blue {
    background: #79baff;
    color: #79baff;
}

.green {
    background: #8ed6ad;
    color: #8ed6ad;
}

.orange {
    background: #e9b18a;
    color: #e9b18a;
}

.muted {
    background: #858b9b;
    color: #858b9b;
}

.ide-glow {
    position: absolute;
    height: 3px;
    bottom: 0;
    left: 12%;
    right: 12%;

    background: linear-gradient(
        90deg,
        transparent,
        #718dff,
        #c18bff,
        #75e6d0,
        transparent
    );

    filter: blur(5px);
    opacity: 0.9;
}

/* Posicionamento e flutuação */

.ide-one {
    width: 250px;
    height: 175px;
    top: 8%;
    right: 35%;
    animation: float-ide-one 9s ease-in-out infinite;
}

.ide-two {
    width: 310px;
    height: 215px;
    top: 39%;
    right: 5%;
    bottom: auto;
    animation: float-ide-two 11s ease-in-out infinite;
    animation-delay: -3s;
}

.ide-three {
     width: 220px;
    height: 155px;
    left: 57%;
    bottom: 3%;
    animation: float-ide-three 10s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes float-ide-one {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-8deg);
    }
    50% {
        transform: translate3d(-8px, -17px, 0) rotate(-5deg);
    }
}

@keyframes float-ide-two {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(7deg);
    }
    50% {
        transform: translate3d(9px, -13px, 0) rotate(4deg);
    }
}

@keyframes float-ide-three {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-5deg);
    }
    50% {
        transform: translate3d(8px, -15px, 0) rotate(-2deg);
    }
}




/* ===== Seção Sobre mim ===== */

.about {
    padding: 120px 0;
    border-top: 1px solid var(--color-border);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.about-content {
    max-width: 600px;
}

.about-eyebrow {
    margin-bottom: 28px;
    color: var(--color-muted);
    font-size: 0.78rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.about h2 {
    margin-bottom: 28px;
    color: var(--color-text);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.06em;
}

.about h2 span {
    color: var(--color-muted);
}

.about-description {
    max-width: 520px;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

.about-skills {
    margin-top: 32px;
}

.about-skills h3 {
    margin-bottom: 14px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-button {
    min-height: 46px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-button:hover {
    background: var(--color-surface);
}

.about-button-primary {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.about-button-primary:hover {
    border-color: #0056b3;
    background: #0056b3;
    color: #fff;
}

.about-button:focus-visible {
    outline: 2px solid #69aaff;
    outline-offset: 4px;
}

.about-image {
    width: 100%;
    max-width: 430px;
    justify-self: end;
}

.about-image-placeholder {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
}


/* ===== Sobre mim: tema escuro ===== */

.about {
    background: #292925;
    border-top: 1px solid #3D3C36;

    --color-text: #F0EDE6;
    --color-muted: #B5B1A8;
    --color-border: #48473F;
    --color-surface: #35352F;
}

.about .about-image-placeholder {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Trajetória ===== */
.trajectory {
    --trajectory-distance: 0px;
    position: relative;
    height: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.trajectory-pin {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 0;
}

.trajectory.is-scroll-driven {
    height: calc(100vh + var(--trajectory-distance));
    height: calc(100svh + var(--trajectory-distance));
}

.trajectory.is-scroll-driven .trajectory-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.trajectory-heading {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.trajectory-eyebrow {
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.trajectory-heading h2 {
    margin-bottom: 16px;
    color: var(--color-text);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.06em;
}

.trajectory-heading h2 span {
    color: var(--color-muted);
}

.trajectory-intro {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.trajectory-list {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: clamp(24px, 4vw, 56px);
    width: max-content;
    padding: 50px max(7vw, 36px) 0;
    transform: translate3d(0, 0, 0);
}

.trajectory-viewport {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.trajectory.is-scroll-driven .trajectory-viewport {
    overflow: hidden;
}

.trajectory.is-scroll-driven .trajectory-list {
    will-change: transform;
}

.trajectory-rail {
    position: absolute;
    top: 12px;
    right: calc(max(7vw, 36px) + clamp(270px, 28vw, 340px) - 18px);
    left: calc(max(7vw, 36px) + 18px);
    height: 2px;
    background: var(--color-border);
}

.trajectory-rail span {
    display: block;
    width: 100%;
    height: 100%;
    background: #007bff;
    transform: scaleX(var(--trajectory-progress, 0));
    transform-origin: left center;
}

.trajectory-item {
    position: relative;
    flex: 0 0 clamp(270px, 28vw, 340px);
    padding: 0;
}

.trajectory-item::before {
    position: absolute;
    top: -44px;
    left: 12px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--color-bg);
    border-radius: 50%;
    background: var(--color-border);
    box-shadow: 0 0 0 1px var(--color-border);
    content: "";
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.trajectory-item.is-past::before,
.trajectory-item.is-current::before {
    background: #007bff;
    box-shadow: 0 0 0 1px #007bff;
}

.trajectory-item.is-current::before {
    transform: scale(1.2);
}

.trajectory-date {
    margin: 0;
    padding: 0 0 12px 12px;
    color: #007bff;
    font-size: 0.78rem;
    font-weight: 700;
}

.trajectory-entry {
    padding: 20px 24px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
}

.trajectory-place {
    margin: 0 0 7px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trajectory-entry h3 {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 1.08rem;
    font-weight: 600;
}

.trajectory-entry > p:last-child {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.75;
}

.trajectory-scroll-hint {
    margin: 28px 0 0;
    color: var(--color-muted);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-align: center;
}

.trajectory-scroll-hint span {
    display: inline-block;
    margin-left: 6px;
    color: #007bff;
    font-size: 1rem;
}

/* ===== Carrossel 3D e Tema Escuro ===== */
.portfolio-3d {
    position: relative;
    padding: 100px 0;
    background-color: #111; /* Fundo escuro da seção */
    overflow: hidden;
}

.slider-eyebrow {
    color: var(--color-muted);
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 600;
}

/* Container do Carrossel 3D */
.carousel-3d-container {
    position: relative;
    width: 100%;
    height: 480px;
    perspective: 1000px; /* Cria a profundidade 3D */
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-3d-wrapper {
    position: relative;
    width: 320px; /* Largura do card em destaque */
    height: 100%;
    transform-style: preserve-3d;
}

/* Estilo Base do Card (Referência da Imagem) */
/* Fundo e borda do card */
.card-3d {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #ffffff; /* Fundo branco */
    border-radius: 12px;
    border: 1px solid #e0e0e0; /* Borda cinza clara */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0; 
    pointer-events: none;
}

.card-3d .card-img-top {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0; /* Divisória clara */
}

.card-3d .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.card-3d .card-title {
    color: #212529; /* Quase preto */
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-3d .card-text {
    color: #6c757d; /* Cinza médio para leitura agradável */
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Botão Azul */
.card-3d .btn-solid.theme-primary {
    background-color: #007bff;
    color: #ffffff;
    border: none; /* Remove a borda preta padrão do navegador */
    outline: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    width: max-content;
    margin-top: auto;
    cursor: pointer;
    transition: background-color 0.2s;
}

.card-3d .btn-solid.theme-primary:hover {
    background-color: #0056b3;
}

/* ===== POSIÇÕES 3D ===== */

/* ===== POSIÇÕES 3D (5 Cards visíveis) ===== */

/* Card Central (Foco) */
.card-3d.active {
    transform: translateX(0) scale(1) translateZ(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    filter: blur(0px);
}

/* 1º Card da Esquerda */
.card-3d.prev {
    transform: translateX(-70%) scale(0.85) translateZ(-100px) rotateY(15deg);
    opacity: 0.7;
    z-index: 2;
    filter: blur(1px);
    cursor: pointer;
    pointer-events: auto;
}

/* 1º Card da Direita */
.card-3d.next {
    transform: translateX(70%) scale(0.85) translateZ(-100px) rotateY(-15deg);
    opacity: 0.7;
    z-index: 2;
    filter: blur(1px);
    cursor: pointer;
    pointer-events: auto;
}

/* 2º Card da Esquerda (Extrema Esquerda) */
.card-3d.prev-2 {
    transform: translateX(-130%) scale(0.7) translateZ(-200px) rotateY(25deg);
    opacity: 0.3;
    z-index: 1;
    filter: blur(3px); /* Um desfoque maior para dar noção de distância */
    cursor: pointer;
    pointer-events: auto;
}

/* 2º Card da Direita (Extrema Direita) */
.card-3d.next-2 {
    transform: translateX(130%) scale(0.7) translateZ(-200px) rotateY(-25deg);
    opacity: 0.3;
    z-index: 1;
    filter: blur(3px);
    cursor: pointer;
    pointer-events: auto;
}

/* Botões de navegação */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centraliza perfeitamente no meio da altura */
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* Fundo quase transparente */
    backdrop-filter: blur(8px); /* Efeito de vidro */
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: white;
    color: black;
    transform: translateY(-50%) scale(1.1); /* Cresce de leve ao passar o mouse */
}
.btn-left {
    left: 8%; /* Fica na esquerda */
}

.btn-right {
    right: 8%; /* Fica na direita */
}


/* ===== Subjanela (Modal) ===== */
html.modal-open,
body.modal-open {
    overflow: hidden;
}

.custom-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fundo escuro transparente */
    backdrop-filter: blur(8px); /* Efeito de vidro no fundo */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; /* Ignora cliques quando invisível */
    transition: opacity 0.3s ease;
}

/* Classe que exibe o modal */
.custom-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.custom-modal.show .custom-modal-content {
    transform: translateY(0) scale(1);
}

.info-modal {
    padding: 24px;
}

.info-modal-content {
    position: relative;
    width: min(100%, 620px);
    max-height: min(80vh, 680px);
    overflow-y: auto;
    padding: 48px;
    border: 1px solid #48473f;
    border-radius: 10px;
    background: #292925;
    color: #f0ede6;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.info-modal.show .info-modal-content {
    transform: translateY(0) scale(1);
}

.info-modal-content .close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #f0ede6;
}

.info-modal-eyebrow {
    margin: 0 0 14px;
    color: #b5b1a8;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.info-modal-content h2 {
    margin: 0 0 24px;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 600;
}

.info-modal-copy,
.info-modal-intro {
    color: #b5b1a8;
    font-size: 0.92rem;
    line-height: 1.85;
}

.info-modal-copy p:last-child {
    margin-bottom: 0;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.stack-list span {
    padding: 10px 14px;
    border: 1px solid #48473f;
    border-radius: 4px;
    background: #35352f;
    color: #f0ede6;
    font-size: 0.82rem;
}

.stack-list .stack-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.stack-item svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.stack-item svg text {
    fill: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.stack-html svg path { fill: #e34f26; }
.stack-css svg path { fill: #1572b6; }
.stack-js svg rect { fill: #f7df1e; }
.stack-js svg text { fill: #1b1b1b; }
.stack-bootstrap svg rect { fill: #7952b3; }

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover { background: rgba(0,0,0,0.2); }

.modal-body-row {
    display: flex;
    flex-direction: row;
    height: 60vh; /* Altura fixa para forçar a barra de rolagem */
    max-height: 500px;
}

.modal-text-content {
    flex: 1.2; /* Ocupa um pouco mais de espaço que a imagem */
    padding: 40px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.modal-text-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

/* Área de Rolagem */
.modal-scrollable-text {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto; /* Cria a barra de rolagem vertical */
    padding-right: 15px;
    margin-bottom: 20px;
    color: #4a4a4a;
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-description section + section {
    margin-top: 1.35rem;
}

.modal-description h4 {
    margin: 0 0 0.4rem;
    color: #212529;
    font-size: 1rem;
    font-weight: 700;
}

.modal-description p {
    margin: 0;
}

/* Estilizando a Barra de Rolagem (Scrollbar) */
.modal-scrollable-text::-webkit-scrollbar { width: 6px; }
.modal-scrollable-text::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.modal-scrollable-text::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.modal-scrollable-text::-webkit-scrollbar-thumb:hover { background: #aaa; }

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.modal-image-content {
    flex: 1;
    background: #f8f9fa;
}

.modal-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* A imagem preenche o espaço sem distorcer */
}

/* Estilo dos Botões dentro do Modal */
.modal-actions a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none; /* Remove qualquer borda preta padrão */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

/* Botão Principal (Ver Site) - Azul */
.btn-main {
    background-color: #007bff;
    color: #ffffff;
}

.btn-main:hover {
    background-color: #0056b3;
    color: #ffffff;
}

/* Botão Secundário (GitHub) - Escuro/Cinza */
.btn-secondary {
    background-color: #333333;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Responsivo para Celular: Empilha a imagem e o texto */
@media (max-width: 768px) {
    .modal-body-row { flex-direction: column-reverse; height: 85vh; max-height: none; }
    .modal-image-content { height: 250px; flex: none; }
    .modal-text-content { padding: 25px; }
}


/* Responsividade para celular e tablet */

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .about-image {
        max-width: 360px;
        justify-self: start;
    }
    .btn-left { left: 2%; }
    .btn-right { right: 2%; }
}

@media (max-width: 480px) {
    .about {
        padding: 64px 0;
    }

    .info-modal-content {
        padding: 38px 24px 28px;
    }
}



/* Telas menores */

@media (max-width: 768px) {
    .ide-window {
        opacity: 0.48;
        transform: scale(0.8);
    }

    .ide-one {
        right: -115px;
        top: 10%;
    }

    .ide-two {
        right: -95px;
        bottom: 8%;
    }

    .ide-three {
        left: -150px;
        bottom: 15%;
    }
}

/* Respeita quem prefere menos animações */

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


@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* IDEs retas, com flutuação suave */

.ide-one {
    animation: float-ide-one 9s ease-in-out infinite;
}

.ide-two {
    animation: float-ide-two 11s ease-in-out infinite;
    animation-delay: -3s;
}

.ide-three {
    animation: float-ide-three 10s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes float-ide-one {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes float-ide-two {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

@keyframes float-ide-three {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Ajustes de layout para tablets e celulares */
@media (max-width: 768px) {
    .navbar-custom {
        gap: 16px;
    }

    .nav-links {
        gap: clamp(12px, 3vw, 24px);
    }

    .hero {
        min-height: auto;
        padding: 88px 0 72px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 7vw, 3.8rem);
    }

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

    .about {
        padding: 80px 0;
    }

    .about-layout {
        gap: 40px;
    }

    .about-image {
        width: min(100%, 360px);
        justify-self: center;
    }

    .trajectory-heading {
        margin-bottom: 36px;
    }

    .trajectory-item {
        flex-basis: clamp(290px, 40vw, 340px);
    }

    .trajectory-rail {
        right: calc(max(7vw, 36px) + clamp(290px, 40vw, 340px) - 18px);
    }

    .carousel-3d-container {
        height: 460px;
    }

    .carousel-3d-wrapper {
        width: min(72vw, 300px);
    }

    .card-3d.prev,
    .card-3d.next {
        opacity: 0.35;
    }

    .card-3d.prev-2,
    .card-3d.next-2 {
        opacity: 0;
        pointer-events: none;
    }

    .custom-modal-content {
        width: min(900px, calc(100vw - 32px));
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .navbar-custom {
        min-height: auto;
        padding-top: 18px;
        padding-bottom: 16px;
        align-items: flex-start;
    }

    .brand {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-links a {
        font-size: clamp(0.72rem, 3.4vw, 0.82rem);
    }

    .hero {
        padding: 68px 0 56px;
    }

    .hero-content {
        width: 100%;
    }

    .eyebrow,
    .about-eyebrow,
    .slider-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .hero-description {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        max-width: 360px;
    }

    .hero-actions .btn-main,
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .ide-window {
        opacity: 0.22;
    }

    .about {
        padding: 64px 0;
    }

    .about-layout {
        gap: 32px;
    }

    .about h2 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .about-description {
        font-size: 0.88rem;
        line-height: 1.8;
    }

    .trajectory-heading {
        margin-bottom: 28px;
    }

    .trajectory-pin {
        min-height: 0;
        padding: 28px 0;
    }

    .trajectory.is-scroll-driven .trajectory-pin {
        min-height: 0;
        padding: 28px 0;
    }

    .trajectory-heading h2 {
        font-size: clamp(1.8rem, 8vw, 2.7rem);
    }

    .trajectory-intro {
        font-size: 0.84rem;
    }

    .trajectory-list {
        gap: 24px;
        padding: 42px 26px 0;
    }

    .trajectory-rail {
        top: 10px;
        right: calc(min(82vw, 330px) + 8px);
        left: 44px;
    }

    .trajectory-item {
        flex-basis: min(82vw, 330px);
    }

    .trajectory-item::before {
        top: -37px;
    }

    .trajectory-intro {
        font-size: 0.88rem;
    }

    .trajectory-date {
        padding-bottom: 10px;
        font-size: 0.74rem;
    }

    .trajectory-entry {
        padding: 16px 18px;
    }

    .trajectory-entry h3 {
        font-size: 1rem;
    }

    .trajectory-entry > p:last-child {
        font-size: 0.82rem;
    }

    .trajectory-scroll-hint {
        margin-top: 22px;
        font-size: 0.66rem;
    }

    .about-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .about-button {
        width: 100%;
    }

    .portfolio-3d {
        padding: 72px 0 84px;
    }

    .portfolio-3d h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .carousel-3d-container {
        height: 500px;
        align-items: flex-start;
    }

    .carousel-3d-wrapper {
        width: min(78vw, 320px);
        height: 420px;
    }

    .card-3d .card-img-top {
        height: 145px;
        flex: 0 0 145px;
    }

    .card-3d .card-body {
        padding: 16px;
    }

    .card-3d .card-title {
        font-size: 1.08rem;
    }

    .card-3d .card-text {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .nav-btn {
        top: auto;
        bottom: 8px;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .nav-btn:hover {
        transform: scale(1.05);
    }

    .btn-left {
        left: calc(50% - 52px);
    }

    .btn-right {
        right: calc(50% - 52px);
    }

    .info-modal {
        padding: 16px;
    }

    .info-modal-content {
        width: 100%;
        max-height: calc(100dvh - 32px);
        padding: 42px 22px 26px;
    }

    .info-modal-content h2 {
        margin-bottom: 18px;
    }

    .info-modal-copy,
    .info-modal-intro {
        font-size: 0.86rem;
    }

    .stack-list {
        gap: 8px;
    }

    .stack-list span {
        padding: 9px 11px;
    }

    .modal-body-row {
        height: auto;
        max-height: calc(100dvh - 32px);
        flex-direction: column-reverse;
    }

    .modal-image-content {
        height: clamp(130px, 24vh, 190px);
        flex: 0 0 auto;
    }

    .modal-text-content {
        min-height: 0;
        padding: 20px;
    }

    .modal-text-content h3 {
        padding-right: 28px;
        font-size: 1.4rem;
    }

    .modal-scrollable-text {
        max-height: 24vh;
        font-size: 0.84rem;
    }

    .modal-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .modal-actions a {
        flex: 1 1 auto;
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .brand {
        font-size: 1.2rem;
    }

    .carousel-3d-wrapper {
        width: calc(100vw - 72px);
    }

    .card-3d .card-body {
        padding: 14px;
    }
}

@media (min-width: 577px) and (max-height: 620px) {
    .trajectory-heading {
        margin-bottom: 18px;
    }

    .trajectory-eyebrow {
        margin-bottom: 8px;
    }

    .trajectory-heading h2 {
        margin-bottom: 8px;
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }

    .trajectory-intro {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .trajectory-list {
        padding-top: 38px;
    }

    .trajectory-item::before {
        top: -32px;
    }

    .trajectory-date {
        padding-bottom: 8px;
    }

    .trajectory-entry {
        padding: 12px 16px;
    }

    .trajectory-entry > p:last-child {
        font-size: 0.78rem;
    }

    .trajectory-scroll-hint {
        margin-top: 12px;
    }
}

/* Caminhos de contato: clientes e recrutadores */
.contact-paths {
    padding: 100px 0;
    background: #f4f1ea;
}

.contact-paths-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 10px;
    background: none;
    isolation: isolate;
}

.contact-path {
    position: relative;
    z-index: 1;
    min-height: 420px;
    padding: clamp(32px, 5vw, 68px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-path-freelancer {
    background: #fff;
    color: #292925;
}

.contact-path-recruiter {
    background: #007bff;
    color: #fff;
}

.contact-path-eyebrow {
    margin: 0 0 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.contact-path-freelancer .contact-path-eyebrow {
    color: #73716a;
}

.contact-path-recruiter .contact-path-eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.contact-path h2 {
    max-width: 480px;
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.055em;
}

.contact-path-description {
    max-width: 490px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.85;
}

.contact-path-freelancer .contact-path-description {
    color: #73716a;
}

.contact-path-recruiter .contact-path-description {
    color: rgba(255, 255, 255, 0.88);
}

.contact-path-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 32px;
}

.contact-path-button {
    min-height: 48px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 4px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-path-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.contact-path-button-primary {
    background: #007bff;
    color: #fff;
}

.contact-path-button-primary:hover {
    background: #0056b3;
    color: #fff;
}

.contact-path-button-outline {
    border-color: #d9d4ca;
    color: #292925;
}

.contact-path-button-outline:hover {
    background: #f4f1ea;
    color: #292925;
}

.contact-path-button-light {
    background: #fff;
    color: #0056b3;
}

.contact-path-button-light:hover {
    background: #e8f1ff;
    color: #00418a;
}

.contact-path-button-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.contact-path-button-outline-light:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.contact-path-button[aria-disabled="true"] {
    opacity: 0.68;
    cursor: not-allowed;
}

.contact-path-button:focus-visible {
    outline: 3px solid #f4a900;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .contact-paths {
        padding: 80px 0;
    }

    .contact-paths-grid {
        grid-template-columns: 1fr;
    }

    .contact-path {
        min-height: 360px;
        padding: 40px;
    }
}

@media (max-width: 576px) {
    .contact-paths {
        padding: 64px 0;
    }

    .contact-path {
        min-height: 340px;
        padding: 30px 24px;
    }

    .contact-path h2 {
        font-size: clamp(1.75rem, 8vw, 2.3rem);
    }

    .contact-path-description {
        font-size: 0.84rem;
    }

    .contact-path-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 24px;
    }

    .contact-path-button {
        width: 100%;
    }
}

/* Redes sociais e rodapé */
.social-section {
    padding: 96px 0;
    background: #fff;
}

.social-eyebrow {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.social-heading-row h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.055em;
}

.social-heading-row h2 span {
    color: var(--color-muted);
}

.social-intro {
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 36px;
}

.social-link {
    min-width: 0;
    min-height: 100px;
    padding: 20px;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link[href]:hover {
    transform: translateY(-3px);
    border-color: #007bff;
    background: #fff;
}

.social-link[aria-disabled="true"] {
    cursor: default;
}

.social-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f1ff;
    color: #007bff;
}

.social-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icon svg .social-icon-dot {
    fill: currentColor;
    stroke: none;
}

.social-threads-icon {
    font-family: Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.social-linkedin-icon {
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.social-link-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.social-link-copy strong {
    font-size: 0.88rem;
}

.social-link-copy small {
    color: var(--color-muted);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    line-height: 1.4;
}

.social-arrow {
    color: #007bff;
    font-size: 1.1rem;
}

.site-footer {
    padding: 26px 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.site-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-brand span {
    color: #007bff;
}

.site-footer-content p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.72rem;
    text-align: center;
}

.footer-top-link {
    color: var(--color-muted);
    font-size: 0.75rem;
    text-decoration: none;
}

.footer-top-link:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .social-section {
        padding: 80px 0;
    }

    .social-links {
        gap: 12px;
        margin-top: 28px;
        overflow-x: auto;
        padding: 2px 2px 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .social-link {
        min-width: 240px;
        flex: 0 0 240px;
        scroll-snap-align: start;
    }

    .site-footer-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .social-section {
        padding: 64px 0;
    }

    .site-footer-content {
        flex-direction: column;
        gap: 12px;
    }
}

/* Cabeçalho fixo que se transforma em uma ilha após o Hero */
main {
    padding-top: 80px;
}

.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    display: flex;
    justify-content: center;
    border: 0;
    pointer-events: none;
}

.navbar-custom {
    width: 100%;
    pointer-events: auto;
    transition: max-width 500ms cubic-bezier(0.22, 1, 0.36, 1),
        min-height 500ms cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 500ms cubic-bezier(0.22, 1, 0.36, 1),
        padding 500ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 350ms ease, border-radius 500ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 350ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 400ms ease;
}

.brand svg {
    display: block;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-links a {
    transition: color 200ms ease, transform 350ms ease;
}

.site-header.is-island .navbar-custom {
    width: min(100% - 40px, 760px);
    max-width: 760px;
    min-height: 64px;
    margin-top: 14px;
    padding: 0 24px;
    border: 1px solid rgba(41, 41, 37, 0.1);
    border-radius: 999px;
    background: rgba(250, 248, 243, 0.94);
    box-shadow: 0 12px 36px rgba(41, 41, 37, 0.12);
    backdrop-filter: blur(18px);
}

.site-header.is-island .brand svg {
    width: 29px;
    height: 29px;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 11px 9px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: width 350ms ease, height 350ms ease, background-color 250ms ease,
        border-color 250ms ease, transform 350ms ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-content > a {
    padding: 14px 0;
    border-bottom: 1px solid #48473f;
    color: #f0ede6;
    font-size: 1.08rem;
    text-decoration: none;
}

.mobile-menu-content > a:last-child {
    border-bottom: 0;
}

@media (max-width: 768px) {
    main {
        padding-top: 72px;
    }

    .site-header .navbar-custom {
        min-height: 72px;
        padding-inline: 24px;
        align-items: center;
    }

    .site-header .nav-links {
        display: none;
    }

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

    .site-header.is-island .navbar-custom {
        width: calc(100% - 28px);
        max-width: 520px;
        min-height: 58px;
        margin-top: 10px;
        padding: 0 16px 0 19px;
        align-items: center;
    }

    .site-header.is-island .brand svg {
        width: 27px;
        height: 27px;
    }

    .site-header.is-island .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        border-color: transparent;
        background: rgba(41, 41, 37, 0.06);
    }
}

@media (max-width: 576px) {
    main {
        padding-top: 68px;
    }

    .site-header .navbar-custom {
        min-height: 68px;
        padding-inline: 20px;
        align-items: center;
    }

    .site-header.is-island .navbar-custom {
        min-height: 56px;
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-custom,
    .brand,
    .nav-links a,
    .mobile-menu-toggle {
        transition-duration: 0.01ms;
    }
}

@media (max-width: 768px) {
    .social-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
        scroll-snap-type: none;
    }

    .social-link {
        width: 100%;
        min-width: 0;
        flex: none;
    }
}

/* Janela de pré-visualização do currículo */
.resume-modal-content {
    width: min(900px, 100%);
    max-height: min(90vh, 900px);
}

.resume-modal-content h2 {
    margin: 0 0 18px;
    color: #f0ede6;
    font-size: clamp(1.6rem, 4vw, 2rem);
}

.resume-pending {
    margin: 0 0 20px;
    color: #b5b1a8;
    line-height: 1.7;
}

.resume-preview {
    display: block;
    width: 100%;
    height: min(62vh, 640px);
    margin-bottom: 18px;
    border: 0;
    border-radius: 6px;
    background: #fff;
}

.resume-download {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid #f0ede6;
    border-radius: 6px;
    color: #292925;
    background: #f0ede6;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.resume-download[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .resume-modal {
        padding: 14px;
    }

    .resume-modal-content {
        max-height: 90vh;
        padding: 32px 22px 22px;
    }

    .resume-preview {
        height: 55vh;
    }
}