/* ==========================================
   CONFIGURAÇÕES GERAIS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;600;900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

/* ==========================================
   HEADER E MENU
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background-color: rgb(0, 0, 0);
    border-bottom: 1px solid #1a1a1a;
}

header h1 {
    font-weight: 300;
    letter-spacing: -1px;
}

header a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
}

header a h1:hover {
    color: #ff0000;
}

header h1 span {
    color: #ff0000;
    font-weight: 200;
}

/* Logo */
.logo-container {
    display: none;
    justify-content: center;
    align-items: center;
}

.logo-central {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #333;
    transition: 0.5s ease;
    cursor: pointer;
}

.logo-central:hover {
    border-color: #ff0000;
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

/* Navegação Desktop */
nav ul {
    display: flex;
    gap: 15px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 25px;
    border: 2px solid #333;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

nav ul li a:hover {
    border-color: #ff0000;
    color: #ff0000;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.15);
}

/* Menu Hamburguer Mobile */
.menu-toggle { display: none; cursor: pointer; z-index: 1000; }
.bar { display: block; width: 25px; height: 2px; background: #fff; margin: 5px 0; transition: 0.4s; }

/* ==========================================
   SEÇÃO HERO (INDEX)
   ========================================== */
#hero {
    margin-top: 40px;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box;
}

#hero h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: crosshair;
}

#hero h2:hover {
    letter-spacing: 4px;
    transform: scale(1.01);
}

#hero span { color: #ff0000; }

#hero p {
    color: #888;
    max-width: 600px;
    font-size: 1.2rem;
}

/* ==========================================
   GRADE DE PROJETOS (INDEX)
   ========================================== */
#projetos {
    /* Respiro generoso no topo para substituir o título com classe */
    padding: 140px 10% 80px; 
    background-color: #000;
}

.grid-projetos {
    display: grid;
    /* Duas colunas como antes, mas com um gap mais "editorial" */
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
    width: 100%;
    
    /* Animação suave para o grid surgir quando a página carrega */
    animation: surgirGrid 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes surgirGrid {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste fino nos cards para o foco ser 100% na imagem */
.card {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.foto-projeto {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #1a1a1a; /* Borda bem sutil, quase invisível */
    border-radius: 0px; 
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .foto-projeto {
    border-color: #333; /* Hover discreto, sem brilho excessivo */
    filter: brightness(1.1);
    transform: translateY(-5px);
}

.info-projeto { padding: 15px 0; }

.info-projeto h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
}

.link-titulo {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
}

.link-titulo h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.link-titulo:hover h4 {
    color: #ff0000;
}

/* ==========================================
   PÁGINA DETALHE DO PROJETO
   ========================================== */
.projeto-layout-sticky {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.col-sticky {
    flex: 1;
    position: sticky;
    top: 120px;
}

.sticky-content h1 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 30px;
    padding-top: 50px;
    padding-left: 50px;
}

.resumo-projeto {
    font-weight: 300;
    border-top: 1px solid #333;
    padding-top: 50px;
    padding-left: 50px;
}

.meta-projeto {
    margin-top: 40px;
    font-size: 1rem;
    color: #666;
}

.meta-projeto span { display: block; margin-bottom: 5px; }

.col-scroll {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.col-scroll img {
    width: 100%;
    border: 1px solid #1a1a1a;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #1a1a1a;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.video-direto {
    width: 100%;
    height: auto;
    border: 1px solid #1a1a1a;
    display: block;
}

/* Link Voltar */
.atalho-simples {
    padding: 100px 0;
    text-align: center;
    margin-top: 30px;
}

.link-voltar {
    text-decoration: none;
    color: #666;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.link-voltar:hover { color: #ff0000; }
.link-voltar .seta { transition: transform 0.3s ease; }
.link-voltar:hover .seta { transform: translateX(-5px); }

/* ==========================================
   PÁGINA SOBRE (VERSÃO INTERATIVA + GIRO)
   ========================================== */

/* 1. Keyframes para o giro infinito */
@keyframes girarLento {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sobre-container {
    position: relative; 
    padding: 140px 10%;
    min-height: 100vh;
    overflow-x: hidden;
}

.sobre-foto {
    position: absolute;
    top: 180px;
    right: 10%;
    width: 400px;
    cursor: grab;
    z-index: 10;
    user-select: none;
    -webkit-user-drag: none;

    /* Aplica a rotação: 20s para ser sutil e elegante */
    animation: girarLento 20s linear infinite;
    
    /* Transição para o pulinho e para suavizar o pause */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sobre-foto:active { 
    cursor: grabbing; 
}

/* Interações no Desktop */
@media (hover: hover) {
    .sobre-foto:hover {
        /* Pausa o giro para facilitar a visualização */
        animation-play-state: paused;
        /* Aplica o pulinho (o translate precisa vir depois do rotate se quiser manter o eixo) */
        /* Mas aqui, o mais seguro para não bugar o JS é manter apenas o scale/translate */
        transform: scale(1.05) translateY(-10px);
    }
}

.sobre-foto .moldura-foto {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    background: none;
}

.sobre-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* STICKER (Ajuste fino) */
/* STICKER PERTO DA FOTO (Ajuste de posição) */
.sobre-sticker {
    position: absolute;
    top: 50px;      /* Altura próxima ao topo da foto */
    right: 20%;      /* Ele "nasce" um pouco à esquerda da foto (que está em 10%) */
    width: 300px;    /* Tamanho do sticker */
    z-index: 100;    /* Garante que ele fique por cima */
    cursor: grab;
    transform: rotate(-15deg); /* Dá aquele charme de colado torto */
}

.sobre-sticker img {
    width: 100%;
    pointer-events: none; 
    -webkit-user-drag: none;
}

#sticker-arrastavel:active { cursor: grabbing; }

/* Efeito de levitação no Desktop */
@media (hover: hover) {
    #sticker-arrastavel:hover {
        transform: rotate(-10deg) scale(1.1) translateY(-5px);
    }
}

/* Esconde no mobile para não bagunçar o layout */
@media (max-width: 1024px) {
    .sobre-sticker { display: none !important; }
}

/* TEXTO */
.sobre-texto {
    max-width: 850px;
    position: relative;
    z-index: 5;
    padding-top: 0;
}

/* No seu CSS, localize o .sobre-texto h1 e atualize: */
.sobre-texto h1 {
    font-size: clamp(3rem, 8vw, 6rem); 
    line-height: 0.9; 
    margin: -10px 0 40px; 
    font-weight: 600; /* PESO MÁXIMO */
    color: #fff;
    letter-spacing: -1px; /* Mais apertadinho */
    text-transform: none;
}

/* Garante que o sticker não quebre o layout no mobile */
@media (max-width: 1024px) {
    .sobre-sticker {
        display: none !important;
    }
}

.bio p, .item-simples {
    max-width: none;
    font-weight: 200;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1rem;
}

.item-simples { margin-bottom: 5px; }
.sobre-detalhes, .listas-sobre { margin-top: 40px; }
.sessao-lista { margin-bottom: 25px; }

.sessao-lista strong {
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #fff;
}

/* RESPONSIVIDADE (Travada e sem Giro) */
@media (max-width: 1024px) {
    .sobre-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 100px 5% 40px;
        min-height: auto;
    }

    .sobre-foto {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        
        /* Desativa o giro e o pulinho no mobile para estabilidade */
        animation: none !important;
        transform: none !important;
        
        margin: 0 auto 40px;
        width: clamp(180px, 50vw, 300px); 
        height: auto; 
        display: block;
        pointer-events: none;
    }

    .sobre-foto .moldura-foto {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .sobre-texto {
        max-width: 100%;
        text-align: left;
    }

    .sobre-texto h1 {
        font-size: 2.5rem;
    }
}

/* ==========================================
   6. PÁGINA BAÚ (ALINHADA COM A HOME)
   ========================================== */
/* No #intro-bau, vamos garantir que ele ocupe o espaço e empurre as fotos */
#intro-bau {
    margin-top: 40px; 
    min-height: 40vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center;
    padding: 0 10%;
    /* Adicionamos uma margem inferior para as fotos não "atropelarem" o título */
    margin-bottom: 60px; 

    border-bottom: none !important;
}

#intro-bau h1 {
    margin: 0;
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 500;
    line-height: 0.85;
    white-space: nowrap; 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: crosshair;
}

#intro-bau h1:hover {
    letter-spacing: 8px;
    transform: scale(1.02);
}

#intro-bau h1 span { color: #ff0000; }

#intro-bau p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 700px;
    color: #fff;
    margin: 10px auto;
    line-height: 1.5;
}

/* E na Grid do Baú, garantimos que ela respeite esse distanciamento */
.grid-bau {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
    /* Se você quer que ocupe a tela toda, mantemos o padding lateral zerado aqui */
    padding: 0 0 100px;
    /* A mesma transição elegante da Home */
    animation: surgirGrid 1.2s cubic-bezier(0.16, 1, 0.3, 1); 
}

.item-bau {
    position: relative;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.item-bau::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
}

.item-bau img, .item-bau video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    transition: all 0.5s ease;
}

.item-bau:hover img, .item-bau:hover video {
    filter: saturate(1.2) brightness(1.1);
    transform: scale(1.02);
}

/* ==========================================
   FOOTER E BOTÃO TOPO
   ========================================== */
footer {
    padding: 5px 8%;
    background-color: #000;
    text-align: center;
    clear: both;
    position: relative;
    z-index: 10;
}

.copyright {
    margin-top: 80px;
    margin-bottom: 20px;
    color: #888;
    font-size: 0.7rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-topo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #000;
    border: 2px solid #333;
    color: #fff;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    z-index: 100;
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.btn-topo:hover {
    border-color: #ff0000;
    color: #ff0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */
.fade-in {
    animation: fadeInAnim 0.8s ease forwards;
}

@keyframes fadeInAnim {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .grid-projetos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
    .projeto-layout-sticky { flex-direction: column; }
    .col-sticky { position: relative; top: 0; margin-bottom: 50px; }
    .sticky-content h1 { font-size: 3rem; }
    .grid-bau { column-count: 2; }
}

@media (max-width: 900px) {
    .sobre-grid { grid-template-columns: 1fr; gap: 50px; }
    .sobre-texto h1 { font-size: 2.5rem; }
    #intro-bau h1 {
        white-space: normal; /* Libera a quebra de linha */
        display: flex;
        flex-direction: column; /* Força um termo embaixo do outro se necessário */
        align-items: center;
        
        line-height: 0.9; /* Deixa as duas linhas bem próximas e impactantes */
        font-size: clamp(3rem, 15vw, 5rem); /* Ajuste de tamanho para não vazar */
    }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 20px; padding: 1.5rem 5%; }
    .logo-container { display: none; }
    nav ul { gap: 15px; }
    .menu-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 999;
    }

    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; text-align: center; gap: 40px; }
    .nav-list li a { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; }

    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

    .menu-icons-mobile { display: flex; justify-content: center; gap: 40px; margin-top: 20px; }
    .menu-icons-mobile a {
        width: auto !important; height: auto !important; border: none !important;
        border-radius: 0 !important; background: none !important; box-shadow: none !important;
        font-size: 2rem; color: #fff; transition: 0.3s;
    }
    .menu-icons-mobile a:hover { color: #ff0000; transform: scale(1.1); }

    #hero { padding: 0 5%; text-align: center; }
    #hero h2 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
    #projetos { padding: 60px 5%; }
    .grid-projetos { grid-template-columns: 1fr; gap: 50px; }
    #intro-bau { padding: 40px 0 60px; }
    #intro-bau p { font-size: 1rem; }
    .grid-bau { column-count: 1; }
}