* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primaria: #4f46e5;
    --secundaria: #7c3aed;
    --escuro: #0f172a;
    --maisEscuro: #0a0f1c;
    --claro: #e2e8f0;
    --vidro: rgb(255, 255, 255, 0.1);
}

body {
    background-color: var(--escuro);
    color: var(--claro);
}


/* ===== Navegação ===== */
.navegacao {
    position: fixed; /* mantém seu comportamento fixo */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: 100;
    padding: 1.5rem;

    /* Isola layout/paint da nav; melhora performance em páginas grandes */
    contain: layout paint;
}

/* ===== Menu ===== */
.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: clamp(0.75rem, 8vw, 3rem);
    margin: 0; /* remove defaults do UL para evitar reflow extra */
    padding: 0;
}

/* ===== Links ===== */
.menu-link {
    text-decoration: none;
    color: var(--claro);
    font-weight: 500;
    position: relative;
    padding: clamp(0.35rem, 1.5vw, 0.5rem) 0;
    font-size: clamp(0.9rem, 2.8vw, 1rem);
}

/* ===== Underline animado (transform no compositor/GPU) ===== */
.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; /* garante cálculo estável da largura */
    height: 2px;
    background: linear-gradient(90deg, var(--primaria), var(--secundaria));

    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 500ms ease;
    will-change: transform; /* dica ao compositor; usar com moderação */
}

.menu-link:hover::after,
.menu-link:focus-visible::after {
    transform: scaleX(1);
}

/* ===== Acessibilidade / Redução de movimento ===== */
@media (prefers-reduced-motion: reduce) {
    .menu-link::after {
        transition: none;
        transform: none;
    }
}

.cabecalho {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.foto-perfil {
    width: 150px;
    height: 150px;
    /*object-fit: contain;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    border: 4px solid var(--vidro);
    animation: flutuar 15s ease-in-out infinite;*/
}

/*h1 {
    font-size: 3.5rem;
    color: var(--primaria);
    font-weight: bold;
    margin: 20px;
}*/

/*.cabecalho-sub-titulo {
    font-size: 1.5rem;
} */

/*COMECA AQUI O CODIGO*/

:root {
    --bg: #0b1220;
    --title: #2d57ff; /* Azul vivo do título */
    --text: #e9edff;
    --ln: #0A66C2; /* LinkedIn oficial */
    --gh: #2b3137; /* GitHub dark */
    --border: #2a3b70;
}

/* Contêiner do título + botões */
.hero-cta {
    text-align: center; /* igual ao mock (alinhado à esquerda) */
    max-width: 840px;
    margin: 0 auto;
    padding: 0 24px;

}

/*Titulo*/
.hero-title {
    margin: 0 0 30px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: .4px;
    font-size: clamp(1.6rem, 1.2vw, 3.9rem); /* grande em desktop, responsivo em mobile */
}

/* Linha dos botões */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Botão base */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(42, 59, 112, .65); /* contorno suave */
    box-shadow: 0 10px 26px rgba(45, 87, 255, .20); /* glow leve azul */
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, filter .12s ease;
}

/* Ícones */
.cta-btn svg {
    display: block;
}

/* Variante LinkedIn */
.btn-linkedin {
    background: linear-gradient(180deg, #0A66C2, #0a53a3);
}

/* Variante GitHub */
.btn-github {
    background: linear-gradient(180deg, #2b3137, #23272c);
}

/* Hover/Active */
.cta-btn:hover {
    transform: translateY(-2px);
    border-color: #3a58a8;
    box-shadow: 0 14px 32px rgba(130, 55, 247, .28);
    filter: brightness(1.06);
}

.cta-btn:active {
    transform: translateY(0);
}

/*ACABA AQUI O CODIGO*/


.sobre {
    padding: 6rem 2rem;
}

.sobre-titulo {
    font-size: 2.5rem;
    color: var(--claro);
    text-align: center;
    margin-bottom: 20px;
}

/* ------------------------------
   Design System (CSS Variables)
-------------------------------*/
:root {
    --bg: #0f1420;
    --card: rgba(255, 255, 255, 0.08);
    --stroke: rgba(255, 255, 255, 0.12);
    --text: #e8eef7;
    --muted: #b6c2d9;
    --primary: #7aa2ff;
    --primary-2: #4af2c5;
    --accent: #ffd27a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

/* Light mode automático se o sistema usar */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6f7fb;
        --card: rgba(255, 255, 255, 0.7);
        --stroke: rgba(10, 20, 40, 0.08);
        --text: #0e1220;
        --muted: #4a5570;
        --primary: #3366ff;
        --primary-2: #0fbf9f;
        --accent: #ff9f1a;
        --shadow: 0 10px 24px rgba(18, 38, 63, 0.12);
    }
}

/*AQUI VAI FICAR A BASE TEM QUE DA UM JETIO DE ARRUMA*/

.container {
    width: clamp(320px, 100%, 1200px);
    max-width: 1200px; /* trava no desktop largo */
    margin: 0 auto;
    padding-inline: clamp(12px, 3vw, 32px);
    box-sizing: border-box;
}

/* ------------------------------
     Header / Hero
  -------------------------------*/
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 38px 28px;
    background: linear-gradient(135deg, rgba(122, 162, 255, 0.18), rgba(74, 242, 197, 0.14)), var(--card);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero__title {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    line-height: 1.15;
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(92deg, var(--text), var(--primary) 45%, var(--primary-2) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tag {
    --ring: rgba(122, 162, 255, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--stroke);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 20px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    font-weight: 600;
    color: var(--text);
}

.tag:hover {
    transform: translateY(-2px);
    border-color: var(--ring);
    box-shadow: 0 6px 24px rgba(122, 162, 255, 0.22);
}

.tag svg {
    width: 16px;
    height: 16px;
    opacity: .9;
}

/* ------------------------------
    Cards de Conteúdo
 -------------------------------*/
.grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.card h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    letter-spacing: .2px;
    color: var(--text);
}

.card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

.list {
    display: grid;
    gap: 10px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.list li {
    position: relative;
    padding-left: 26px;
    color: var(--text);
}

.list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 0 0 3px rgba(122, 162, 255, 0.18);
}

/* ------------------------------
     Blocos Especiais
  -------------------------------*/
.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px dashed var(--stroke);
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 8px;
}

.emph {
    color: var(--text);
    font-weight: 700;
}

/* Micro animação de brilho */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 180deg at 50% 50%,
    rgba(255, 255, 255, 0.18), transparent 20%, transparent 60%, rgba(255, 255, 255, 0.18) 80%, transparent);
    animation: spin 12s linear infinite;
    filter: blur(28px);
    opacity: .25;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    text-align: center;
    color: var(--muted);
    margin-top: 22px;
    font-size: .95rem;
}

.sobre-paragrafo {
    text-align: center;
    font-size: 1rem;
}

.projetos {
    padding: 6rem 2rem;

}

.projetos-caixa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;

}

.projetos-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--vidro);
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
}

.projetos-card:hover {
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    transform: translateY(-10px) scale(1.05);
}

.projetos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.projetos-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.caixa-textos-projetos {
    padding: 1.5rem;
}

.paragrafo-projetos {
    line-height: 1.25rem;
}

.info-projetos {
    margin-bottom: 10px;
}

.contatos {
    padding: 6rem 2rem;
}

.contato-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.formulario-contato {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border: 1px solid var(--vidro);
    border-radius: 16px;
}

.campo-form {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--claro);
    border: 1px solid var(--vidro);
    outline: none;
}

.campo-form:focus {
    border-color: var(--secundaria);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.grupo-form {
    margin-bottom: 1.5rem;
}

.botao-form {
    color: var(--claro);
    background: linear-gradient(90deg, var(--primaria), var(--secundaria));
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    transition: all 0.5s ease;
}

.botao-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.particulas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    background: radial-gradient(circle at 10% 20%, var(--primaria) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, var(--secundaria) 0%, transparent 20%),
    var(--maisEscuro);
}

.footer-texto {
    text-align: center;
}

@keyframes flutuar {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(20px);
    }
}

/* Responsivo (reduz padding em telas pequenas) */

@media (min-width: 860px) {
    .grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .cta-btn {
        padding: 12px 16px;
        border-radius: 10px;
    }
}

/* Mobile pequeno (até 360px) */
@media (max-width: 360px) {
    .foto-perfil {
        width: 150px !important;
        height: 150px !important;
        /*object-fit: contain;
        box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
        border-radius: 80%;
        border: 2px solid var(--vidro);
        animation: flutuar 5s ease-in-out infinite;*/
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    nav a {
        font-size: 11px;
        padding: 4px 6px;
    }

    .container {
        max-width: 90%;
        padding: 8px;
        margin: 0 auto;
    }

    .avatar-wrapper {
        width: 180px;
        height: 180px;
    }

    .avatar {
        max-width: 100%;
        height: auto;
        border-radius: 50%;
    }

    h1 {
        font-size: 20px;
    }
}

/* Smartwatch e telas muito pequenas (162px a 200px) */
@media (max-width: 197px) {

    .foto-perfil {
        width: 150px !important;
        height: 150px !important;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 9999;
        padding: 2px 2px;
        background: rgba(20, 22, 25, 0.75);
        backdrop-filter: blur(6px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Navegação compacta com scroll horizontal */
    .navegacao {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding: 0 2px;
        gap: 2px;
    }

    .navegacao::-webkit-scrollbar {
        display: none;
    }

    /* UL vira flex */
    .menu {
        display: flex;
        flex-direction: row;
        gap: 2px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    header, .navegacao {
        max-height: 28px; /* força altura máxima */
    }

    /* Links compactos */
    .menu-link {
        scroll-snap-align: start;
        flex: 0 0 auto;
        font-size: 6px;
        line-height: 1;
        padiding: 2px 4px;
        min-height: 22px; /* toque confortável */
        font-weight: 600;
        text-decoration: none;
        color: #fff;
        white-space: nowrap;
        background: rgba(79, 70, 229, 0.25);
        border: 1px solid rgba(79, 70, 229, 0.4);
        border-radius: 4px;
        padding: 2px 4px;
        min-height: 22px; /* toque confortável */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .menu-link:active {
        transform: scale(0.97);
    }

    /* Avatar opcional */
    foto-perfil {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 4px;
        border-radius: 50%;
        border: 1px solid var(--vidro);
        box-shadow: 0 0 3px rgba(79, 70, 229, 0.25);
        animation: none;
    }

    /* Container principal */
    .container {
        max-width: 100%;
        padding: 6px;
        margin-top: 4px;
        overflow: hidden;
    }

    h1 {
        font-size: clamp(12px, 5vw, 14px);
        text-align: center;
        margin: 6px 0;
    }

    p, li {
        font-size: clamp(10px, 4vw, 12px);
        line-height: 1.25;
    }

    section {
        margin: 6px 0;
    }
}