/* Configurações Globais e Cores */

:root {
    --primary: #00d4ff;    /* Azul Junior (Técnico) */
    --secondary: #ff007a;  /* Rosa Enikeli (Criativo) */
    --dark: #0f0f0f;
    --card: #1a1a1a;
    --text: #ffffff;
    --ml: #fff159;
    --shopee: #ee4d2d;
}

/* --- SISTEMA DE PARTÍCULAS ENIJU --- */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Fica atrás de tudo */
    overflow: hidden;
}

.element {
    position: absolute;
    bottom: -100px;
    opacity: 0;
    animation: floatUp 12s infinite linear;
}

/* Estilo do Coração */
.heart {
    width: 20px;
    height: 20px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    transform: rotate(-45deg);
}
.heart::before, .heart::after {
    content: ''; position: absolute; width: 20px; height: 20px;
    background: inherit; border-radius: 50%;
}
.heart::before { top: -10px; left: 0; }
.heart::after { left: 10px; top: 0; }

/* Estilo da Engrenagem (⚙️) */
.gear {
    font-size: 25px;
    filter: drop-shadow(0 0 5px var(--primary));
    color: var(--primary);
}

/* Estilo do Cubo 3D (Representando o filamento/impressão) */
.cube {
    width: 15px;
    height: 15px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Animação Principal */
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.2; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Variações de posição e tempo */
.element:nth-child(1) { left: 10%; animation-delay: 0s; }
.element:nth-child(2) { left: 25%; animation-delay: 4s; animation-duration: 15s; }
.element:nth-child(3) { left: 45%; animation-delay: 2s; }
.element:nth-child(4) { left: 65%; animation-delay: 7s; animation-duration: 10s; }
.element:nth-child(5) { left: 80%; animation-delay: 1s; }
.element:nth-child(6) { left: 90%; animation-delay: 5s; }

/* --- AJUSTE DE RESPONSIVIDADE (TELAS MENORES) --- */
@media (max-width: 900px) {
    header {
        background-size: 100% auto !important;
        min-height: 100% auto !important;
        padding-bottom: 50px !important; /* Abre espaço para os menus */
    }
    .container {
        margin-top: -50px !important; /* Puxa as caixas para colar na imagem */
    }
}

/* --- CONFIGURAÇÃO DO BODY UNIFORME --- */
body {
    font-family: 'Montserrat', sans-serif;
    /* Usamos uma cor sólida idêntica à base da imagem para o site todo */
    background-color: #0c0c0c; 
    
    color: var(--text);
    margin: 0;
    text-align: center;
    overflow-x: hidden;
}

@keyframes moverParticulas {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

@keyframes moverParticulas {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 0, 1000px 1000px; }
}
/* --- BARRA DE ROLAGEM MODERNA --- */
/* Largura da barra */
::-webkit-scrollbar {
    width: 10px;
}

/* Fundo da barra (Pista) */
::-webkit-scrollbar-track {
    background: #0a0a0a;
}

/* A barra em si (O que desliza) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    border-radius: 10px;
    border: 2px solid #0a0a0a; /* Cria um respiro em volta */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- BOTÃO VOLTAR AO TOPO (Lado Esquerdo) --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Conforme solicitado: lateral esquerda */
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 200;
    transition: all 0.4s ease;
    opacity: 0; /* Começa invisível */
    visibility: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Classe que será ativada via Script quando descer a página */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.3);
    color: var(--secondary);
}
/* Ativa o deslize suave em toda a página */
html {
    scroll-behavior: smooth;
}

/* Estilo dos Botões dentro das caixas */
.btn-portfolio {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-creative { background: var(--secondary); color: white; }
.btn-tech { background: var(--primary); color: #000; }

.btn-portfolio:hover { transform: scale(1.05); filter: brightness(1.2); }

/* Seções de Portfólio */
.portfolio-section {
    padding: 100px 20px;
    min-height: 80vh; /* Aumentei de 60vh para 80vh para garantir que ocupe mais espaço */
    border-top: 1px solid rgba(255,255,255,0.05);
    
    /* ADICIONE ESTA LINHA: Empurra o título para baixo */
    margin-top: 150px; 
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 40px auto;
}

.portfolio-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.05);
    transition: 0.4s;
}

.portfolio-grid img:hover {
    border-color: #fff;
    transform: translateY(-10px);
}
/* NOVO: Define a animação das partículas */
@keyframes moverParticulas {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; } /* Ajuste a velocidade e direção */
}


/* Fonte Tech e Agressiva para o Logo */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    /* Degradê invertido Rosa -> Azul conforme pedido anterior */
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    text-transform: uppercase;
    /* Sombra para dar profundidade ao texto */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8));
}



header {
    width: 100%;
    padding: 60px 20px 0px; 
    
    background-image: url('img/fundo-eniju-responsivo.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto; 
    
    background-color: #0c0c0c; 
    
    /* LINHA REMOVIDA DAQUI */
    
    box-shadow: none; /* Opcional: tira a sombra para unificar o fundo */
    
    min-height: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Opcional: Adiciona um leve brilho extra no topo do header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.subtitle {
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 40px;
    margin-top: 20px; /* Afasta um pouco do nome ENIJU na imagem */
}


/* Garante que o logo em texto fique bem legível por cima da imagem */
.logo {
    /* ... manter o estilo de Orbitron e degradê já criados ... */
    margin-top: -60px; /* Ajuste para centralizar o texto no espaço vazio da imagem */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8));
}
/* Ajuste nos botões para combinar com o Black Piano */
.main-btn {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.1);
    /* ... manter o resto do estilo anterior ... */
}

/* Menu de Lojas (Dropdown) */
.shop-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 20px; /* Ponte invisível para o mouse não perder o menu */
}

.main-btn {
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    min-width: 200px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ml-btn { background-color: var(--ml); color: #333; }
.shopee-btn { background-color: var(--shopee); color: #fff; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    min-width: 260px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.8);
    z-index: 100;
    border-radius: 12px;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.dropdown-content a {
    color: white;
    padding: 18px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-align: left;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:last-child { border-bottom: none; }

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

.dropdown:hover .dropdown-content { 
    display: block; 
    animation: slideUp 0.3s ease-out; 
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Grid de Informações */
.container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 40px 20px;
}

.info-card {
    background: var(--card);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.03);
}

/* Lado Esquerdo - Presentes (Enikeli) */
.creative-side { border-top: 8px solid var(--secondary); }
.creative-side h2 { color: var(--secondary); font-weight: 900; }
.creative-side:hover {
    transform: translateY(-20px);
    box-shadow: 0 30px 60px rgba(255, 0, 122, 0.15);
    border-color: var(--secondary);
}

/* Lado Direito - Peças Técnicas (Junior) */
.tech-side { border-top: 8px solid var(--primary); }
.tech-side h2 { color: var(--primary); font-weight: 900; }
.tech-side:hover {
    transform: translateY(-20px);
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.15);
    border-color: var(--primary);
}

h2 { font-size: 2rem; margin-bottom: 20px; }
ul { padding-left: 15px; }
li { margin-bottom: 12px; font-size: 1.1rem; opacity: 0.9; }

/* Botão Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 200;
    transition: 0.3s;
}

.whatsapp-float:hover { transform: scale(1.05); }

@media (max-width: 600px) {
    header {
        background-size: 100% auto !important; /* Mantém a proporção sem cortar laterais */
        padding: 100% auto !important; /* Aumenta o espaço embaixo dos botões */
        min-height: 100% auto !important; /* Força uma altura mínima para ver a imagem e os botões */
    }

    .shop-container {
        margin-top: 20px;
        flex-direction: row; /* Mantém botões lado a lado */
        flex-wrap: wrap; /* Se não couber, ele joga um para baixo sozinho */
        justify-content: center;
        gap: 10px;
    }

    .main-btn {
        padding: 12px 20px !important; /* Diminui um pouco o botão no celular */
        min-width: 140px !important;
        font-size: 0.8rem !important;
    }

    .container {
        margin-top: 100% auto !important; /* Puxa as caixas para cima da sobra preta */
    }
}

/*Rodapé */
footer {
    width: 100%; /* Força a largura total *//* 60px no topo, 0 nas laterais e 80px embaixo */
    padding: 60px 0px 80px;
    display: block;
    background: linear-gradient(0deg, #000000 0%, #0a0a0a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    opacity: 0.6;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.credits {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.construction {
    opacity: .90;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 2rem;
}

/* Estilo do Modal (Fundo) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

/* A Imagem Expandida */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    
    /* MUDANÇA AQUI: Troquei o brilho colorido por uma borda branca neutra */
    border: 3px solid #ffffff; 
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.4); /* Um brilho branco bem suave */
    
    animation: zoom 0.3s;
    outline: none; /* Garante que o navegador não coloque aquele azul de foco */
}
/* Animação de abertura */
@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* Botão Fechar */
.close {
    position: absolute;
    top: 20px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
}

/* Cursor de lupa nas fotos do portfólio */
.portfolio-grid img {
    cursor: zoom-in;
}

/* Botões de navegação (Setas) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 1001;
}

.next { right: 20px; }
.prev { left: 20px; }

.prev:hover, .next:hover {
    color: #ff00ff; /* Cor Neon que combina com seu site */
    transform: scale(1.2);
}

/* Garante que o modal feche se clicar no fundo */
.modal {
    cursor: default;
}