/* --- 1. CONFIGURAÇÕES GERAIS --- */
:root {
    --bg-color: #08020d; 
    --text-color: #ffffff;
    --text-dim: #d1b3ff; 
    --primary-color: #8c00ff; 
    --primary-dark: #5a00a3;
    --primary-glow: rgba(140, 0, 255, 0.5); 
    --glass-border: rgba(140, 0, 255, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden; /* TRAVA DE RESPONSIVIDADE: Impede vazamento lateral */
    width: 100%;
}

/* TRAVA DE RESPONSIVIDADE: Imagens e vídeos nunca ultrapassam a tela */
img, video { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 5px; }

.hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.show { opacity: 1; transform: translateY(0); }

/* --- 2. NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; max-width: 100%;
    padding: 8px 30px; background: rgba(8, 2, 13, 0.95); 
    border-bottom: 1px solid var(--glass-border); border-radius: 0; 
    z-index: 1000; backdrop-filter: blur(10px); box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { max-height: 100px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #ccc; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); text-shadow: 0 0 10px var(--primary-glow); }
.mobile-only { display: none; }
.btn-contact {
    background: #fff; color: var(--primary-dark); padding: 8px 20px; border-radius: 30px;
    text-decoration: none; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; transition: 0.3s; white-space: nowrap;
}
.btn-contact:hover { box-shadow: 0 0 15px var(--primary-glow); transform: scale(1.02); background: var(--primary-color); color: #fff; }
.hamburger { display: none; cursor: pointer; color: #fff; font-size: 1.5rem; }

/* --- 3. HERO SECTION --- */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 150px 20px 100px; position: relative; overflow: hidden;
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(140, 0, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 0, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(to top, rgba(80, 0, 150, 0.3) 0%, transparent 100%); pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 900px; }
.hero h1 { 
    font-size: clamp(2.2rem, 6vw, 4rem); /* Texto flúido automático */
    font-weight: 700; line-height: 1.2; margin-bottom: 25px; letter-spacing: -1px; color: #fff; min-height: 1.2em; text-shadow: 0 0 20px rgba(140,0,255,0.3); word-wrap: break-word; 
}
.typing-cursor { display: inline-block; width: 4px; height: 1em; background-color: var(--primary-color); margin-left: 5px; animation: blink 1s infinite; vertical-align: middle; box-shadow: 0 0 10px var(--primary-color); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero p { 
    font-size: clamp(0.95rem, 4vw, 1.1rem); /* Texto flúido automático */
    color: var(--text-dim); max-width: 700px; margin: 0 auto 50px; line-height: 1.6; padding: 0 15px; 
}
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-primary {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color)); color: #fff; padding: 16px 40px; border-radius: 50px; font-weight: 700; text-decoration: none;
    box-shadow: 0 0 30px var(--primary-glow); transition: 0.3s; font-size: 0.9rem; display: inline-block; border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 50px var(--primary-color); border-color: #fff; }
.btn-secondary {
    color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 600; opacity: 0.9; transition: 0.3s;
    background: rgba(20, 0, 40, 0.6); padding: 10px 20px; border-radius: 10px; border: 1px solid var(--glass-border);
}
.btn-secondary:hover { opacity: 1; border-color: var(--primary-color); box-shadow: 0 0 20px var(--primary-glow); }
.btn-secondary i { font-size: 1.2rem; color: var(--primary-color); }
.btn-secondary span { font-size: 0.7rem; display: block; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.btn-secondary strong { font-size: 0.9rem; display: block; }

/* --- 4. FAIXA TECH --- */
.tech-section {
    padding: 30px 0; background: #020005; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
    overflow: hidden; position: relative; z-index: 10; display: flex; width: 100%;
}
.tech-section::before, .tech-section::after { content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; pointer-events: none; }
.tech-section::before { left: 0; background: linear-gradient(to right, #020005, transparent); }
.tech-section::after { right: 0; background: linear-gradient(to left, #020005, transparent); }
.tech-track { display: flex; width: max-content; animation: scrollTech 30s linear infinite; }
.tech-item { width: 150px; display: flex; align-items: center; justify-content: center; color: #555; font-size: 1.8rem; transition: 0.3s; gap: 10px; flex-shrink: 0; }
.tech-item span { font-size: 1rem; font-weight: 700; letter-spacing: 1px; font-family: 'Fira Code', monospace; }
.tech-item:hover { color: var(--primary-color); text-shadow: 0 0 15px var(--primary-glow); transform: scale(1.1); }
@keyframes scrollTech { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 5. PROMOÇÃO --- */
.promo-section { 
    padding: 120px 5%; max-width: 1400px; margin: 0 auto; display: flex; 
    align-items: center; justify-content: center; gap: 60px; position: relative; flex-wrap: wrap; /* Flex-wrap impede que o layout quebre */
}
.promo-content {
    flex: 1 1 320px; max-width: 600px; background: linear-gradient(rgba(10,0,20,0.95), rgba(40,0,60,0.9)); padding: 50px; border-radius: 30px; 
    border: 1px solid var(--glass-border); box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(140,0,255,0.1); backdrop-filter: blur(5px);
}
.promo-tag { background: rgba(140, 0, 255, 0.2); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 25px; border: 1px solid var(--primary-color); box-shadow: 0 0 10px var(--primary-glow); display: inline-block;}
.promo-title { font-size: clamp(2rem, 5vw, 3rem); color: #fff; line-height: 1.1; margin-bottom: 20px; }
.promo-price { font-size: 1.5rem; color: var(--text-dim); margin-bottom: 30px; }
.price-big { font-size: clamp(2.5rem, 8vw, 4rem); color: #fff; font-weight: 700; display: block; text-shadow: 0 0 30px var(--primary-color); }

.promo-video-wrapper { flex: 1 1 320px; max-width: 500px; position: relative; perspective: 1500px; display: flex; justify-content: center; }
.video-frame.video-3d-target {
    width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 30px; border: 1px solid rgba(140, 0, 255, 0.3); overflow: hidden; position: relative;
    opacity: 0; transform: rotateX(60deg) translateY(100px) scale(0.8); box-shadow: 0 0 0 rgba(140, 0, 255, 0); filter: brightness(0.5) blur(5px);
    transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame.active-3d {
    opacity: 1; transform: rotateX(0deg) translateY(0) scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(140, 0, 255, 0.6), 0 0 60px rgba(140, 0, 255, 0.3);
    filter: brightness(1) blur(0); border-color: #fff;
}
.video-glow {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg); transition: 0.5s; pointer-events: none;
}
.video-frame.active-3d:hover .video-glow { left: 150%; transition: 1s ease; }

/* --- PORTFÓLIO --- */
.portfolio-section { padding: 50px 0 120px; overflow: hidden; perspective: 1200px; width: 100%; }
.swiper { width: 100%; padding-top: 60px; padding-bottom: 80px; transform-style: preserve-3d; }
.swiper-slide {
    width: min(85vw, 400px) !important; /* Ajuste automático para mobile */
    height: 450px; 
    border-radius: 20px;
    background: #050505; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    display: flex; flex-direction: column; overflow: hidden; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
    transition: all 0.4s ease;
}
.swiper-slide-active {
    border-color: var(--primary-color); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 50px var(--primary-glow); 
    transform: translateY(-10px); z-index: 2; 
    -webkit-box-reflect: below 10px linear-gradient(transparent, transparent 40%, rgba(140,0,255,0.1));
}
.project-image { width: 100%; height: 60%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--glass-border); }
.project-info { padding: 25px; display: flex; flex-direction: column; justify-content: center; height: 40%; background: linear-gradient(to top, rgba(80,0,150,0.2), transparent); }
.project-info h4 { font-size: 1.4rem; color: #fff; margin-bottom: 8px; font-weight: 600; }
.project-info p { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 15px; line-height: 1.4; }
.project-link { color: #fff; text-decoration: none; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1px; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.3); }
.swiper-pagination-bullet-active { background: var(--primary-color); width: 20px; border-radius: 5px; box-shadow: 0 0 10px var(--primary-glow); }

/* --- CLASSES DE DELAY --- */
.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }

/* --- SERVIÇOS --- */
.services-section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-subtitle { font-size: 0.9rem; color: var(--primary-color); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: block; font-weight: 700; }
.section-title { font-size: clamp(2rem, 5vw, 3rem); color: #fff; font-weight: 400; }
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Geração de colunas automáticas */
    gap: 40px; 
}
.service-card {
    background: rgba(10, 5, 20, 0.5); border-radius: 24px; padding: 40px; transition: 0.4s ease; position: relative; overflow: hidden;
    border: 1px solid var(--glass-border); box-shadow: 0 0 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(140,0,255,0.05);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 0 50px var(--primary-glow), 0 0 80px rgba(140, 0, 255, 0.1); border-color: #fff; }
.icon-box {
    width: 60px; height: 60px; background: rgba(140, 0, 255, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; font-size: 1.5rem; color: var(--primary-color); border: 1px solid var(--glass-border); transition: 0.3s;
}
.service-card:hover .icon-box { background: var(--primary-color); color: #fff; box-shadow: 0 0 20px var(--primary-glow); }
.service-card h3 { font-size: 1.8rem; color: #fff; margin-bottom: 15px; }
.service-card p { font-size: 1rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 25px; }
.service-list { list-style: none; padding: 0; }
.service-list li { display: flex; align-items: center; gap: 10px; color: #ccc; font-size: 0.9rem; margin-bottom: 10px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
.service-list li i { color: var(--primary-color); font-size: 0.8rem; }

/* --- PROCESSO --- */
.process-section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.process-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Geração de colunas automáticas */
    gap: 20px; 
}
.process-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px;
    position: relative; overflow: hidden; transition: 0.4s ease; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px;
}
.process-card:hover { border-color: var(--primary-color); background: rgba(140, 0, 255, 0.05); box-shadow: 0 0 30px var(--primary-glow); }
.process-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%); opacity: 0; transition: 0.5s; pointer-events: none; }
.process-card:hover::before { opacity: 0.4; }
.step-number { font-size: 1rem; color: #fff; background: rgba(255, 255, 255, 0.1); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 30px; font-weight: 700; }
.process-content h3 { font-size: 1.8rem; margin-bottom: 15px; font-weight: 400; }
.process-content p { font-size: 1rem; color: var(--text-dim); line-height: 1.6; max-width: 90%; }
.card-visual { position: absolute; bottom: -20px; right: -20px; font-size: 6rem; color: rgba(140, 0, 255, 0.05); transform: rotate(-15deg); transition: 0.5s; }
.process-card:hover .card-visual { transform: rotate(0deg) scale(1.1); color: rgba(140, 0, 255, 0.15); }

/* --- EQUIPE --- */
.team-section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Geração de colunas automáticas */
    gap: 20px; justify-content: center; 
}
.team-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px 15px; text-align: center;
    transition: 0.4s ease; position: relative; overflow: hidden; backdrop-filter: blur(10px); cursor: pointer;
}
.team-card:hover { transform: translateY(-10px); border-color: var(--primary-color); box-shadow: 0 0 40px var(--primary-glow); }
.member-img-box { width: 140px; height: 140px; margin: 0 auto 25px; position: relative; border-radius: 50%; overflow: hidden; border: 2px solid var(--glass-border); }
.member-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transition: 0.4s; filter: grayscale(100%); }
.team-card:hover .member-img { filter: grayscale(0%); border-color: #fff; box-shadow: 0 0 30px var(--primary-glow); }
.member-name { font-size: 1.3rem; color: #fff; margin-bottom: 5px; font-weight: 700; }
.member-role { font-size: 0.8rem; color: var(--primary-color); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; display: block; font-weight: 600; }
.tech-stack { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 25px; }
.tech-badge { background: rgba(140, 0, 255, 0.1); color: #ccc; font-size: 0.7rem; padding: 4px 10px; border-radius: 12px; border: 1px solid var(--glass-border); }
.member-social { display: flex; justify-content: center; gap: 20px; }
.member-social a { color: #666; font-size: 1.2rem; transition: 0.3s; }
.member-social a:hover { color: var(--primary-color); transform: scale(1.2); text-shadow: 0 0 10px var(--primary-glow); }
.member-description {
    max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 0; color: #d1b3ff; font-size: 0.85rem; line-height: 1.5; background: rgba(140, 0, 255, 0.05); border-radius: 10px;
}
.member-description p { margin: 0; }
.team-card.show-desc .member-description { max-height: 200px; opacity: 1; margin-top: 20px; padding: 15px; border: 1px solid var(--glass-border); }

/* --- FAQ --- */
.faq-section { padding: 50px 5% 120px; max-width: 900px; margin: 0 auto; }
.accordion-item { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border); margin-bottom: 15px; border-radius: 15px; overflow: hidden; transition: 0.3s; }
.accordion-item:hover { border-color: var(--primary-color); }
.accordion-header { padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 600; font-size: 1.1rem; transition: 0.3s; }
.accordion-header i { color: var(--primary-color); transition: 0.3s; }
.accordion-header.active { background: rgba(140, 0, 255, 0.1); }
.accordion-header.active i { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: rgba(0, 0, 0, 0.2); }
.accordion-body p { padding: 20px 25px; color: var(--text-dim); line-height: 1.6; font-size: 0.95rem; margin: 0; }

.floating-btn {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); transition: 0.3s; z-index: 999;
}
.floating-btn:hover { transform: scale(1.1); box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6); }

/* --- FOOTER --- */
.main-footer { background: #05010a; border-top: 1px solid var(--glass-border); padding: 80px 0 0; margin-top: 100px; position: relative; font-size: 0.9rem; }
.main-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-color), transparent); opacity: 0.5; }
.footer-content { 
    max-width: 1200px; margin: 0 auto; padding: 0 5% 60px; 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; /* Alinhamento correto aqui! */
}
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 25px; position: relative; padding-left: 15px; }
.footer-col h4::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 100%; background: var(--primary-color); border-radius: 2px; box-shadow: 0 0 10px var(--primary-glow); }
.footer-logo { max-height: 90px; width: auto; margin-bottom: 25px; display: block; }
.footer-text { color: var(--text-dim); line-height: 1.6; margin-bottom: 25px; max-width: 250px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #888; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-col ul li a:hover { color: var(--primary-color); transform: translateX(5px); text-shadow: 0 0 10px var(--primary-glow); }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.contact-list i { color: var(--primary-color); width: 20px; text-align: center; flex-shrink: 0; }
.contact-list a, .contact-list span { color: #ccc; text-decoration: none; transition: 0.3s; word-break: break-word; }
.contact-list a:hover { color: var(--primary-color); }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; transition: 0.3s; border: 1px solid var(--glass-border); text-decoration: none; }
.social-links a:hover { background: var(--primary-color); transform: translateY(-5px); box-shadow: 0 0 15px var(--primary-glow); }
.footer-bottom { background: #000; padding: 20px 5%; display: flex; justify-content: center; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); color: #555; font-size: 0.8rem; }

/* --- RESPONSIVO (Tablets e Celulares) --- */
@media (max-width: 900px) {
    .navbar { padding: 10px 20px; }
    .logo-img { max-height: 45px; }
    .nav-links { 
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(10, 0, 20, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 30px; gap: 20px;
        border-bottom: 1px solid var(--glass-border);
        display: none; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    }
    .nav-links.active { display: flex; animation: slideDown 0.3s ease; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    .mobile-only { display: block; }
    .hamburger { display: block; }
    .btn-contact { display: none; } 

    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    
    .promo-section { flex-direction: column; text-align: center; padding: 80px 20px; gap: 40px; }
    .promo-content { margin-bottom: 0; width: 100%; padding: 30px; }
    .video-frame { max-width: 80%; margin: 0 auto; }
    
    .footer-content { text-align: center; }
    .footer-col h4::before { display: none; }
    .footer-col h4 { padding-left: 0; }
    .footer-text { margin: 0 auto 25px; }
    .social-links { justify-content: center; }
    .contact-list li { justify-content: center; }
}