/* MICHAEL DEV - CSS COMPLETO (VERSÃO AGÊNCIA ELITE)
    Foco: Alta Conversão, Micro-interações e Efeitos Glow
*/

:root {
    --primary-bg: #050508;
    --secondary-bg: #0a0a16;
    --accent: #8f4fff;
    --accent-vibrant: #b180ff;
    --accent-glow: rgba(143, 79, 255, 0.5);
    --text: #ffffff;
    --subtitle: #a2a2c2;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- CORREÇÃO DARK/LIGHT MODE --- */
body.light-mode {
    --primary-bg: #f8f9ff;
    --secondary-bg: #ffffff;
    --text: #1a1a2e;
    --subtitle: #4a4a6a;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --accent-glow: rgba(143, 79, 255, 0.2);
}

/* --- RESET E GERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    background: var(--primary-bg); 
    color: var(--text); 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Fundo com Malha de Luz Dinâmica */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(143, 79, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(61, 26, 255, 0.08) 0%, transparent 40%);
    z-index: -1;
    animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* --- NAVEGAÇÃO --- */
nav { 
    background: rgba(5, 5, 8, 0.8); 
    backdrop-filter: blur(20px); 
    position: fixed; 
    top: 0; width: 100%; z-index: 1000; 
    border-bottom: 1px solid var(--glass-border); 
}
body.light-mode nav { background: rgba(255, 255, 255, 0.8); }

.nav-container { 
    max-width: 1200px; margin: 0 auto; padding: 10px 25px; 
    display: flex; justify-content: space-between; align-items: center; 
}

/* CORREÇÃO DA LOGO NA NAVBAR */
.nav-container .hero-logo {
    width: 150px;       /* Tamanho reduzido para não empurrar os links */
    height: auto;
    filter: none;       /* Sem brilho na navbar */
    animation: none;    /* Sem flutuação na navbar */
}

.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; text-shadow: none; }
.highlight { color: var(--accent-vibrant); }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9rem; transition: 0.3s; opacity: 0.7; }
.nav-links a:hover { color: var(--accent); opacity: 1; text-shadow: 0 0 8px var(--accent); }

.header-right { display: flex; align-items: center; gap: 20px; }
.btn-sm-nav { background: var(--accent); color: white; padding: 10px 20px; border-radius: 10px; text-decoration: none; font-size: 0.85rem; font-weight: bold; transition: var(--transition); box-shadow: 0 0 15px var(--accent-glow); }

/* UI DO BOTÃO DARK MODE */
.toggle-switch input { display: none; }
.toggle-switch label { 
    width: 44px; height: 22px; background: #2a2a3a; border-radius: 50px; 
    position: relative; cursor: pointer; display: block; border: 1px solid var(--glass-border);
}
.toggle-switch label::after { 
    content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; 
    background: white; border-radius: 50%; transition: 0.3s; 
}
.toggle-switch input:checked + label { background: var(--accent); }
.toggle-switch input:checked + label::after { left: 24px; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero { min-height: 100vh; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 100px 25px; gap: 50px; }
.hero-content { flex: 1.2; }
.badge { 
    background: rgba(143, 79, 255, 0.1); border: 1px solid var(--accent); color: var(--accent-vibrant); 
    padding: 6px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; margin-bottom: 25px; 
    display: inline-block; box-shadow: 0 0 20px rgba(143, 79, 255, 0.2);
    animation: floatingHero 3s ease-in-out infinite;
}
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 25px; font-weight: 800; }
.subtitle { font-size: 1.2rem; color: var(--subtitle); margin-bottom: 40px; max-width: 550px;  }

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.btn { padding: 18px 36px; border-radius: 16px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 12px; transition: var(--transition); border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(45deg, var(--accent), #5d26ff); color: white; box-shadow: 0 10px 30px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 45px var(--accent); }
.btn-outline { border: 2px solid var(--glass-border); color: var(--text); background: var(--glass); }
.btn-outline:hover { border-color: var(--accent); background: transparent; }

/* LOGO CENTRAL DA HERO */
.hero-image { flex: 1; position: relative; display: flex; justify-content: center; }
.hero-image .hero-logo { 
    width: 400px; 
    height: auto; 
    z-index: 2; 
    filter: none; 
    animation: floatingHero 3s ease-in-out infinite; 
}
.blob { position: absolute; width: 450px; height: 450px; background: var(--accent); filter: blur(100px); opacity: 0.2; z-index: 1; }

/* --- SOBRE E SECTION TITLES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 100px 25px; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 60px; font-weight: 800; }
.section-title.left { text-align: left; }

.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.img-main { width: 100%; border-radius: 24px; border: 1px solid var(--glass-border); filter: brightness(0.9); }

.experience-card { 
    position: absolute; bottom: -30px; right: -20px; 
    background: rgba(15, 15, 30, 0.85); backdrop-filter: blur(15px); 
    padding: 25px 35px; border-radius: 24px; border: 2px solid var(--accent); text-align: center;
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 15px rgba(143, 79, 255, 0.2);
    animation: floating 4s ease-in-out infinite; z-index: 10;
}
body.light-mode .experience-card { background: rgba(255, 255, 255, 0.9); }

.experience-card span { 
    font-size: 3.2rem; font-weight: 900; 
    background: linear-gradient(to bottom, #fff, var(--accent-vibrant));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: block; line-height: 1; filter: drop-shadow(0 0 10px var(--accent));
}
.experience-card p { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-top: 5px; }
body.light-mode .experience-card p { color: var(--text); }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.feature { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.feature i { color: var(--accent); }

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}
@keyframes floatingHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- SERVIÇOS --- */
.services { background: var(--secondary-bg); position: relative; overflow: hidden; padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { 
    background: var(--primary-bg); padding: 50px 40px; border-radius: 24px; 
    border: 1px solid var(--glass-border); transition: var(--transition); position: relative;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-10px); box-shadow: 0 15px 40px rgba(143, 79, 255, 0.15); }
.icon-box { 
    width: 65px; height: 65px; background: var(--accent); color: white; 
    border-radius: 18px; display: flex; align-items: center; justify-content: center; 
    font-size: 1.8rem; margin-bottom: 25px; box-shadow: 0 0 20px var(--accent-glow);
}

/* --- CARROSSEL --- */
.carousel-wrapper { position: relative; max-width: 1000px; margin: 0 auto; }
.carousel-container { overflow: hidden; border-radius: 28px; border: 1px solid var(--glass-border); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.carousel-track { display: flex; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.carousel-item { min-width: 100%; }
.project-glass-card { background: rgba(255, 255, 255, 0.02); position: relative; }
.project-img-container { height: 480px; position: relative; overflow: hidden; }
.project-img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(5, 5, 8, 0.7); display: flex; align-items: center; justify-content: center; 
    opacity: 0; transition: 0.4s; backdrop-filter: blur(8px);
}
.project-glass-card:hover .project-overlay { opacity: 1; }
.project-glass-card:hover .project-img-container img { transform: scale(1.05); }
.project-details { padding: 45px; text-align: center; }
.category { color: var(--accent-vibrant); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 10px; display: block; }

/* --- NOVO: DEPOIMENTOS --- */
/* Container da Seção */
.testimonials-section { 
    background: var(--secondary-bg); 
    padding: 80px 0; 
    overflow: hidden; /* Evita scrolls indesejados do carrossel */
}

/* Grid / Slider Container */
.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    align-items: stretch; 
}

/* O Card Individual */
.testimonial-card {
    background: var(--primary-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; 
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: grab;
}

.testimonial-card:active {
    cursor: grabbing;
}

/* Efeito de Hover */
.testimonial-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--accent); 
    box-shadow: 0 10px 30px rgba(143, 79, 255, 0.1); 
}

/* Ícone de Aspas */
.quote-icon { 
    font-size: 2rem; 
    color: var(--accent); 
    opacity: 0.3; 
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Texto do Depoimento */
.testimonial-text { 
    font-style: italic; 
    color: var(--subtitle); 
    margin-bottom: 30px; 
    line-height: 1.8;
    /* Força o preenchimento do espaço para alinhar o rodapé */
    flex: 1 1 auto; 
}

/* Bloco do Cliente (Foto + Nome) */
.client-info { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-top: auto; 
    flex-shrink: 0;
}

.client-avatar img { 
    width: 50px !important; 
    height: 50px !important; 
    min-width: 50px;
    max-width: 50px;
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid var(--accent); 
    display: block;
}

.client-info h4 { 
    font-size: 1rem; 
    margin: 0 0 2px 0; 
    color: #fff;
    font-weight: 600;
}

.client-info span { 
    font-size: 0.8rem; 
    color: var(--subtitle); 
}

/* --- AJUSTES ESPECÍFICOS PARA MOBILE --- */
@media (max-width: 768px) {
    .testimonials-grid {
        display: flex; /* Melhora compatibilidade com sliders mobile */
        gap: 0; 
    }

    .testimonial-card {
        padding: 30px;
        /* Aumentamos a altura mínima para que nenhum card fique pequeno */
        min-height: 420px; 
        /* Adicionamos uma margem lateral para não colar nas bordas do celular */
        margin: 15px; 
        width: calc(100% - 30px);
    }

    .testimonial-card:hover {
        transform: translateY(-5px);
    }
}

/* --- NOVO: FAQ (Perguntas Frequentes) --- */
.faq-section { padding: 100px 0; }
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; background: var(--glass); transition: var(--transition); }
.faq-item.active { border-color: var(--accent); background: rgba(143, 79, 255, 0.05); }

.faq-question {
    width: 100%; text-align: left; padding: 20px 25px; background: none; border: none;
    color: var(--text); font-weight: 600; font-size: 1.1rem; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question i { transition: transform 0.3s; font-size: 0.9rem; color: var(--accent); }
.faq-item.active .faq-question i { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 25px; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 25px; }
.faq-answer p { color: var(--subtitle); font-size: 0.95rem; line-height: 1.7; }

/* --- WHATSAPP E CONTROLES --- */
.whatsapp-float { 
    position: fixed; bottom: 30px; right: 30px; background: #25d366; 
    width: 65px; height: 65px; border-radius: 50%; display: flex; 
    justify-content: center; align-items: center; font-size: 2.2rem; color: white; 
    z-index: 1000; box-shadow: 0 0 25px rgba(37, 211, 102, 0.5); text-decoration: none;
    animation: pulseZap 2s infinite;
}
@keyframes pulseZap {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.carousel-controls { display: flex; justify-content: center; gap: 20px; margin-top: 30px; align-items: center; }
.nav-btn-custom { 
    background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); 
    width: 55px; height: 55px; border-radius: 50%; cursor: pointer; transition: 0.3s; 
}
.nav-btn-custom:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 20px var(--accent); transform: scale(1.1); color: white; }
.dot { width: 10px; height: 10px; background: var(--glass-border); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--accent); width: 35px; border-radius: 10px; box-shadow: 0 0 15px var(--accent); }

/* --- RODAPÉ ELITE (Melhorado) --- */
footer { 
    background: radial-gradient(circle at top, rgba(143, 79, 255, 0.05) 0%, var(--primary-bg) 70%);
    padding: 60px 25px 30px; border-top: 1px solid var(--glass-border); position: relative; margin-top: 50px;
}
.footer-cta {
    background: linear-gradient(90deg, #101025, #0a0a16); border: 1px solid var(--glass-border);
    max-width: 900px; margin: -120px auto 60px; padding: 40px; border-radius: 20px;
    text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); position: relative;
    border-top: 2px solid var(--accent);
}
.footer-cta h3 { font-size: 1.8rem; margin-bottom: 10px; }
.footer-cta p { color: var(--subtitle); margin-bottom: 25px; }
.footer-cta .btn { display: inline-flex; }

.footer-container { 
    max-width: 1200px; margin: 0 auto; display: grid; 
    grid-template-columns: 1.5fr 1fr 1.2fr; gap: 60px; 
}
.footer-brand p { color: var(--subtitle); font-size: 1rem; max-width: 320px; margin-top: 20px; }
.footer-links h4, .footer-newsletter h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 25px; color: #fff; }
.footer-links ul { list-style: none; }
.footer-links a { text-decoration: none; color: var(--subtitle); display: block; margin-bottom: 12px; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-vibrant); padding-left: 8px; }

/* Newsletter Form */
.newsletter-form { display: flex; gap: 10px; margin-bottom: 20px; }
.newsletter-form input { 
    flex: 1; padding: 12px 15px; border-radius: 10px; border: 1px solid var(--glass-border); 
    background: var(--glass); color: white; outline: none; 
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button { 
    background: var(--accent); border: none; color: white; width: 45px; border-radius: 10px; cursor: pointer; transition: 0.3s; 
}
.newsletter-form button:hover { background: var(--accent-vibrant); }
.contact-mini p { font-size: 0.9rem; color: var(--subtitle); margin-bottom: 8px; }
.contact-mini i { color: var(--accent); margin-right: 8px; }

.social-links { display: flex; gap: 15px; margin-top: 30px; }
.social-links a { 
    width: 45px; height: 45px; background: rgba(255,255,255,0.03); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center; 
    color: var(--text); font-size: 1.2rem; border: 1px solid var(--glass-border); transition: 0.4s;
}
.social-links a:hover { background: var(--accent); box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-5px); border-color: var(--accent-vibrant); color: white; }

.footer-bottom { text-align: center; margin-top: 80px; padding-top: 30px; border-top: 1px solid var(--glass-border); color: var(--subtitle); font-size: 0.9rem; }

/* --- RESPONSIVIDADE MOBILE MELHORADA --- */
@media (max-width: 900px) {
    .container { padding: 60px 20px; }
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: var(--primary-bg); backdrop-filter: blur(25px); flex-direction: column; align-items: center;
        padding-top: 50px; transition: 0.6s; z-index: 999;
    }
    .nav-links.active { left: 0; }
    
    .hero { flex-direction: column; text-align: center; padding: 140px 20px 60px; min-height: auto; }
    .hero-content { order: 2; width: 100%; }
    .hero-image { order: 1; width: 100%; margin-bottom: 40px; }
    
    /* Logo na Hero no Mobile */
    .hero-image .hero-logo { width: 280px; filter: none; }
    
    /* Logo na Navbar no Mobile */
    .nav-container .hero-logo { width: 120px; }

    .blob { width: 300px; height: 300px; }
    
    .hero-content h1 { font-size: 2.4rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; padding: 16px; }

    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .experience-card { 
        position: relative; right: 0; bottom: 0; margin: 20px auto 0;
        width: 100%; max-width: 280px; transform: none !important;
    }

    .project-img-container { height: 280px; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .footer-brand p { margin: 20px auto; }
    .social-links { justify-content: center; }
    
    .footer-cta { margin-top: 0; width: 100%; }
    
    .carousel-container { border-radius: 15px; }
    .project-details { padding: 25px 15px; }
}

/* Scrollbar Customizada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; border: 2px solid var(--primary-bg); }
/* ================================================================= */
/* --- ÁREA MOBILE FINAL: EFEITOS VISUAIS + CORREÇÕES DE BUGS --- */
/* ================================================================= */

/* --- PARTE 1: CORREÇÃO VISUAL GERAL (BUGS) --- */

/* Transforma o quadrado roxo borrado em um círculo suave */
.blob {
    border-radius: 50%;
    filter: blur(80px);
}

/* --- PARTE 2: EXPERIÊNCIA MOBILE (MUDANÇAS GERAIS) --- */
@media (max-width: 900px) {

    /* --- A. CORREÇÕES DA NAVBAR E HEADER --- */
    
    /* Remove botão roxo extra da navbar para caber o menu */
    .header-right .btn-sm-nav {
        display: none; 
    }

    /* Ajusta espaçamento entre Dark Mode e Menu Hambúrguer */
    .header-right {
        gap: 15px;
    }

    /* Reduz a logo para não quebrar a linha */
    .nav-container .hero-logo {
        width: 110px;
    }

    /* Ajuste do padding da navbar */
    .nav-container {
        padding: 15px 20px;
    }

    /* Ajuste do brilho de fundo (Blob) no celular */
    .blob {
        width: 250px; height: 250px;
        opacity: 0.4;
        top: 20%;
    }
    
    /* Garante que a logo fique na frente do brilho */
    .hero-image img {
        position: relative;
        z-index: 5;
    }

    /* --- B. EFEITO DE "APP" (SCROLL LATERAL) --- */
    
    /* Transforma grades verticais em sliders laterais (Netflix Style) */
    .services-grid, 
    .testimonials-grid, 
    .about-features {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 5px 40px 5px;
        margin: 0 -20px; /* Expande até a borda da tela */
        padding-left: 25px;
        padding-right: 25px;
        -webkit-overflow-scrolling: touch;
    }

    /* Esconde barra de rolagem */
    .services-grid::-webkit-scrollbar, 
    .testimonials-grid::-webkit-scrollbar {
        display: none; 
    }

    /* Cards travando no centro ao rolar */
    .service-card, 
    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: center;
        background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(10,10,22,0.9) 100%);
        border: 1px solid rgba(143, 79, 255, 0.2);
    }
    
    /* Features em grid compacto */
    .about-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 30px 0;
        overflow: visible;
    }

    /* --- C. BOTÕES E INTERAÇÕES --- */

    /* Botão Principal Pulsando (Chama Atenção) */
    .hero-buttons .btn-primary {
        animation: pulseCTA 2s infinite;
        position: relative;
        overflow: hidden;
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
    }

    /* Efeito de brilho passando no botão */
    .hero-buttons .btn-primary::after {
        content: '';
        position: absolute;
        top: 0; left: -100%;
        width: 100%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: shineBtn 3s infinite;
    }

    /* Feedback de toque (botão afunda levemente ao clicar) */
    .btn:active, 
    .service-card:active, 
    .project-glass-card:active,
    .faq-question:active {
        transform: scale(0.96);
        transition: transform 0.1s;
    }

    /* Títulos mais chamativos */
    .section-title {
        font-size: 2rem;
        background: linear-gradient(to right, #fff, var(--accent-vibrant));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 40px;
    }

    /* Navbar Mobile mais legível */
    .nav-links {
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(30px);
        border-left: 1px solid var(--accent-glow);
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    /* Footer ajustado */
    .footer-cta {
        margin: -80px 15px 40px;
        padding: 30px 20px;
    }
    
    .whatsapp-float {
        width: 60px; height: 60px;
        bottom: 20px; right: 20px;
    }
}

/* --- NOVAS ANIMAÇÕES (NECESSÁRIAS) --- */

@keyframes pulseCTA {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(143, 79, 255, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(143, 79, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(143, 79, 255, 0); }
}

@keyframes shineBtn {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}
/* --- CORREÇÃO FINAL MOBILE: REMOVER O BOTÃO DE TEMA --- */
@media (max-width: 900px) {
    
    /* Agora sim: Esconde a classe correta (.toggle-switch) no celular */
    .toggle-switch {
        display: none !important;
    }

    /* Garante que o Menu Hambúrguer vá para a ponta direita */
    .header-right {
        margin-left: auto; 
        gap: 0; /* Remove espaços vazios extras */
    }
    
    /* Ajuste fino para alinhar o ícone do menu verticalmente */
    .mobile-menu-btn {
        margin-left: 10px;
    }
}
/* ================================================================= */
/* --- CORREÇÃO FINAL: TRAVAMENTO DE TELA E ZOOM --- */
/* ================================================================= */

/* 1. Proíbe qualquer elemento de esticar a tela para os lados */
html, body {
    overflow-x: hidden !important; /* Corta o que estiver vazando */
    width: 100%;
    max-width: 100vw; /* Garante que a largura máxima é a tela do celular */
    position: relative; /* Mantém a estrutura fixa */
}

/* 2. Ajusta a responsividade do toque (remove delays de clique) */
html {
    touch-action: manipulation; 
    -webkit-text-size-adjust: 100%; /* Impede o iOS de mudar o tamanho da fonte sozinho */
}

/* 3. Garante que o brilho de fundo não crie barra de rolagem fantasma */
.blob {
    max-width: 100%; /* Nunca deixa o brilho ser maior que a tela */
    overflow: hidden;
}

/* 4. Previne que imagens quebrem o layout */
img {
    max-width: 100%;
    height: auto;
}
/* ================================================================= */
/* --- CORREÇÃO DE LEITURA: TEXTO POR CIMA DAS SOMBRAS --- */
/* ================================================================= */

@media (max-width: 900px) {

    /* 1. Força o Texto a ficar na frente de qualquer sombra ou fundo */
    .service-card h3, 
    .service-card p, 
    .service-card .icon-box,
    .testimonial-card p, 
    .testimonial-card h4, 
    .testimonial-card span,
    .hero-content h1, 
    .hero-content p {
        position: relative !important;
        z-index: 100 !important; /* Camada suprema */
    }

    /* 2. Adiciona uma "sombra de leitura" ATRÁS da letra (não na caixa) */
    /* Isso garante que o texto branco brilhe mesmo se o fundo for claro ou tiver sombra */
    .service-card p, 
    .testimonial-card p,
    .hero-content p {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
        opacity: 1 !important; /* Garante que o texto não fique transparente */
        color: #ffffff !important; /* Garante branco puro */
    }

    /* 3. Limpeza de sombras invasivas nos cards */
    .service-card, 
    .testimonial-card {
        /* Remove sombras internas (inset) que escurecem o meio do card */
        box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important; 
        
        /* Garante um fundo escuro limpo para contraste */
        background: #0a0a16 !important; 
    }
}
/* ================================================================= */
/* --- CORREÇÃO DE EMERGÊNCIA: SEÇÃO SOBRE (TEXTO ESCURO) --- */
/* ================================================================= */

@media (max-width: 900px) {
    
    /* 1. Traz o texto da seção SOBRE para a frente de tudo */
    .about-text, 
    .section-title,
    .highlight,
    .feature {
        position: relative !important;
        z-index: 999 !important; /* Força bruta para ficar acima da sombra */
        color: #ffffff !important; /* Garante branco puro */
    }

    /* 2. Cria contraste caso o fundo roxo vaze */
    .about-text p {
        position: relative !important;
        z-index: 999 !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important; /* Contraste forte */
    }

    /* 3. Contém a sombra do Card de cima para não invadir o texto de baixo */
    .experience-card {
        z-index: 1 !important; /* Rebaixa o card para trás do texto */
        box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important; /* Reduz o espalhamento da sombra */
        margin-bottom: 40px !important; /* Empurra o texto para longe da sombra */
    }
}
/* ================================================================= */
/* --- CORREÇÃO FINAL V3: TEXTOS CORTADOS E CORES --- */
/* ================================================================= */

@media (max-width: 900px) {

    /* 1. RESTAURAÇÃO DO TÍTULO DA HERO (Construo sites...) 
       Remove a cor branca forçada para voltar a funcionar o efeito de digitação/cores */
    .hero-content h1 {
        color: #ffffff !important; /* Branco base */
        z-index: 5 !important;
        text-shadow: none !important; /* Remove sombras estranhas se houver */
    }
    /* Garante que a parte roxa (highlight) continue roxa */
    .hero-content h1 .highlight {
        color: var(--accent-vibrant) !important;
        -webkit-text-fill-color: var(--accent-vibrant) !important;
    }

    /* 2. CORREÇÃO DOS TÍTULOS (Sobre, Serviços, Projetos)
       Remove o efeito degradê que estava cortando as letras e força visibilidade */
    .section-title {
        background: none !important; /* Remove o fundo que cortava o texto */
        -webkit-background-clip: initial !important; 
        -webkit-text-fill-color: initial !important; /* Remove transparência */
        color: #ffffff !important; /* Branco puro e sólido */
        
        position: relative !important;
        z-index: 100 !important; /* Traz para frente da sombra roxa */
        
        width: 100%;
        padding: 0 10px; /* Evita que a letra encoste na borda da tela */
        overflow: visible !important; /* Proíbe cortar o texto */
    }

    /* 3. VISIBILIDADE DO TEXTO "FOCADO NO SEU SUCESSO" 
       Força o texto a ficar em cima do brilho roxo */
    .about-text, 
    .about-text p,
    .about-text h2 {
        position: relative !important;
        z-index: 101 !important; /* Camada superior */
        color: #ffffff !important;
        text-shadow: 0 2px 5px rgba(0,0,0,0.9) !important; /* Contraste forte contra o fundo */
    }

    /* 4. PREVENÇÃO GERAL DE CORTES NA TELA */
    p, h1, h2, h3, span {
        overflow-wrap: break-word; /* Quebra a palavra se for maior que a tel */
        max-width: 100%;
    }
}
/* ================================================================= */
/* --- AJUSTE FINAL: CARD "+20 SITES" (BRANCO E FLUTUANTE) --- */
/* ================================================================= */

/* 1. Criamos uma animação exclusiva que força o movimento no mobile */
@keyframes floatingMobile {
    0%, 100% { transform: translateY(0) rotate(0deg) !important; }
    50% { transform: translateY(-15px) rotate(2deg) !important; }
}

@media (max-width: 900px) {
    
    .experience-card {
        /* Ativa a animação de flutuar (sobe e desce suavemente) */
        animation: floatingMobile 4s ease-in-out infinite !important;
        
        /* Remove qualquer fundo cinza escuro, deixando apenas o brilho/vidro */
        background: rgba(15, 15, 30, 0.9) !important;
        border: 1px solid var(--accent) !important;
    }

    /* 2. Deixa o número "+20" TOTALMENTE BRANCO e brilhante */
    .experience-card span {
        background: none !important; /* Remove o degradê que apagava a cor */
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #ffffff !important; /* Preenchimento branco sólido */
        color: #ffffff !important;
        
        /* Adiciona um brilho roxo atrás para destacar o branco */
        text-shadow: 0 0 20px rgba(143, 79, 255, 0.8) !important;
    }

    /* 3. Deixa o texto de baixo ("SITES ENTREGUES") branco também */
    .experience-card p {
        color: #ffffff !important;
        font-weight: 700 !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important; /* Sombra para leitura */
    }
}
/* ================================================================= */
/* --- CORREÇÃO FINAL: CARROSSEL E IMAGENS CORTADAS --- */
/* ================================================================= */

@media (max-width: 900px) {

    /* 1. Ajusta o "Card" do Projeto para caber perfeitamente na tela */
    .project-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important; /* Centraliza */
        border-radius: 15px; /* Mantém as bordas arredondadas */
        overflow: hidden; /* O que passar da borda é cortado */
    }

    /* 2. Arruma a caixa da imagem (evita que fique muito alta ou achatada) */
    .project-img-container {
        width: 100% !important;
        height: auto !important; /* Altura automática baseada na proporção */
        aspect-ratio: 16 / 9; /* Mantém formato retangular de vídeo/youtube */
    }

    /* 3. A MÁGICA: Faz a imagem se encaixar sem esticar ou cortar errado */
    .project-img-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Preenche todo o espaço sem distorcer */
        object-position: center top !important; /* Foca no topo/centro da imagem */
        display: block;
    }

    /* 4. Garante que o carrossel (track) não empurre a tela */
    .carousel-track {
        padding-left: 0 !important; /* Remove espaços extras na esquerda */
    }
    
    /* 5. Ajuste para os botões do carrossel não sumirem */
    .carousel-btn {
        width: 40px;
        height: 40px;
        z-index: 10; /* Garante que fique acima da imagem */
    }
}
/* ========================================== 
   SEÇÃO SHOPIFY EXPERT - ESTILO PREMIUM
   ========================================== */

/* Cor de destaque Verde (Remete a Lucro/Dinheiro) */
.highlight-green {
    color: #00ff88; 
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Banner de topo vibrante */
.shopify-top-banner {
    background: linear-gradient(90deg, #8f4fff, #00ff88) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Estilização dos Cards Shopify */
.shopify-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(143, 79, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Efeito ao passar o mouse (Hover) */
.shopify-card:hover {
    border-color: #00ff88 !important;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2) !important;
    background: rgba(0, 255, 136, 0.03) !important;
}

/* O ícone brilha em verde no hover */
.shopify-card:hover .shopify-icon {
    color: #00ff88 !important;
    filter: drop-shadow(0 0 15px #00ff88);
}

.shopify-icon {
    transition: var(--transition);
}

/* Badge de destaque */
.badge-shopify {
    background: rgba(0, 255, 136, 0.1) !important;
    color: #00ff88 !important;
    border: 1px solid rgba(0, 255, 136, 0.2);
    font-weight: 800;
}

/* Ajuste para o Modo Claro */
body.light-mode .shopify-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-mode .highlight-green {
    color: #00a85a;
    text-shadow: none;
}
/* ========================================== 
   RESPONSIVIDADE SHOPIFY (MOBILE)
   ========================================== */

@media (max-width: 900px) {
    /* Faz os cards da Shopify virarem um slider lateral no celular (Estilo App) */
    /* Se preferir que fiquem um abaixo do outro, mude 'flex-direction' para 'column' */
    .shopify-grid {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 20px 20px 40px 20px !important;
        margin: 0 -20px; /* Expande até a borda da tela */
        -webkit-overflow-scrolling: touch;
    }

    /* Esconde a barra de rolagem para um visual mais limpo */
    .shopify-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajusta o tamanho dos cards no celular */
    .shopify-card {
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: center;
        padding: 30px 20px !important;
        text-align: center;
    }

    /* Garante que o título da seção não corte */
    .section-title .highlight-green {
        display: inline-block;
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    }
    
    /* Feedback visual ao tocar no card no celular */
    .shopify-card:active {
        transform: scale(0.98);
        border-color: #00ff88 !important;
    }
}
/* ========================================== 
   ESTILIZAÇÃO NEWSLETTER (CLASSE CORRETA)
   ========================================== */

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-newsletter h4 {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.footer-newsletter p {
    color: var(--subtitle);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* O formulário em si */
.footer-newsletter .newsletter-form {
    display: flex;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    transition: var(--transition);
    max-width: 100%;
}

.footer-newsletter .newsletter-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(255, 255, 255, 0.05);
}

.footer-newsletter .newsletter-form input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.9rem;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.footer-newsletter .newsletter-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0; /* Impede o botão de amassar */
}

.footer-newsletter .newsletter-form button:hover {
    background: var(--accent-vibrant);
    transform: scale(1.1) rotate(10deg);
}

/* Ajuste para o Modo Claro */
body.light-mode .footer-newsletter .newsletter-form {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .footer-newsletter .newsletter-form input {
    color: #1a1a2e;
}
/* ========================================== 
   CORREÇÃO DE COR NO MOBILE
   ========================================== */

@media (max-width: 768px) {
    /* Garante que o destaque continue roxo no mobile */
    .highlight, 
    .footer-brand .logo .highlight,
    .hero-content h1 .highlight {
        color: var(--accent) !important;
        text-shadow: 0 0 15px var(--accent-glow) !important;
        -webkit-text-fill-color: var(--accent) !important; /* Para navegadores Safari/iPhone */
    }

    /* Ajuste específico para o logotipo no rodapé se ele estiver branco */
    .footer-brand .logo {
        color: var(--text) !important;
    }
}

/* Ajuste para o Modo Claro no Mobile */
body.light-mode .highlight {
    color: var(--accent) !important;
    text-shadow: none !important;
}