/* =========================================
   1. VARIÁVEIS E BASE
   ========================================= */
:root {
    --purple: #7A00D4;
    --pink: #FF1E9D;
    
    /* TEMA DARK (Padrão) */
    --bg-color: #05000a;
    --text-main: #FFFFFF;
    --text-muted: #aaaaaa;
    
    /* Efeitos de Vidro */
    --glass-bg: rgba(255, 255, 255, 0.03); 
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(5, 0, 10, 0.95);
    
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --gradient-text: linear-gradient(135deg, var(--purple), var(--pink));
}

/* TEMA LIGHT */
body.light-mode {
    --bg-color: #f4f4f9;
    --text-main: #1a1a1a;
    --text-muted: #555;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.98);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    background: var(--bg-color); 
    color: var(--text-main); 
    font-family: var(--font-body); 
    overflow-x: hidden; 
    transition: background 0.3s, color 0.3s;
}

/* UTILITÁRIOS */
.text-purple { color: var(--purple); }
.text-pink { color: var(--pink); }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 60px; font-weight: 700; font-family: var(--font-display); }
.section-title-left { font-size: 3rem; margin-bottom: 20px; font-weight: 700; line-height: 1.1; font-family: var(--font-display); }

/* =========================================
   2. HEADER & NAV
   ========================================= */
header { 
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; 
    background: var(--nav-bg); backdrop-filter: blur(10px); 
    border-bottom: var(--glass-border); padding: 15px 0; 
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 900; color: var(--text-main); font-family: var(--font-display); }
.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-menu a { 
    color: var(--text-main); text-decoration: none; font-weight: 600; 
    font-size: 0.9rem; transition: 0.3s; text-transform: uppercase; 
}
.nav-menu a:hover { color: var(--pink); }

.theme-btn { cursor: pointer; font-size: 1.2rem; color: var(--text-main); padding: 5px; transition: 0.3s; }
.theme-btn:hover { color: var(--purple); transform: rotate(20deg); }

.btn-whatsapp { 
    background: #25D366; color: #fff !important; padding: 8px 20px; 
    border-radius: 20px; display: flex; align-items: center; gap: 5px; font-size: 0.8rem;
}
.btn-whatsapp:hover { background: #1ebe57; }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* =========================================
   3. HERO (BOLHAS DE LUZ)
   ========================================= */
#hero { 
    height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; 
    position: relative; overflow: hidden; text-align: center;
}
.hero-blob {
    position: absolute; width: 600px; height: 600px; border-radius: 50%; 
    filter: blur(120px); opacity: 0.3; z-index: -1; animation: floatBlob 10s infinite alternate;
}
.blob-1 { background: var(--purple); top: -20%; left: -20%; }
.blob-2 { background: var(--pink); bottom: -20%; right: -20%; animation-delay: 2s; }
@keyframes floatBlob { from { transform: translate(0,0); } to { transform: translate(40px, 40px); } }

#particles-js { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

.hero-title { font-size: 5rem; margin-bottom: 20px; line-height: 1; font-weight: 900; }
.hero-subtitle { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 40px; letter-spacing: 2px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* BOTÕES */
.btn { 
    padding: 15px 40px; border-radius: 50px; font-weight: 700; text-decoration: none; 
    text-transform: uppercase; border: 2px solid transparent; transition: 0.3s; cursor: pointer; 
    font-family: var(--font-display); font-size: 0.9rem;
}
.btn-pink { border-color: var(--pink); color: var(--text-main); background: transparent; }
.btn-pink:hover { background: var(--pink); color: #fff; box-shadow: 0 0 20px var(--pink); }

.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: transparent; border-color: var(--purple); color: var(--text-main); }

/* =========================================
   4. MARQUEE INTERATIVO
   ========================================= */
.partners-section { 
    padding: 40px 0; background: rgba(255, 255, 255, 0.02); 
    border-top: var(--glass-border); border-bottom: var(--glass-border); 
    position: relative; overflow: hidden; 
}
.marquee-wrapper { 
    width: 100%; overflow-x: hidden; white-space: nowrap; cursor: grab; 
    display: flex; align-items: center; padding: 10px 0; 
}
.marquee-wrapper:active { cursor: grabbing; }
.marquee-content { display: inline-flex; align-items: center; }
.partner-logo { 
    height: 40px; margin: 0 40px; filter: grayscale(100%) opacity(0.4); 
    transition: all 0.4s ease; user-select: none; -webkit-user-drag: none; 
}
.partner-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }

/* =========================================
   5. SEÇÕES & CARDS
   ========================================= */
/* Sobre */
.about-container { display: flex; gap: 50px; align-items: center; }
.about-text { flex: 1; }
.about-text p { font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 20px; }
.about-img { flex: 1; }
.about-img img { 
    width: 100%; border-radius: 20px; 
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}
.stats-grid { display: flex; gap: 40px; margin-top: 30px; border-top: 1px solid var(--glass-border); padding-top: 20px; }
.stats-grid h3 { font-size: 2.5rem; margin-bottom: 0; }

/* Serviços */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card-glass { 
    background: var(--glass-bg); border: var(--glass-border); padding: 40px 30px; 
    border-radius: 15px; transition: 0.3s; position: relative; overflow: hidden;
}
.card-glass:hover { transform: translateY(-10px); border-color: var(--pink); background: rgba(255,255,255,0.05); }
.service-icon { font-size: 3rem; margin-bottom: 20px; color: #555; transition: 0.3s; }
.card-glass:hover .service-icon { color: var(--pink); filter: drop-shadow(0 0 5px var(--pink)); }
.card-glass h3 { margin-bottom: 10px; color: var(--text-main); }
.card-glass p { color: var(--text-muted); }

/* =========================================
   6. PORTFÓLIO (BENTO & GALERIA)
   ========================================= */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 20px; }
.bento-item { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; border: var(--glass-border); }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.bento-item:hover img { transform: scale(1.1); filter: brightness(0.5); }
.bento-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: 0.4s; transform: translateY(20px);
}
.bento-item:hover .bento-overlay { opacity: 1; transform: translateY(0); }
.bento-overlay h4 { color: #fff; font-size: 1.4rem; }
.bento-large { grid-column: span 2; grid-row: span 1; }
.bento-tall { grid-column: span 1; grid-row: span 2; }

/* Galeria Página */
.portfolio-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { height: 280px; position: relative; border-radius: 15px; overflow: hidden; cursor: pointer; display: none; }
.gallery-item.visible { display: block; animation: fadeUp 0.5s ease; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); filter: brightness(0.4); }
.overlay-zoom { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s; color: #fff;
}
.gallery-item:hover .overlay-zoom { opacity: 1; }
@keyframes fadeUp { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }

/* =========================================
   7. SQUAD & PROFILE
   ========================================= */
.team-modern { text-align: center; transition: 0.3s; cursor: pointer; display: block; text-decoration: none; }
.team-modern:hover { transform: translateY(-5px); }
.team-img-wrapper { 
    height: 350px; border-radius: 20px; overflow: hidden; margin-bottom: 15px; 
    border: 1px solid rgba(255,255,255,0.1); 
}
.team-img-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.team-modern:hover img { filter: grayscale(0%); transform: scale(1.05); }
.team-modern h4 { color: var(--text-main); font-size: 1.2rem; }
.role-badge { 
    display: inline-block; font-size: 0.8rem; border: 1px solid var(--glass-border); 
    color: var(--text-muted); padding: 4px 10px; border-radius: 15px; margin-top: 5px; 
}
.team-modern:hover .role-badge { border-color: var(--pink); color: var(--pink); }

/* PROFILE PAGE */
.profile-hero { height: 350px; background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1200') center/cover; position: relative; }
.profile-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,0,10,0.3), var(--bg-color)); }
.profile-container { max-width: 1000px; margin: -100px auto 50px; position: relative; z-index: 10; padding: 0 20px; display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
.profile-sidebar { background: var(--glass-bg); backdrop-filter: blur(20px); border: var(--glass-border); border-radius: 20px; padding: 30px; text-align: center; }
.profile-avatar { width: 180px; height: 180px; border-radius: 50%; border: 4px solid var(--purple); margin: 0 auto 20px; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-socials-list { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.profile-socials-list a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.profile-socials-list a:hover { background: var(--purple); }
.profile-glass-card { background: var(--glass-bg); border: var(--glass-border); border-radius: 20px; padding: 30px; margin-bottom: 20px; }
.skill-item { margin-bottom: 15px; } 
.skill-info { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--text-main); }
.progress-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--pink)); border-radius: 10px; }

/* =========================================
   8. CONTATO & FOOTER
   ========================================= */
.contact-wrapper { display: flex; gap: 50px; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-form { flex: 1; background: var(--glass-bg); padding: 30px; border-radius: 20px; border: var(--glass-border); }
.contact-form input, .contact-form textarea { 
    width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3);
    color: white; outline: none; font-family: var(--font-body);
}
.light-mode .contact-form input, .light-mode .contact-form textarea { background: rgba(255,255,255,0.8); color: #000; border: 1px solid #ccc; }
.contact-form button { width: 100%; font-size: 1rem; color: #fff; } /* Correção botão */

footer { background: #000 !important; color: #aaa; padding: 60px 0 20px; margin-top: 80px; border-top: 1px solid #222; position: relative; z-index: 10; }
footer .logo { color: #fff !important; } /* Força logo branca */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--pink); padding-left: 5px; }
.social-icons a { margin-right: 15px; font-size: 1.5rem; color: #fff; }
.social-icons a:hover { color: var(--purple); }
.copyright { text-align: center; border-top: 1px solid #222; padding-top: 20px; font-size: 0.9rem; color: #555; }

/* MODAL */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 10001; justify-content: center; align-items: center; }
.modal img { max-width: 95%; max-height: 90vh; border: 2px solid var(--pink); border-radius: 5px; animation: zoom 0.3s; }
.close-modal { position: absolute; top: 30px; right: 30px; font-size: 3rem; color: white; cursor: pointer; }
@keyframes zoom { from {transform: scale(0.8); opacity:0;} to {transform: scale(1); opacity:1;} }

/* =========================================
   9. RESPONSIVO (MOBILE) - CORRIGIDO
   ========================================= */
@media (max-width: 900px) {
    /* Margens laterais seguras */
    .container { padding: 0 25px; }

    /* Menu Mobile */
    .nav-menu { 
        position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px); 
        background: var(--bg-color); flex-direction: column; justify-content: flex-start; 
        padding: 40px 25px; transition: 0.4s; z-index: 1000; border-top: 1px solid var(--glass-border);
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { width: 100%; text-align: center; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .hamburger { display: block; }
    
    /* Fontes e Layout */
    .hero-title { font-size: 3rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }

    .about-container, .contact-wrapper, .profile-container { flex-direction: column; }
    .profile-container { grid-template-columns: 1fr; margin-top: -60px; }
    
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .bento-large, .bento-tall { grid-column: span 1; grid-row: span 1; }
    
    .stats-grid { flex-wrap: wrap; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* =========================================
   VIP LOCK SCREEN (POPUP DE BLOQUEIO)
   ========================================= */
.vip-overlay {
    display: none; /* Começa escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96); /* Fundo quase preto total */
    backdrop-filter: blur(15px); /* Desfoque pesado no fundo */
    z-index: 999999; /* Fica acima de TUDO, inclusive menu e modal */
    justify-content: center;
    align-items: center;
    animation: fadeInLock 0.5s ease;
}

.vip-card {
    max-width: 450px;
    width: 90%;
    text-align: center;
    padding: 50px 30px;
    border: 1px solid var(--purple);
    box-shadow: 0 0 50px rgba(122, 0, 212, 0.3);
    border-radius: 20px;
    background: rgba(15, 5, 25, 0.8);
}

.lock-icon {
    font-size: 4rem;
    color: var(--purple);
    margin-bottom: 20px;
    animation: pulseLock 2s infinite;
}

.btn-whatsapp-large {
    display: block;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    transition: 0.3s;
}
.btn-whatsapp-large:hover {
    background: #1ebe57;
    transform: scale(1.05);
}

.divider {
    position: relative;
    margin: 20px 0;
    color: #666;
    font-size: 0.8rem;
}
.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #444;
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.input-group {
    display: flex;
    gap: 10px;
}
.input-group input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #000;
    color: white;
    outline: none;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}
.input-group input:focus { border-color: var(--pink); }

@keyframes fadeInLock { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseLock { 
    0% { transform: scale(1); text-shadow: 0 0 10px var(--purple); }
    50% { transform: scale(1.1); text-shadow: 0 0 30px var(--purple); }
    100% { transform: scale(1); text-shadow: 0 0 10px var(--purple); }
}

/* Responsivo para o input */
@media (max-width: 500px) {
    .input-group { flex-direction: column; }
    .input-group button { width: 100%; }
}