/* ========================== **
   VARIÁVEIS E RESET BÁSICO
** ========================== */
:root {
    --bg: #0f1720;
    --muted: #9aa4b2;
    --accent1: #7c5cff;
    --accent2: #42d392;
    --accent-gradient: linear-gradient(135deg, #7c5cff 0%, #42d392 100%);
    --max-width: 1100px;
    --shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", system-ui, -apple-system, sans-serif;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(124, 92, 255, 0.08), transparent 8%),
        radial-gradient(900px 500px at 90% 90%, rgba(66, 211, 146, 0.05), transparent 8%), var(--bg);
    color: #e6eef6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-smoothing: grayscale;
    padding: clamp(18px, 3vw, 36px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}

/* ========================== **
   PÁGINA PRINCIPAL: Layout
** ========================== */
.wrap {
    width: 100%;
    max-width: var(--max-width);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

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

.logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1e293b 0%, var(--accent1));
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: inset 0 -8px 18px rgba(124, 92, 255, 0.06), var(--shadow);
    flex: 0 0 56px;
}

.logo img {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.title {
    line-height: 1;
}

.title h1 {
    font-size: 1.125rem;
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.title p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8125rem;
    margin-top: 3px;
    font-weight: 500;
}

nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8125rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    color: #eaf2ff;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:focus,
.btn:hover {
    transform: translateX(-3px);
    box-shadow: 0 8px 30px rgba(7, 12, 20, 0.6);
    outline: none;
}

.cta {
    background: var(--accent-gradient);
    color: #041025;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 30px rgba(124, 92, 255, 0.12);
}

/* ========================== **
   Intro
** ========================== */
.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 26px;
}

.hero .intro {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.intro h2 {
    margin: 0 0 6px 0;
    font-size: 1.375rem;
    font-weight: 700;
}

.intro p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

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

.stat {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    font-weight: 600;
    font-size: 0.8125rem;
    color: #dbe9ff;
}

.hero .profile {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
}

.avatar img {
    border-radius: 18px;
}

/* ========================== **
   Grid de Projetos
** ========================== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 12px;
}

.section-title h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.projects__description,
.contact__description {
    font-size: 0.8125rem;
    color: var(--muted);
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

article.card {
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    position: relative;
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.28s ease;
}

article.card:hover,
article.card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.6);
}

article.card .media {
    height: 120px;
    background-size: cover;
    background-position: center;
    display: block;
}

article.card .content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.kicker {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

article.card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

article.card p.lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.45;
    flex: 1 1 auto;
}

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

.tag {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
}

article.card .actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: end;
    margin-top: 8px;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
    font-weight: 700;
    font-size: 0.8125rem;
}

.link:hover {
    background: var(--accent-gradient);
    color: #0f1720;
}

.ribbon {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(255, 255, 255, 0.035);
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
    color: #1e293b;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ========================== **
   Contato
** ========================== */
.contact-title {
    margin-top: 6px;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}

.contact__wrap {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.contact__text {
    margin: 0 0 12px 0;
    color: var(--muted);
}

.contact__list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.contact__list a,
.contact-list a {
    color: #e6eef6;
}

.contact__list a:hover,
.contact-list a:hover {
    color: var(--accent1);
}

.contact__facts {
    background: linear-gradient(135deg, #0b1220 0%, rgba(255, 255, 255, 0.01));
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.facts__title {
    margin: 0 0 6px 0;
}

.facts__text {
    margin: 0 0 10px 0;
    color: var(--muted);
}

/* ========================== **
   Gradientes decorativos para os projetos
** ========================== */
.media--app {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%237c5cff'/><stop offset='1' stop-color='%2342d392'/></linearGradient></defs><rect width='800' height='400' fill='url(%23g)' rx='12'/></svg>");
}

.media--site {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23ff8a65'/><stop offset='1' stop-color='%23fff176'/></linearGradient></defs><rect width='800' height='400' fill='url(%23g)' rx='12'/></svg>");
}

.media--game {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%2300bcd4'/><stop offset='1' stop-color='%23ff4081'/></linearGradient></defs><rect width='800' height='400' fill='url(%23g)' rx='12'/></svg>");
}

.media--shop {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23339af0'/><stop offset='1' stop-color='%2300c9a7'/></linearGradient></defs><rect width='800' height='400' fill='url(%23g)' rx='12'/></svg>");
}

.media--blog {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23f3f4f6'/><stop offset='1' stop-color='%23cbd5e1'/></linearGradient></defs><rect width='800' height='400' fill='url(%23g)' rx='12'/></svg>");
}

.media--ux {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23a78bfa'/><stop offset='1' stop-color='%2360a5fa'/></linearGradient></defs><rect width='800' height='400' fill='url(%23g)' rx='12'/></svg>");
}

/* ========================== **
   RODAPÉ
** ========================== */
footer {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.8125rem;
}

.socials {
    display: flex;
    gap: 10px;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--muted);
    text-decoration: none;
}

/* ========================== **
   PÁGINA CURRÍCULO: Layout em duas colunas
** ========================== */
.container {
    width: 100%;
    max-width: var(--maxw);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01));
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.6);
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}

/* Coluna primária (esquerda) */
.primary {
    display: flow-root;
    gap: 12px;
}

.resume-card {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px;
    margin-bottom: 14px;
}

.resume-card h2 {
    margin: 0 0 8px 0;
    font-size: 0.9375rem;
    font-weight: 800;
}

/* ========================== **
   Resumo
** ========================== */
.summary p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.875rem;
}

/* ========================== **
   Experiência Profissional
** ========================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 6px 4px;
}

.job h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
}

.job-info {
    color: var(--muted);
    font-size: 0.8125rem;
    margin-top: 6px;
}

.job p,
.bullets {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.job p {
    margin: 8px 0 0 0;
}

.bullets {
    margin: 8px 0 0 16px;
}

/* ========================== **
   Formação Acadêmica
** ========================== */
.edu__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edu {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.edu-info {
    font-size: 0.875rem;
}

/* ========================== **
   Disponibilidade
** ========================== */
.avail__text {
    margin: 0;
}

/* ========================== **
   Coluna Secundária (Direita)
** ========================== */
/* Perfil */
aside.profile-card {
    position: relative;
    top: 0;
}

.profile-card .box {
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.profile-info {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.profile-info .avatar {
    width: 64px;
    height: 64px;
}

.profile-info .avatar img {
    border-radius: 10px;
}

.profile-name {
    font-weight: 800;
}

.profile-description {
    margin-top: 6px;
}

/* Contato */
.resume-contact__title,
.skills__title,
.tools__title {
    margin: 0 0 6px 0;
    font-size: 0.8125rem;
    font-weight: 800;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 0.875rem;
}

/* ========================== **
   Habilidades
** ========================== */
.skills,
.tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.skills {
    display: none;
}

.chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--muted);
}

.skill-meter {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.meter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.meter-wrap {
    width: 65%;
    margin-left: 8px;
}

.meter {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 999px;
    height: 10px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.meter > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    border-radius: 999px 0 0 999px;
}

/* Nível das Habilidades */
.meter-html {
    width: 90%;
}

.meter-css {
    width: 80%;
}

.meter-js {
    width: 90%;
}

.meter-py {
    width: 50%;
}
/* ========================== **
   RESPONSIVIDADE
** ========================== */
@media (max-width: 980px) {
    /* PÁGINA PRINCIPAL */
    .hero {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .hero .profile {
        display: none;
    }
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CURRÍCULO */
    .main-grid {
        grid-template-columns: 1fr;
    }

    aside.profile-card {
        order: -1;
    }
}

@media (max-width: 640px) {
    body {
        padding: 16px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    nav {
        width: 100%;
        justify-content: space-between;
    }
    .hero {
        gap: 12px;
    }
    .section-title h3 {
        font-size: 0.875rem;
    }
    .projects,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    /* CURRÍCULO */
    .tools {
        justify-content: center;
    }

    .timeline .sep {
        display: none;
    }

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

    .job .muted {
        order: -1;
    }

    .bullets {
        margin: 0;
        padding: 15px;
    }
}

/* ========================== **
   ACESSIBILIDADE: Redução de Movimento
** ========================== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ========================== **
   IMPRESSÃO
** ========================== */
@media print {
    body {
        background: #fff;
        color: #000;
        padding: 0;
    }
    .container {
        box-shadow: none;
        border: none;
        background: transparent;
        max-width: 100%;
        padding: 0;
        border-radius: 0;
    }
    header,
    .avatar,
    .skill-meter,
    footer {
        display: none !important;
    }
    .profile-card {
        border-bottom: 1px solid #dbe9ff;
    }
    .profile-name {
        font-size: 2rem;
        font-weight: 700;
    }
    .skills {
        display: flex;
    }
    .chip {
        border: 1px solid #9aa4b2;
    }
    .show-url[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #000;
    }
}

/* ========================== **
   UTILITÁRIOS
** ========================== */
.muted {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8125rem;
}

.sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.02);
    margin: 12px 0;
    border-radius: 2px;
}
