/* --- FUNDAMENTOS --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-navy: #001f3f; 
    --white: #ffffff;
    --gray: #888;
    --transition: 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

* { box-sizing: border-box; }

body, html { 
    margin: 0; padding: 0; height: 100%; width: 100%; 
    font-family: 'Inter', sans-serif; background: #000; color: #fff;
    overflow-x: hidden; 
}

/* FIX: LINKS E HEADER */
a, a:visited, a:hover, a:active { text-decoration: none !important; color: var(--white) !important; transition: 0.3s; }

header { 
    position: fixed; top: 0; width: 100%; padding: 25px 40px; 
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}

/* --- ESTILO DOS LINKS DO HEADER --- */
.back-link, .nav-link { 
    color: var(--white) !important; /* Garante que fiquem brancos como conversamos */
    text-decoration: none !important;
    font-size: 0.75rem;
    letter-spacing: 2px; /* Espaçamento entre letras dá um ar mais sofisticado */
    
    /* A LINHA QUE VOCÊ PRECISA: */
    text-transform: uppercase; 
    
    transition: 0.3s;
}

.back-link:hover, .nav-link:hover {
    opacity: 0.7;
}

.nav-logo { height: 30px; }

/* --- GATEWAY --- */
.page-gateway .gateway-container { display: flex; height: 100vh; width: 100vw; }
.page-gateway .split { flex: 1; display: flex; align-items: center; justify-content: center; transition: flex var(--transition), filter 0.6s; position: relative; overflow: hidden; }
.page-gateway .split:hover { flex: 1.5; }
.gateway-container.expand-active-design .design-side { flex: 100; }
.gateway-container.expand-active-design .music-side { flex: 0; opacity: 0; }
.page-gateway .design-side { background-color: var(--bg-dark); }
.page-gateway .music-side { background-color: var(--bg-navy); }
.page-gateway .content { text-align: center; padding: 20px; z-index: 5; }
.page-gateway .logo-main { width: 280px; margin: 0 auto 25px auto; display: block; }
.page-gateway .logo-song { width: 240px; margin: 0 auto 25px auto; display: block; }

/* --- AGENCY PORTFOLIO --- */
.page-agency .horizontal-scroll { display: flex; height: 100vh; overflow-x: auto; scrollbar-width: none; }
.page-agency .horizontal-scroll::-webkit-scrollbar { display: none; }
.page-agency .category-block {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 100px; 
    height: 100vh;
    /* FIX: Removemos o 80vw fixo para o bloco se ajustar ao conteúdo */
    min-width: auto; 
    flex-shrink: 0;
}
.page-agency .category-header h2 { font-size: clamp(3rem, 10vh, 5rem); text-transform: uppercase; margin: 0; }
.page-agency .projects-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    /* FIX: Garante que o grid se expanda horizontalmente conforme o número de fotos */
    width: max-content; 
}
.page-agency .project-item { position: relative; height: 60vh; aspect-ratio: 3/4; overflow: hidden; background: #111; border-radius: 4px; flex-shrink: 0; }
.page-agency .project-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.page-agency .project-item:hover img { transform: scale(1.1) rotate(3deg); }
.page-agency .overlay { position: absolute; bottom: 0; width: 100%; padding: 30px; background: rgba(0,0,0,0.85); opacity: 0; transition: 0.3s; }
.page-agency .project-item:hover .overlay { opacity: 1; }

.scroll-indicator { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; letter-spacing: 4px; opacity: 0.8; z-index: 500; text-transform: uppercase; color: var(--white); pointer-events: none; }

/* --- CONTACT --- */
.page-contact { overflow-y: auto; background: var(--bg-dark); position: relative; min-height: 100vh; }
.page-contact::before { content: ""; position: fixed; top: 50%; left: -25%; transform: translateY(-50%) rotate(-5deg); width: 120vw; height: 120vh; background: url('../assets/logoBranco.png') no-repeat; background-size: contain; opacity: 0.04; z-index: 0; pointer-events: none; }
.contact-container { max-width: 600px; margin: 150px auto; padding: 20px; position: relative; z-index: 2; text-align: center; }
.contact-form { text-align: left; margin-top: 50px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 0.7rem; color: var(--gray); margin-bottom: 10px; text-transform: uppercase; }
.form-group input, .form-group textarea { width: 100%; background: #111; border: 1px solid #333; padding: 18px; color: #fff; font-family: inherit; }

/* --- BOTÕES --- */
.btn { border: 1px solid #fff; color: #fff; padding: 15px 35px; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; cursor: pointer; background: transparent; display: inline-block; }
.btn:hover { background: #fff; color: #000; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    header { padding: 15px 25px; }
    .nav-logo { height: 20px; }
    .page-gateway .gateway-container { flex-direction: column; }
    .page-gateway .split:hover { flex: 1; }
    .page-agency { overflow-y: auto; overflow-x: hidden; }
    .page-agency .horizontal-scroll { flex-direction: column; height: auto; width: 100%; padding-top: 80px; }
    .page-agency .category-header h2 {
        /* Reduzimos o tamanho base e o máximo para mobile */
        font-size: clamp(1.8rem, 8vw, 2.5rem); 
        line-height: 1.1;
        word-wrap: break-word; /* Garante que, se ainda assim for grande, ele quebre a palavra */
        letter-spacing: 1px;   /* Diminuir um pouco o espaçamento ajuda a caber na largura */
        margin-bottom: 20px;
    }
    .page-agency .category-block { width: 100%; height: auto; padding: 40px 15px; min-width: 100%; }
    .page-agency .projects-grid { flex-direction: column; width: 100%; }
    .page-agency .project-item { width: 100%; height: auto; aspect-ratio: 3/4; }
    .scroll-indicator { display: none; }
}