/* ============================================
   1. FONTS IMPORT
=============================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=Raleway:wght@400;500;600;700;800&display=swap');

/* ============================================
   2. RESET E VARIÁVEIS
=============================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Cores da Identidade */
    --bg-pink: #f4a9c6;
    --accent-pink: #f47aa6;
    --black: #0d0d0d;
    --white: #fff;
    
    /* Sombras */
    --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.08); 
    --shadow-hard: 6px 6px 0px var(--black); 
    
    --transition-snap: all 0.2s ease-in-out; 
}

/* ============================================
   3. BASE DO SITE
=============================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
    font-weight: 400;
    background: var(--bg-pink);
    color: var(--black);
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.8s ease;
    margin: 0;
}

body.fade-in-body {
    opacity: 1;
}

p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 30px;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg-pink);
    border-left: 1px solid var(--black);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-pink);
    border: 1px solid var(--black);
    border-radius: 0; 
}

/* ============================================
   4. HEADER & MENU
=============================================== */
header {
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between; /* Mantém Logo na esq. e Menu na dir. */
    padding: 15px 5%;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%; 
    transition: padding 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Container que segura as duas palavras juntas */
.logo-box {
    display: flex;
    align-items: center;
    gap: 0; /* Espaço entre @GINGA e DESIGN */
}

/* Estilo para @GINGA (Mais fino) */
h1.ginga {
    font-family: 'Raleway', sans-serif;
    font-weight: 400; /* Peso normal/fino */
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0;
}

/* Estilo para DESIGN (Bem grosso/Negrito) */
h1.design {
    font-family: 'Raleway', sans-serif;
    font-weight: 800; /* Peso Extra Bold */
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0;
}

/* --- NAV (Mantido igual) --- */
nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent-pink);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.ativo {
    color: var(--white);
}

nav a:hover::after,
nav a.ativo::after {
    width: 100%;
}

/* AJUSTE MOBILE */
@media (max-width: 600px) {
    header { 
        padding: 15px 20px; 
        flex-direction: column;
        gap: 15px; /* Espaço entre logo e menu no celular */
    }
    
    /* No celular, talvez você queira o logo um pouco menor */
    h1.ginga, h1.design {
        font-size: 1.3rem;
    }
}

/* ============================================
   5. LAYOUT PRINCIPAL
=============================================== */
main {
    flex: 1;
    padding: 40px 5%;  
    padding-top: 100px; 
    animation: slideUp 0.8s ease-out forwards;
}

.container {
    max-width: 1200px; 
    margin: 0 auto;
}

.main-trabalhos {
    padding: 100px 5% 40px 5% !important; 
}

/* ============================================
   6. PÁGINA: TRABALHOS (GRID / THUMBNAILS)
=============================================== */
.filtros-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-filtro {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: 1px solid var(--black);
    padding: 10px 25px;
    cursor: pointer;
    transition: var(--transition-snap);
    border-radius: 0;
    color: var(--black);
}

.btn-filtro:hover,
.btn-filtro.ativo {
    background: var(--black);
    color: var(--white);
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

/* --- GRID SYSTEM (CORRIGIDO PARA IGUALAR OUTROS) --- */
.trabalhos {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* 3 Colunas */
    gap: 20px; 
    
    width: 100%;
    /* AQUI ESTÁ O SEGREDO: Limitamos a largura para não esticar na tela toda */
    max-width: 750px; 
    margin: 0 auto;    /* Centraliza o grid na tela */
    
    padding-bottom: 60px;
    align-items: start;
}

.trabalhos img {
    width: 100%;
    
    /* Força o quadrado perfeito */
    aspect-ratio: 1 / 1;  
    object-fit: cover;    
    
    display: block;
    border-radius: 0; 
    border: 1px solid var(--black); 
    background-color: var(--white);
    box-shadow: var(--shadow-light);
    
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; 
}

.trabalhos img.visible {
    opacity: 1;
    transform: translateY(0);
}

.trabalhos img:hover {
    cursor: zoom-in;
    transform: translate(-6px, -6px); 
    box-shadow: 8px 8px 0px var(--black); 
    z-index: 10;
    border-color: var(--black);
}

/* ============================================
   7. PÁGINA: OUTROS (Masonry)
=============================================== */
.masonry-gallery {
    /* Garante que o Masonry também respeite a mesma largura máxima */
    max-width: 1000px;
    margin: 0 auto;
    
    column-count: 3; 
    column-gap: 20px;
    width: 100%;
}

.masonry-item {
    break-inside: avoid; 
    margin-bottom: 20px;
}

.masonry-item img {
    width: 100%;
    border-radius: 0;
    border: 1px solid var(--black); 
    transition: transform 0.3s ease;
    cursor: pointer;
}

.masonry-item img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hard);
}

.divisor-estiloso {
    width: 100px;
    height: 2px;
    background: var(--black);
    margin: 0 0 50px 0;
}

/* ============================================
   8. PÁGINA: SOBRE
=============================================== */
.sobre-conteudo-minimalista {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
    padding: 40px 20px;
}

.label-ginga {
    font-family: 'Raleway', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.secao-texto {
    margin-bottom: 60px;
}

.colunas-servicos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    border-top: 2px solid var(--black);
    padding-top: 40px;
}

.subtitulo {
    font-family: 'Raleway', sans-serif;
    color: var(--black);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-pink);
    display: inline-block;
    padding-bottom: 5px;
}

.lista-minimalista {
    list-style: none;
    padding: 0;
}

.lista-minimalista li {
    font-size: 1.05rem;
    padding: 8px 0;
    color: var(--black);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.lista-minimalista li:last-child { border: none; }
.lista-minimalista li strong { font-weight: 700; }

/* ----------------------------------------------------
   CAIXA DE CONTATO
------------------------------------------------------- */
.contato-esquerda {
    margin-top: 80px;
    text-align: center;
    background: transparent;
    border-radius: 5px; 
    padding: 50px 20px;
}

.botoes-alinhados {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    justify-content: center;
}

.btn-contato {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 10px; 
    background: transparent; 
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden; 
}

.btn-contato svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, fill 0.3s ease;
    color: var(--black);
}
.btn-contato svg path {
    fill: var(--black);
    transition: fill 0.3s ease;
}

.btn-contato.email:hover {
    background: linear-gradient(to bottom right, #ffffff, #fce4ec);
    transform: translateY(-3px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.btn-contato.email:hover svg path:nth-child(1) { fill: #4CAF50; }
.btn-contato.email:hover svg path:nth-child(2) { fill: #1E88E5; }
.btn-contato.email:hover svg polygon:nth-child(3) { fill: #E53935; }
.btn-contato.email:hover svg path:nth-child(4) { fill: #C62828; }
.btn-contato.email:hover svg path:nth-child(5) { fill: #FBC02D; }

.btn-contato.insta:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    transform: translateY(-3px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    border-color: transparent;
}
.btn-contato.insta:hover svg { transform: scale(1.1); color: #fff; }
.btn-contato.insta:hover svg path { fill: #fff; }

/* ============================================
   9. LIGHTBOX (Corrigido para Mobile)
=============================================== */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Fundo um pouco mais escuro */
    display: flex; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh; /* Reduzido levemente para caber botões */
    border-radius: 0;
    border: 1px solid #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.lightbox.show .lightbox-content { transform: scale(1); }

/* Botões de Navegação (Setas) */
.lightbox-btn {
    position: absolute; /* Fixa posição absoluta */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3); /* Fundo leve para contraste */
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 15px;
    transition: all 0.3s ease;
    z-index: 10000;
}
.lightbox-btn:hover { background: rgba(0,0,0,0.8); color: #fff; }

/* Posicionamento das setas */
#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

/* Botão Fechar */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    z-index: 10001;
    padding: 10px; /* Mais área de toque */
}
.close-btn:hover { color: #fff; transform: rotate(90deg); }

/* Loader */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    opacity: 0;
}
.loader.active { opacity: 1; }
.loader span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--white); /* Loader branco na lightbox */
    margin: 0 5px;
    border-radius: 0; 
    animation: pulse 1s infinite ease-in-out;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* ============================================
   10. FOOTER
=============================================== */
footer {
    background: var(--black);
    color: rgba(255,255,255,0.6);
    padding: 30px 5%;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    margin-top: auto;
}

footer .btn-contato {
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 8px;
    border-radius: 10px;
}

footer .btn-contato svg path { fill: #888; }
footer .btn-contato.email svg path { fill: #EA4335 !important; }

footer .btn-contato.email:hover {
    background: linear-gradient(to bottom right, #ffffff, #ffebee); 
    transform: translateY(-3px);
    box-shadow: none;
}
footer .btn-contato.email:hover svg path:nth-child(1) { fill: #4CAF50 !important; } 
footer .btn-contato.email:hover svg path:nth-child(2) { fill: #1E88E5 !important; } 
footer .btn-contato.email:hover svg polygon:nth-child(3) { fill: #E53935 !important; } 
footer .btn-contato.email:hover svg path:nth-child(4) { fill: #C62828 !important; } 
footer .btn-contato.email:hover svg path:nth-child(5) { fill: #FBC02D !important; } 

footer .btn-contato.insta:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    transform: translateY(-3px);
}
footer .btn-contato.insta:hover svg path { fill: #fff !important; }


/* ============================================
   11. RESPONSIVIDADE
=============================================== */
@media (max-width: 900px) {
    .masonry-gallery { column-count: 2; }
    .colunas-servicos { grid-template-columns: 1fr; gap: 30px; }
    .trabalhos { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
    header { 
        padding: 15px 20px; 
        flex-direction: column;
        gap: 5px;
        background: rgba(13, 13, 13, 0.95);
    }
    
    main { padding-top: 110px; }
    .main-trabalhos { padding: 110px 5% 0 5% !important; }
    .label-ginga { font-size: 2.2rem; }
    
    /* Masonry & Trabalhos Mobile */
    .masonry-gallery { column-count: 1; }
    .trabalhos { grid-template-columns: 1fr; gap: 20px; }
    
    .trabalhos img { 
        aspect-ratio: 1 / 1; 
        width: 100%; 
        border-radius: 0;
        transform: none !important;
        box-shadow: 4px 4px 0px rgba(0,0,0,0.1) !important;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .sobre-conteudo-minimalista { padding: 20px; }

    /* AJUSTES ESPECÍFICOS LIGHTBOX MOBILE */
    .lightbox-content {
        max-width: 95vw; /* Usa quase toda a largura */
        border: none;    /* Remove borda branca no mobile pra ganhar espaço */
    }
    
    .lightbox-btn {
        font-size: 1.5rem; /* Ícones menores */
        padding: 10px;
        background: rgba(0,0,0,0.5); /* Fundo mais escuro pra ver melhor */
    }
    
    #prevBtn { left: 5px; }  /* Mais para o canto */
    #nextBtn { right: 5px; } /* Mais para o canto */
    
    .close-btn {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
        background: rgba(0,0,0,0.5);
        border-radius: 50%; /* Bolinha para facilitar o toque */
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

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