@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500&family=Syne:wght@400;700;800&display=swap');

:root {
    --bg-dark: #050208;
    --accent: #D92344;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --gradient-body: linear-gradient(180deg, #020103 0%, #1a0508 50%, #000000 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; } 
.lenis.lenis-smooth { scroll-behavior: auto; } 
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; } 
.lenis.lenis-stopped { overflow: hidden; }

body {
    background: var(--bg-dark);
    background-image: var(--gradient-body);
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    width: 100%;
    cursor: default;
}

/* CURSOR (Desktop) */
@media (min-width: 769px) {
    .cursor-dot { position: fixed; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 9999; }
    .cursor-outline { position: fixed; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; pointer-events: none; z-index: 9999; transition: transform 0.2s, top 0.1s, left 0.1s; }
    body.hovering .cursor-outline { transform: scale(1.5); background: rgba(217, 35, 68, 0.1); border-color: var(--accent); }
}

/* NAV (MENU) */
nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 1000; background: rgba(0,0,0,0.6); backdrop-filter: blur(12px);
    padding: 12px 30px; border-radius: 50px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s ease-in-out;
}

/* Container dos Links */
.nav-links { display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: white; text-transform: uppercase; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Botão Hambúrguer (Escondido no Desktop) */
.menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0; line-height: 1; }

/* HERO SECTION */
.hero { height: 100vh; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }

/* Texto de Fundo (HENRIQUE) - Ajuste Matemático Desktop */
.bg-text {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    font-family: 'Syne', sans-serif; 
    font-weight: 800; 
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    font-size: 10.5vw; 
    width: 100%; 
    text-align: center; 
    pointer-events: none; 
    z-index: 1;
    white-space: nowrap;
}

/* Imagem Hero */
.hero-img {
    position: relative; z-index: 2; height: 75vh; width: auto; max-width: 90%;
    object-fit: contain; 
    filter: grayscale(100%) contrast(1.1);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    transition: 0.6s ease;
    cursor: pointer;
}
.hero-img:hover { filter: grayscale(0%); }

/* Texto Frente (PETROVA) */
.fg-text {
    position: absolute; bottom: 10%; z-index: 3; width: 100%; text-align: center;
    font-family: 'Syne', sans-serif; font-size: 9vw; font-weight: 800; text-transform: uppercase; letter-spacing: 5px;
    color: white; 
    animation: petrova-glow 3s infinite alternate;
}

@keyframes petrova-glow {
    0% { text-shadow: 0 0 20px #D92344, 0 0 40px #D92344; color: #fff0f3; }
    100% { text-shadow: 0 0 20px #8a2be2, 0 0 40px #8a2be2; color: #f0f0ff; }
}

/* OUT NOW */
#out-now { padding: 100px 5%; display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.out-now-container { display: flex; align-items: center; gap: 60px; max-width: 1000px; width: 100%; }
.on-cover img { width: 100%; max-width: 400px; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); transition: 0.5s; }
.on-cover:hover img { transform: scale(1.03) rotate(-2deg); }
.on-info { text-align: left; flex: 1; }
.on-tag { color: var(--accent); font-weight: bold; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 15px; display: block; }
.on-title { font-family: 'Syne', sans-serif; font-size: 3.5rem; line-height: 1; margin-bottom: 20px; text-transform: uppercase; }

/* VISUALS CAROUSEL */
#visuals-home { padding: 80px 0; overflow: hidden; position: relative; }
.visuals-title { text-align: center; font-family: 'Syne'; font-size: 2.5rem; margin-bottom: 50px; color: var(--accent); }

.visuals-marquee { overflow: hidden; white-space: nowrap; position: relative; }

.visuals-content { 
    display: inline-flex; gap: 20px; 
    animation: visuals-scroll 40s linear infinite; 
    padding-left: 20px;
    will-change: transform; 
}

.visual-card { width: 300px; height: 400px; flex-shrink: 0; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--border); transition: 0.5s; }
.visual-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.visual-card:hover { transform: scale(1.05); border-color: var(--accent); z-index: 10; }
.visual-card:hover img { filter: grayscale(0%); }

@keyframes visuals-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* MARQUEE */
.marquee-section { background: var(--accent); padding: 20px 0; overflow: hidden; white-space: nowrap; position: relative; transform: rotate(-2deg) scale(1.05); margin: 80px 0; border-top: 2px solid white; border-bottom: 2px solid white; }

.marquee-track { 
    display: inline-block; 
    animation: marquee-scroll 40s linear infinite; 
    font-family: 'Syne', sans-serif; font-weight: 800; font-size: 3rem; text-transform: uppercase; color: black;
    will-change: transform; 
}

.marquee-item { margin: 0 40px; cursor: pointer; transition: 0.2s; }
.marquee-item:hover { color: white; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.marquee-item:after { content: "•"; margin-left: 40px; color: white; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* VISUALS PAGE */
.gallery-page { padding: 120px 5% 60px 5%; max-width: 1600px; margin: 0 auto; }
.masonry-grid { column-count: 3; column-gap: 20px; }
.gallery-item { position: relative; margin-bottom: 20px; break-inside: avoid; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: auto; display: block; filter: grayscale(100%) contrast(1.1); transition: 0.6s; }
.item-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); opacity: 0; transition: 0.4s; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.item-title { font-family: 'Syne'; font-size: 1.5rem; transform: translateY(20px); transition: 0.4s; }
.gallery-item:hover img { filter: grayscale(0%); transform: scale(1.05); }
.gallery-item:hover .item-overlay { opacity: 1; }
.gallery-item:hover .item-title { transform: translateY(0); }

/* LIGHTBOX */
#lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9999; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; }
#lightbox.active { display: flex; opacity: 1; }
#lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
#lightbox-close { position: absolute; top: 30px; right: 30px; color: white; font-family: 'Syne'; font-size: 2rem; cursor: pointer; }

/* BOTÕES */
.btn { padding: 12px 35px; border-radius: 50px; background: white; color: black; text-decoration: none; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; border: 1px solid white; display: inline-block; cursor: pointer; transition: 0.3s; }
.btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: white; }

/* =========================================
   FOOTER (RODAPÉ) - CENTRALIZAÇÃO TOTAL
   ========================================= */
footer {
    padding: 80px 5% 40px;
    background: #020103;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
    z-index: 10;
}

/* GRID DE 3 COLUNAS */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    /* MUDANÇA PRINCIPAL: Centraliza tudo horizontalmente */
    justify-items: center; 
    text-align: center;
}

/* COLUNA INDIVIDUAL */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Garante que o conteúdo fique no eixo central */
    width: 100%;
}

/* TÍTULOS (SOCIALS, STREAMS...) */
.footer-col h4 {
    font-family: 'Syne', sans-serif;
    color: #D92344;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CONTAINER DOS LINKS */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center; /* Garante que os links fiquem centralizados */
    width: 100%;
}

/* LINKS INDIVIDUAIS */
.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: 0.3s;
    font-family: 'Manrope', sans-serif;
}

.footer-links a:hover {
    color: white;
    /* padding-left: 5px; <- REMOVIDO pois fica ruim centralizado */
    transform: scale(1.05); /* Novo efeito: aumenta levemente */
}

/* COPYRIGHT + CRÉDITOS */
.footer-bottom {
    width: 100%;
    text-align: center !important;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: #555;
    display: block !important;
}

/* CRÉDITOS DO DEVELOPER */
.dev-credit {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 8px;
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
}

.dev-credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.3);
    transition: 0.3s;
}

.dev-credit a:hover {
    color: #D92344;
    border-color: #D92344;
    opacity: 1;
}

/* ==========================================================================
   ANIMAÇÃO EXCLUSIVA MOBILE (Preto e Branco -> Colorido)
   ========================================================================== */
@keyframes mobile-color-pulse {
    0%, 100% { filter: grayscale(100%) contrast(1.1); }
    50% { filter: grayscale(0%) contrast(1); }
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

/* TABLETS E TELAS MÉDIAS (Max 900px) */
@media (max-width: 900px) {
    nav { flex-direction: column; width: auto; padding: 15px 25px; border-radius: 50px; }
    .nav-links { display: none; flex-direction: column; gap: 20px; text-align: center; margin-top: 20px; width: 100%; }
    .menu-btn { display: block; }
    
    /* Menu Ativo */
    nav.active { border-radius: 25px; background: rgba(5,2,8,0.95); width: 85%; padding: 30px; border-color: var(--accent); }
    nav.active .nav-links { display: flex; }
    
    .out-now-container { flex-direction: column; text-align: center; }
    .on-info { text-align: center; }
    
    /* Footer no Mobile */
    .footer-grid {
        grid-template-columns: 1fr; /* Uma coluna só */
        gap: 30px;
    }
}

/* CELULARES (Max 768px) */
@media (max-width: 768px) {

    /* 1. REMOVER CURSOR CUSTOMIZADO */
    .cursor-dot, .cursor-outline { display: none !important; }

    /* 2. Ajuste do Nome "HENRIQUE" para não cortar */
    .bg-text {
        font-size: 11vw;  /* Tamanho seguro para celular */
        top: 40%;         /* Posição atrás da cabeça */
        width: 100%;
        transform: translate(-50%, -50%);
    }

    /* 3. Ajuste da Foto + ANIMAÇÃO DE COR AUTOMÁTICA */
    .hero img { 
        width: 90% !important;
        height: auto !important;
        max-height: 55vh;
        object-fit: contain;      
        margin-top: auto;
        animation: mobile-color-pulse 4s infinite alternate ease-in-out;
    }
    
    /* Ajuste para outras imagens (bio) sem animação */
    .bio-img-box img {
        width: 90% !important;
        height: auto !important;
        max-height: 55vh;
    }

    /* Ajuste do container Hero */
    .hero {
        align-items: flex-end;
        padding-bottom: 0;
    }
    
    /* 4. Ajuste do texto "PETROVA" */
    .fg-text {
        bottom: 5%;
        font-size: 11vw; /* Reduzido de 13vw para 11vw para caber na tela */
        width: 100%;
        left: 0;
    }
}
/* =========================================
   ESTILOS DA PÁGINA BIO (NOVO LAYOUT)
   ========================================= */

.bio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 5% 100px;
}

.bio-hero {
    display: grid;
    /* Grid Assimétrico: Imagem menor (400px fixo) e Texto ocupa o resto */
    grid-template-columns: 400px 1fr; 
    gap: 80px; 
    /* OPÇÃO CRUCIAL: 'start' joga tudo para cima, removendo o espaço vazio */
    align-items: start; 
    position: relative;
}

/* Configuração da Imagem (Sticky/Fixa) */
.bio-img-box {
    position: sticky;
    top: 120px; /* Mantém a imagem visível enquanto rola */
    height: fit-content;
}

.bio-img-box img {
    width: 100%;
    border-radius: 12px;
    filter: grayscale(100%) contrast(1.1);
    transition: 0.5s;
    border: 1px solid var(--border);
    display: block;
}

.bio-img-box:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Configuração do Texto */
.bio-text {
    display: flex;
    flex-direction: column;
}

.bio-text h1 {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1px;
    line-height: 0.95;
    white-space: pre-wrap;
    text-transform: uppercase;
}

.bio-text h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

/* AQUI ESTÁ O AJUSTE DO TEXTO QUE VOCÊ PEDIU */
.bio-text p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: justify; /* Justifica o texto, alinhando as bordas */
}

/* Citação */
.quote-box {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    line-height: 1.4;
    color: white;
    font-style: italic;
    border-left: 4px solid var(--accent);
    padding-left: 30px;
    margin: 60px 0;
}

/* Seção Compositor */
.duality-section {
    background: rgba(255,255,255,0.03);
    padding: 80px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    margin-top: 80px;
}

/* RESPONSIVIDADE (Celular) */
@media (max-width: 950px) {
    .bio-hero {
        grid-template-columns: 1fr; /* Volta para 1 coluna */
        gap: 40px;
    }
    
    .bio-img-box {
        position: relative; /* Remove o sticky */
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    .bio-text h1 {
        text-align: center;
        font-size: 3rem;
    }
    
    .bio-text h2 {
        text-align: center;
    }
}