/* =========================================
   ARQUIVO: style.css
   DESCRIÇÃO: Estilos Globais, Animações e Chat
   ========================================= */

/* VARIÁVEIS E CORES TÉCNICAS */
:root {
    --bg-midnight: #05010a; /* Roxo Profundo */
    --bg-card: #0f1115;
    --primary-purple: #8A2BE2; /* Roxo Neon */
    --light-purple: #b366ff;
    --leak-cyan: #00ffff; /* Ciano Matrix */
    --warning-red: #ff3333;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --font-main: 'Poppins', sans-serif;
    --cursor-size: 20px;
}

/* MODO RED TEAM (EASTER EGG - ATIVADO VIA JS) */
body.red-mode {
    --bg-midnight: #0a0101;
    --bg-card: #150f0f;
    --primary-purple: #ff0000; /* Vira Vermelho */
    --light-purple: #ff4d4d;
    --leak-cyan: #ffaa00; /* Vira Laranja */
}

/* RESET E CURSOR */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; /* Esconde o cursor padrão do sistema */ }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-midnight);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   1. PRELOADER (TELA DE BOOT)
   ========================================= */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    transition: opacity 0.5s ease;
}

.terminal-loader { color: var(--leak-cyan); font-size: 1rem; }
.terminal-header { border-bottom: 1px solid var(--leak-cyan); margin-bottom: 10px; padding-bottom: 5px; font-weight: bold; }

/* =========================================
   2. CURSOR TÁTICO PERSONALIZADO
   ========================================= */
.cursor-dot, .cursor-circle {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none; /* Permite clicar através do cursor */
}

.cursor-dot { width: 6px; height: 6px; background-color: var(--leak-cyan); }
.cursor-circle {
    width: var(--cursor-size); height: var(--cursor-size);
    border: 1px solid var(--primary-purple);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Estado Hover (Quando passa sobre links) */
body.hovering .cursor-circle {
    width: 50px; height: 50px;
    background-color: rgba(138, 43, 226, 0.2);
    border-color: var(--leak-cyan);
}

/* =========================================
   3. ELEMENTOS GERAIS
   ========================================= */
h1, h2, h3 { font-weight: 700; color: var(--text-white); }
a { text-decoration: none; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.section-pad { padding: 5rem 0; }
.accent { color: var(--primary-purple); }

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; position: fixed; width: 100%; top: 0;
    background: rgba(5, 1, 10, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

.logo { font-size: 1.5rem; font-weight: 800; color: white; transition: 0.3s; cursor: none; }
.logo:hover { color: var(--primary-purple); text-shadow: 0 0 10px var(--primary-purple); }

.nav-links ul { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-gray); font-size: 0.9rem; transition: 0.3s; cursor: none; }
.nav-links a:hover { color: var(--primary-purple); }

.mobile-menu-icon { display: none; flex-direction: column; cursor: none; gap: 6px; z-index: 1001; }
.bar { width: 30px; height: 3px; background-color: var(--text-white); transition: 0.3s; border-radius: 3px; }

/* HERO SECTION & CUBO */
.hero {
    height: 100vh; display: flex; justify-content: center; align-items: center;
    position: relative; overflow: hidden;
    background: radial-gradient(circle at center, #1a0b2e 0%, var(--bg-midnight) 90%);
}

#leak-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

/* Cubo Centralizado */
.cube-wrapper { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 350px; height: 350px; perspective: 1200px; z-index: 2; pointer-events: none; 
}
.stable-cube { width: 100%; height: 100%; position: absolute; transform-style: preserve-3d; animation: rotate-cube 25s infinite linear; }
.face { position: absolute; width: 350px; height: 350px; background: rgba(138, 43, 226, 0.05); border: 2px solid var(--primary-purple); box-shadow: 0 0 30px rgba(138, 43, 226, 0.2) inset; }

.face.front  { transform: rotateY(0deg) translateZ(175px); }
.face.back   { transform: rotateY(180deg) translateZ(175px); }
.face.right  { transform: rotateY(90deg) translateZ(175px); }
.face.left   { transform: rotateY(-90deg) translateZ(175px); }
.face.top    { transform: rotateX(90deg) translateZ(175px); }
.face.bottom { transform: rotateX(-90deg) translateZ(175px); }
@keyframes rotate-cube { 0% { transform: rotateX(0deg) rotateY(0deg); } 100% { transform: rotateX(360deg) rotateY(360deg); } }

/* Rachadura em Z (Raio) */
.leak-crack {
    position: absolute; top: 50%; left: 50%; width: 200px; height: 200px;
    transform: translate(-50%, -50%); z-index: 5;
}
.leak-crack::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
    background: var(--leak-cyan);
    clip-path: polygon(45% 0%, 55% 0%, 50% 35%, 70% 35%, 40% 65%, 60% 65%, 35% 100%, 45% 100%, 75% 60%, 55% 60%, 85% 30%, 65% 30%);
    transform: translate(-50%, -50%) rotate(15deg);
    box-shadow: 0 0 20px var(--leak-cyan);
    animation: pulse-crack 0.1s infinite alternate;
}
@keyframes pulse-crack { from { opacity: 0.7; filter: brightness(1.2); } to { opacity: 1; filter: brightness(1.8); } }

/* Textos Hero */
.hero-text-content { position: relative; z-index: 10; text-align: center; width: 100%; }
.brand-title { font-size: 5rem; letter-spacing: 5px; text-shadow: 0 0 20px var(--primary-purple); margin-bottom: 2rem; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.btn { padding: 12px 30px; border-radius: 4px; font-weight: 600; text-transform: uppercase; transition: 0.3s; font-size: 0.8rem; cursor: none; }
.btn-primary { background: var(--primary-purple); color: white; }
.btn-primary:hover { box-shadow: 0 0 15px var(--primary-purple); transform: translateY(-2px); }

.btn-outline { border: 1px solid var(--primary-purple); color: white; }
.btn-outline:hover { background: rgba(138, 43, 226, 0.1); }
.btn-outline:active, .btn-outline:focus { background-color: var(--leak-cyan); border-color: var(--leak-cyan); color: #000; box-shadow: 0 0 15px var(--leak-cyan); }

.subtitle-wrapper { display: flex; justify-content: center; align-items: center; }
.bottom-placement { margin-top: 4rem; }
.brand-subtitle { 
    font-size: 1.2rem; color: var(--leak-cyan); font-weight: 600; padding: 0 5px; display: inline-block; letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7); animation: pulse-glow 4s infinite ease-in-out;
}
@keyframes pulse-glow { 0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(0, 255, 255, 0.7); } 50% { opacity: 0.5; text-shadow: 0 0 5px rgba(0, 255, 255, 0.3); } }

/* SERVIÇOS */
.section-title { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { background: var(--bg-card); padding: 2rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; cursor: none; }
.service-card:hover { transform: translateY(-10px); background: #161a20; }
.service-hover-title { transition: 0.3s; margin-bottom: 1rem; }
.service-card:hover .service-hover-title { color: var(--leak-cyan); text-shadow: 0 0 10px var(--leak-cyan); }

/* SOBRE & DRAGÃO */
.bg-midnight { background-color: var(--bg-midnight); }
.light-purple-text { color: var(--light-purple) !important; }
.about-layout { display: flex; align-items: center; gap: 4rem; }
.about-image-container { flex: 1; display: flex; justify-content: center; position: relative; }
.about-dragon-video { width: 100%; max-width: 600px; height: auto; border-radius: 10px; pointer-events: none; filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.4)); mask-image: linear-gradient(to bottom, black 80%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%); }
.about-text-content { flex: 1; }

/* WORKFLOW */
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; margin-top: 3rem; }
.circle-wrap { width: 100px; height: 100px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; position: relative; }
.step-number-circle { width: 70px; height: 70px; background: transparent; border: 3px solid var(--leak-cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; color: var(--leak-cyan); box-shadow: 0 0 15px var(--leak-cyan), inset 0 0 10px var(--leak-cyan); }
.circle-wrap::after { content: ''; position: absolute; width: 100px; height: 100px; border: 1px dashed var(--leak-cyan); border-radius: 50%; animation: rotate-slow 10s infinite linear; }
@keyframes rotate-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* EQUIPE */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.team-card { background: var(--bg-card); padding: 2rem; text-align: center; border-radius: 8px; cursor: none; }
.name-six:hover { color: var(--leak-cyan); text-shadow: 0 0 15px var(--leak-cyan); }
.name-isaias:hover { color: var(--primary-purple); text-shadow: 0 0 15px var(--primary-purple); }

/* FOOTER */
footer { background: #020202; padding: 4rem 5%; border-top: 1px solid #111; }
.warning-title, .warning-text { color: var(--warning-red) !important; }
.social-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.social-btn { padding: 10px 20px; background: #0a0a0a; border: 1px solid #222; border-radius: 4px; color: white; transition: 0.3s; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; cursor: none; }

/* Brilhos Sociais */
.instagram:hover { color: #fff; border-color: #bc1888; box-shadow: 0 0 15px #bc1888; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.telegram-footer:hover { color: #00ffff; border-color: #00ffff; box-shadow: 0 0 15px #00ffff; background: #0088cc; }
.whatsapp:hover { color: #fff; border-color: #25d366; box-shadow: 0 0 15px #25d366; background: #25d366; }
.twitter:hover { color: white; border-color: #555; box-shadow: 0 0 15px white; background: #000; }
.freelas:hover { color: #009688; border-color: #009688; box-shadow: 0 0 15px #009688; }
.workana:hover { color: #2b3d52; border-color: #2b3d52; box-shadow: 0 0 15px #2b3d52; }

/* =========================================
   ESTILOS DA SALA SEGURA (CHAT / CONTATO)
   ========================================= */
.chat-body { background-color: var(--bg-midnight); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.chat-section { flex: 1; display: flex; justify-content: center; align-items: center; padding: 80px 20px 20px 20px; }
.chat-container { width: 100%; max-width: 700px; height: 80vh; background: #0a0a0f; border: 1px solid rgba(138, 43, 226, 0.3); border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0, 0, 0, 0.9); position: relative; overflow: hidden; }
.chat-header-terminal { background: #050505; padding: 12px 20px; display: flex; align-items: center; border-bottom: 1px solid #222; }
.terminal-dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title { flex: 1; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--leak-cyan); letter-spacing: 2px; text-shadow: 0 0 5px var(--leak-cyan); }
.chat-window { flex: 1; padding: 25px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; background: linear-gradient(180deg, rgba(5,1,10,0.95) 0%, rgba(10,10,20,0.95) 100%); }
.chat-window::-webkit-scrollbar { width: 8px; }
.chat-window::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.chat-window::-webkit-scrollbar-track { background: #000; }
.message { max-width: 85%; padding: 15px 20px; border-radius: 10px; font-size: 1rem; line-height: 1.6; position: relative; animation: slideIn 0.3s ease; font-family: 'JetBrains Mono', monospace; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.message.bot { align-self: flex-start; background: rgba(0, 255, 255, 0.05); border-left: 3px solid var(--leak-cyan); color: #e0e0e0; border-top-left-radius: 0; }
.bot-name { display: block; font-size: 0.75rem; color: var(--leak-cyan); font-weight: bold; margin-bottom: 5px; text-transform: uppercase; }
.message.user { align-self: flex-end; background: rgba(138, 43, 226, 0.1); border-right: 3px solid var(--primary-purple); color: #fff; border-top-right-radius: 0; text-align: right; }
.chat-input-area { padding: 20px; background: #080808; border-top: 1px solid #222; display: flex; gap: 15px; }
.chat-input-area input { flex: 1; background: #111; border: 1px solid #333; padding: 15px; border-radius: 6px; color: #fff; font-size: 1rem; outline: none; font-family: var(--font-main); transition: 0.3s; cursor: none; }
.chat-input-area input:focus { border-color: var(--leak-cyan); box-shadow: 0 0 10px rgba(0, 255, 255, 0.1); }
.chat-input-area button { background: var(--primary-purple); border: none; color: #fff; padding: 0 25px; border-radius: 6px; cursor: none; transition: 0.3s; font-size: 1.2rem; }
.chat-input-area button:hover { background: #a040ff; box-shadow: 0 0 15px var(--primary-purple); }
.chat-input-area button:disabled, .chat-input-area input:disabled { opacity: 0.3; cursor: not-allowed; background: #0a0a0a; }

/* Botões do Chat */
.action-btn { display: flex; width: 100%; margin-top: 10px; padding: 12px; text-align: center; border-radius: 6px; font-weight: 600; text-decoration: none; transition: 0.3s; font-family: var(--font-main); justify-content: center; align-items: center; gap: 10px; cursor: none; }
.btn-whatsapp { background: #25d366; color: #fff; border: 1px solid #25d366; }
.btn-whatsapp:hover { box-shadow: 0 0 15px #25d366; }
.btn-telegram { background: #0088cc; color: #fff; border: 1px solid #0088cc; }
.btn-telegram:hover { box-shadow: 0 0 15px #0088cc; }
.btn-email { background: transparent; border: 1px solid #fff; color: #fff; }
.btn-email:hover { background: #fff; color: #000; }

/* MEDIA QUERIES (RESPONSIVO) */
@media (max-width: 768px) {
    * { cursor: auto; /* Volta cursor normal no celular */ }
    .cursor-dot, .cursor-circle { display: none; }
    
    .mobile-menu-icon { display: flex; }
    .nav-links { 
        position: absolute; top: 60px; right: 0; width: 100%; 
        background: #050505; flex-direction: column; align-items: center; 
        border-bottom: 1px solid var(--primary-purple); 
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; 
    }
    .nav-links.active { max-height: 400px; }
    .nav-links ul { flex-direction: column; padding: 2rem 0; text-align: center; }
    .mobile-menu-icon.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-icon.open .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-icon.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .brand-title { font-size: 2.5rem; letter-spacing: 2px; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 20px; }
    .btn { width: 100%; text-align: center; }
    .cube-wrapper { width: 250px; height: 250px; }
    .face { width: 250px; height: 250px; }
    
    .chat-section { padding: 60px 0 0 0; }
    .chat-container { height: 100%; border-radius: 0; border: none; max-width: 100%; }
    .message { max-width: 90%; font-size: 0.9rem; }
    .services-grid { grid-template-columns: 1fr; }
    .about-layout { flex-direction: column; text-align: center; }
    .about-dragon-video { width: 100%; transform: none; }
}