@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #7b8ca0;
    --text-color: #ffffff;
    --cursor-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Esconder Barra de Rolagem */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge antigo */
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important; /* IMPORTANTE para Lenis funcionar */
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none; /* Esconde cursor padrão no body */
}

/* =========================
   AWWWARDS EXTRAS (Cursor & Noise)
========================= */

/* Loader Screen */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000; /* Acima de tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loader-brand { font-family: 'Inter', sans-serif; font-size: 1rem; letter-spacing: 4px; opacity: 0.7; }
.loader-counter { font-family: 'Anton', sans-serif; font-size: clamp(4rem, 10vw, 10rem); line-height: 1; }

.loader-logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.loader-logo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(1); /* Garante que fique branco no fundo preto */
    opacity: 0.2;
}

.loader-logo-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(1);
    clip-path: inset(100% 0 0 0); /* Começa escondido (cortado do topo até embaixo) */
    will-change: clip-path;
}

/* Ruído de filme */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* Cursor Customizado */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

a, button {
    cursor: none; /* Garante que links e botões também não mostrem o cursor padrão */
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference; /* Garante visibilidade no branco e preto */
}

/* Estado Hover do Cursor */
.cursor-hover {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Máscara para SplitType */
.line {
    overflow: hidden;
    padding-bottom: 2px; /* Evita corte de descendentes (g, j, y) */
}

/* =========================
   HERO & UI
========================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    clip-path: circle(0% at 50% 50%);
}

.ui-layer {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Removido pointer-events: none global para permitir interação */
}

.content-wrapper {
    position: absolute;
    bottom: 5%;
    left: 5%;
    transform: none;
    text-align: left;
    max-width: 600px;
    z-index: 10;
    pointer-events: none; /* Texto não bloqueia mouse */
}

.jordan-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(60px, 10vw, 140px);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.description-box p {
    font-size: 16.8px;
    font-weight: bold;
    line-height: 1.6;
    opacity: 0.9;
    text-align: left;
    max-width: 400px;
    margin: 0;
}

.big-number {
    position: absolute;
    left: auto;
    right: -6%;
    top: 65%;
    transform: translateY(-50%);
    font-family: 'Anton', sans-serif;
    font-size: 50vw;
    color: rgb(0, 0, 0); /* Mais sutil para textura */
    line-height: 1;
    opacity: 1;
    z-index: 1;   /* Garante que fique atrás de tudo */
    pointer-events: none;
    user-select: none;
}

/* =========================
   SHOE VISUAL
========================= */
.shoe-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    max-width: 700px;
    z-index: 5;
    pointer-events: none;
}

.shoe-visual img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    /* O filtro liquido será aplicado via JS ou classe especifica quando necessário para performance */
}

/* =========================
   NAV & BUTTONS
========================= */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 90%;
    left: 5%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none; /* Permite clicar através do container */
}

.nav-btn {
    pointer-events: auto;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 24px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, background-color 0.3s ease; /* Removemos transform da transição CSS para o GSAP controlar */
    will-change: transform;
}

/* =========================
   NAVBAR PREMIUM HOVER
========================= */
.navbar-nav .nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: fit-content;
    margin-left: auto; /* Garante alinhamento à direita */
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =========================
   OFFCANVAS PREMIUM
========================= */
.offcanvas {
    background-color: rgba(15, 15, 15, 0.85) !important; /* Fundo Dark Glass */
    backdrop-filter: blur(15px); /* Desfoque no fundo */
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* Textura de Ruído no Menu */
.offcanvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

.menu-watermark {
    position: absolute;
    bottom: -5%;
    right: -5%;
    font-family: 'Anton', sans-serif;
    font-size: 25vh;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 1;
}

.offcanvas-body {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================
   SEÇÃO 360 & DETALHES
========================= */
.section-360 {
    min-height: 100vh;
    width: 100%;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

.title-360 { font-family: 'Anton', sans-serif; font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase; }
.subtitle-360 { font-family: 'Anton', sans-serif; font-size: 1.2rem; opacity: 1; letter-spacing: 2px; text-align: center;}
.viewer-360 { 
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    width: 100%;
    gap: 10px;
}

#shoe-360-visual { grid-column: 2; grid-row: 1; width: 60vw; height: 50vh; object-fit: contain; z-index: 2; }
.year-display { grid-column: 2; grid-row: 2; font-family: 'Anton', sans-serif; font-size: 4rem; margin-top: 10px; }

.letters-side:first-child { grid-column: 1; grid-row: 1; justify-self: end; }
.letters-side:last-child { grid-column: 3; grid-row: 1; justify-self: start; }
.letters-side { font-family: 'Anton', sans-serif; font-size: clamp(5rem, 15vw, 15rem); line-height: 1; opacity: 1; transform: translateY(-20px); }

.detail-block {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    gap: 80px;
    overflow: hidden; /* Importante para parallax */
}

.black-bg { background-color: #0c0c0c; color: #fff; }
.detail-content { flex: 1; z-index: 2;}
.detail-title { font-family: 'Anton', sans-serif; font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; }
.detail-text { font-size: 1.2rem; font-weight: bold; line-height: 1.6; opacity: 0.9; }

.detail-image { flex: 1; display: flex; justify-content: center; align-items: center; height: 100%; }
.parallax-img { max-width: 120%; max-height: 500px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); will-change: transform;}

@media (max-width: 992px) {
    .detail-block { flex-direction: column; text-align: center; padding: 100px 20px; gap: 40px;}
    .viewer-360 { flex-direction: column; }
    .letters-side { display: none; }
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 80px 5% 40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.typing-wrapper { display: flex; align-items: center; }

.typing-text {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.5rem, 4vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    white-space: normal;
    text-align: center;
}

.cursor-caret {
    display: none;
}

@keyframes blink { 50% { opacity: 0; } }

.mj-signature { width: 200px; height: auto; margin-left: auto; }

.footer-divider { width: 100%; height: 1px; background-color: rgba(255, 255, 255, 0.2); }

/* =========================
   RESPONSIVO (MOBILE)
========================= */
@media (max-width: 768px) {
    /* Hero Adjustments */
    .jordan-title { font-size: 15vw; text-align: center; margin-bottom: 10px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    .content-wrapper { left: 0; width: 100%; padding: 0 20px; bottom: 5%; text-align: center; transform: none; }
    
    /* Abordagem Limpa: Sem box, foco na tipografia e contraste */
    .description-box {
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        border: none;
        margin-top: 10px;
    }
    .description-box p { margin: 0 auto; font-size: 1rem; max-width: 100%; text-align: center; text-shadow: none; }
    /* Opacidade ajustada (0.2) para visibilidade do número sem prejudicar leitura */
    .big-number { font-size: 150vw; top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); opacity: 0.2; width: 100%; text-align: center; }
    .shoe-visual { width: 85vw; top: 40%; }
    
    /* Nav Buttons */
    .nav-btn { width: 50px; height: 50px; font-size: 1.2rem; }
    .carousel-nav { width: 100%; left: 0; padding: 0 15px; }

    /* 360 Section */
    .section-360 { padding: 40px 20px; justify-content: center; }
    .title-360 { font-size: 2.2rem; text-align: center; line-height: 1.2; width: 100%; }
    #shoe-360-visual { width: 100%; height: auto; max-height: 35vh; margin: 20px 0; }
    .year-display { font-size: 3rem; }

    /* Details Section */
    .detail-title { font-size: 2.5rem; }
    .parallax-img { max-width: 100%; max-height: 300px; }

    /* Footer */
    .footer-top { flex-direction: column; align-items: center; gap: 30px; }
    .typing-text { font-size: 1.5rem; }
    .mj-signature { margin: 0 auto; width: 150px; }
    
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }

    /* Swipe Indicator (Mobile Only) */
    .swipe-hint {
        position: absolute;
        bottom: 22%; /* Ajustado para ficar entre o tênis e o texto */
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 10px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        pointer-events: none;
        animation: fadeSwipe 2s infinite;
    }
    @keyframes fadeSwipe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
}

/* Desativar Cursor Customizado em Touch */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
}

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Inter', sans-serif; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, 0.6);
}

.footer-left a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-left a:hover { color: #fff; }

.footer-right { display: flex; gap: 5px; }
.github-link { color: #fff; text-decoration: none; font-weight: 600;}