﻿:root {
    /* Base em roxos */
    --bg: #F7F5FF; /* fundo muito claro, levemente violeta */
    --fg: #0B1020; /* texto principal quase preto azulado */
    --muted: #5B5E7A; /* texto secundário */
    --brand: #7C3AED; /* violet-600 */
    --brand-600: #6D28D9; /* violet-700, para hovers/contraste */
    --brand-50: #EDE9FE; /* violet-50, chips/badges */
    --card: #FFFFFF;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(16,24,40,.08);
    /* Acentos azuis suaves (detalhes) */
    --accent: #60A5FA; /* blue-400 */
    --accent-50: #DBEAFE; /* blue-100 */
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--brand-600);
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

/* ===== Header ===== */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(140%) blur(6px);
    background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(237,233,254,.5)); /* branco → violet-50 */
    border-bottom: 1px solid rgba(124,58,237,.12);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

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

    .brand .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--brand-600);
        box-shadow: 0 0 0 6px var(--brand-50);
    }

    .brand b {
        letter-spacing: .3px
    }

.nav a {
    font-weight: 600;
    opacity: .9
}

.nav .links {
    display: flex;
    gap: 18px
}

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: clip;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    padding: 72px 20px 30px;
}

.hero h1 {
    font-size: clamp(28px,4vw,46px);
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: .2px
}

.hero p {
    color: var(--muted);
    margin: 0
}

.hero .cta {
    display: flex;
    gap: 12px;
    margin-top: 22px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow);
}

    .btn.secondary {
        background: #fff;
        color: var(--brand);
        border-color: var(--brand-50);
    }

    .btn:hover {
        filter: brightness(.98)
    }

.hero .pic {
    aspect-ratio: 1/1;
    border-radius: 24px;
    background: linear-gradient(145deg,#fff,#eef6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

    .hero .pic img {
        max-width: 90%;
        height: auto;
        border-radius: 12px
    }

.svg-curve {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 50px
}

    .svg-curve path {
        fill: url(#curveGrad)
    }

section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px
}

    section h2 {
        font-size: clamp(22px,3vw,32px);
        margin: 0 0 6px
    }

    section p.lead {
        margin: 0 0 18px;
        color: var(--muted)
    }

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

.project {
    grid-column: span 12;
    display: grid;
    gap: 16px;
    grid-template-columns: 160px 1fr;
    background: var(--card);
    border: 1px solid #e7effc;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

    .project .thumb {
        width: 100%;
        aspect-ratio: 1/1;
        border-radius: 14px;
        background: #eaf0ff center/cover no-repeat;
    }

    .project h3 {
        margin: 2px 0 8px
    }

    .project p {
        margin: 0;
        color: var(--muted)
    }

    .project .actions {
        margin-top: 12px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap
    }

@media (min-width:720px) {
    .project {
        grid-column: span 6
    }
}

.articles {
    display: grid;
    gap: 12px
}

.article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid #e7effc;
    border-radius: var(--radius);
}

    .article .title {
        font-weight: 600
    }

    .article .meta {
        color: var(--muted);
        font-size: .95rem
    }

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

.cert {
    background: var(--card);
    border: 1px solid #e7effc;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

    .cert h4 {
        margin: 0 0 6px
    }

    .cert .issuer {
        color: var(--muted)
    }

@media (min-width:680px) {
    .certs {
        grid-template-columns: repeat(3,1fr)
    }
}

footer {
    padding: 30px 20px;
    border-top: 1px solid #e7effc;
    background: linear-gradient(180deg,#f8fbff,#eef6ff);
}

.foot {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.social {
    display: flex;
    gap: 14px
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 6px
}

.badge {
    background: #eef6ff;
    color: #0a1b2b;
    border: 1px solid #dbeafe;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 16px;
    margin-top: 14px
}

.kpi {
    background: var(--card);
    border: 1px solid #e7effc;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    text-align: center
}

.kpi-number {
    font-size: clamp(24px,3.5vw,34px);
    font-weight: 800
}

.kpi-label {
    color: var(--muted)
}

@media(min-width:720px) {
    .kpis {
        grid-template-columns: repeat(3,1fr)
    }
}

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

.api-card {
    background: var(--card);
    border: 1px solid #e7effc;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow)
}

.code {
    background: #0b1220;
    color: #e6edf3;
    padding: 14px;
    border-radius: 12px;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.06);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy-btn {
    margin-top: 10px
}

@media(min-width:900px) {
    .api-grid {
        grid-template-columns: repeat(3,1fr)
    }
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600
}

.icon {
    width: 1.7em;
    height: 1.7em;
    display: inline-block;
    vertical-align: -0.125em
}

.sep {
    opacity: .4
}

.now-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--brand-50);
    border: 1px solid #DDD6FE font-weight: 600;
    color: #0a1b2b;
    margin: 0 0 10px;
}

    .now-badge a {
        color: var(--brand);
        text-decoration: none
    }

    .now-badge .now-icon {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--brand-600);
    }

        .now-badge .now-icon svg {
            width: 1em;
            height: 1em
        }

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

    .pic {
        order: -1;
        margin-bottom: 12px;
    }
}

.cert-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px
}

.cert-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e7effc;
    background: #f2f6ff
}

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

    .cert .meta li {
        margin: 4px 0
    }

.copy-btn.small {
    padding: 6px 10px;
    font-size: .85rem;
    line-height: 1
}

.copy-btn.copied {
    background: var(--brand-600);
    color: #fff;
    border-color: var(--brand-600);
}

.copy-btn.hidden {
    display: none;
}

:root {
    --wm-size: 420px;
    --wm-opacity: .085; 
}

body {
    position: relative;
}

    body::before,
    body::after {
        content: "";
        position: fixed; 
        width: var(--wm-size);
        height: var(--wm-size);
        background: url("/images/perfil.jpeg") center/cover no-repeat;
        opacity: var(--wm-opacity);
        filter: grayscale(70%) hue-rotate(265deg) saturate(120%) brightness(1.05);
        pointer-events: none; 
        z-index: 0; 
    }

    body::before {
        left: 40px;
        top: 140px;
        transform: rotate(-6deg);
    }

    body::after {
        right: 40px;
        top: 220px;
        transform: scaleX(-1) rotate(5deg);
    }

header, main, footer, .hero, section {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    :root {
        --wm-size: 340px;
    }

    body::before {
        left: 20px;
        top: 120px;
    }

    body::after {
        right: 20px;
        top: 200px;
    }
}

@media (max-width: 900px) {
    :root {
        --wm-size: 280px;
        --wm-opacity: .05;
    }
}

@media (max-width: 720px) {
    body::after {
        display: none;
    }
    :root {
        --wm-size: 220px;
    }

    body::before {
        left: -10px;
        top: 180px;
    }
}

.footer-curve {
    display: block;
    width: 100%;
    height: 60px;
    margin: 0 0 -4px;
}

/* 2 colunas lado a lado, tudo centralizado */
footer.site-footer .foot {
    max-width: 960px; /* um pouco menor pra centralizar bem */
    margin: 0 auto;
    padding: 12px 12px; /* menos altura */
    display: grid; /* substitui o flex antigo */
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center; /* centraliza o conteúdo de cada coluna */
    gap: 20px;
    text-align: center; /* títulos e textos centralizados */
}

/* remove espaçamentos verticais excessivos */
footer.site-footer .f-col p {
    margin: 4px 0;
}

/* copyright mais próximo e baixo */
footer.site-footer .copy {
    max-width: 960px;
    margin: 6px auto 0; /* aproxima da área acima */
    padding: 8px 0 12px; /* reduz a altura */
    border-top: 1px solid #d9e7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 600;
    font-size: .95rem; /* levemente menor */
}

/* responsivo: empilha */
@media (max-width:720px) {
    footer.site-footer .foot {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* --- Footer em 1 coluna centralizada --- */
.site-footer .foot {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px; /* compacto */
    display: flex;
    justify-content: center; /* centro */
    align-items: center;
}

.site-footer .f-center {
    text-align: center;
}

.site-footer .foot-title {
    margin: 0 0 6px;
    font-weight: 700;
}

.site-footer .social-links {
    justify-content: center;
    gap: 12px;
    margin: 0 0 6px;
}

.site-footer .foot-email {
    margin: 0; /* gruda no bloco de redes */
    color: var(--muted);
}

/* curva menor */
.footer-curve {
    height: 70px;
}

/* copyright enxuto e centralizado */
.site-footer .copy {
    border-top: 1px solid #d9e7ff;
    padding: 10px 0 12px;
    text-align: center;
    font-weight: 600;
}

/* responsivo (mantém centralizado) */
@media (max-width: 720px) {
    .site-footer .foot {
        padding: 12px 12px;
    }

    .site-footer .social-links {
        gap: 10px;
    }
}
/* --- CENTRALIZA TUDO NO FOOTER --- */
.site-footer .foot {
    /* vira um bloco único central */
    display: block;
    padding: 12px 0;
}

.site-footer .f-center {
    /* largura máxima e centro de fato */
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    /* garante alinhamento vertical dos itens */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* redes 100% centralizadas */
.site-footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
}

/* e-mail logo abaixo das redes */
.site-footer .foot-email {
    margin: 0;
    color: var(--muted);
}

/* curva mais baixa (opcional) */
.footer-curve {
    height: 70px;
}

/* copyright realmente central */
.site-footer .copy {
    border-top: 1px solid #d9e7ff;
    padding: 10px 0 12px;
    text-align: center;
    font-weight: 600;
}
/* --- curva mais baixa (opcional) --- */
.footer-curve {
    height: 70px;
    margin-bottom: -2px;
}

/* --- footer centralizado em coluna --- */
footer.site-footer .foot {
    display: block; /* override do .foot antigo */
    padding: 12px 0;
}

footer.site-footer .f-center {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* redes centralizadas */
footer.site-footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
}

/* e-mail logo abaixo das redes */
footer.site-footer .foot-email {
    margin: 0 0 6px;
    color: var(--muted);
}

/* copyright central */
footer.site-footer .copy {
    border-top: 1px solid #d9e7ff;
    padding: 10px 0 12px;
    text-align: center;
    font-weight: 600;
}

/* mobile */
@media (max-width: 720px) {
    footer.site-footer .f-center {
        max-width: 92%;
    }
}

/* avatar pequenininho ao lado do nome */
.brand .avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    display: inline-block;
    box-shadow: 0 0 0 2px #fff; /* aro branco suave */
    border: 1px solid #dbeafe; /* contorno leve */
}
/* ===== Mobile-only ajustes (não afeta desktop) ===== */
@media (max-width: 720px) {
    /* Hero já vira 1 coluna no seu CSS, só refinando a ordem/espacamento */
    .hero {
        padding: 48px 16px 24px;
    }

    .hero-inner {
        gap: 18px;
    }

    .hero .cta {
        gap: 10px;
    }

    /* Seções com padding menor para caber melhor em telas estreitas */
    section {
        padding: 28px 16px;
    }

    /* Grid geral: já funciona, mas os PROJETOS precisam empilhar melhor */
    .project {
        grid-template-columns: 1fr; /* imagem em cima, texto abaixo */
        gap: 12px;
        padding: 14px;
    }

        .project .thumb {
            aspect-ratio: 16/9; /* evita “explodir” no alto */
            width: 100%;
            border-radius: 12px;
        }

        .project h3 {
            margin-top: 2px;
        }

    /* Artigos: mantém linha única, só compacta respiro */
    .article {
        padding: 12px 14px;
        gap: 12px;
    }

    /* Badges/KPIs: levemente menores para caber em 1 coluna */
    .badge {
        padding: 6px 10px;
        font-size: .9rem;
    }

    .kpis {
        gap: 12px;
        margin-top: 10px;
    }

    .kpi {
        padding: 14px;
    }

    /* Curvas SVG para não gerar overflow lateral */
    .svg-curve,
    .footer-curve {
        width: 100%;
        height: auto;
    }

    /* Navegação: apenas espaça links quando quebrar de linha */
    .nav {
        padding: 10px 16px;
    }

        .nav .links {
            gap: 12px;
            flex-wrap: wrap;
        }

        .nav a {
            padding: 6px 0;
        }

    /* Rodapé: você já centralizou; só reduz pequenas margens */
    .site-footer .foot {
        padding: 10px 0;
    }

    .site-footer .copy {
        padding: 8px 0 10px;
    }
}
/* ===== Botão hambúrguer (desktop: escondido) ===== */
.nav-toggle {
    display: none; /* só aparece no mobile */
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    color: var(--brand-600);
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        margin: 4px auto;
    }

/* ===== Mobile: menu off-canvas ===== */
@media (max-width: 720px) {
    .nav {
        padding: 10px 16px;
    }

    /* mostra o botão e evita o "tracinho" perdido */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* links viram painel lateral */
    .nav .links {
        position: fixed;
        top: 56px;
        right: 0;
        width: min(80vw, 320px);
        height: calc(100dvh - 56px);
        background: var(--card);
        border-left: 1px solid #e7effc;
        box-shadow: -12px 0 24px rgba(16,24,40,.12);
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transform: translateX(100%);
        transition: transform .25s ease;
        z-index: 20;
    }

        .nav .links.open {
            transform: translateX(0);
        }

    /* quando o menu abre, trava o scroll da página */
    body.no-scroll {
        overflow: hidden;
    }
}
