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

:root {
    --bg: #050507;
    --surface: #0d0d10;
    --surface-2: #131318;

    --text: #f3f0eb;
    --muted: #929096;

    --border: #27262b;

    --blue: #83a8ff;
    --cyan: #72d7e7;
    --green: #8ee6c8;
    --wine: #9d4564;

    --max: 1240px;
    --header: 76px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Space Grotesk", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    position: relative;
}

/* LIGHT MODE */
html[data-theme="light"] {
    --bg: #f2efec;
    --surface: #fbf8f6;
    --surface-2: #f3e7eb;

    --text: #191619;
    --muted: #706a6d;

    --border: #d9d0d3;

    --blue: #287ea8;
    --cyan: #3a9cad;
    --green: #287a62;
    --wine: #963f5e;
}

/* FUNDO */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(131, 168, 255, 0.06),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 65%,
            rgba(157, 69, 100, 0.045),
            transparent 32%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(142, 230, 200, 0.035),
            transparent 28%
        );
}

.ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.16;
    animation: floatingLight 18s ease-in-out infinite alternate;
}

.ambient-blue {
    width: 42vw;
    height: 42vw;
    background: var(--blue);
    right: -18vw;
    top: -5vh;
}

.ambient-wine {
    width: 38vw;
    height: 38vw;
    background: var(--wine);
    left: -20vw;
    top: 42vh;
    animation-delay: -7s;
}

.ambient-green {
    width: 34vw;
    height: 34vw;
    background: var(--green);
    right: 10vw;
    bottom: -22vw;
    animation-delay: -12s;
}

@keyframes floatingLight {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(25px, -20px) scale(1.06);
    }
    100% {
        transform: translate(-35px, 35px) scale(1.12);
    }
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.section {
    width: min(var(--max), calc(100% - 56px));
    margin: auto;
}

/* HEADER */
.header {
    height: var(--header);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
    backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--bg) 76%, transparent);
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.06em;
}

.logo span {
    color: var(--blue);
}

.nav {
    display: flex;
    gap: 34px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.nav a {
    transition: 0.25s;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.text-button,
.icon-button {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    color: var(--muted);
}

.icon-button {
    font-size: 1rem;
}

.menu-button {
    display: none;
}

.menu-button span {
    display: block;
    width: 23px;
    height: 1px;
    background: var(--text);
    margin: 5px;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    padding: calc(var(--header) + 55px) 28px 80px;
}

.eyebrow,
.section-tag,
.intro-meta,
.intro-corner,
.contact-mini,
.project-badge,
.tags,
.highlight,
.character-note,
.visual-label,
footer {
    font-family: "DM Mono", monospace;
}

.eyebrow {
    font-size: 0.7rem;
    color: var(--green);
    letter-spacing: 0.08em;
    margin-bottom: 26px;
}

.hero h1 {
    font-size: clamp(3rem, 6.4vw, 6.6rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
    max-width: 900px;
    font-weight: 500;
}

.hero h1 em {
    color: var(--wine);
    font-style: normal;
}

.hero-sub {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 28px;
    max-width: 510px;
}

.circle-link {
    width: 108px;
    height: 108px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    font: 500 0.62rem "DM Mono", monospace;
    letter-spacing: 0.08em;
    margin-top: 40px;
    transition: 0.4s;
}

.circle-link b {
    color: var(--blue);
    font-size: 1rem;
}

.circle-link:hover {
    transform: rotate(10deg);
    border-color: var(--blue);
    background: color-mix(in srgb, var(--blue) 8%, transparent);
}

/* PERSONAGEM */
.hero-character {
    position: relative;
    width: 100%;
    max-width: 450px;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0 auto;
}

.hero-character img {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.38));
    animation: characterFloat 5s ease-in-out infinite;
}

.character-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--blue) 18%, transparent),
        transparent 67%
    );
    animation: pulse 5s infinite;
}

/* Ocultar a frase abaixo da personagem */
.character-note {
    display: none !important;
}


/* MÉTRICAS */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric {
    min-height: 170px;
    padding: 38px 25px;
    border-right: 1px solid var(--border);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
}

.metric:last-child {
    border-right: 0;
}

.metric-number {
    display: flex;
    align-items: baseline;
}

.metric strong {
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: -0.07em;
}

.metric-number span {
    font-size: 1.4rem;
    color: var(--blue);
}

.metric small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font: 500 0.6rem "DM Mono", monospace;
    line-height: 1.7;
}

/* SOBRE */
.about {
    padding-top: 170px;
    padding-bottom: 150px;
}

.section-tag {
    font-size: 0.66rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    margin-bottom: 55px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    align-items: start;
}

.section-heading > span {
    font: 500 0.65rem "DM Mono", monospace;
    color: var(--green);
}

h2 {
    font-size: clamp(2.7rem, 5vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 500;
}

.section-heading h2 {
    margin-top: 18px;
}

.section-heading i,
.section-intro i,
.projects-title i,
.skills i,
.learning-head i,
.contact i {
    font-style: normal;
    color: var(--blue);
}

.about-text {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 590px;
}

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

.about-text b {
    color: var(--text);
    font-weight: 500;
}

.about-signature {
    font: 500 0.64rem "DM Mono", monospace;
    color: var(--green);
    margin-top: 42px;
    letter-spacing: 0.08em;
}

/* FORMAÇÃO */
.education {
    padding-bottom: 170px;
}

.section-intro {
    margin-bottom: 65px;
}

.section-intro h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    max-width: 900px;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.edu-card {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--border);
    padding: 34px;
    min-height: 460px;
    position: relative;
    overflow: hidden;
    transition: 0.45s;
}

.edu-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--blue);
    filter: blur(80px);
    opacity: 0.06;
    right: -80px;
    bottom: -80px;
}

.edu-card:hover {
    transform: translateY(-7px);
    border-color: color-mix(in srgb, var(--blue) 55%, var(--border));
}

.edu-card.featured {
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--surface) 90%, transparent),
        color-mix(in srgb, var(--wine) 9%, var(--surface))
    );
}

.card-top {
    display: flex;
    justify-content: space-between;
    font: 500 0.62rem "DM Mono", monospace;
    color: var(--muted);
}

.edu-symbol {
    font-size: 2.3rem;
    color: var(--blue);
    margin: 55px 0 20px;
}

.edu-card h3 {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.institution {
    color: var(--text);
    margin-top: 14px;
    font-size: 0.85rem;
}

.edu-card > p:not(.institution) {
    color: var(--muted);
    font-size: 0.86rem;
    max-width: 560px;
    margin-top: 24px;
}

.highlight {
    display: inline-block;
    margin-top: 17px;
    padding: 7px 9px;
    border: 1px solid color-mix(in srgb, var(--green) 40%, var(--border));
    color: var(--green);
    font-size: 0.57rem;
    letter-spacing: 0.1em;
}

.outline-button {
    margin-top: 28px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    font: 500 0.65rem "DM Mono", monospace;
    letter-spacing: 0.08em;
}

.outline-button span {
    color: var(--blue);
    margin-left: 14px;
}

/* PROJETOS */
.projects {
    padding-bottom: 180px;
}

.projects-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 90px;
}

.projects-title > span {
    font: 500 0.65rem "DM Mono", monospace;
    color: var(--muted);
}

.projects-title h2 {
    font-size: clamp(3rem, 6vw, 6.4rem);
}

.project-stage {
    max-width: 1050px;
    margin: auto;
}

.project-card {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    padding: 110px 4% 120px;
    border-top: 1px solid var(--border);
}

.project-card:last-child {
    border-bottom: 1px solid var(--border);
}

.project-card .project-visual {
    width: min(100%, 900px);
    height: 460px;
    margin-bottom: 65px;
}

.project-card .project-content {
    width: min(100%, 900px);
}

.project-card .project-content h3 {
    max-width: 800px;
}

.project-card .project-content p {
    max-width: 700px;
}

.project-number {
    position: absolute;
    left: 0;
    top: 28px;
    font: 500 0.65rem "DM Mono", monospace;
    color: var(--muted);
}

/* VISUAIS DOS PROJETOS */
.project-visual {
    height: 450px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--blue) 10%, var(--surface)),
        var(--surface) 65%
    );
    transition: 0.6s;
}

.project-card:nth-child(2) .project-visual {
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--green) 9%, var(--surface)),
        var(--surface) 65%
    );
}

.project-card:nth-child(3) .project-visual {
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--wine) 11%, var(--surface)),
        var(--surface) 65%
    );
}

.project-card:hover .project-visual {
    transform: scale(0.98);
    border-color: color-mix(in srgb, var(--blue) 45%, var(--border));
}

.visual-orbit {
    width: 230px;
    height: 230px;
    border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent);
    border-radius: 50%;
    position: absolute;
    animation: spin 16s linear infinite;
}

.visual-orbit::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--green);
    border-radius: 50%;
    top: 25px;
    left: 25px;
    box-shadow: 0 0 25px var(--green);
}

.visual-core {
    font-size: 3.3rem;
    letter-spacing: -0.08em;
}

.visual-label {
    position: absolute;
    left: 18px;
    bottom: 17px;
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
}

.plant-visual {
    font-size: 5rem;
    text-align: center;
    line-height: 0.75;
    color: var(--green);
    animation: plant 4s ease-in-out infinite;
}

.satellite {
    font-size: 6rem;
    color: var(--blue);
    text-shadow: 0 0 45px color-mix(in srgb, var(--blue) 45%, transparent);
    animation: satellite 5s ease-in-out infinite;
}

.signal {
    position: absolute;
    width: 70%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--wine),
        transparent
    );
    transform: rotate(-25deg);
}

.gp-visual {
    font-size: 4rem;
    line-height: 0.8;
    letter-spacing: -0.08em;
    color: var(--blue);
    text-align: center;
}

.gp-visual small {
    font: 500 0.55rem "DM Mono", monospace;
    color: var(--muted);
    letter-spacing: 0.15em;
}

.robot-visual {
    font-size: 7rem;
    color: var(--muted);
    transform: rotate(-8deg);
}

.horta-visual {
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--green) 12%, var(--surface)),
        var(--surface) 65%
    ) !important;
}

.app-visual {
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--blue) 12%, var(--surface)),
        var(--surface) 65%
    ) !important;
}

.gp-project-visual {
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--wine) 12%, var(--surface)),
        var(--surface) 65%
    ) !important;
}

.robot-project-visual {
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--blue) 8%, var(--surface)),
        var(--surface) 65%
    ) !important;
}

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

@keyframes plant {
    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

@keyframes satellite {
    50% {
        transform: translate(7px, -12px) rotate(3deg);
    }
}

/* TEXTO PROJETO */
.project-badge {
    font-size: 0.56rem;
    color: var(--green);
    letter-spacing: 0.1em;
}

.project-content h3 {
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 0.88;
    letter-spacing: -0.07em;
    font-weight: 500;
    margin: 20px 0;
}

.project-content h3 span {
    color: var(--blue);
}

.project-content p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 500px;
}

.tags {
    font-size: 0.55rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-top: 27px;
}

.project-extra {
    margin-top: 18px !important;
    font-size: 0.85rem !important;
    color: var(--muted);
}

/* SKILLS */
.skills {
    padding-bottom: 180px;
}

.skills-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 10%;
    align-items: start;
}

.skills .section-heading h2 {
    font-size: clamp(2.7rem, 4.5vw, 5rem);
}

.skill-list {
    border-top: 1px solid var(--border);
}

.skill {
    min-height: 92px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 48px 1fr 25px;
    align-items: center;
    gap: 17px;
    transition: 0.3s;
}

.skill:hover {
    padding-left: 10px;
}

.skill-icon {
    color: var(--blue);
    font-family: "DM Mono", monospace;
    font-size: 0.85rem;
}

.skill h3 {
    font-size: 1rem;
    font-weight: 500;
}

.skill h3 small {
    font: 500 0.55rem "DM Mono", monospace;
    color: var(--muted);
    margin-left: 7px;
}

.skill p {
    color: var(--muted);
    font-size: 0.74rem;
    margin-top: 2px;
}

.skill > b {
    font: 500 0.55rem "DM Mono", monospace;
    color: var(--muted);
}

/* APRENDIZADO */
.learning {
    padding-bottom: 170px;
}

.learning-head {
    margin-bottom: 65px;
}

.learning-head h2 {
    font-size: clamp(2.5rem, 4.7vw, 5rem);
}

.languages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 65px;
}

.language {
    padding: 28px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.language + .language {
    border-left: 1px solid var(--border);
}

.lang-symbol {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: 500 0.65rem "DM Mono", monospace;
    color: var(--blue);
}

.language h3 {
    font-size: 1rem;
}

.language p {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 3px;
}

/* CURSOS */
.courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.course {
    background: var(--bg);
    min-height: 230px;
    padding: 25px;
    position: relative;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.course.hidden {
    display: none !important;
}

.course > span {
    font: 500 0.58rem "DM Mono", monospace;
    color: var(--muted);
}

.course h3 {
    font-size: 1.08rem;
    line-height: 1.15;
    font-weight: 500;
    margin: 35px 0 12px;
}

.course > b {
    font: 500 0.52rem "DM Mono", monospace;
    color: var(--green);
}

.course p {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 15px;
}

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

.course-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.5px;
}

.cert-link {
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cert-link:hover {
    color: #7dd3fc;
    transform: translateX(3px);
}

/* CONTATO */
.contact {
    padding: 110px 0 150px;
    border-top: 1px solid var(--border);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 10%;
    align-items: flex-end;
}

.contact h2 {
    font-size: clamp(3.3rem, 6vw, 6.6rem);
    margin-top: 18px;
}

.contact-mini {
    font-size: 0.6rem;
    color: var(--green);
    letter-spacing: 0.12em;
}

.contact-links {
    border-top: 1px solid var(--border);
}

.contact-links a {
    display: block;
    padding: 23px 0;
    border-bottom: 1px solid var(--border);
}

.contact-links span {
    display: block;
    font: 500 0.55rem "DM Mono", monospace;
    color: var(--muted);
    margin-bottom: 6px;
}

.contact-links b {
    font-size: 0.9rem;
    font-weight: 500;
}

/* FOOTER */
footer {
    width: min(var(--max), calc(100% - 56px));
    margin: auto;
    border-top: 1px solid var(--border);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
}

footer span:first-child {
    color: var(--text);
    font-size: 0.9rem;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.85s cubic-bezier(.2,.7,.2,1), transform 0.85s cubic-bezier(.2,.7,.2,1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* INTRO */
.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s, visibility 0.8s;
}

.intro.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-center {
    width: min(620px, 82vw);
}

.intro-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
}

.intro-word {
    font-size: clamp(2.5rem, 7vw, 5.7rem);
    letter-spacing: -0.07em;
    margin: 18px 0 27px;
    transition: opacity 0.18s;
}

.intro-progress {
    height: 1px;
    background: var(--border);
}

.intro-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--wine), var(--green));
    transition: width 0.05s;
}

.intro-ready {
    margin-top: 10px;
}

.intro-corner {
    position: absolute;
    color: var(--muted);
    font-size: 0.56rem;
    letter-spacing: 0.1em;
}

.top-left { top: 28px; left: 28px; }
.top-right { top: 28px; right: 28px; }
.bottom-left { bottom: 28px; left: 28px; }
.bottom-right { bottom: 28px; right: 28px; }

/* MODAL GERAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 25px;
}

.modal.active,
.modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
}

.modal-box {
    position: relative;
    z-index: 10;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 35px;
    border-radius: 12px;
    width: min(850px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    color: var(--muted);
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-label,
.card-tag-highlight {
    font-size: 0.85rem;
    font-weight: 800;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.modal-box h2 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    margin: 16px 0;
}

.modal-box > p {
    color: var(--muted);
    max-width: 650px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0;
}

.modal-tags span {
    border: 1px solid var(--border);
    padding: 7px 9px;
    font: 500 0.52rem "DM Mono", monospace;
    color: var(--muted);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.modal-gallery img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: zoom-in;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.modal-gallery img:hover {
    filter: brightness(1.1);
}

.modal-photo {
    width: 100%;
    height: 230px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.modal-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modal-photo:hover img {
    transform: scale(1.03);
}

.gallery-placeholder {
    width: 100%;
    height: 180px;
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    color: var(--muted);
    font: 500 0.65rem "DM Mono", monospace;
    letter-spacing: 0.08em;
}

.gallery-placeholder small {
    max-width: 180px;
    font: 400 0.55rem "DM Mono", monospace;
    line-height: 1.6;
    color: var(--muted);
    opacity: 0.7;
}

.cert-zoom-tip {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
    text-align: center;
    font-family: 'DM Mono', monospace;
}

.modal-video-container video {
    outline: none;
}

/* GALERIA DOS PROJETOS */
.project-gallery {
    width: 100%;
    margin-top: 55px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track:active {
    cursor: grabbing;
}

.gallery-item {
    flex: 0 0 min(72%, 520px);
    height: 300px;
    scroll-snap-align: center;
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
    transition: 0.35s;
}

.gallery-item:hover {
    border-color: color-mix(in srgb, var(--blue) 45%, var(--border));
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-arrow {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font: 500 0.8rem "DM Mono", monospace;
    transition: 0.3s;
    z-index: 2;
}

.gallery-arrow:hover {
    color: var(--text);
    border-color: var(--blue);
    background: color-mix(in srgb, var(--blue) 8%, transparent);
}

/* RECURSOS E LINKS */
.project-resources,
#modalResources {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.resource-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    background: var(--card-bg, #1e293b);
    border: 1.5px solid var(--border-color, #334155);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color, #f8fafc);
    transition: all 0.25s ease;
}

.resource-link:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(4px);
}

.resource-link span {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-url {
    font-size: 0.85rem;
    color: #3b82f6;
    font-weight: 600;
    word-break: break-all;
}

.article-badge {
    font-size: 0.75rem;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.resource-link.pending {
    opacity: 0.75;
    cursor: not-allowed;
}

.resource-link.pending:hover {
    transform: none;
    color: var(--text);
}

/* CARROSSEL ARLIMPO+ */
.arlimpo-visual {
    position: relative;
    overflow: hidden;
}

.project-visual-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.project-visual-track::-webkit-scrollbar {
    display: none;
}

.project-visual-track:active {
    cursor: grabbing;
}

.project-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.project-slide:first-child {
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--blue) 10%, var(--surface)),
        var(--surface) 65%
    );
}

.project-slide::before {
    content: "";
    position: absolute;
    inset: -35px;
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    opacity: 0.30;
    transform: scale(1.12);
    z-index: 0;
}

.project-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 7, 0.22);
    z-index: 1;
    pointer-events: none;
}

.project-slide img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 22px;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.45));
}

.visual-swipe {
    position: absolute;
    right: 18px;
    bottom: 17px;
    z-index: 10;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    backdrop-filter: blur(8px);
    color: var(--muted);
    font: 500 0.52rem "DM Mono", monospace;
    letter-spacing: 0.08em;
    pointer-events: none;
    animation: swipeHint 2.5s ease-in-out infinite;
}

/* BOTÕES DE AÇÃO */
.project-link,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding: 12px 20px;
    background: color-mix(in srgb, var(--blue) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--border));
    border-radius: 4px;
    font: 500 0.68rem "DM Mono", monospace;
    letter-spacing: 0.1em;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-link span,
.outline-button span {
    color: var(--blue);
    margin-left: 0;
    transition: transform 0.3s ease;
}

.project-link:hover,
.outline-button:hover {
    background: color-mix(in srgb, var(--blue) 18%, transparent);
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(131, 168, 255, 0.12);
}

.project-link:hover span,
.outline-button:hover span {
    transform: translate(3px, -3px);
}

[data-modal] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease;
}

[data-modal]:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

/* INTERAÇÕES DE IMAGENS E FULLSCREEN */
.clickable-photo {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.clickable-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, object-fit 0.3s ease;
}

.zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.clickable-photo:hover .zoom-hint {
    opacity: 1;
}

.clickable-photo.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw !important;
    height: 85vh !important;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.clickable-photo.zoomed img {
    object-fit: contain !important;
}

.clickable-photo.zoomed .zoom-hint {
    display: none;
}

.full-img-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

.full-img-modal.active {
    opacity: 1;
    visibility: visible;
}

.full-img-modal img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

/* MEDIA QUERIES (RESPONSIVIDADE) */
@media (max-width: 900px) {
    .nav {
        gap: 18px;
    }

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

    .hero-character {
        min-height: 380px;
        order: initial;
        padding-top: 0;
        margin-top: 0;
    }

    .hero-character img {
        max-height: 360px;
    }

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

    .metric:nth-child(2) {
        border-right: 0;
    }

    .metric {
        border-bottom: 1px solid var(--border);
    }

    .about-layout,
    .skills-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

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

    .project-card {
        grid-template-columns: 1fr;
        gap: 35px;
        min-height: auto;
        padding: 80px 0 90px;
    }

    .project-card .project-visual {
        height: 360px;
        margin-bottom: 45px;
    }

    .project-card.reverse .project-visual,
    .project-card.reverse .project-content {
        order: initial;
    }

    .project-visual {
        height: 350px;
    }

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

    .project-gallery {
        margin-top: 40px;
        gap: 8px;
    }

    .gallery-item {
        flex-basis: 82%;
        height: 250px;
    }

    .gallery-arrow {
        display: none;
    }

    .project-resources {
        gap: 22px;
    }
}

@media (max-width: 650px) {
    .header {
        padding: 0 18px;
    }

    .nav {
        position: absolute;
        top: var(--header);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        display: none;
        flex-direction: column;
        padding: 25px 20px;
    }

    .nav.open {
        display: flex;
    }

    .menu-button {
        display: block;
    }

    .header-actions {
        gap: 11px;
    }

    .section {
        width: min(calc(100% - 36px), 1240px);
    }

    .hero {
        min-height: auto;
        padding-top: 145px;
        padding-bottom: 100px;
    }

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

    .hero-character {
        min-height: 300px;
    }

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

    .metric {
        min-height: 135px;
        padding: 25px 15px;
    }

    .metric strong {
        font-size: 2.8rem;
    }

    .about {
        padding-top: 100px;
        padding-bottom: 110px;
    }

    .education,
    .projects,
    .skills,
    .learning {
        padding-bottom: 110px;
    }

    .edu-card {
        min-height: 400px;
        padding: 25px;
    }

    .project-content h3 {
        font-size: 3.5rem;
    }

    .projects-title {
        display: block;
        margin-bottom: 50px;
    }

    .projects-title > span {
        display: block;
        margin-bottom: 20px;
    }

    .project-card .project-visual {
        height: 300px;
    }

    .project-visual {
        height: 310px;
    }

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

    .language + .language {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

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

    .modal-box {
        padding: 30px 22px;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .modal-photo {
        height: 220px;
    }

    .gallery-item {
        flex-basis: 88%;
        height: 220px;
    }

    .project-gallery {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding-left: 28px;
        padding-right: 28px;
    }

    .project-resources {
        flex-direction: column;
        gap: 18px;
    }

    footer {
        width: calc(100% - 36px);
        gap: 15px;
        flex-wrap: wrap;
    }

    .intro-corner {
        font-size: 0.5rem;
    }

    .top-left,
    .bottom-left {
        left: 17px;
    }

    .top-right,
    .bottom-right {
        right: 17px;
    }
}
