/* ========================================================================= */
/* === ESTILOS CSS REFINADOS - TEMA ESCURO FIXO === */
/* ========================================================================= */

:root {
    /* spacing */
    --space-xs: 6px;
    --space-sm: 12px;
    --space: 16px;
    --space-lg: 28px;
    --space-xl: 40px;

    /* radii */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-pill: 999px;

    /* typography */
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --fz-sm: 0.9rem;
    --fz-base: 1rem;
    --fz-lg: 1.25rem;
    --fz-xl: 1.6rem;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    /* transitions */
    --ease-smooth: cubic-bezier(.2, .9, .3, 1);

    /* accent - Azul Elétrico */
    --accent-500: #3B82F6;
    --accent-400: #60A5FA;
    --accent-300: #93C5FD;

    /* subtle glass tone */
    --glass: rgba(11, 18, 32, 0.4); /* (DARK MODE GLASS) */

    /* DARK MODE CORES FIXAS */
    --bg: #0b1220; /* Fundo Escuro */
    --surface: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)); /* Card/Superfície Escura */
    --muted: #9ca3af; /* Texto Muted/Secundário */
    --muted-2: #94a3b8; /* Outro Texto Muted */
    --text: #e6eef8; /* Texto Principal Claro */
    --border: rgba(148, 163, 184, 0.06); /* Borda Escura */
    --shadow: 0 20px 40px rgba(2, 6, 23, 0.6); /* Sombra Escura */
}

/* O bloco @media (prefers-color-scheme: dark) foi REMOVIDO para FIXAR o tema. */


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

html,
body {
    height: 100%
}

html {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth
}

body {
    background: var(--bg);
    color: var(--text);
    font-size: var(--fz-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* NOVO CONTAINER GERAL PARA CENTRALIZAÇÃO */
.container {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: var(--space);
}

h1,
h2,
h3 {
    font-weight: var(--fw-bold);
    color: var(--text)
}

h1 {
    font-size: clamp(1.6rem, 2.4vw, 2rem)
}

h2 {
    font-size: 1.15rem
}

p {
    color: var(--muted);
    font-weight: var(--fw-regular)
}

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

:focus {
    outline: none
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent-500) 25%, transparent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* --- HEADER --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    backdrop-filter: blur(8px);
    /* BACKGROUND FIXO NO DARK MODE */
    background: rgba(6, 10, 20, 0.45); 
    border-bottom: 1px solid var(--border);
    transition: background .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth);
}

/* REMOVIDO @media para o .site-header */

.header-wrapper {
    max-width: 1100px;
    margin-inline: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.logo-image {
    height: 65px;
    width: auto;
    display: block
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px
}

#hamburger-btn {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 1.15rem;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer
}

#hamburger-btn:active {
    transform: scale(.98)
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 14px
}

.nav-list a {
    color: var(--muted);
    font-weight: var(--fw-medium);
    font-size: 0.95rem;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all .18s var(--ease-smooth)
}

.nav-list a:hover {
    color: var(--text);
    background: transparent;
    transform: translateY(-2px)
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: transform .18s var(--ease-smooth), filter .18s var(--ease-smooth)
}

.btn-primary:hover {
    transform: translateY(-3px);
    filter: brightness(1.03)
}

.btn-secondary,
.btn-outline {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    transition: transform .2s var(--ease-smooth), border-color .2s var(--ease-smooth);
}

.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    color: var(--accent-500);
    border-color: var(--accent-500);
}

.btn-secondary:active,
.btn-outline:active {
    transform: translateY(0);
    filter: brightness(0.9);
}

/* --- HERO --- */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 56px 20px;
    max-width: 1200px;
    margin-inline: auto;
}

@media (max-width:920px) {
    .hero {
        grid-template-columns: 1fr 240px
    }
}

@media (max-width:740px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 36px 18px;
        row-gap: 22px
    }
}

.hero-content {
    max-width: 720px
}

.hero h1 {
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem)
}

.hero-sub {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 1rem
}


.accent {
    background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

.hero-info {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    align-items: center
}

/* Foto e Redes Sociais */
.hero-photo {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.photo-circle {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 999px;
    border: 6px solid rgba(59, 130, 246, 0.16);
    box-shadow: 0 10px 100px rgba(11, 18, 32, 0.35);
    transition: transform .4s var(--ease-smooth), box-shadow .4s var(--ease-smooth);
}

.photo-circle:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 50px rgba(59, 130, 246, 0.12)
}

.hero-socials {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
    font-size: 1.6rem;
}

/* Cor base dos ícones */
.hero-socials a {
    color: var(--muted-2);
    transition: color 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

/* Efeito de destaque no hover (muito importante!) */
.hero-socials a:hover {
    color: var(--accent-500);
    transform: translateY(-2px);
}

/* --- SEÇÕES (SOBRE, PROJETOS, SKILLS) --- */
.section {
    padding: 56px 20px;
    max-width: 1100px;
    margin-inline: auto;
    text-align: left;
}

/* --- TÍTULOS E TEXTOS DE SEÇÃO --- */
.section-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--text);
}

.section-text {
    color: var(--muted);
    max-width: 78ch;
    margin-bottom: 12px;
    /* Centraliza bloco de texto na horizontal */
    margin-inline: auto; 
}

/* --- PROJETOS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.project-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .22s var(--ease-smooth), box-shadow .22s var(--ease-smooth), border-color .22s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.36);
    border-color: rgba(59, 130, 246, 0.18)
}

.project-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04)
}

.project-card h3 {
    font-size: 1rem;
    margin-top: 4px
}

.project-card p {
    color: var(--muted);
    font-size: 0.95rem
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-top: 4px
}

.project-tags li {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.09), rgba(96, 165, 250, 0.03));
    color: var(--accent-500);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.08)
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: auto
}

.project-links a {
    color: var(--accent-500);
    font-weight: 600;
    font-size: 0.95rem
}

/* --- SKILLS --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px
}

.skills-column h3 {
    margin-bottom: 8px;
    color: var(--text)
}

.skills-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.skills-badges img {
    height: 28px;
    border-radius: 8px;
    transition: transform .18s var(--ease-smooth)
}

.skills-badges img:hover {
    transform: translateY(-4px)
}

/* --- CONTATO --- */
.section-scroll-revea {   
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin: 40px auto; 
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted)
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 0.98rem;
    resize: vertical;
    box-shadow: none;
    transition: box-shadow .15s var(--ease-smooth), border-color .12s var(--ease-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-500);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.06);
    outline: none
}

.contact-form .btn-primary {
    width: max-content;
    padding: 10px 18px;
    margin-inline: auto; 
}



/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 20px;
    text-align: center;
    color: var(--muted);
    background: transparent;
}

/* --- WHATSAPP WIDGET --- */
.whatsapp-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 140;
    display: flex;
    align-items: center;
    gap: 10px
}

.whatsapp-button {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-500), var(--accent-400));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    animation: pulse 2s infinite ease-in-out;
    transition: transform .18s var(--ease-smooth);
}

.whatsapp-button:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}


.scroll-reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity .9s var(--ease-smooth), transform .9s var(--ease-smooth)
}

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

/* --- MEDIA QUERIES --- */
@media (max-width:920px) {
    .nav-list {
        display: none
    }

    #hamburger-btn {
        display: inline-flex
    }

    .nav-menu {
        position: absolute;
        inset-inline: 0;
        top: 64px;
        background: var(--surface);
        padding: 16px;
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-shadow: var(--shadow);
        transform-origin: top;
        z-index: 130
    }

    .nav-menu .nav-list {
        display: flex;
        flex-direction: column;
        gap: 8px
    }

    .nav-menu .btn-primary {
        align-self: flex-start
    }

    .nav-menu:not(.open) {
        display: none
    }

    .hero {
        grid-template-columns: 1fr 160px
    }
}

@media (max-width:740px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 28px 16px
    }

    .hero-photo {
        order: -1;
        justify-content: flex-start
    }

    .hero-photo::before {
        display: none
    }

    .header-wrapper {
        padding: 12px 14px
    }

    .project-thumb {
        height: 120px
    }

    .photo-circle {
        width: 80px;
        height: 80px
    }
}


@media (max-width:420px) {
    .photo-circle {
        width: 72px;
        height: 72px
    }

    .projects-grid {
        gap: 12px
    }

    .hero-sub {
        font-size: .95rem
    }
}

.card-surface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow)
}


img {
    max-width: 100%;
    height: auto;
    display: block
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}