/*===================================================
    PORTFÓLIO — Ezequiel Lopes
    Camada de estilos carregada DEPOIS do template
    original (main.css / responsive.css). Reaproveita
    a identidade gamer (Oxanium, gradiente roxo→ciano,
    formas chanfradas) e adiciona os novos componentes.

    ÍNDICE
    0.0  Design tokens (variáveis)
    1.0  Base, acessibilidade e utilitários
    2.0  Botões
    3.0  Cabeçalho e logotipo
    4.0  Hero
    5.0  Moldura HUD + cabeçalhos de seção
    6.0  Projetos: filtros, busca e cards
    7.0  Experiências em funcionamento (vitrine)
    8.0  Tecnologias
    9.0  Sobre mim + janelas de código
    10.0 Contato
    11.0 Diário de desenvolvimento
    12.0 Rodapé
    13.0 Responsivo
    14.0 Movimento reduzido
====================================================*/

/*** 0.0 - Design tokens ***/
:root {
    --bg-950: #05061a;
    --bg-900: #0a0a2a;
    --bg-800: #0c0c35;
    --bg-700: #15134a;

    --purple: #9841ff;
    --purple-rgb: 152, 65, 255;
    --magenta: #f90cff;
    --magenta-rgb: 249, 12, 255;
    --cyan: #0cd7e8;
    --cyan-rgb: 12, 215, 232;
    --blue: #3c73ff;
    --green: #18e0a8;
    --amber: #ffb02e;
    --danger: #ff5c8a;

    --text: #ffffff;
    --text-soft: #d5d8f2;
    --text-muted: #a3a9d1;
    --text-dim: #6f75a3;

    --grad-main: linear-gradient(to right bottom, #f90cff, #e027ff, #c534ff, #a93eff, #8a44ff, #6560ff, #3c73ff, #0081ff, #009cff, #00b3ff, #00c6f5, #0cd7e8);
    --grad-text: linear-gradient(95deg, #f90cff 0%, #a93eff 35%, #3c73ff 65%, #0cd7e8 100%);
    --grad-line: linear-gradient(90deg, rgba(152, 65, 255, 0) 0%, rgba(152, 65, 255, 1) 50%, rgba(152, 65, 255, 0) 100%);
    --grad-card: linear-gradient(160deg, rgba(25, 21, 78, 0.88) 0%, rgba(11, 11, 44, 0.94) 60%, rgba(9, 14, 48, 0.96) 100%);
    --stripes: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 6px);

    --border: rgba(152, 65, 255, 0.28);
    --border-strong: rgba(152, 65, 255, 0.5);
    --border-cyan: rgba(12, 215, 232, 0.55);

    --shadow-card: 0 14px 34px -18px rgba(0, 0, 0, 0.75);
    --shadow-glow: 0 0 0 1px rgba(12, 215, 232, 0.25), 0 26px 50px -22px rgba(152, 65, 255, 0.75), 0 0 42px -12px rgba(12, 215, 232, 0.45);

    --radius: 6px;
    --radius-sm: 3px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;

    --font-display: 'Oxanium', sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --header-h: 90px;
}

/*** 1.0 - Base, acessibilidade e utilitários ***/
html {
    scroll-behavior: smooth;
}

main section[id],
#inicio {
    scroll-margin-top: var(--header-h);
}

body {
    color: var(--text-soft);
}

.site-preloader {
    background: var(--bg-950);
}

.site-preloader .spinner {
    background: var(--grad-main);
    box-shadow: 0 0 40px rgba(var(--purple-rgb), 0.8);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(var(--cyan-rgb), 0.18);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 100000;
    background: var(--grad-main);
    color: #fff;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top .25s ease;
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(var(--purple-rgb), 0.45));
}

.mono-accent {
    font-family: var(--font-mono);
    color: var(--magenta);
    letter-spacing: 0;
}

[hidden] {
    display: none !important;
}

/*** 2.0 - Botões ***/
.default-btn {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 14px;
}

.default-btn i {
    font-size: 17px;
    margin-left: 6px;
    vertical-align: -2px;
    transition: transform .3s var(--ease-out);
}

.default-btn .lab,
.header-github i {
    margin: 0 6px 0 0;
}

.default-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12) saturate(1.1);
}

.default-btn:hover .la-arrow-right,
.default-btn:hover .la-external-link-alt {
    transform: translateX(3px);
}

.default-btn.btn-sm {
    min-width: 0;
    height: 42px;
    line-height: 42px;
    padding: 0 22px;
    font-size: 12.5px;
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 28px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(var(--cyan-rgb), 0.05);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 18px rgba(var(--cyan-rgb), 0.08);
    white-space: nowrap;
    cursor: pointer;
    transition: transform .3s var(--ease-out), box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}

.outline-btn i {
    font-size: 19px;
}

.outline-btn:hover {
    color: #fff;
    background: rgba(var(--cyan-rgb), 0.12);
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: inset 0 0 18px rgba(var(--cyan-rgb), 0.15), 0 0 24px -4px rgba(var(--cyan-rgb), 0.6);
}

.outline-btn.btn-sm {
    height: 42px;
    padding: 0 18px;
    font-size: 12.5px;
}

.link-pending {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    line-height: 1;
}

.link-pending i {
    font-size: 16px;
    color: var(--cyan);
}

/*** 3.0 - Cabeçalho e logotipo ***/
.header {
    border-bottom: 1px solid rgba(var(--purple-rgb), 0.18);
}

.primary-header .header-logo {
    max-width: none;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    line-height: 1;
}

.brand-logo:hover {
    color: #fff;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(var(--purple-rgb), 0.7));
    transition: transform .6s var(--ease-out);
}

.brand-logo:hover .brand-mark svg {
    transform: rotate(60deg);
}

.brand-text {
    display: inline-flex;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-text b {
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right .search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    color: var(--text-soft);
}

.header-right .search-icon:hover {
    color: #fff;
    background: rgba(var(--purple-rgb), 0.18);
}

.header-right .header-github {
    width: auto;
    min-width: 0;
    padding: 0 22px;
    font-size: 13px;
}

.burger-menu {
    padding: 4px;
    box-sizing: content-box;
}

#popup-search-box .box-inner-wrap form {
    width: min(900px, 90%);
}

/*** 4.0 - Hero ***/
.hero-portfolio {
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
    padding: 70px 0 110px;
    overflow: hidden;
    isolation: isolate;
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.7;
    pointer-events: none;
}

.hero-gridlines {
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: -10%;
    height: 55%;
    z-index: -2;
    background-image:
        linear-gradient(rgba(var(--purple-rgb), 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--purple-rgb), 0.35) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(600px) rotateX(62deg);
    transform-origin: center bottom;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
    animation: gridMove 6s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 64px, 0 0; }
}

.hero-portfolio::after {
    content: "";
    position: absolute;
    width: 680px;
    height: 680px;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(var(--purple-rgb), 0.35) 0%, rgba(var(--cyan-rgb), 0.08) 45%, transparent 70%);
    z-index: -3;
    pointer-events: none;
}

.hero-portfolio .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 40px;
    text-align: left;
    padding-top: 0;
}

.hero-portfolio .hero-eyebrow {
    display: flex;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center;
    gap: 6px 10px;
    font-size: clamp(10px, 0.88vw, 12.5px);
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--cyan);
    margin-bottom: 26px;
    padding-left: 36px;
    position: relative;
    max-width: 100%;
}

.hero-portfolio .hero-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 26px;
    height: 2px;
    background: var(--grad-main);
    box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.8);
}

.hero-portfolio .hero-eyebrow span {
    white-space: nowrap;
}

.hero-portfolio .hero-eyebrow i {
    font-style: normal;
    color: var(--magenta);
    margin: 0 2px;
    flex-shrink: 0;
}

.hero-portfolio .hero-content h1 {
    font-size: clamp(42px, 6.2vw, 86px);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 26px;
    text-shadow: 0 0 40px rgba(var(--purple-rgb), 0.35);
}

.hero-portfolio .hero-content h1 .text-gradient {
    display: inline-block;
}

.hero-lead {
    font-size: 19px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 34px;
}

.hero-portfolio .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-portfolio .btn-group a {
    margin: 0;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 44px;
}

.hero-stats li {
    min-width: 128px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    background: linear-gradient(90deg, rgba(var(--purple-rgb), 0.16), rgba(var(--purple-rgb), 0.03));
    border-radius: var(--radius-sm);
}

.hero-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
}

.hero-stats span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Visual 3D */
.hero-visual {
    position: relative;
    height: 540px;
}

.hero-visual .shape-wrap {
    height: 72%;
    opacity: 0.45;
}

.cube-stage {
    position: absolute;
    left: 54%;
    top: 40%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    perspective: 1100px;
}

.cube {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(-22deg) rotateY(-32deg);
    animation: cubeSpin 18s linear infinite, cubeFloat 5s ease-in-out infinite;
}

@keyframes cubeSpin {
    from { transform: rotateX(-22deg) rotateY(0deg); }
    to { transform: rotateX(-22deg) rotateY(360deg); }
}

@keyframes cubeFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -16px; }
}

.cube-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(var(--cyan-rgb), 0.75);
    background:
        linear-gradient(135deg, rgba(var(--magenta-rgb), 0.22) 0%, rgba(60, 115, 255, 0.10) 50%, rgba(var(--cyan-rgb), 0.24) 100%);
    box-shadow:
        inset 0 0 45px rgba(var(--purple-rgb), 0.55),
        0 0 28px rgba(var(--cyan-rgb), 0.35);
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 14px rgba(var(--cyan-rgb), 0.95), 0 0 30px rgba(var(--magenta-rgb), 0.6);
    backface-visibility: visible;
}

.cube-face::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-image: var(--stripes);
    opacity: 0.6;
}

.cube-face span {
    position: relative;
}

.face-front { transform: translateZ(100px); }
.face-back { transform: rotateY(180deg) translateZ(100px); }
.face-right { transform: rotateY(90deg) translateZ(100px); }
.face-left { transform: rotateY(-90deg) translateZ(100px); }
.face-top { transform: rotateX(90deg) translateZ(100px); }
.face-bottom { transform: rotateX(-90deg) translateZ(100px); }

.cube-core {
    position: absolute;
    inset: 32%;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(var(--cyan-rgb), 0.9) 30%, rgba(var(--magenta-rgb), 0.5) 60%, transparent 75%);
    filter: blur(6px);
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { opacity: 0.75; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

.cube-platform {
    position: absolute;
    left: 50%;
    top: calc(100% + 70px);
    width: 340px;
    height: 340px;
    margin: -170px 0 0 -170px;
    transform: rotateX(76deg);
    transform-style: preserve-3d;
    pointer-events: none;
}

.cube-platform .ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(var(--cyan-rgb), 0.8);
    box-shadow: 0 0 25px rgba(var(--cyan-rgb), 0.6), inset 0 0 25px rgba(var(--purple-rgb), 0.6);
}

.cube-platform .ring-1 {
    inset: 0;
    border-color: rgba(var(--purple-rgb), 0.7);
    animation: ringPulse 4s ease-in-out infinite;
}

.cube-platform .ring-2 {
    inset: 16%;
    border-style: dashed;
    animation: ringSpin 20s linear infinite;
}

.cube-platform .ring-3 {
    inset: 32%;
    background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.45), rgba(var(--purple-rgb), 0.2) 60%, transparent 72%);
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.06); opacity: 0.4; }
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

.hero-code {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 300px;
    z-index: 2;
    animation: cardFloat 7s ease-in-out infinite;
}

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

.hero-code .code-body {
    font-size: 12.5px;
    min-height: 168px;
}

.hero-side-tag {
    position: absolute;
    right: 0;
    top: 12%;
    padding-left: 12px;
    border-left: 2px solid rgba(var(--cyan-rgb), 0.6);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cyan);
    opacity: 0.85;
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    z-index: 2;
}

.scroll-hint span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--cyan);
    animation: scrollHint 1.8s ease-in-out infinite;
}

.scroll-hint:hover {
    border-color: var(--cyan);
}

@keyframes scrollHint {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/*** 5.0 - Moldura HUD + cabeçalhos de seção ***/
.section-heading h3 {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--cyan);
}

.section-heading h2 span {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading p {
    color: var(--text-muted);
}

.section-lead {
    font-size: 19px;
    color: var(--text-soft) !important;
}

.hud-frame,
.tech-panel,
.contact-panel {
    position: relative;
    padding: 56px 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(900px 300px at 0% 0%, rgba(var(--purple-rgb), 0.14), transparent 60%),
        radial-gradient(700px 300px at 100% 100%, rgba(var(--cyan-rgb), 0.08), transparent 60%),
        linear-gradient(180deg, rgba(12, 12, 53, 0.82), rgba(10, 10, 42, 0.62));
    box-shadow: inset 0 0 70px rgba(var(--purple-rgb), 0.07), 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}

.hud-frame::before,
.tech-panel::before,
.contact-panel::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: -1px;
    height: 2px;
    background: var(--grad-line);
    box-shadow: 0 0 18px rgba(var(--purple-rgb), 0.9);
}

.hud-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--cyan);
    border-style: solid;
    border-width: 0;
    filter: drop-shadow(0 0 6px rgba(var(--cyan-rgb), 0.8));
    pointer-events: none;
}

.hud-corner.tl { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.hud-corner.tr { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.hud-corner.bl { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.hud-corner.br { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }

/*** 6.0 - Projetos ***/
.projects-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 36px;
}

.projects-heading .section-heading h2 {
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.05;
}

.projects-support {
    margin: 0;
    padding-left: 18px;
    border-left: 2px solid rgba(var(--cyan-rgb), 0.6);
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.projects-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

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

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-soft);
    background: rgba(12, 12, 53, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s var(--ease-out);
}

.filter-btn em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 11px;
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    text-align: center;
}

.filter-btn:hover {
    color: #fff;
    border-color: var(--border-cyan);
    box-shadow: 0 0 18px -4px rgba(var(--cyan-rgb), 0.55);
    transform: translateY(-1px);
}

.filter-btn.is-active {
    color: #fff;
    background: var(--grad-main);
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 0 26px -2px rgba(var(--magenta-rgb), 0.6), 0 0 34px -6px rgba(var(--cyan-rgb), 0.6);
}

.filter-btn.is-active em {
    background: rgba(5, 6, 26, 0.45);
    color: #fff;
}

.filter-btn.is-empty:not(.is-active) {
    opacity: 0.55;
}

.project-search {
    position: relative;
    flex: 0 1 300px;
}

.project-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.project-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    font-family: var(--font-display);
    font-size: 14px;
    color: #fff;
    background: rgba(5, 6, 26, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.project-search input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.18);
}

.projects-result {
    min-height: 22px;
    margin: 0 0 22px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.projects-result b {
    color: var(--cyan);
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    transition: opacity .18s ease, transform .18s ease;
}

.projects-grid.is-filtering {
    opacity: 0;
    transform: translateY(8px);
}

.projects-grid.pre-reveal .project-card {
    opacity: 0;
}

.projects-grid.is-updated .project-card:not([hidden]) {
    animation: cardIn .55s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* =====================================================
   CYBERPUNK HUD PROJECT CARD (Ref: Neon City 67)
===================================================== */
.project-card {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .35s var(--ease-out), filter .35s ease;
    will-change: transform;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Moldura externa com chanfros nos 4 cantos e entalhe superior */
.project-card-outer {
    position: relative;
    padding: 2px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #00d2ff 0%, #0088ff 30%, #7b2cbf 70%, #a855f7 100%);
    clip-path: polygon(
        0 22px,
        22px 0,
        65px 0,
        72px 6px,
        135px 6px,
        142px 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
    filter: drop-shadow(0 0 16px rgba(0, 210, 255, 0.28));
    transition: filter .35s ease, background .35s ease;
}

.project-card:hover .project-card-outer {
    background: linear-gradient(135deg, #00f0ff 0%, #2563eb 30%, #9333ea 70%, #d946ef 100%);
    filter: drop-shadow(0 0 24px rgba(0, 210, 255, 0.55)) drop-shadow(0 0 35px rgba(168, 85, 247, 0.35));
}

/* Interior escuro com gradiente e layout horizontal */
.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 250px;
    background: linear-gradient(145deg, #060920 0%, #0b0f34 50%, #070a24 100%);
    clip-path: polygon(
        0 21px,
        21px 0,
        64px 0,
        71px 6px,
        136px 6px,
        143px 0,
        calc(100% - 19px) 0,
        100% 19px,
        100% calc(100% - 19px),
        calc(100% - 19px) 100%,
        19px 100%,
        0 calc(100% - 19px)
    );
    padding: 18px 38px 18px 18px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: stretch;
    box-shadow: inset 0 0 30px rgba(0, 210, 255, 0.05);
}

/* Miniatura à esquerda com tamanho e proporção uniformes */
.project-thumb {
    position: relative;
    width: 200px;
    height: 100%;
    min-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 180, 255, 0.5);
    background: radial-gradient(circle at center, #0e153b 0%, #05081b 100%);
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.8);
    display: block;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 32, 0.05) 0%, rgba(6, 10, 32, 0.35) 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity .35s ease;
}

.project-card:hover .project-thumb::after {
    opacity: 0.15;
}

.project-thumb-svg,
.project-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .6s var(--ease-out);
}

.project-card:hover .project-thumb-svg,
.project-card:hover .project-thumb-img {
    transform: scale(1.06);
}

/* Selo com o número do projeto (01, 02...) */
.project-number {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(6, 10, 32, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 210, 255, 0.5);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Conteúdo à direita com isolamento de overflow */
.project-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    padding: 2px 0;
    min-width: 0;
    overflow: visible;
}

.project-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 26px;
    margin-bottom: 4px;
    min-width: 0;
    width: 100%;
}

.project-cat-tag {
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

/* Pílula de status (ONLINE, ATIVO, EM DESENVOLVIMENTO...) */
.project-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-ring {
    flex-shrink: 0;
}

.project-status-pill.is-online {
    color: #00f0b5;
    border: 1px solid #00f0b5;
    background: rgba(0, 240, 181, 0.08);
    box-shadow: 0 0 12px rgba(0, 240, 181, 0.28);
}

.project-status-pill.is-active {
    color: #c084fc;
    border: 1px solid #a855f7;
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.28);
}

.project-status-pill.is-dev {
    color: #ff66aa;
    border: 1px solid #ff2a85;
    background: rgba(255, 42, 133, 0.1);
    box-shadow: 0 0 12px rgba(255, 42, 133, 0.28);
}

.project-status-pill.is-soon {
    color: #a78bfa;
    border: 1px solid #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.28);
}

.project-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18.5px;
    letter-spacing: 0.3px;
    color: #ffffff;
    margin: 2px 0 6px 0;
    text-transform: uppercase;
    line-height: 1.25;
    min-height: 2.5em;
    max-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: text-shadow .3s ease;
}

.project-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color .25s ease, text-shadow .25s ease;
}

.project-title a:hover {
    color: var(--cyan);
    text-shadow: 0 0 14px rgba(var(--cyan-rgb), 0.55);
}

.project-card:hover .project-title {
    text-shadow: 0 0 14px rgba(var(--cyan-rgb), 0.45);
}

.project-desc {
    color: #a4b3d6;
    font-size: 13px;
    line-height: 1.55;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    margin: 0 0 14px 0;
    padding: 0;
    list-style: none;
}

.project-tech-pills li {
    padding: 2.5px 9px;
    border-radius: 12px;
    border: 1px solid rgba(0, 130, 255, 0.45);
    background: rgba(0, 100, 255, 0.08);
    color: #90c2ff;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}

.project-tech-pills li:hover {
    border-color: var(--cyan);
    background: rgba(var(--cyan-rgb), 0.18);
    color: #ffffff;
}

.project-btn-wrap {
    display: flex;
    align-items: center;
    margin-top: auto;
}

/* Botão chanfrado com gradiente neon roxo -> ciano */
.card-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(160, 32, 240, 0.25) 0%, rgba(0, 210, 255, 0.25) 100%);
    box-shadow: inset 0 0 12px rgba(0, 210, 255, 0.2);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    transition: all .3s ease;
}

.card-action-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(90deg, #b026ff 0%, #00d2ff 100%);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-action-btn:hover {
    background: linear-gradient(90deg, rgba(176, 38, 255, 0.5) 0%, rgba(0, 210, 255, 0.5) 100%);
    box-shadow: 0 0 22px rgba(0, 210, 255, 0.65), inset 0 0 12px rgba(176, 38, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-arrow {
    transition: transform .3s ease;
}

.card-action-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Estado vazio */
.projects-empty {
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: rgba(5, 6, 26, 0.4);
}

.projects-empty i {
    font-size: 54px;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(var(--cyan-rgb), 0.8);
}

.projects-empty h3 {
    margin: 14px 0 6px;
    font-size: 22px;
    text-transform: uppercase;
}

.projects-empty p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

/*** 7.0 - Experiências em funcionamento ***/
.showcase-card {
    --accent-rgb: var(--purple-rgb);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--bg-900);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 50px -24px rgba(var(--accent-rgb), 0.9);
    transition: filter .5s ease, box-shadow .5s ease;
}

.watch-carousel .swiper-slide:not(.swiper-slide-active) .showcase-card {
    filter: saturate(0.6) brightness(0.55);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    background: rgba(5, 6, 26, 0.92);
    border-bottom: 1px solid var(--border);
}

.window-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4f8b;
    box-shadow: 0 0 6px currentColor;
}

.window-bar i:nth-child(2) { background: #b45cff; }
.window-bar i:nth-child(3) { background: var(--cyan); }

.window-bar span {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.watch-carousel .swiper-slide .showcase-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
}

.showcase-preview .ph-icon {
    font-size: 84px;
}

.showcase-preview .ph-orb {
    width: 180px;
    height: 180px;
}

.showcase-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 70px 34px 30px;
    background: linear-gradient(180deg, rgba(5, 6, 26, 0) 0%, rgba(5, 6, 26, 0.88) 45%, rgba(5, 6, 26, 0.96) 100%);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s var(--ease-out);
}

.watch-carousel .swiper-slide-active .showcase-info {
    opacity: 1;
    transform: none;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.showcase-tags .project-status {
    position: static;
}

.showcase-cat {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cyan);
}

.showcase-info h3 {
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.showcase-info p {
    max-width: 560px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.showcase-empty {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.showcase-empty i {
    font-size: 48px;
    color: var(--cyan);
}

.showcase-section .swiper-nav {
    z-index: 5;
    cursor: pointer;
}

/*** 8.0 - Tecnologias ***/
.tech-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 40px;
}

.tech-heading .section-heading h2 {
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.08;
}

.tech-intro p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.tech-legend li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.tech-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    transform: rotate(45deg);
}

.dot-used { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-exp { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.dot-tool { background: var(--text-muted); }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.tech-card {
    --tech: #9841ff;
    --tech-rgb: 152, 65, 255;
    position: relative;
    padding: 24px 20px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--grad-card);
    overflow: hidden;
    transition: transform .35s var(--ease-out), border-color .35s ease, box-shadow .35s ease;
}

.tech-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -60px;
    top: -60px;
    background: radial-gradient(circle, rgba(var(--tech-rgb), 0.28), transparent 70%);
    opacity: 0.55;
    transition: opacity .35s ease, transform .5s var(--ease-out);
    pointer-events: none;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--tech-rgb), 0.7);
    box-shadow: 0 20px 40px -22px rgba(var(--tech-rgb), 0.8), 0 0 0 1px rgba(var(--tech-rgb), 0.18);
}

.tech-card:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.tech-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: rgba(var(--tech-rgb), 0.12);
    border: 1px solid rgba(var(--tech-rgb), 0.45);
    clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 25% 100%, 0 75%);
}

.tech-icon i {
    font-size: 32px;
    color: var(--tech);
    text-shadow: 0 0 14px rgba(var(--tech-rgb), 0.85);
    transition: transform .4s var(--ease-out);
}

.tech-card:hover .tech-icon i {
    transform: scale(1.12);
}

.tech-card h3 {
    position: relative;
    margin: 16px 0 2px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.tech-role {
    position: relative;
    margin: 0 0 16px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.4;
}

.tech-meter {
    position: relative;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.tech-meter span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(var(--tech-rgb), 0.6), var(--tech));
    box-shadow: 0 0 10px rgba(var(--tech-rgb), 0.8);
    transition: width 1.2s var(--ease-out);
}

.tech-grid.is-visible .tech-meter span {
    width: var(--pct, 0%);
}

.tech-usage {
    position: relative;
    margin: 10px 0 0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-dim);
}

.tech-badge {
    position: absolute;
    right: 12px;
    top: 14px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    border-radius: var(--radius-sm);
    border: 1px solid;
}

.tech-card.is-used .tech-badge { color: var(--cyan); border-color: rgba(var(--cyan-rgb), 0.5); background: rgba(var(--cyan-rgb), 0.08); }
.tech-card.is-experimental .tech-badge { color: #ff7ce6; border-color: rgba(var(--magenta-rgb), 0.5); background: rgba(var(--magenta-rgb), 0.08); }
.tech-card.is-tool .tech-badge { color: var(--text-muted); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); }

/*** 9.0 - Sobre mim + janelas de código ***/
.code-window {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(7, 7, 30, 0.94);
    border: 1px solid rgba(var(--purple-rgb), 0.45);
    box-shadow:
        0 0 0 1px rgba(var(--cyan-rgb), 0.08),
        0 30px 60px -25px rgba(var(--purple-rgb), 0.7),
        0 0 50px -22px rgba(var(--cyan-rgb), 0.55);
}

.code-body {
    display: block;
    margin: 0;
    padding: 18px 20px 22px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.75;
    color: #d7dcff;
    background: transparent;
    border: 0;
    white-space: pre;
    overflow-x: auto;
    tab-size: 4;
}

.code-body .ln {
    display: inline-block;
    width: 26px;
    color: #4a4f7d;
    user-select: none;
}

.tk-key { color: #ff6ad5; }
.tk-var { color: #8fd3ff; }
.tk-str { color: #8affc9; }
.tk-fn { color: #c9a2ff; }
.tk-num { color: #ffb86b; }
.tk-com { color: #646a98; font-style: italic; }

.caret {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    margin-left: 3px;
    vertical-align: -2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
    50% { opacity: 0; }
}

.code-line {
    display: block;
    opacity: 0;
    transform: translateX(-6px);
    animation: codeLineIn .35s var(--ease-out) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes codeLineIn {
    to { opacity: 1; transform: none; }
}

.about-code .code-body {
    font-size: 15px;
    padding: 26px 26px 30px;
}

.code-side-tag {
    display: block;
    padding: 12px 26px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(var(--purple-rgb), 0.06);
}

.about-portfolio .section-heading h2 {
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.08;
    margin-bottom: 18px;
}

.about-text {
    font-size: 18px !important;
    line-height: 1.75 !important;
    color: var(--text-soft) !important;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.pillar {
    position: relative;
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--grad-card);
    overflow: hidden;
    transition: transform .35s var(--ease-out), border-color .35s ease;
}

.pillar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--grad-line);
    transform: scaleX(0.3);
    transition: transform .45s var(--ease-out);
}

.pillar:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.pillar:hover::after {
    transform: scaleX(1);
}

.pillar i {
    font-size: 36px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pillar h3 {
    margin: 10px 0 6px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pillar p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

/*** 10.0 - Contato ***/
.contact-panel {
    background:
        radial-gradient(600px 320px at 0% 100%, rgba(var(--magenta-rgb), 0.14), transparent 60%),
        radial-gradient(600px 320px at 100% 0%, rgba(var(--cyan-rgb), 0.12), transparent 60%),
        linear-gradient(180deg, rgba(12, 12, 53, 0.85), rgba(10, 10, 42, 0.7));
}

.contact-section .section-heading h2 {
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.08;
}

.contact-social {
    margin-top: 30px;
}

.contact-social h4 {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.social-list-lg li a {
    width: 48px;
    height: 48px;
    font-size: 22px;
}

.social-list li a i {
    font-size: 1.35em;
}

.contact-form {
    margin-left: 0;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.contact-form-group .form-field .form-control {
    height: 54px;
    background-color: rgba(5, 6, 26, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 15px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.contact-form-group .form-field.message .form-control {
    height: 150px;
    resize: vertical;
    min-height: 120px;
}

.contact-form-group .form-field .form-control:focus {
    color: #fff;
    background-color: rgba(5, 6, 26, 0.92);
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.18);
    outline: none;
}

.contact-form-group .form-field.is-invalid .form-control {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.15);
}

.field-error {
    display: block;
    min-height: 20px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #ff86a8;
}

.form-submit {
    grid-column-end: span 2;
}

.form-submit .default-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

#form-messages.form-notice {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.6;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--cyan);
    background: rgba(var(--cyan-rgb), 0.08);
    color: var(--text-soft);
}

#form-messages.form-notice.is-visible {
    display: block;
}

#form-messages.is-error {
    border-left-color: var(--danger);
    background: rgba(255, 92, 138, 0.08);
}

#form-messages.is-success {
    border-left-color: var(--green);
    background: rgba(24, 224, 168, 0.08);
}

#form-messages a {
    color: var(--cyan);
    text-decoration: underline;
}

/*** 11.0 - Diário de desenvolvimento ***/
.devlog-section .post-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform .35s var(--ease-out), border-color .35s ease, box-shadow .35s ease;
}

.devlog-section .post-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-cyan);
    box-shadow: var(--shadow-glow);
}

.devlog-section .post-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.devlog-section .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.devlog-empty {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 40px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: rgba(5, 6, 26, 0.45);
}

.devlog-empty .code-window {
    box-shadow: 0 20px 40px -25px rgba(var(--purple-rgb), 0.7);
}

.devlog-empty .code-body {
    font-size: 13.5px;
    white-space: pre-wrap;
}

.devlog-empty h3 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.devlog-empty p {
    color: var(--text-muted);
}

.devlog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}

.devlog-topics li {
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(var(--purple-rgb), 0.08);
}

.devlog-topics li::before {
    content: "#";
    color: var(--magenta);
    margin-right: 4px;
    font-family: var(--font-mono);
}

/*** 12.0 - Rodapé ***/
.footer-section {
    border-top: 1px solid rgba(var(--purple-rgb), 0.18);
    background: linear-gradient(180deg, rgba(5, 6, 26, 0) 0%, rgba(5, 6, 26, 0.6) 100%);
}

.footer-section::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: -1px;
    height: 2px;
    background: var(--grad-line);
}

.footer-item .brand {
    display: inline-flex;
}

.footer-item p {
    color: var(--text-muted);
    font-size: 15.5px;
}

.widget-title h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 15px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-projects a {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.footer-projects a small {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--magenta);
}

.footer-cta .outline-btn {
    height: 44px;
    padding: 0 18px;
    font-size: 12.5px;
    text-transform: none;
    letter-spacing: 0.3px;
}

.copyright-wrap .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
}

.copyright-wrap p {
    font-size: 14px;
    color: var(--text-muted);
}

.made-with {
    font-size: 13px !important;
}

/*** 13.0 - Responsivo ***/
@media (min-width: 993px) and (max-width: 1199px) {
    .header-menu-wrap ul li > a {
        margin: 0 8px;
        font-size: 13px;
    }

    .header-right .header-github {
        padding: 0 16px;
    }

    .brand-text {
        font-size: 16px;
    }

    .header-right .search-icon {
        display: none;
    }
}

@media (max-width: 1199px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .project-card-inner {
        grid-template-columns: 200px 1fr;
        gap: 18px;
        padding: 16px;
    }

    .project-title {
        font-size: 21px;
    }

    .hero-code {
        width: 270px;
    }
}

@media (max-width: 1199px) and (min-width: 993px) {
    .projects-grid {
        gap: 20px;
    }

    .project-card-inner {
        grid-template-columns: 175px 1fr;
        gap: 16px;
        padding: 16px 36px 16px 14px;
    }

    .project-thumb {
        width: 175px;
        min-height: 210px;
    }

    .project-title {
        font-size: 17px;
    }
}

@media (max-width: 992px) {
    .header-menu-wrap ul li > a {
        padding: 14px 15px;
    }

    .header-menu-wrap ul li.active > a {
        color: var(--cyan);
    }

    .hero-portfolio {
        min-height: 0;
        padding: 50px 0 100px;
    }

    .hero-portfolio .hero-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-visual {
        height: 470px;
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }

    .projects-heading,
    .tech-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .project-card-inner {
        grid-template-columns: 200px 1fr;
        gap: 20px;
        padding: 18px 36px 18px 18px;
    }

    .hud-frame,
    .tech-panel,
    .contact-panel {
        padding: 44px 28px;
    }

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

    .devlog-empty {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    :root {
        --header-h: 70px;
    }

    .hero-portfolio {
        padding: 36px 0 90px;
    }

    .hero-portfolio .hero-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
        padding-left: 0;
    }

    .hero-portfolio .hero-eyebrow::before {
        display: none;
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-portfolio .btn-group a {
        flex: 1 1 200px;
    }

    .hero-stats li {
        flex: 1 1 90px;
        min-width: 0;
        padding: 12px 14px;
    }

    .hero-stats strong {
        font-size: 24px;
    }

    .hero-visual {
        height: 400px;
    }

    .cube-stage {
        left: 50%;
        top: 36%;
        transform: scale(0.78);
    }

    .hero-code {
        left: 50%;
        bottom: 0;
        width: min(320px, 100%);
        margin-left: max(-160px, -50%);
    }

    .hero-side-tag,
    .scroll-hint {
        display: none;
    }

    .hud-frame,
    .tech-panel,
    .contact-panel {
        padding: 36px 16px;
        margin: 0 -6px;
    }

    .project-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .project-search {
        flex: 1 1 100%;
    }

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

    .project-card-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 28px 16px 16px;
    }

    .project-thumb {
        width: 100%;
        height: 200px;
        min-height: 200px;
        max-height: 200px;
        aspect-ratio: 16 / 9;
    }

    .card-action-btn {
        width: 100%;
        justify-content: center;
    }

    .project-title {
        font-size: 19px;
    }

    .watch-carousel {
        width: 100%;
        margin-left: 0;
    }

    .showcase-info {
        position: static;
        opacity: 1;
        transform: none;
        padding: 20px;
        background: rgba(5, 6, 26, 0.96);
    }

    .showcase-info p {
        font-size: 15px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tech-card {
        padding: 18px 14px 16px;
    }

    .tech-badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }

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

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

    .contact-form-group .form-field.message,
    .form-submit {
        grid-column-end: span 1;
    }

    .form-submit .default-btn {
        width: 100%;
    }

    .devlog-empty {
        padding: 24px 16px;
    }

    .copyright-wrap .container {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .brand-text {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero-visual {
        height: 360px;
    }

    .cube-stage {
        transform: scale(0.65);
        top: 32%;
    }

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

/*** 14.0 - Movimento reduzido ***/
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
    }

    .cube {
        animation: none !important;
        transform: rotateX(-22deg) rotateY(-32deg);
    }

    .hero-gridlines,
    .hero-code,
    .cube-platform .ring,
    .cube-core {
        animation: none !important;
    }

    .code-line {
        opacity: 1;
        transform: none;
    }

    .project-card-inner {
        transform: none !important;
    }

    .wow {
        visibility: visible !important;
        animation: none !important;
    }
}

.brand-image {
    display: block;
    width: 180px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 8px rgba(var(--purple-rgb), 0.28));
}

.footer-brand-image {
    width: 160px;
    max-height: 54px;
}

@media (max-width: 420px) {
    .brand-image {
        width: 145px;
        max-height: 48px;
    }
}
