/* --- 1. CONFIGURAÇÕES GLOBAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --neon-cyan: #00f3ff;
    --noir-black: #08080a;
    --vintage-white: #fdfbf7;
    --hq-shadow: 10px 10px 0px rgba(0, 0, 0, 0.8);
}

body {
    background-color: var(--noir-black);
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* --- 2. HEADER ADAPTATIVO (PC/MAC/MOBILE) --- */
/* --- 1. HEADER CONTAINER ADAPTATIVO --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Padding dinâmico: menor no mobile, maior no PC */
    padding: clamp(20px, 5vw, 60px) 8%; 
    background-color: #000000;
    gap: 20px;
    width: 100%;
}

/* Ajuste para Telefone: Empilha o título e a animação */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }
}

/* --- 2. TÍTULO PRINCIPAL --- */
.header-container h1 {
    font-family: 'Playfair Display', serif;
    /* Fonte escala entre 1.8rem e 3.8rem dependendo da tela */
    font-size: clamp(1.8rem, 6vw, 3.8rem);
    color: #ffffffd7;
    margin: 0;
    line-height: 1.2;
}

/* --- 3. ÁREA DA ANIMAÇÃO (TEXTO + ÍCONE) --- */
.header-container h2 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.9rem, 3vw, 1.6rem);
    color: #ffffffc5;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* REMOVIDO min-width fixo para não quebrar no celular */
    width: clamp(250px, 40vw, 380px); 
    height: clamp(120px, 15vw, 160px); 
}

/* Estilo do TEXTO Animado */
.header-container h2 span {
    position: absolute;
    white-space: nowrap;
    animation: blurCiclo 4.0s infinite ease-in-out;
    text-align: center;
}

/* Estilo da IMAGEM Animada */
.header-container h2::after {
    content: "";
    position: absolute;
    /* Tamanho da imagem adapta ao tamanho da tela */
    width: clamp(100px, 12vw, 150px);  
    height: clamp(100px, 12vw, 150px);
    background-image: url('logo\ principal.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    opacity: 0;
    filter: blur(15px);
    animation: blurCiclo 4.0s infinite ease-in-out 2.0s;
}

/* --- 4. ANIMAÇÃO DE DESFOQUE OTIMIZADA --- */
@keyframes blurCiclo {
    0% {
        opacity: 0;
        filter: blur(12px); /* Blur levemente menor para performance mobile */
        transform: scale(0.95);
    }
    15%, 45% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
    60%, 100% {
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.95);
    }
}

/* Prevenção de borrão infinito em navegadores Safari (iPhone/Mac) */
.header-container h2, 
.header-container h2 span, 
.header-container h2::after {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes blurCiclo {
    0%, 100% { opacity: 0; filter: blur(12px); transform: scale(0.95); }
    15%, 45% { opacity: 1; filter: blur(0px); transform: scale(1); }
}

/* --- 3. GALERIA HQ-SUSPENSE --- */
.galeria-wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 40px auto;
    padding: 0 5px;
}

#galeria {
    display: flex;
    gap: clamp(15px, 2.5vw, 25px);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 30px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}

#galeria::-webkit-scrollbar { display: none; }

#galeria img {
    flex: 0 0 clamp(200px, 25vw, 280px);
    height: clamp(300px, 35vw, 420px);
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(100%) contrast(1.2) brightness(0.7);
    border: 2px solid #333;
    box-shadow: var(--hq-shadow);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

#galeria img:hover {
    filter: grayscale(0%) contrast(1.1) brightness(1);
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

/* --- 4. BOTÕES DE NAVEGAÇÃO (VISÍVEIS EM TUDO) --- */
.btn-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 12vw, 60px);
    height: clamp(40px, 12vw, 60px);
    background: rgba(8, 8, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: clamp(1rem, 4vw, 1.5rem);
    cursor: pointer;
    z-index: 100;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-prev { left: 10px; }
.btn-next { right: 10px; }

@media (min-width: 1024px) {
    .btn-prev { left: 30px; }
    .btn-next { right: 30px; }
}

.btn-nav:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
}

/* --- 5. SEÇÃO DE COMPRA (ESPAÇAMENTO CORRIGIDO) --- */
.compra-hq {
    text-align: center;
    /* Adicionado padding maior para afastar de outras seções */
    padding: clamp(80px, 15vw, 140px) 24px;
    background: linear-gradient(to bottom, var(--noir-black), #000);
}

.compra-hq h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    color: #ffffff;
    letter-spacing: 1px;
    /* Aumentada a distância entre o título e o botão */
    margin-bottom: 40px; 
    line-height: 1.3;
}

.btn-cyber-hq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 50px;
    background: transparent;
    color: var(--neon-cyan) !important;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--neon-cyan);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 380px;
    box-shadow: 5px 5px 0px rgba(0, 243, 255, 0.2);
    /* Margem extra para garantir que não cole nas letras superiores */
    margin-top: 10px; 
}

@media (min-width: 768px) {
    .btn-cyber-hq { width: auto; }
}

.btn-cyber-hq:hover {
    background: var(--neon-cyan);
    color: #0d0d0f !important;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    transform: translate(-3px, -3px);
}

.seta-cyber {
    margin-left: 10px;
    transition: 0.3s;
}

.btn-cyber-hq:hover .seta-cyber {
    transform: translateX(8px);
}