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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07111f;
    color: #f8fafc;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* =========================
   NAVBAR
========================= */

.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    background: rgba(7, 17, 31, 0.85);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.navbar {
    max-width: 1200px;
    height: 78px;
    margin: 0 auto;
    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo */

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #f8fafc;
}

.logo span {
    color: #22d3ee;
}


/* Links */

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

.nav-links a {
    position: relative;

    font-size: 0.92rem;
    font-weight: 500;

    color: #94a3b8;

    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f8fafc;
}


/* Linha animada */

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        #22d3ee,
        #3b82f6
    );

    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    padding: 140px 32px 80px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.08), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.08), transparent 30%),
        #07111f;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
}

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

.hero-label {
    display: inline-block;
    margin-bottom: 24px;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;

    color: #22d3ee;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -3px;

    color: #f8fafc;
}

.hero h1 span {
    display: block;

    background: linear-gradient(
        90deg,
        #22d3ee,
        #3b82f6
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 650px;
    margin-top: 28px;

    font-size: 1.08rem;
    line-height: 1.8;

    color: #94a3b8;
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 30px;
}

.hero-tech span {
    padding: 9px 14px;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;

    background: rgba(15, 23, 42, 0.7);

    font-size: 0.85rem;
    font-weight: 500;

    color: #cbd5e1;
}

.hero-buttons {
    display: flex;
    gap: 14px;

    margin-top: 34px;
}

.btn {
    padding: 13px 22px;

    border-radius: 10px;

    font-size: 0.92rem;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(
        90deg,
        #0891b2,
        #2563eb
    );

    color: #ffffff;
}

.btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.22);

    background: rgba(15, 23, 42, 0.7);

    color: #e2e8f0;
}

.btn-secondary:hover {
    border-color: rgba(34, 211, 238, 0.45);
}


/* =========================
   CODE CARD
========================= */

.hero-visual {
    display: flex;
    justify-content: center;
}

.code-card {
    width: 100%;
    max-width: 470px;

    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;

    background: rgba(10, 18, 32, 0.88);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 0 80px rgba(34, 211, 238, 0.05);
}

.code-card-header {
    height: 48px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    gap: 8px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.code-card-header span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #334155;
}

.code-card-header span:nth-child(1) {
    background: #fb7185;
}

.code-card-header span:nth-child(2) {
    background: #facc15;
}

.code-card-header span:nth-child(3) {
    background: #4ade80;
}

.code-content {
    padding: 28px;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 0.93rem;
    line-height: 1.85;

    color: #cbd5e1;
}

.indent {
    padding-left: 24px;
}

.indent-2 {
    padding-left: 48px;
}

.code-purple {
    color: #c084fc;
}

.code-blue {
    color: #60a5fa;
}

.code-green {
    color: #4ade80;
}


/* =========================
   RESPONSIVIDADE DO HERO
========================= */

@media (max-width: 900px) {
    .hero {
        padding-top: 120px;
    }

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

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

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .code-card {
        max-width: 560px;
    }
}

@media (max-width: 650px) {
    .hero {
        padding:
            110px
            20px
            60px;
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1.02;
    }

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

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

    .btn {
        text-align: center;
    }

    .code-content {
        padding: 22px 18px;

        font-size: 0.82rem;

        overflow-x: auto;
    }
}
/* ========================================
   SOBRE MIM
======================================== */

.about {
    padding: 110px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.about-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;

    color: #00d4ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.section-heading h2 {
    margin: 0;

    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

/* Texto */

.about-text {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text p {
    margin: 0 0 24px;
}

.about-text p:first-child {
    color: #cbd5e1;
    font-size: 1.15rem;
}

/* Cards */

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.highlight-card {
    min-height: 190px;
    padding: 26px;

    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.45);
    background: rgba(15, 23, 42, 0.95);
}

.highlight-card > span {
    display: block;
    margin-bottom: 24px;

    color: #00d4ff;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.highlight-card h3 {
    margin: 0 0 12px;

    color: #f8fafc;
    font-size: 1.15rem;
}

.highlight-card p {
    margin: 0;

    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Responsividade */

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

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

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

    .section-heading {
        margin-bottom: 40px;
    }
}
/* ========================================
   PROJETOS
======================================== */

.projects {
    padding: 110px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.projects-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.project-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;

    padding: 30px;

    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;

    background: rgba(15, 23, 42, 0.6);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

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

    border-color: rgba(0, 212, 255, 0.35);

    background: rgba(15, 23, 42, 0.9);
}

.project-featured {
    border-color: rgba(0, 212, 255, 0.22);
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-number {
    margin-bottom: 18px;

    color: #00d4ff;

    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.project-content h3 {
    margin: 0 0 16px;

    color: #f8fafc;

    font-size: 2rem;
    letter-spacing: -0.03em;
}

.project-content p {
    margin: 0;

    max-width: 560px;

    color: #94a3b8;

    font-size: 0.98rem;
    line-height: 1.7;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 24px;
}

.project-stack span {
    padding: 7px 11px;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;

    background: rgba(7, 17, 31, 0.7);

    color: #cbd5e1;

    font-size: 0.78rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 12px;

    margin-top: 28px;
}

.project-btn {
    padding: 10px 16px;

    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 9px;

    color: #e2e8f0;

    font-size: 0.85rem;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.project-btn:hover {
    transform: translateY(-2px);

    border-color: rgba(0, 212, 255, 0.45);
}

.project-btn.primary {
    border: none;

    background: linear-gradient(
        90deg,
        #06b6d4,
        #4f46e5
    );

    color: #ffffff;
}


/* Preview */

.project-preview {
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(0, 212, 255, 0.08),
            transparent 40%
        ),
        #091423;
}

.project-placeholder {
    color: rgba(148, 163, 184, 0.35);

    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
}


/* Alterna posição visual */

.project-card:nth-child(even) .project-content {
    order: 2;
}

.project-card:nth-child(even) .project-preview {
    order: 1;
}


/* Responsividade */

@media (max-width: 900px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(even) .project-content,
    .project-card:nth-child(even) .project-preview {
        order: initial;
    }

    .project-preview {
        min-height: 240px;
    }
}

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

    .project-card {
        padding: 22px;
    }

    .project-content h3 {
        font-size: 1.6rem;
    }
}
.project-image {
    width: 100%;
    height: 100%;
    min-height: 300px;

    object-fit: cover;
    object-position: top;

    display: block;

    transition: transform 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.025);
}
/* ========================================
   TECNOLOGIAS
======================================== */

.technologies {
    padding: 110px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.technologies-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.technologies h2 {
    margin: 0;

    color: #f8fafc;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.technologies h2 span {
    background: linear-gradient(
        90deg,
        #00d4ff,
        #3b82f6
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.technologies-intro {
    max-width: 650px;
    margin: 24px 0 55px;

    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.75;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.technology-card {
    min-height: 230px;
    padding: 28px;

    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;

    background: rgba(15, 23, 42, 0.6);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

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

    border-color: rgba(0, 212, 255, 0.4);

    background: rgba(15, 23, 42, 0.92);
}

.technology-number {
    display: block;
    margin-bottom: 24px;

    color: #00d4ff;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.technology-card h3 {
    margin: 0 0 22px;

    color: #f8fafc;
    font-size: 1.25rem;
}

.technology-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.technology-tags span {
    padding: 8px 12px;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;

    background: rgba(7, 17, 31, 0.7);

    color: #cbd5e1;

    font-size: 0.82rem;
    font-weight: 500;

    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.technology-tags span:hover {
    border-color: rgba(0, 212, 255, 0.45);
    color: #ffffff;
}

@media (max-width: 800px) {
    .technologies-grid {
        grid-template-columns: 1fr;
    }
}

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

    .technology-card {
        min-height: auto;
        padding: 22px;
    }
}
/* ========================================
   EXPERIÊNCIA
======================================== */

.experience {
    padding: 110px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.experience-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.experience h2 {
    max-width: 850px;
    margin: 0;

    color: #f8fafc;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.experience h2 span {
    background: linear-gradient(90deg, #00d4ff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-intro {
    max-width: 680px;
    margin: 24px 0 60px;

    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.75;
}


/* Timeline */

.timeline {
    position: relative;
    max-width: 950px;
    margin-top: 20px;
    padding-left: 45px;
}

.timeline::before {
    content: "";
    position: absolute;

    top: 8px;
    bottom: 8px;
    left: 8px;

    width: 1px;

    background: linear-gradient(
        to bottom,
        #00d4ff,
        rgba(59, 130, 246, 0.5),
        rgba(148, 163, 184, 0.1)
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-marker {
    position: absolute;

    left: -44px;
    top: 27px;

    width: 15px;
    height: 15px;

    border: 3px solid #08111f;
    border-radius: 50%;

    background: #00d4ff;

    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}

.timeline-content {
    padding: 27px 30px;

    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;

    background: rgba(15, 23, 42, 0.55);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.timeline-content:hover {
    transform: translateX(6px);

    border-color: rgba(0, 212, 255, 0.35);

    background: rgba(15, 23, 42, 0.9);
}

.timeline-period {
    display: inline-block;
    margin-bottom: 10px;

    color: #00d4ff;
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline-content h3 {
    margin: 0 0 12px;

    color: #f8fafc;
    font-size: 1.3rem;
}

.timeline-content p {
    max-width: 720px;
    margin: 0;

    color: #94a3b8;
    line-height: 1.7;
}

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

    margin-top: 20px;
}

.timeline-tags span {
    padding: 6px 10px;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;

    color: #cbd5e1;
    background: rgba(7, 17, 31, 0.65);

    font-size: 0.76rem;
}


/* Responsividade */

@media (max-width: 700px) {

    .experience {
        padding: 80px 0;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-marker {
        left: -31px;
    }

    .timeline-content {
        padding: 22px;
    }

    .timeline-content:hover {
        transform: none;
    }
}
/* ========================================
   FORMAÇÃO
======================================== */

.education {
    padding: 110px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.education-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.education h2 {
    max-width: 850px;
    margin: 0;

    color: #f8fafc;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.education h2 span {
    background: linear-gradient(
        90deg,
        #00d4ff,
        #3b82f6
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.education-intro {
    max-width: 650px;
    margin: 24px 0 55px;

    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.75;
}


/* ========================================
   GRID DA FORMAÇÃO
======================================== */

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}


/* ========================================
   CARDS
======================================== */

.education-card {
    position: relative;

    min-height: 330px;
    padding: 32px;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;

    background: rgba(15, 23, 42, 0.58);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.education-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        #00d4ff,
        #3b82f6,
        transparent
    );

    opacity: 0;
    transition: opacity 0.25s ease;
}

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

    border-color: rgba(0, 212, 255, 0.35);

    background: rgba(15, 23, 42, 0.9);
}

.education-card:hover::before {
    opacity: 1;
}


/* ========================================
   TOPO DOS CARDS
======================================== */

.education-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
}

.education-number {
    color: #00d4ff;

    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
}


/* ========================================
   STATUS
======================================== */

.education-status {
    display: inline-flex;
    align-items: center;

    padding: 6px 11px;

    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 600;
}

.education-status.completed {
    color: #34d399;

    border: 1px solid rgba(52, 211, 153, 0.25);
    background: rgba(52, 211, 153, 0.08);
}

.education-status.progress {
    color: #38bdf8;

    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.08);
}


/* ========================================
   CONTEÚDO DOS CARDS
======================================== */

.education-card h3 {
    max-width: 480px;

    margin: 0 0 8px;

    color: #f8fafc;

    font-size: 1.4rem;
    line-height: 1.3;
}

.education-type {
    display: block;

    margin-bottom: 20px;

    color: #00d4ff;

    font-size: 0.82rem;
    font-weight: 500;
}

.education-card p {
    max-width: 520px;

    margin: 0 0 26px;

    color: #94a3b8;

    font-size: 0.95rem;
    line-height: 1.7;
}


/* ========================================
   TAGS
======================================== */

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

    margin-top: auto;
}

.education-tags span {
    padding: 7px 11px;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;

    background: rgba(7, 17, 31, 0.65);

    color: #cbd5e1;

    font-size: 0.76rem;

    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.education-tags span:hover {
    border-color: rgba(0, 212, 255, 0.4);
    color: #ffffff;
}


/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 850px) {

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

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

@media (max-width: 600px) {

    .education {
        padding: 80px 0;
    }

    .education-card {
        padding: 24px;
    }

    .education-top {
        margin-bottom: 22px;
    }

    .education-card h3 {
        font-size: 1.2rem;
    }
}

/* ========================================
   CONTATO
======================================== */

.contact {
    padding: 120px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.contact-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

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


/* ========================================
   TEXTO
======================================== */

.contact-text h2 {
    max-width: 650px;
    margin: 0;

    color: #f8fafc;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.contact-text h2 span {
    display: block;

    background: linear-gradient(
        90deg,
        #00d4ff,
        #3b82f6
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text p {
    max-width: 580px;
    margin: 25px 0 0;

    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.75;
}


/* ========================================
   LINKS
======================================== */

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

.contact-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 115px;
    padding: 24px 65px 24px 26px;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 15px;

    background: rgba(15, 23, 42, 0.58);

    text-decoration: none;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

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

    border-color: rgba(0, 212, 255, 0.45);

    background: rgba(15, 23, 42, 0.9);
}


/* Tipo do contato */

.contact-type {
    margin-bottom: 8px;

    color: #00d4ff;

    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* Nome / usuário */

.contact-card strong {
    color: #f8fafc;

    font-size: 1.05rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.contact-card:hover strong {
    color: #ffffff;
}


/* Seta */

.contact-arrow {
    position: absolute;

    top: 50%;
    right: 25px;

    transform: translateY(-50%);

    color: #64748b;

    font-size: 1.5rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.contact-card:hover .contact-arrow {
    color: #00d4ff;

    transform: translate(4px, -50%);
}


/* Linha decorativa */

.contact-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 25%;
    bottom: 25%;

    width: 2px;

    border-radius: 10px;

    background: linear-gradient(
        to bottom,
        #00d4ff,
        #3b82f6
    );

    opacity: 0;

    transition: opacity 0.25s ease;
}

.contact-card:hover::before {
    opacity: 1;
}


/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 850px) {

    .contact {
        padding: 90px 0;
    }

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

    .contact-text h2 {
        max-width: 600px;
    }

    .contact-links {
        max-width: 600px;
    }
}


@media (max-width: 600px) {

    .contact {
        padding: 75px 0;
    }

    .contact-card {
        min-height: 100px;
        padding: 20px 55px 20px 20px;
    }

    .contact-card:hover {
        transform: none;
    }

    .contact-arrow {
        right: 20px;
    }
}
/* ========================================
   RODAPÉ
======================================== */

.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(7, 17, 31, 0.45);
}

.footer-container {
    width: min(1200px, 90%);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* Logo */

.footer-logo {
    color: #f8fafc;

    font-size: 1rem;
    font-weight: 700;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

.footer-logo span {
    color: #00d4ff;
}

.footer-logo:hover {
    opacity: 0.8;
}


/* Texto central */

.footer p {
    margin: 0;

    color: #64748b;

    font-size: 0.78rem;
}


/* Voltar ao topo */

.back-to-top {
    color: #94a3b8;

    font-size: 0.8rem;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-to-top:hover {
    color: #00d4ff;
    transform: translateY(-2px);
}


/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 700px) {

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

}
/* ========================================
   CARROSSEL FINANCEOS
======================================== */

.finance-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 300px;
    padding: 14px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.finance-carousel .carousel-image {
    display: none;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    border-radius: 10px;
}

.finance-carousel .carousel-image.active {
    display: block;
}

/* Setas */

.finance-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 10;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 50%;

    background: rgba(7, 17, 31, 0.88);
    color: #ffffff;

    font-size: 1.5rem;
    cursor: pointer;
}

.finance-carousel .carousel-prev {
    left: 20px;
}

.finance-carousel .carousel-next {
    right: 20px;
}

/* Indicadores */

.finance-carousel .carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;

    display: flex;
    gap: 7px;

    transform: translateX(-50%);
}

.finance-carousel .carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #475569;
    cursor: pointer;
}

.finance-carousel .carousel-dot.active {
    width: 20px;
    border-radius: 999px;
    background: #00d4ff;
}
/* Corrige exibição das imagens do carrossel */
.finance-carousel .carousel-image,
.infra-carousel .carousel-image {
    display: none !important;
}

.finance-carousel .carousel-image.active,
.infra-carousel .carousel-image.active {
    display: block !important;
}
/* =========================
   CARROSSEL INFRAOS
========================= */

.infra-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 300px;
    padding: 14px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
}

.infra-carousel .carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 270px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.infra-carousel .carousel-image {
    display: none !important;
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
}

.infra-carousel .carousel-image.active {
    display: block !important;
}

/* Setas */
.infra-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 50%;

    background: rgba(5, 15, 30, 0.9);
    color: #ffffff;

    cursor: pointer;
    z-index: 10;
}

.infra-carousel .carousel-prev {
    left: 18px;
}

.infra-carousel .carousel-next {
    right: 18px;
}

/* Indicadores */
.infra-carousel .carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);

    display: flex;
    gap: 5px;
    z-index: 10;
}

.infra-carousel .carousel-dot {
    width: 6px;
    height: 6px;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: rgba(148, 163, 184, 0.5);
    cursor: pointer;
}

.infra-carousel .carousel-dot.active {
    width: 18px;
    background: #00d9ff;
}
/* =========================================================
   CASE STUDY — INFRAOS
========================================================= */

.case-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* HERO */

.case-hero {
    padding: 150px 0 90px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.case-back {
    display: inline-block;
    margin-bottom: 42px;
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.case-back:hover {
    color: #00d9ff;
}

.case-hero .section-label {
    display: block;
    margin-bottom: 18px;
}

.case-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.case-hero h1 span {
    display: block;
    margin-top: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.case-hero-description {
    max-width: 760px;
    margin-top: 32px;
    color: #aebbd0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.case-stack {
    margin-top: 32px;
}


/* SEÇÕES */

.case-section {
    padding: 100px 0;
}

.case-section h2 {
    max-width: 780px;
    margin: 16px 0 48px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.case-section h2 span {
    color: #94a3b8;
}


/* PROBLEMA / SOLUÇÃO */

.case-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.case-card {
    position: relative;
    min-height: 310px;
    padding: 36px;
    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(0, 217, 255, 0.07),
            transparent 40%
        ),
        rgba(9, 20, 35, 0.72);
}

.case-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 36px;
    width: 44px;
    height: 2px;
    background: #00d9ff;
}

.case-number {
    display: block;
    margin-bottom: 44px;

    color: #00d9ff;
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 700;
}

.case-card h3 {
    margin-bottom: 18px;
    font-size: 1.55rem;
}

.case-card p {
    margin: 0 0 16px;
    color: #94a3b8;
    line-height: 1.75;
}


/* RESPONSIVO */

@media (max-width: 768px) {

    .case-container {
        width: min(100% - 32px, 1180px);
    }

    .case-hero {
        padding: 120px 0 70px;
    }

    .case-hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.5rem);
    }

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

    .case-section {
        padding: 72px 0;
    }

    .case-two-columns {
        grid-template-columns: 1fr;
    }

    .case-card {
        min-height: auto;
        padding: 28px;
    }
}
/* =========================================================
   ARQUITETURA — CASE INFRAOS
========================================================= */

.case-section-intro {
    max-width: 760px;
    margin: -25px 0 50px;

    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.75;
}

.architecture-flow {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    gap: 14px;
    align-items: stretch;
}

.architecture-step {
    min-width: 0;
    padding: 24px;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;

    background: rgba(15, 23, 42, 0.6);
}

.architecture-number {
    display: block;
    margin-bottom: 24px;

    color: #00d9ff;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

.architecture-step h3 {
    margin: 0 0 12px;

    color: #f8fafc;
    font-size: 1rem;
}

.architecture-step p {
    margin: 0;

    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.6;
}

.architecture-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #00d9ff;

    font-size: 1.4rem;
    font-weight: 700;
}

.architecture-output {
    margin-top: 24px;
    padding: 22px 26px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border: 1px solid rgba(0, 217, 255, 0.16);
    border-radius: 14px;

    background: rgba(0, 217, 255, 0.045);
}

.architecture-output span {
    color: #00d9ff;

    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.architecture-output strong {
    color: #cbd5e1;

    font-size: 0.88rem;
    font-weight: 500;

    text-align: right;
}


/* RESPONSIVO */

@media (max-width: 1050px) {

    .architecture-flow {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .architecture-arrow {
        transform: rotate(90deg);
        height: 20px;
    }

    .architecture-step {
        padding: 22px;
    }

    .architecture-output {
        flex-direction: column;
        align-items: flex-start;
    }

    .architecture-output strong {
        text-align: left;
    }
}
/* =========================================================
   FUNCIONALIDADES — CASE INFRAOS
========================================================= */

.case-features {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.case-feature-list {
    display: flex;
    flex-direction: column;
    gap: 90px;
    margin-top: 60px;
}

.case-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 64px;
    align-items: center;
}

.case-feature-reverse .case-feature-image {
    order: 2;
}

.case-feature-reverse .case-feature-content {
    order: 1;
}

.case-feature-image {
    padding: 12px;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;

    background: rgba(9, 20, 35, 0.72);
}

.case-feature-image img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 10px;
}

.case-feature-content {
    max-width: 430px;
}

.case-feature-number {
    display: block;
    margin-bottom: 18px;

    color: #00d9ff;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.case-feature-content h3 {
    margin: 0 0 20px;

    color: #f8fafc;
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.case-feature-content p {
    margin: 0 0 24px;

    color: #94a3b8;
    line-height: 1.75;
}

.case-feature-content ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.case-feature-content li {
    position: relative;

    padding: 10px 0 10px 22px;

    color: #cbd5e1;

    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.case-feature-content li::before {
    content: "→";

    position: absolute;
    left: 0;

    color: #00d9ff;
}


/* RESPONSIVO */

@media (max-width: 850px) {

    .case-feature-list {
        gap: 70px;
    }

    .case-feature {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case-feature-reverse .case-feature-image,
    .case-feature-reverse .case-feature-content {
        order: initial;
    }

    .case-feature-content {
        max-width: none;
    }
}
/* =====================================================
   CASE INFRAOS — DECISÕES TÉCNICAS
===================================================== */

.case-decisions {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.case-section-intro {
    max-width: 760px;
    margin: 20px 0 48px;
    color: #94a3b8;
    line-height: 1.8;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.decision-card {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    overflow: hidden;
}

.decision-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 42px;
    height: 2px;
    background: #00e5ff;
}

.decision-number {
    display: block;
    margin-bottom: 28px;

    color: #00e5ff;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

.decision-tech {
    display: block;
    margin-bottom: 10px;

    color: #00e5ff;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.decision-card h3 {
    margin: 0 0 14px;
    font-size: 1.3rem;
}

.decision-card > p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.75;
}

.decision-reason {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.decision-reason strong {
    color: #f8fafc;
    font-size: 0.85rem;
}

.decision-reason p {
    margin: 8px 0 0;
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .decision-grid {
        grid-template-columns: 1fr;
    }

    .decision-card {
        padding: 24px;
    }
}
/* =====================================================
   CASE INFRAOS — TRADE-OFFS & EVOLUÇÃO
===================================================== */

.case-evolution .case-container {
    width: min(100% - 64px, 1180px);
    margin-inline: auto;
}

.evolution-list {
    margin-top: 48px;

    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.evolution-item {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 60px minmax(0, 1fr);
    gap: 28px;
    align-items: center;

    padding: 32px 0;

    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.evolution-index {
    align-self: start;
}

.evolution-index span {
    color: #00e5ff;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
}

.evolution-label {
    display: block;

    margin-bottom: 10px;

    color: #00e5ff;
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.evolution-current h3,
.evolution-future h3 {
    margin: 0 0 10px;

    color: #f8fafc;
    font-size: 1.25rem;
}

.evolution-current p,
.evolution-future p {
    max-width: 460px;
    margin: 0;

    color: #94a3b8;
    line-height: 1.7;
}

.evolution-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #00e5ff;
    font-size: 1.5rem;
}

.evolution-principle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    margin-top: 32px;
    padding: 22px 26px;

    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 12px;

    background: rgba(0, 229, 255, 0.035);
}

.evolution-principle-label {
    flex-shrink: 0;

    color: #00e5ff;
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.evolution-principle p {
    margin: 0;

    color: #cbd5e1;
    line-height: 1.6;
    text-align: right;
}

.evolution-principle strong {
    color: #f8fafc;
}


/* RESPONSIVO */

@media (max-width: 768px) {
    .case-evolution .case-container {
        width: min(100% - 32px, 1180px);
    }

    .evolution-index {
        margin-bottom: 4px;
    }

    .evolution-arrow {
        justify-content: flex-start;

        transform: rotate(90deg);

        width: fit-content;
    }

    .evolution-principle {
        flex-direction: column;
        align-items: flex-start;
    }

    .evolution-principle p {
        text-align: left;
    }
}

/* =====================================================
   REVISÃO FINAL — ACESSIBILIDADE, CARROSSEL E CONSISTÊNCIA
===================================================== */

body {
    overflow-x: hidden;
}

:where(a, button):focus-visible {
    outline: 3px solid #67e8f9;
    outline-offset: 4px;
}

.carousel {
    position: relative;
    min-height: clamp(260px, 34vw, 410px);
    padding: 14px;
    overflow: hidden;
}

.carousel .carousel-track {
    width: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
}

.carousel .carousel-image {
    grid-area: 1 / 1;
    display: none;
    width: 100%;
    height: clamp(240px, 31vw, 380px);
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
}

.carousel .carousel-image.active {
    display: block;
}

.carousel .carousel-btn {
    width: 44px;
    height: 44px;
}

.carousel .carousel-dot {
    min-width: 12px;
    min-height: 12px;
}

.carousel .carousel-dot.active {
    min-width: 28px;
}

.carousel.is-static .carousel-btn,
.carousel.is-static .carousel-dots {
    display: none;
}

.contact-card-secondary {
    opacity: 0.78;
    background: rgba(9, 20, 35, 0.45);
}

.contact-card-primary {
    border-color: rgba(34, 211, 238, 0.28);
}

.case-feature-image {
    min-height: clamp(220px, 36vw, 480px);
    display: grid;
    place-items: center;
}

.case-feature-image img {
    width: 100%;
    height: 100%;
    max-height: 456px;
    object-fit: contain;
}

.case-narrow {
    max-width: 900px;
}

.case-privacy {
    background: rgba(0, 217, 255, 0.025);
    border-block: 1px solid rgba(148, 163, 184, 0.12);
}

.case-privacy p {
    color: #aebbd0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.case-cta {
    padding: 70px 0;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.case-cta p {
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

@media (max-width: 1000px) {
    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 780px) {
    .navbar {
        height: auto;
        min-height: 72px;
        padding: 14px 20px;
        gap: 16px;
    }

    .nav-links {
        max-width: 68vw;
        padding: 10px 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .evolution-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 14px;
    }

    .evolution-arrow,
    .evolution-future {
        grid-column: 2;
    }

    .evolution-arrow {
        transform: rotate(90deg);
    }

    .carousel {
        min-height: 270px;
        padding-inline: 8px;
    }

    .carousel .carousel-image {
        height: 250px;
    }
}

/* =====================================================
   IDENTIDADE AUTORAL — TERMINAL QUENTE
   Grafite profundo, laranja queimado e superfícies secas.
===================================================== */

:root {
    --theme-bg: #0b0a09;
    --theme-surface: #14110f;
    --theme-surface-raised: #1c1917;
    --theme-text: #fafaf9;
    --theme-muted: #a8a29e;
    --theme-soft: #d6d3d1;
    --theme-accent: #f97316;
    --theme-accent-strong: #ea580c;
    --theme-accent-soft: #fdba74;
    --theme-border: rgba(168, 162, 158, 0.16);
    --theme-border-strong: rgba(249, 115, 22, 0.3);
}

html {
    color-scheme: dark;
}

body {
    background: var(--theme-bg);
    color: var(--theme-text);
}

.header {
    background: rgba(11, 10, 9, 0.92);
    border-bottom-color: var(--theme-border);
    backdrop-filter: blur(10px);
}

.hero {
    background:
        radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.07), transparent 28%),
        radial-gradient(circle at 82% 34%, rgba(194, 65, 12, 0.045), transparent 32%),
        var(--theme-bg);
}

.case-finance .case-hero {
    background:
        radial-gradient(circle at 76% 24%, rgba(249, 115, 22, 0.065), transparent 30%),
        radial-gradient(circle at 18% 38%, rgba(194, 65, 12, 0.04), transparent 34%),
        var(--theme-bg);
}

.case-hero h1 span {
    color: var(--theme-soft);
}

.logo span,
.footer-logo span,
.hero-label,
.section-label,
.project-number,
.technology-number,
.timeline-period,
.education-number,
.contact-type,
.case-number,
.case-feature-number,
.architecture-number,
.architecture-arrow,
.architecture-output span,
.decision-number,
.decision-tech,
.evolution-index span,
.evolution-label,
.evolution-arrow,
.evolution-principle-label,
.security-card > span {
    color: var(--theme-accent);
}

.hero h1 span,
.technologies h2 span,
.experience h2 span,
.education h2 span,
.contact h2 span {
    background: linear-gradient(90deg, var(--theme-accent-soft), var(--theme-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a,
.hero-description,
.about-text p,
.project-content p,
.technologies-intro,
.experience-intro,
.education-intro,
.contact-text p,
.case-hero-description,
.case-section-intro,
.case-card p,
.case-feature-content p,
.decision-card > p,
.decision-reason p,
.evolution-current p,
.evolution-future p,
.security-card p,
.footer p,
.back-to-top,
.case-back {
    color: var(--theme-muted);
}

.nav-links a:hover,
.nav-links a.active,
.case-back:hover,
.back-to-top:hover {
    color: var(--theme-text);
}

.nav-links a::after,
.decision-card::before,
.case-card::before,
.timeline-item::before,
.education-card::before {
    background: var(--theme-accent);
}

:where(a, button):focus-visible {
    outline-color: var(--theme-accent-soft);
}

.btn-primary,
.project-btn.primary {
    background: var(--theme-accent);
    color: #1c0c04;
    border-color: var(--theme-accent);
    box-shadow: none;
}

.btn-primary:hover,
.project-btn.primary:hover {
    background: var(--theme-accent-strong);
    border-color: var(--theme-accent-strong);
}

.btn-secondary,
.project-btn,
.contact-card,
.hero-tech span,
.project-stack span,
.technology-tags span,
.timeline-tags span,
.education-tags span {
    background: rgba(28, 25, 23, 0.72);
    border-color: var(--theme-border);
    color: var(--theme-soft);
}

.btn-secondary:hover,
.project-btn:hover,
.contact-card:hover {
    border-color: var(--theme-border-strong);
}

.code-card,
.highlight-card,
.project-card,
.technology-card,
.timeline-content,
.education-card,
.contact-card,
.case-card,
.architecture-step,
.decision-card,
.security-card {
    background: rgba(20, 17, 15, 0.82);
    border-color: var(--theme-border);
    box-shadow: none;
}

.code-card {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.project-card:hover,
.technology-card:hover,
.education-card:hover,
.contact-card:hover {
    border-color: var(--theme-border-strong);
}

.project-featured,
.contact-card-primary {
    border-color: rgba(249, 115, 22, 0.24);
}

.architecture-output,
.evolution-principle {
    background: rgba(249, 115, 22, 0.035);
    border-color: rgba(249, 115, 22, 0.2);
}

.case-privacy,
.case-security {
    background: rgba(249, 115, 22, 0.018);
    border-color: var(--theme-border);
}

.case-feature-image,
.finance-carousel,
.infra-carousel {
    background: rgba(20, 17, 15, 0.64);
    border-color: var(--theme-border);
}

.finance-carousel .carousel-btn,
.infra-carousel .carousel-btn {
    background: rgba(11, 10, 9, 0.9);
    border-color: rgba(168, 162, 158, 0.28);
}

.carousel .carousel-dot.active::before {
    background: var(--theme-accent);
}

.carousel .carousel-dot::before {
    background: #57534e;
}

.timeline::before,
.timeline-marker,
.education-status.progress {
    background: var(--theme-accent);
}

.timeline-marker {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.education-status.progress {
    color: #1c0c04;
}

.case-section,
.about,
.projects,
.technologies,
.experience,
.education,
.contact,
.footer,
.case-hero,
.case-features,
.case-decisions,
.case-cta {
    border-color: var(--theme-border);
}

.contact-card-secondary {
    background: rgba(20, 17, 15, 0.45);
}

::selection {
    background: rgba(249, 115, 22, 0.32);
    color: var(--theme-text);
}

@media (max-width: 430px) {
    .logo strong {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 12vw, 3rem);
        letter-spacing: -0.06em;
    }

    .hero-label {
        font-size: 0.68rem;
        line-height: 1.6;
    }

    .carousel .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .finance-carousel .carousel-prev,
    .infra-carousel .carousel-prev {
        left: 10px;
    }

    .finance-carousel .carousel-next,
    .infra-carousel .carousel-next {
        right: 10px;
    }

    .case-feature-image {
        min-height: 180px;
    }
}

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

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

/* Identidade compacta e consistente nos cabeçalhos dos cases. */
.case-monogram {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-accent, #f97316);
    letter-spacing: 0;
}

.case-monogram > strong {
    color: var(--theme-accent-soft, #fdba74);
    font-size: 1rem;
}

.case-monogram-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 19px;
}

.case-monogram-bars i {
    display: block;
    width: 2px;
    background: var(--theme-accent, #f97316);
}

.case-monogram-bars i:nth-child(1) { height: 8px; }
.case-monogram-bars i:nth-child(2) { height: 13px; }
.case-monogram-bars i:nth-child(3) { height: 18px; }

/* =====================================================
   CASE FINANCEOS
===================================================== */

.case-finance .case-hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(45, 212, 191, 0.08), transparent 30%),
        radial-gradient(circle at 20% 35%, rgba(59, 130, 246, 0.08), transparent 34%);
}

.case-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.finance-architecture {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.case-feature-image-portrait img {
    width: auto;
    max-width: 100%;
}

.case-security {
    border-block: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(8, 145, 178, 0.025);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.security-card {
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.48);
}

.security-card > span {
    display: block;
    margin-bottom: 26px;
    color: #22d3ee;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
}

.security-card h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.security-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.7;
}

@media (max-width: 1050px) {
    .finance-architecture {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .finance-architecture .architecture-arrow {
        height: 20px;
        transform: rotate(90deg);
    }

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

@media (max-width: 600px) {
    .case-hero-actions {
        flex-direction: column;
    }

    .case-hero-actions .project-btn {
        text-align: center;
    }

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

    .security-card {
        padding: 24px;
    }
}

/* Alvos de toque — auditoria mobile final */

.project-btn,
.logo,
.case-back,
.footer-logo,
.back-to-top {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-content,
.project-preview {
    min-width: 0;
}

.project-links {
    flex-wrap: wrap;
}

.carousel .carousel-dot,
.carousel .carousel-dot.active {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    background: transparent;
}

.carousel .carousel-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #475569;
    transform: translate(-50%, -50%);
}

.carousel .carousel-dot.active::before {
    width: 26px;
    background: #00d4ff;
}

.carousel .carousel-dots {
    gap: 0;
}

@media (max-width: 780px) {
    .nav-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding-inline: 3px;
    }

    .nav-links a::after {
        bottom: 3px;
    }
}

@media (max-width: 430px) {
    .navbar {
        gap: 12px;
    }

    .nav-links {
        max-width: none;
        gap: 14px;
        overflow: visible;
    }

    .nav-links li:nth-child(2),
    .nav-links li:nth-child(3),
    .nav-links li:nth-child(5),
    .nav-links li:nth-child(6),
    .nav-links li:nth-child(7) {
        display: none;
    }

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

/* Ajustes finais para componentes adicionados após a base do tema */
.case-finance .case-hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(249, 115, 22, 0.09), transparent 30%),
        radial-gradient(circle at 20% 35%, rgba(253, 186, 116, 0.05), transparent 34%),
        var(--theme-bg);
}

.case-security {
    border-color: var(--theme-border);
    background: rgba(249, 115, 22, 0.025);
}

.security-card {
    border-color: var(--theme-border);
    background: var(--theme-surface);
}

.security-card > span {
    color: var(--theme-accent);
}

.security-card p {
    color: var(--theme-muted);
}

.carousel .carousel-dot::before {
    background: #57534e;
}

.carousel .carousel-dot.active::before {
    background: var(--theme-accent);
}

/* =====================================================
   NARRATIVA PROFISSIONAL — ESPECIALIDADES E MÉTODO
===================================================== */

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 680px;
    margin-top: 42px;
    border-block: 1px solid var(--theme-border);
}

.hero-proof > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px 18px 0;
}

.hero-proof > div + div {
    padding-left: 20px;
    border-left: 1px solid var(--theme-border);
}

.hero-proof strong {
    color: var(--theme-accent-soft);
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.hero-proof span {
    color: var(--theme-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.specialties {
    position: relative;
    padding: 120px 0;
    border-block: 1px solid var(--theme-border);
    background:
        linear-gradient(rgba(249, 115, 22, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.018) 1px, transparent 1px),
        #0e0c0b;
    background-size: 48px 48px;
}

.specialties-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.specialties-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    column-gap: 80px;
    align-items: end;
    margin-bottom: 54px;
}

.specialties-heading .section-label {
    grid-column: 1 / -1;
}

.specialties-heading h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.specialties-heading p {
    margin: 0 0 6px;
    color: var(--theme-muted);
    line-height: 1.75;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--theme-border-strong);
    border-left: 1px solid var(--theme-border-strong);
}

.specialty-card {
    min-height: 310px;
    padding: 38px;
    border-right: 1px solid var(--theme-border-strong);
    border-bottom: 1px solid var(--theme-border-strong);
    background: rgba(20, 17, 15, 0.82);
    transition: background 180ms ease, transform 180ms ease;
}

.specialty-card:hover {
    z-index: 1;
    background: #1a1512;
    transform: translateY(-3px);
}

.specialty-index {
    display: block;
    margin-bottom: 52px;
    color: var(--theme-accent);
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.specialty-card h3 {
    margin: 0 0 14px;
    color: var(--theme-text);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.specialty-card p {
    max-width: 500px;
    margin: 0;
    color: var(--theme-muted);
    line-height: 1.75;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.specialty-tags span {
    padding: 7px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    color: var(--theme-soft);
    background: #110f0e;
    font-size: 0.73rem;
}

.work-method {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 70px;
}

.work-method > span {
    padding-top: 8px;
    color: var(--theme-accent);
    font-family: monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.work-method ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: method;
}

.work-method li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 112px;
    padding: 8px 22px 0;
    border-left: 1px solid var(--theme-border-strong);
    counter-increment: method;
}

.work-method li::before {
    content: "0" counter(method);
    color: var(--theme-accent-soft);
    font-family: monospace;
    font-size: 0.72rem;
}

.work-method strong {
    color: var(--theme-text);
    font-size: 1rem;
}

.work-method small {
    color: var(--theme-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .specialties-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }

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

    .specialty-card {
        min-height: 0;
    }

    .work-method {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .work-method ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
    }
}

@media (max-width: 600px) {
    .hero-proof {
        grid-template-columns: 1fr;
    }

    .hero-proof > div,
    .hero-proof > div + div {
        padding: 14px 0;
        border-left: 0;
    }

    .hero-proof > div + div {
        border-top: 1px solid var(--theme-border);
    }

    .specialties {
        padding: 82px 0;
        background-size: 32px 32px;
    }

    .specialties-container {
        width: min(100% - 36px, 1200px);
    }

    .specialty-card {
        padding: 28px 24px;
    }

    .specialty-index {
        margin-bottom: 34px;
    }

    .work-method ol {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .work-method li {
        min-height: 0;
        padding: 14px 0 18px 20px;
    }
}

/* =====================================================
   HERO DINÂMICO — EXPERIÊNCIA DO VÍDEO DE REFERÊNCIA
===================================================== */

.hero-content {
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: clamp(56px, 8vw, 120px);
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(3.25rem, 5.3vw, 5.6rem);
    line-height: 0.98;
}

.hero-rotating-role {
    display: block;
    min-height: 1.96em;
    transition: opacity 180ms ease, transform 180ms ease;
}

.hero-rotating-role.is-changing {
    opacity: 0;
    transform: translateY(8px);
}

.hero-showcase {
    position: relative;
    align-self: center;
    min-width: 0;
}

.hero-showcase-glow {
    position: absolute;
    z-index: 0;
    inset: 8% 4% 0;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.18);
    filter: blur(72px);
    opacity: 0.56;
}

.hero-showcase-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(253, 186, 116, 0.24);
    border-radius: 18px;
    background: #15110f;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.hero-showcase-frame::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.hero-showcase-slide {
    position: absolute;
    inset: 0;
    display: block;
    color: var(--theme-text);
    opacity: 0;
    transform: scale(1.025);
    pointer-events: none;
    transition: opacity 420ms ease, transform 700ms ease;
}

.hero-showcase-slide.active {
    z-index: 1;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-showcase-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-showcase-slide::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(11, 10, 9, 0.92));
}

.hero-showcase-slide > span {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 20px;
    left: 22px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.hero-showcase-slide small {
    color: var(--theme-accent-soft);
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.hero-showcase-slide strong {
    font-size: 1.05rem;
}

.hero-showcase-code {
    display: flex;
    align-items: center;
    padding: 46px;
    background:
        linear-gradient(rgba(249, 115, 22, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.035) 1px, transparent 1px),
        #100d0c;
    background-size: 32px 32px;
}

.hero-showcase-code code {
    color: #d6d3d1;
    font-size: clamp(0.78rem, 1.25vw, 1rem);
    line-height: 2;
}

.hero-showcase-code code b {
    color: var(--theme-accent);
    font-weight: 600;
}

.hero-showcase-controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.hero-showcase-arrow,
.hero-showcase-dots button {
    border: 0;
    color: var(--theme-muted);
    background: transparent;
    cursor: pointer;
}

.hero-showcase-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid var(--theme-border);
    border-radius: 50%;
    font-size: 1rem;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-showcase-arrow:hover {
    color: #1c0c04;
    border-color: var(--theme-accent);
    background: var(--theme-accent);
}

.hero-showcase-dots {
    display: flex;
    gap: 8px;
}

.hero-showcase-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    background: #57534e;
    transition: width 180ms ease, background 180ms ease;
}

.hero-showcase-dots button.active {
    width: 28px;
    background: var(--theme-accent);
}

@media (max-width: 1050px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        width: min(760px, 100%);
    }

    .hero-rotating-role {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .hero-showcase-frame {
        border-radius: 13px;
        transform: none;
    }

    .hero-showcase-code {
        padding: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-showcase-slide,
    .hero-rotating-role {
        transition: none;
    }
}
