/* ==========================================================================
   XUBOM — PORTFOLIO
   Paleta: Obsidian + Rubi Neon · Display: Space Grotesk · Corpo: Inter
   Mono (labels/dados técnicos): JetBrains Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    /* --- Core palette (mantida: vermelho rubi neon) --- */
    --cor-fundo-principal: #08050a;
    --cor-destaque: #ff2e63;
    --cor-destaque-claro: #ff5c82;
    --cor-sombra-neon: rgba(255, 46, 99, 0.25);
    --cor-suporte: #aa1438;
    --cor-fundo-cards: #120c14;
    --cor-fundo-cards-hover: #15101a;
    --cor-borda-sutil: rgba(255, 46, 99, 0.12);
    --cor-borda-base: #1e1e33;
    --cor-texto-principal: #ffffff;
    --cor-texto-secundario: #9aa3b8;
    --cor-texto-muted: #5d6478;

    /* --- Motion --- */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.25s;
    --dur-med: 0.45s;
    --dur-slow: 0.8s;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
    background-color: var(--cor-fundo-principal);
    color: var(--cor-texto-principal);
    overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html,
body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    top: 0 !important;
}

a.tag {
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--cor-destaque);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- BOTÃO DE IDIOMA NO TOPO --- */
.lang-switcher-container {
    position: fixed;
    top: 25px;
    right: 10vw;
    z-index: 9999;
    opacity: 0;
    animation: fadeDown var(--dur-slow) var(--ease-out-expo) 1.1s forwards;
}

.lang-btn {
    background: rgba(18, 12, 20, 0.7);
    border: 1px solid var(--cor-borda-base);
    color: #e2e8f0;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all var(--dur-fast) var(--ease-smooth);
    cursor: pointer;
}

.lang-btn:hover {
    border-color: var(--cor-destaque);
    color: var(--cor-texto-principal);
    box-shadow: 0 0 15px var(--cor-sombra-neon);
    transform: translateY(-1px);
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.skiptranslate {
    display: none !important;
}

/* ==========================================================================
   HERO — voxel field + entrada orquestrada
   ========================================================================== */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
    position: relative;
    background:
        linear-gradient(to right, rgba(5, 3, 7, 0.86) 25%, rgba(5, 3, 7, 0.65) 50%, rgba(5, 3, 7, 0.35) 100%),
        url('assets/backgrounds/bg_1.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

/* Camada de voxels ambiente — agora cobre o site inteiro (fixed), não só o hero.
   Pequenos blocos rubi sobem lentamente atrás de todo o conteúdo,
   referência discreta ao universo Minecraft sem ser literal/infantil */
.voxel-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.voxel {
    position: absolute;
    bottom: -40px;
    width: 6px;
    height: 6px;
    background: var(--cor-destaque);
    opacity: 0;
    border-radius: 1px;
    animation: voxelRise linear infinite;
}

@keyframes voxelRise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.45;
    }
    85% {
        opacity: 0.28;
    }
    100% {
        transform: translateY(-110vh) rotate(90deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(180deg, var(--cor-texto-principal) 60%, var(--cor-destaque) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(24px);
    animation: heroRise var(--dur-slow) var(--ease-out-expo) 0.15s forwards;
    position: relative;
    width: fit-content;
}

/* Cursor de bloco que "constrói" o nome ao carregar a página */
.hero-content h1::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 8%;
    width: 10px;
    height: 84%;
    background: var(--cor-destaque);
    box-shadow: 0 0 12px var(--cor-sombra-neon);
    animation: caretBlink 0.9s steps(1) 0.95s 3, caretFade 0.1s linear 3.65s forwards;
}

@keyframes caretBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes caretFade {
    to { opacity: 0; }
}

.hero-content p {
    font-size: 1.8rem;
    color: var(--cor-texto-secundario);
    font-weight: 400;
    margin-top: 15px;
    letter-spacing: -0.5px;
    max-width: 460px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    animation: heroRise var(--dur-slow) var(--ease-out-expo) 0.4s forwards;
}

@keyframes heroRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ANIMAÇÃO DO SCROLL */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 10vw;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cor-texto-muted);
    z-index: 2;
    opacity: 0;
    animation: fadeDown var(--dur-slow) var(--ease-out-expo) 1.3s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: #2a2a40;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cor-destaque);
    animation: linePass 2s infinite ease-in-out;
}

@keyframes linePass {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ==========================================================================
   SEÇÃO CONTEÚDO COMPACTO
   ========================================================================== */
.compact-section {
    padding: 60px 10vw;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* --- Infraestrutura de scroll-reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.36s; }

/* ABOUT & SKILLS */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6vw;
    align-items: start;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cor-destaque);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--cor-destaque);
    box-shadow: 0 0 8px var(--cor-sombra-neon);
    flex-shrink: 0;
}

.about-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.about-text p {
    color: var(--cor-texto-secundario);
    font-size: 1rem;
    line-height: 1.7;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skills-list,
.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.tag {
    background: #110b13;
    border: 1px solid var(--cor-borda-base);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 90px;
    position: relative;
    transition: border-color var(--dur-fast) var(--ease-smooth),
                background var(--dur-fast) var(--ease-smooth),
                transform var(--dur-fast) var(--ease-smooth),
                box-shadow var(--dur-fast) var(--ease-smooth);
    overflow: hidden;
}

/* Cantos voxel — assinatura visual sutil, aparece só no hover */
.tag::before,
.tag::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cor-destaque);
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-smooth);
}

.tag::before { top: 5px; left: 5px; }
.tag::after { bottom: 5px; right: 5px; }

.tag i {
    font-size: 1.4rem;
    color: var(--cor-destaque);
    transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-smooth);
}

.tag:hover {
    border-color: var(--cor-destaque);
    background: var(--cor-fundo-cards-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px -8px var(--cor-sombra-neon);
}

.tag:hover::before,
.tag:hover::after {
    opacity: 1;
}

.tag:hover i {
    color: var(--cor-texto-principal);
    transform: scale(1.1);
}

/* --- PAINEL DE PROJETOS --- */
.projects-panel-title {
    margin-top: 60px;
    border-top: 1px solid var(--cor-borda-base);
    padding-top: 40px;
}

.projects-panel-title h2,
.teams-container h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.projects-infinite-slider-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    margin-top: 30px;
    padding: 15px 0;
    cursor: grab;
    user-select: none;
    mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
}

.projects-infinite-slider-container.dragging {
    cursor: grabbing;
}

.projects-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.projects-block {
    display: flex;
    gap: 40px;
    padding-right: 40px;
}

.project-row-item {
    width: 750px;
    background: var(--cor-fundo-cards);
    border: 1px solid var(--cor-borda-base);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    min-height: 240px;
    height: 240px;
    transition: border-color var(--dur-med) var(--ease-smooth),
                transform var(--dur-med) var(--ease-smooth),
                box-shadow var(--dur-med) var(--ease-smooth);
    flex-shrink: 0;
    position: relative;
}

.projects-infinite-slider-container:not(.dragging) .project-row-item:hover {
    border-color: var(--cor-destaque);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px -16px var(--cor-sombra-neon);
}

.project-img-link {
    display: block;
    height: 100%;
    width: 420px;
    flex-shrink: 0;
}

.project-row-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--cor-fundo-principal), var(--cor-suporte));
    position: relative;
    overflow: hidden;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.6s var(--ease-out-expo);
}

.projects-infinite-slider-container:not(.dragging) .project-row-item:hover .project-row-image img {
    transform: scale(1.06);
}

.project-row-info {
    flex: 1.5;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.project-row-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.project-row-info p {
    color: var(--cor-texto-secundario);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-row-item:nth-child(odd) {
    flex-direction: row;
}

.project-row-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- PAINEL DE TIMES --- */
.teams-container {
    border-top: 1px solid var(--cor-borda-base);
    margin-top: 60px;
    padding-top: 40px;
}

.teams-big-panel {
    background: var(--cor-fundo-cards);
    border: 1px solid var(--cor-borda-base);
    border-radius: 20px;
    width: 100%;
    padding: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    transition: border-color var(--dur-med) ease;
}

.team-icon-wrapper {
    width: 125px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur-med) var(--ease-out-expo);
}

.team-icon-wrapper:hover {
    transform: scale(1.08);
}

.team-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 25px;
    padding: 12px;
    filter: grayscale(20%) brightness(95%);
    transition: filter var(--dur-med) ease;
}

.team-icon-wrapper:hover img {
    filter: grayscale(0%) brightness(100%) drop-shadow(0 0 10px var(--cor-sombra-neon));
}

/* --- RODAPÉ PREMIUM --- */
.main-footer {
    width: 100%;
    background-color: var(--cor-fundo-cards);
    border-top: 1px solid var(--cor-borda-sutil);
    padding: 60px 10vw 40px 10vw;
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--cor-texto-principal) 60%, var(--cor-destaque) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-credits {
    color: var(--cor-texto-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-heading {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cor-destaque);
    font-weight: 600;
}

.footer-social-link {
    color: var(--cor-texto-secundario);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--cor-borda-base);
    padding: 10px 20px;
    border-radius: 12px;
    transition: all var(--dur-med) var(--ease-out-expo);
}

.footer-social-link i {
    font-size: 1.2rem;
    color: var(--cor-destaque);
    transition: color var(--dur-fast) ease;
}

.footer-social-link:hover {
    color: var(--cor-texto-principal);
    border-color: var(--cor-destaque);
    background: rgba(255, 46, 99, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--cor-sombra-neon);
}

.footer-social-link:hover i {
    color: var(--cor-texto-principal);
}

/* --- CURSOR PERSONALIZADO --- */
@media (pointer: fine) {

    html,
    body,
    a,
    button,
    .tag,
    .project-img-link,
    .team-icon-wrapper,
    .footer-social-link {
        cursor: none !important;
    }

    .custom-cursor {
        width: 6px;
        height: 6px;
        background-color: var(--cor-texto-principal);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 10000;
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }

    .custom-cursor-follower {
        width: 30px;
        height: 30px;
        border: 1.5px solid var(--cor-destaque);
        background-color: rgba(255, 46, 99, 0.02);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        will-change: transform;
        transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    }

    .custom-cursor.hover {
        width: 10px;
        height: 10px;
        background-color: var(--cor-destaque);
    }

    .custom-cursor-follower.hover {
        width: 45px;
        height: 45px;
        border-color: var(--cor-texto-principal);
        background-color: rgba(255, 255, 255, 0.08);
    }

    .custom-cursor.click {
        width: 8px;
        height: 8px;
    }

    .custom-cursor-follower.click {
        width: 24px;
        height: 24px;
    }
}

@media (pointer: coarse) {

    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }

    .projects-infinite-slider-container {
        cursor: default;
    }
}

/* --- RESPONSIVIDADE GERAL --- */
@media (max-width: 868px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-row-item {
        width: 85vw;
        height: auto;
        min-height: auto;
        flex-direction: column !important;
    }

    .project-img-link {
        width: 100%;
        height: 200px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
        max-width: 100%;
    }

    .lang-switcher-container {
        top: 15px;
        right: 5vw;
    }

    .teams-big-panel {
        justify-content: center;
        flex-wrap: wrap;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 10vw;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 35px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }
}