/* ─── RESET & BASE ─── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primaria: #CA2851;
    --secundaria: #FF6766;
    --escuro: #0f172a;
    --maisEscuro: #0a0f1c;
    --claro: #e2e8f0;
    --vidro: rgba(255, 255, 255, 0.1);
    --navegacao: rgba(15, 23, 42, 0.35);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    transform: translateZ(0);
    contain: strict;
}

body {
    background-color: black;
    color: var(--claro);
    overflow-x: hidden;
}

/* ─── NAVBAR ─── */

.navegacao {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 100%;
    padding: 0.75rem 2rem;
    background: var(--navegacao);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--vidro);
    z-index: 100;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    will-change: backdrop-filter;
    contain: layout style paint;
}

.menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
    position: relative;
}

.menu li { position: relative; z-index: 1; }

.menu-link {
    text-decoration: none;
    color: rgba(240, 222, 222, 0.75);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0;
    display: block;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.menu-link.active { color: #fff; }

.blob {
    position: absolute;
    top: 50%;
    left: 0;
    height: 35px;
    width: 0;
    background: linear-gradient(135deg, var(--secundaria), var(--primaria));
    border: 1px solid var(--escuro);
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    will-change: transform, width;
    transform: translateY(-50%) translateX(0);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), width 0.35s cubic-bezier(.4,0,.2,1);
}

.logo span {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primaria), var(--secundaria));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    transition: 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

/* ─── CABEÇALHO ───
   Layout sempre em row (foto ao lado do texto). Em telas menores,
   o conjunto encolhe proporcionalmente em vez de empilhar. */

.cabecalho {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem 2rem;
}

.cabecalho-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    max-width: 900px;
    width: 100%;
}

.foto-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.foto-perfil {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 3px solid var(--primaria);
    object-fit: cover;
    position: relative;
    z-index: 2;
    cursor: default;
    transition: border-color 0.4s ease, transform 0.25s ease;
    margin-right: auto;
    will-change: transform;
}

.foto-container {
    position: relative;
    width: 360px;
    height: 360px;
    flex-shrink: 0;
}

.dot-hero {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
}

.foto-perfil:hover {
    border-color: rgba(231, 34, 34, 0.8);
    transform: scale(1.03);
}

/* ─── TEXTO DO HERO ─── */

.cabecalho-texto {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.hero-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--secundaria);
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    color: var(--claro);
    font-weight: 800;
    line-height: 1.1;
}

h1 span {
    background: linear-gradient(135deg, var(--primaria), var(--secundaria));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cabecalho-sub-titulo {
    font-size: 1.1rem;
    color: var(--primaria);
    font-weight: 500;
}

.hero-frase-bloco {
    margin: 0.6rem 0 0.2rem;
    padding: 0.85rem 1.1rem;
    background: rgba(229, 70, 70, 0.06);
    border: 1px solid rgba(229, 70, 70, 0.18);
    border-left: 3px solid var(--primaria);
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    position: relative;
}

.hero-frase-texto {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #b89494;
    font-style: italic;
}

.cabecalho-frase {
    font-size: 0.9rem;
    color: #8b6464;
    font-weight: 400;
    min-height: 1.4rem;
    line-height: 1.4;
}

.cursor-blink {
    display: inline-block;
    color: var(--secundaria);
    font-weight: 300;
    animation: piscar 0.9s step-start infinite;
    margin-left: 1px;
}

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

.hero-btns {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.6rem 1.3rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
    will-change: transform;
}

.btn-hero--primary {
    background: linear-gradient(135deg, var(--secundaria), var(--primaria));
    color: #fff;
    border: none;
}

.btn-hero--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0px 20px rgba(223, 112, 61, 0.45);
}

.btn-hero--outline {
    background: transparent;
    color: #f88181;
    border: 1px solid rgba(229, 70, 70, 0.35);
}

.btn-hero--outline:hover {
    background: rgba(229, 70, 70, 0.1);
    border-color: rgba(229, 70, 70, 0.6);
    transform: translateY(-2px);
}

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

/* ─── ANIMAÇÕES ─── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

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

/* ─── SOBRE MIM ───
   Layout sempre em row (coluna esquerda + coluna direita lado a lado). */

.sobre {
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sobre-label {
    font-size: 0.90rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--secundaria);
    text-transform: uppercase;
}

.sobre-titulo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--claro);
    text-align: center;
    margin-bottom: 3rem;
}

.sobre-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 800px;
    width: 100%;
    align-items: start;
}

.sobre-esquerda {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 0 0 auto;
    width: 33%;
    min-width: 0;
}

.status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(229, 70, 70, 0.12);
    border: 1px solid rgba(229, 70, 70, 0.3);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.72rem;
    color: #f88181;
    width: fit-content;
    margin: 0 auto;
    cursor: default;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    will-change: transform;
}

.status-badge:hover {
    background: rgba(229, 70, 70, 0.22);
    border-color: rgba(229, 70, 70, 0.55);
    transform: scale(1.04);
}

.dot-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
}

.info-pills {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pill {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.48rem 0.8rem;
    font-size: 0.78rem;
    color: #b89494;
    cursor: default;
    transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.18s;
}

.pill:hover {
    background: rgba(229, 70, 70, 0.1);
    border-color: rgba(229, 70, 70, 0.3);
    color: #fec7c7;
    transform: translateX(5px);
}

.pill-icon {
    font-size: 15px;
    color: var(--secundaria);
    transition: transform 0.2s;
}

.pill:hover .pill-icon { transform: scale(1.2); }

.sobre-direita {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1 1 auto;
    min-width: 0;
}

.sobre-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: background 0.28s, border-color 0.28s, transform 0.22s;
    will-change: transform;
}

.sobre-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(229, 70, 70, 0.35);
    transform: translateY(-2px);
}

.sobre-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--secundaria), var(--primaria));
    border-radius: 3px 0 0 3px;
    transition: width 0.25s;
}

.sobre-card:hover::before { width: 4px; }

.sobre-paragrafo {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #b89494;
    position: relative;
    z-index: 1;
}

.destaque { color: #f88181; font-weight: 500; }

.skills-wrap { display: flex; flex-direction: column; gap: 0.5rem; }

.skills-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.skills-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-tag {
    background: rgba(229, 70, 70, 0.1);
    border: 1px solid rgba(229, 70, 70, 0.22);
    color: #f88181;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.22rem 0.72rem;
    cursor: default;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.18s;
}

.skill-tag:hover {
    background: rgba(229, 70, 70, 0.25);
    border-color: rgba(237, 64, 58, 0.6);
    color: #fec7c7;
    transform: translateY(-3px) scale(1.07);
}

/* ─── PORTFÓLIO ─── */

.projetos {
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projetos-titulo {
    font-size: 2rem;
    color: var(--claro);
    text-align: center;
    margin-bottom: 2rem;
}

.pill-nav { display: flex; justify-content: center; margin-bottom: 2.5rem; }

.pill-nav-inner {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 5px;
    gap: 2px;
}

.pill-indicator {
    position: absolute;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--secundaria), var(--primaria));
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    will-change: transform, width;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), width 0.35s cubic-bezier(.4,0,.2,1);
}

.pill-btn {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    color: rgba(240, 226, 226, 0.55);
    padding: 0.45rem 1.3rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.pill-btn.active { color: #fff; }
.pill-btn:hover:not(.active) { color: rgba(240, 226, 226, 0.85); }

.tab-panel { display: none; width: 100%; }
.tab-panel.active { display: block; }

/* ─── CARDS GRID ─── */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 880px;
}

/* ─── CARD ─── */

.card {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transform: translateY(0);
    transition: transform 0.22s ease;
    will-change: transform;
    contain: layout paint;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(229, 70, 70, 0.18);
    border: 1px solid rgba(229, 70, 70, 0.65);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.card:hover,
.card-entry.entrada-feita:hover {
    transform: translateY(-4px);
}

.card:hover::after,
.card-entry.entrada-feita:hover::after {
    opacity: 1;
}

.card:active,
.card-entry.entrada-feita:active {
    transform: translateY(-2px);
}

.card-img-wrapper {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    contain: paint;
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ─── CARD FOOTER ───
   Estrutura em 2 linhas:
   1) nome do projeto
   2) habilidades (tags) à esquerda + data à direita, na mesma linha */

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.40rem 1rem;
}

.card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--claro);
    line-height: 1.3;

    /* Trunca nomes longos com reticências em vez de quebrar em duas linhas */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tag {
    font-size: 0.62rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(229, 70, 70, 0.12);
    border: 1px solid rgba(229, 70, 70, 0.22);
    color: #f88181;
}

.card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 500;
    color: #694747;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.card:hover .card-date {
    color: #f88181;
}

.card-date i {
    font-size: 0.68rem;
    color: var(--secundaria);
    opacity: 0.7;
}

/* ─── SKILL CARD ─── */

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-card {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: default;
    position: relative;
    transform: translateY(0);
    transition: transform 0.22s ease, background 0.22s ease;
    will-change: transform;
    contain: layout paint;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(229, 70, 70, 0.55);
    box-shadow: 0 8px 24px rgba(229, 70, 70, 0.15);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.skill-card:hover,
.skill-card.entrada-feita:hover {
    transform: translateY(-4px);
    background: rgba(229, 70, 70, 0.07);
}

.skill-card:hover::after,
.skill-card.entrada-feita:hover::after {
    opacity: 1;
}

.skill-card:active {
    transform: translateY(-2px);
}

.skill-card i {
    font-size: 2.6rem;
    color: var(--primaria);
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.12);
    color: #f88181;
}

.skill-card span {
    font-size: 0.72rem;
    color: #b89494;
    transition: color 0.3s ease;
}

.skill-card:hover span {
    color: #fec7c7;
}

/* ─── MODAL DE PROJETO ─── */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.32s ease;
}

.modal-overlay.open {
    background: rgba(0, 0, 0, 0.85);
    pointer-events: all;
}

.modal-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 20px;
    background: #0c0000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(229, 70, 70, 0.08);

    opacity: 0;
    transform: scale(0.92) translateY(24px);
    transition:
        opacity 0.34s cubic-bezier(.4, 0, .2, 1),
        transform 0.34s cubic-bezier(.4, 0, .2, 1);
}

.modal-overlay.open .modal-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #b89494;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.18s,
        border-color 0.18s,
        color 0.18s,
        transform 0.18s;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: rotate(90deg);
}

.modal-left {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-img-wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 220px;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 300px;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.modal-overlay.open .modal-img {
    transform: scale(1.02);
}

.modal-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 15, 15, 0.6);
    color: #553333;
    font-size: 3rem;
    display: none;
}

.modal-actions {
    display: flex;
    gap: 0.55rem;
    padding: 1rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.modal-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1rem;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(229, 70, 70, 0.3);
    color: #f88181;
    background: rgba(229, 70, 70, 0.08);
    transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.modal-link-btn:hover {
    background: rgba(229, 70, 70, 0.2);
    border-color: rgba(229, 70, 70, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(229, 70, 70, 0.22);
}

.modal-link-btn:active {
    transform: translateY(0);
}

.modal-link-btn--primary {
    background: linear-gradient(135deg, var(--secundaria), var(--primaria));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 12px rgba(202, 40, 81, 0.3);
    transition: opacity 0.18s, transform 0.15s, box-shadow 0.15s;
}

.modal-link-btn--primary:hover {
    background: linear-gradient(135deg, var(--secundaria), var(--primaria));
    opacity: 0.92;
    box-shadow: 0 6px 20px rgba(202, 40, 81, 0.45);
    transform: translateY(-2px);
}

.modal-link-btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.modal-right {
    padding: 2.2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    overflow-y: auto;
}

.modal-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--secundaria);
    text-transform: uppercase;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--claro);
    line-height: 1.2;
    margin: 0;
}

.modal-desc {
    font-size: 0.875rem;
    line-height: 1.78;
    color: #b89494;
    margin: 0;
}

.modal-techs-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.modal-techs-label {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #694747;
}

.modal-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.modal-tech-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.24rem 0.75rem;
    border-radius: 999px;
    background: rgba(229, 70, 70, 0.1);
    border: 1px solid rgba(229, 70, 70, 0.28);
    color: #f88181;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
    cursor: default;
}

.modal-tech-tag:hover {
    background: rgba(229, 70, 70, 0.22);
    border-color: rgba(229, 70, 70, 0.6);
    color: #fec7c7;
    transform: translateY(-2px);
}

/* ─── MODAL DE CERTIFICADO ─── */

.cert-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.32s ease;
}

.cert-overlay.open {
    background: rgba(0, 0, 0, 0.9);
    pointer-events: all;
}

.cert-box {
    position: relative;
    display: inline-flex;
    max-width: 860px;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);

    opacity: 0;
    transform: scale(0.92) translateY(24px);
    transition:
        opacity 0.34s cubic-bezier(.4, 0, .2, 1),
        transform 0.34s cubic-bezier(.4, 0, .2, 1);
}

.cert-overlay.open .cert-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.cert-img {
    display: block;
    max-width: 860px;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.cert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 10, 10, 0.75);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.cert-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 0.9);
    color: #fff;
}

/* ─── CONTATO ───
   Os dois cartões (WhatsApp / E-mail) e o divisor sempre lado a lado. */

.contato {
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contato-label {
    font-size: 0.90rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--secundaria);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.contatos-titulo {
    font-size: 2.2rem;
    color: var(--claro);
    text-align: center;
    margin-bottom: 0.6rem;
}

.contato-sub {
    font-size: 0.88rem;
    color: #8b6464;
    text-align: center;
    margin-bottom: 3rem;
}

.contato-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    max-width: 820px;
    width: 100%;
}

.contato-card {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: border-color 0.3s, transform 0.25s;
    justify-content: space-between;
}

.contato-card:hover {
    border-color: rgba(229, 70, 70, 0.35);
    transform: translateY(-3px);
}

.contato-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.contato-icone {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contato-icone--whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: #25d366;
}

.contato-icone--email {
    background: rgba(229, 70, 70, 0.12);
    border: 1px solid rgba(229, 70, 70, 0.25);
    color: #f88181;
}

.contato-card-titulo {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--claro);
    line-height: 1.2;
}

.contato-card-desc {
    font-size: 0.72rem;
    color: #694747;
    margin-top: 2px;
}

.contato-campos {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contato-campos .campo-form,
.contato-campos .text-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: var(--claro);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    min-width: 0;
}

.contato-campos .campo-form {
    padding: 0.65rem 0.9rem;
}

.contato-campos .text-form {
    padding: 0.65rem 0.9rem;
    min-height: 120px;
    resize: vertical;
}

.contato-campos .campo-form:focus,
.contato-campos .text-form:focus {
    border-color: var(--primaria);
    background: rgba(229, 70, 70, 0.05);
}

.contato-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.contato-btn i { font-size: 1rem; }

.contato-btn--whatsapp {
    background: linear-gradient(135deg, #1fbe5e, #25d366);
    color: #fff;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25);
}

.contato-btn--whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.38);
}

.contato-btn--email {
    background: linear-gradient(135deg, var(--secundaria), var(--primaria));
    color: #fff;
    box-shadow: 0 4px 18px rgba(229, 70, 70, 0.28);
}

.contato-btn--email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 70, 70, 0.42);
}

.contato-btn:active { transform: translateY(0); opacity: 0.88; }

.contato-divisor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    gap: 0.6rem;
    align-self: stretch;
    flex-shrink: 0;
}

.contato-divisor::before,
.contato-divisor::after {
    content: '';
    flex: 1;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.contato-divisor span {
    font-size: 0.72rem;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── SCROLL REVEAL ─── */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}

.reveal--left  { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--scale { transform: translateY(20px) scale(0.95); }

.reveal.visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

.reveal--delay-1 { transition-delay: 0.05s; }
.reveal--delay-2 { transition-delay: 0.10s; }
.reveal--delay-3 { transition-delay: 0.15s; }
.reveal--delay-4 { transition-delay: 0.20s; }
.reveal--delay-5 { transition-delay: 0.25s; }

/* ─── ENTRADA DOS CARDS ─── */

.card-entry {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(.4,0,.2,1),
                transform 0.4s cubic-bezier(.4,0,.2,1);
    transform: translateY(20px);
    will-change: opacity, transform;
}

.card-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-entry.entrada-feita {
    opacity: 1;
    will-change: auto;
    transition: transform 0.22s ease;
}

/* ─── HERO LOAD ANIMATION ─── */

#inicio .hero-anim {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1),
                transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}

#inicio .hero-anim--left  { transform: translateX(-28px); }
#inicio .hero-anim--scale { transform: translateY(20px) scale(0.95); }

#inicio .hero-anim.visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

#inicio .hero-anim.no-transition {
    transition: none;
}

/* ─── CAMPO ERRO (SHAKE) ─── */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.campo-erro {
    border-color: #ef4444 !important;
    animation: shake 0.4s ease;
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVIDADE
   Filosofia: NADA empilha. Hero (foto + texto), Sobre (esquerda +
   direita) e Contato (whatsapp + divisor + email) continuam sempre
   em row, em qualquer largura de tela — só encolhem proporcionalmente
   (fontes, paddings, gaps, tamanhos de imagem) usando clamp() e os
   breakpoints abaixo. Os cards do Portfólio também já ficavam lado a
   lado e continuam assim.
   ════════════════════════════════════════════════════════════ */

/* ─── TELAS GRANDES (≥1440px) ─── */

@media (min-width: 1440px) {
    .cabecalho-inner,
    .contato-grid {
        max-width: 1000px;
    }

    .sobre-grid {
        max-width: 900px;
    }

    .cards-grid {
        max-width: 960px;
    }
}

/* ─── TABLET (≤900px) ───
   Reduz um pouco os tamanhos, mas tudo continua em row. */

@media (max-width: 900px) {
    .navegacao {
        padding: 0.7rem 1.25rem;
    }

    .menu {
        gap: 1.25rem;
    }

    .menu-link {
        font-size: 0.72rem;
    }

    .cabecalho {
        padding: 6.5rem 1.5rem 2.5rem;
        min-height: auto;
    }

    .cabecalho-inner {
        gap: 1.75rem;
    }

    .foto-container {
        width: 200px;
        height: 200px;
    }

    .foto-perfil {
        width: 184px;
        height: 184px;
    }

    h1 {
        font-size: 1.9rem;
    }

    .hero-btns {
        flex-wrap: wrap;
    }

    .sobre {
        padding: 4.5rem 1.5rem;
    }

    .sobre-titulo {
        font-size: 1.9rem;
    }

    .sobre-grid {
        max-width: 640px;
        gap: 1.25rem;
    }

    .sobre-esquerda {
        width: 38%;
    }

    .projetos {
        padding: 4.5rem 1.5rem;
    }

    .projetos-titulo {
        font-size: 1.8rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        max-width: 640px;
    }

    .modal-box {
        max-width: 600px;
    }

    .modal-img-wrap {
        min-height: 180px;
    }

    .contato {
        padding: 4.5rem 1.5rem;
    }

    .contato-grid {
        max-width: 560px;
    }
}

/* ─── CELULAR (≤600px) ───
   Hero, Sobre e Contato continuam em row: a foto, as colunas do
   "Sobre" e os dois cartões de contato ficam lado a lado, só que
   bem menores. Os cards de projeto/certificado seguem em 2 colunas
   fixas, como já estava. */

@media (max-width: 600px) {
    .navegacao {
        padding: 0.55rem 0.85rem;
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
    }

    .logo span {
        font-size: 0.82rem;
    }

    .menu {
        gap: 0.4rem;
    }

    .menu-link {
        font-size: 0.56rem;
        letter-spacing: 0;
        padding: 0.3rem 0;
    }

    .blob {
        height: 24px;
    }

    /* ── HERO: foto + texto lado a lado, em miniatura ── */

    .cabecalho {
        padding: 5.5rem 0.9rem 1.75rem;
        align-items: flex-start;
    }

    .cabecalho-inner {
        flex-direction: row;
        align-items: center;
        gap: 0.9rem;
        max-width: 100%;
    }

    .foto-container {
        width: clamp(72px, 22vw, 92px);
        height: clamp(72px, 22vw, 92px);
        flex-shrink: 0;
    }

    .foto-perfil {
        width: 100%;
        height: 100%;
        border-width: 2px;
        margin-right: 0;
    }

    .cabecalho-texto {
        gap: 0.32rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    .hero-label {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    h1 {
        font-size: clamp(1.05rem, 6vw, 1.35rem);
        line-height: 1.15;
    }

    .cabecalho-sub-titulo {
        font-size: 0.68rem;
    }

    .hero-frase-bloco {
        margin: 0.35rem 0 0.1rem;
        padding: 0.45rem 0.55rem;
        border-radius: 0 8px 8px 0;
    }

    .hero-frase-texto {
        font-size: 0.6rem;
        line-height: 1.45;
    }

    .cabecalho-frase {
        font-size: 0.6rem;
        min-height: 1rem;
    }

    .hero-btns {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-top: 0.4rem;
    }

    .btn-hero {
        padding: 0.32rem 0.55rem;
        font-size: 0.58rem;
        border-radius: 7px;
        gap: 4px;
    }

    .btn-hero i { font-size: 0.7rem; }

    /* ── SOBRE MIM: coluna esquerda + direita lado a lado, em miniatura ── */

    .sobre {
        padding: 3rem 0.9rem;
    }

    .sobre-label {
        font-size: 0.62rem;
    }

    .sobre-titulo {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .sobre-grid {
        flex-direction: row;
        gap: 0.7rem;
        max-width: 100%;
        align-items: stretch;
    }

    .sobre-esquerda {
        width: 30%;
        gap: 0.45rem;
    }

    .status-badge {
        font-size: 0.52rem;
        padding: 0.28rem 0.5rem;
        gap: 4px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .dot-status {
        width: 5px;
        height: 5px;
    }

    .info-pills {
        gap: 0.35rem;
    }

    .pill {
        padding: 0.35rem 0.45rem;
        font-size: 0.56rem;
        gap: 5px;
        border-radius: 8px;
    }

    .pill-icon {
        font-size: 11px;
    }

    .sobre-direita {
        width: 70%;
        gap: 0.65rem;
    }

    .sobre-card {
        padding: 0.75rem 0.8rem;
        border-radius: 10px;
    }

    .sobre-paragrafo {
        font-size: 0.62rem;
        line-height: 1.55;
    }

    .skills-label {
        font-size: 0.5rem;
        margin-bottom: 0.3rem;
    }

    .skills-row {
        gap: 0.3rem;
    }

    .skill-tag {
        font-size: 0.54rem;
        padding: 0.16rem 0.5rem;
    }

    /* ── PORTFÓLIO ── */

    .projetos {
        padding: 3.5rem 1.25rem;
    }

    .projetos-titulo {
        font-size: 1.55rem;
    }

    .pill-nav-inner {
        width: 100%;
        max-width: 360px;
    }

    .pill-btn {
        flex: 1;
        padding: 0.45rem 0.5rem;
        font-size: 0.72rem;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 100%;
    }

    .card-img {
        height: 110px;
    }

    .card-footer {
        padding: 0.5rem 0.65rem;
        gap: 0.4rem;
    }

    .card-name {
        font-size: 0.74rem;
    }

    .card-meta {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .card-tags {
        gap: 0.2rem;
    }

    .tag {
        font-size: 0.56rem;
        padding: 0.12rem 0.4rem;
    }

    .card-date {
        font-size: 0.56rem;
    }

    .skills-grid {
        gap: 0.7rem;
    }

    .skill-card {
        width: 95px;
        height: 95px;
    }

    .skill-card i {
        font-size: 2.1rem;
    }

    .skill-card span {
        font-size: 0.68rem;
    }

    /* ── MODAL DE PROJETO: mantém imagem e texto lado a lado ── */

    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-box {
        grid-template-columns: 0.85fr 1.15fr;
        max-height: 78vh;
        overflow-y: hidden;
        max-width: 100%;
    }

    .modal-left {
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: none;
        display: flex;
        flex-direction: column;
    }

    .modal-img-wrap {
        min-height: 0;
        flex: 1 1 auto;
    }

    .modal-img {
        max-height: none;
        height: 100%;
    }

    .modal-actions {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .modal-link-btn {
        justify-content: center;
        font-size: 0.66rem;
        padding: 0.4rem 0.6rem;
    }

    .modal-right {
        padding: 0.9rem 0.8rem;
        gap: 0.45rem;
        overflow-y: auto;
        max-height: 78vh;
    }

    .modal-eyebrow {
        font-size: 0.56rem;
    }

    .modal-title {
        font-size: 0.95rem;
    }

    .modal-desc {
        font-size: 0.66rem;
        line-height: 1.42;
    }

    .modal-techs-label {
        font-size: 0.52rem;
    }

    .modal-tech-tag {
        font-size: 0.6rem;
        padding: 0.18rem 0.55rem;
    }

    .cert-box,
    .cert-img {
        max-width: 92vw;
        max-height: 65vh;
    }

    /* ── CONTATO: dois cartões + divisor lado a lado, compactos ── */

    .contato {
        padding: 3rem 0.9rem;
    }

    .contato-label {
        font-size: 0.62rem;
    }

    .contatos-titulo {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }

    .contato-sub {
        font-size: 0.62rem;
        margin-bottom: 1.5rem;
        padding: 0 0.3rem;
    }

    .contato-grid {
        flex-direction: row;
        gap: 0;
        max-width: 100%;
        align-items: stretch;
    }

    .contato-card {
        padding: 0.6rem;
        gap: 0.5rem;
        border-radius: 12px;
    }

    .contato-card-header {
        gap: 0.4rem;
    }

    .contato-icone {
        width: 26px;
        height: 26px;
        border-radius: 7px;
        font-size: 0.78rem;
    }

    .contato-card-titulo {
        font-size: 0.62rem;
    }

    .contato-card-desc {
        font-size: 0.5rem;
        margin-top: 0;
    }

    .contato-campos {
        gap: 0.35rem;
    }

    .contato-campos .campo-form {
        padding: 0.35rem 0.5rem;
        font-size: 0.6rem;
        border-radius: 7px;
    }

    .contato-campos .text-form {
        padding: 0.35rem 0.5rem;
        font-size: 0.6rem;
        min-height: 56px;
        border-radius: 7px;
    }

    .contato-btn {
        padding: 0.45rem 0.5rem;
        font-size: 0.6rem;
        gap: 4px;
        border-radius: 7px;
    }

    .contato-btn i { font-size: 0.72rem; }

    .contato-divisor {
        padding: 0 0.4rem;
        gap: 0.3rem;
        flex-shrink: 0;
    }

    .contato-divisor span {
        font-size: 0.5rem;
    }
}

/* ─── CELULARES BEM PEQUENOS (≤420px) ───
   Continua tudo em row; só reduz mais um nível as fontes/medidas. */

@media (max-width: 420px) {
    .menu {
        gap: 0.28rem;
    }

    .menu-link {
        font-size: 0.5rem;
    }

    .logo span {
        font-size: 0.72rem;
    }

    .foto-container {
        width: 64px;
        height: 64px;
    }

    h1 {
        font-size: clamp(0.92rem, 5.6vw, 1.1rem);
    }

    .hero-label {
        font-size: 0.52rem;
    }

    .cabecalho-sub-titulo {
        font-size: 0.6rem;
    }

    .hero-frase-texto {
        font-size: 0.54rem;
    }

    .btn-hero {
        font-size: 0.52rem;
        padding: 0.28rem 0.45rem;
    }

    .sobre-esquerda {
        width: 32%;
    }

    .sobre-direita {
        width: 68%;
    }

    .status-badge {
        font-size: 0.48rem;
        padding: 0.24rem 0.4rem;
    }

    .pill {
        font-size: 0.5rem;
        padding: 0.3rem 0.4rem;
    }

    .sobre-paragrafo {
        font-size: 0.56rem;
    }

    .skill-tag {
        font-size: 0.48rem;
        padding: 0.14rem 0.4rem;
    }

    .card-img {
        height: 95px;
    }

    .card-name {
        font-size: 0.7rem;
    }

    .tag {
        font-size: 0.54rem;
        padding: 0.1rem 0.36rem;
    }

    .skill-card {
        width: 80px;
        height: 80px;
    }

    .skill-card i {
        font-size: 1.8rem;
    }

    .skill-card span {
        font-size: 0.6rem;
    }

    .pill-btn {
        font-size: 0.64rem;
        padding: 0.4rem 0.35rem;
    }

    .contato-icone {
        width: 22px;
        height: 22px;
        font-size: 0.68rem;
    }

    .contato-card-titulo {
        font-size: 0.56rem;
    }

    .contato-card-desc {
        font-size: 0.46rem;
    }

    .contato-campos .campo-form,
    .contato-campos .text-form {
        font-size: 0.55rem;
        padding: 0.3rem 0.4rem;
    }

    .contato-btn {
        font-size: 0.55rem;
        padding: 0.4rem 0.4rem;
    }

    .contato-divisor {
        padding: 0 0.28rem;
    }
}