/* --- CSS Reset & Variáveis --- */
:root {
    --primary-color: #7c3aed; /* Roxo Vibrante */
    --secondary-color: #1e293b; /* Azul escuro/Cinza */
    --accent-color: #f59e0b; /* Laranja para CTA */
    --text-color: #334155;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; /* Compensa a altura do header fixo */
    overflow-x: hidden; /* Garante que nada saia da tela horizontalmente */
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden; /* Previne rolagem horizontal indesejada */
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* Acessibilidade: Foco visível para navegação por teclado */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* --- Utilitários --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover { background-color: #6d28d9; }

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-color);
}
.btn-secondary:hover { background-color: #cbd5e1; }

.btn-cta {
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-cta:hover { transform: translateY(-2px); }

/* Efeito de Brilho (Shine) no botão */
.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-cta:hover::after {
    left: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #64748b;
}

section { padding: 80px 0; }
section { padding: 80px 0; overflow: hidden; /* Previne que animações causem rolagem horizontal */ }

/* Performance: Otimização de Renderização (Content Visibility) */
/* O navegador pula a renderização dessas seções até que estejam perto da tela */
.blog-section, .portfolio, .testimonials-section, .education-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px; /* Estimativa de altura para evitar scroll jumping */
}

/* --- 1. Header --- */
header {
    background: var(--bg-white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Aumentado para caber o logo maior */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre o logo e o nome */
    font-family: 'Orbitron', sans-serif; /* Fonte tecnológica para destaque */
    letter-spacing: 1px;
}

.logo span {
    /* Efeito de brilho (Glow) */
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
    transition: var(--transition);
}

.logo:hover span {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.8), 0 0 40px rgba(124, 58, 237, 0.4);
}

.logo img {
    max-height: 85px; /* Aumentado significativamente */
    width: auto;
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--secondary-color); }
.nav-links a:hover { color: var(--primary-color); }

/* --- 2. Hero Section --- */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background-image: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.85)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center top;
    text-align: center;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: white;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    word-wrap: break-word; /* Evita que palavras longas quebrem o layout no mobile */
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* --- Hero Intro Animation Triggers --- */
body.loaded .hero h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

body.loaded .hero p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Animação do Botão no Hero */
.hero .btn-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

body.loaded .hero .btn-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Garante que o hover do botão continue rápido após a animação de entrada */
body.loaded .hero .btn-cta:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- 2.7. Partners Section (Logo Scroller) --- */
.partners-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.partners-title {
    text-align: center;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.logo-scroller {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.logo-scroller__inner {
    display: flex;
    gap: 4rem;
    width: max-content;
    flex-wrap: nowrap;
}

.logo-scroller[data-animated="true"] .logo-scroller__inner {
    animation: scroll 40s linear infinite;
}

.logo-scroller:hover .logo-scroller__inner {
    animation-play-state: paused;
}

.logo-scroller img {
    height: 120px;
    max-width: 250px;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.logo-scroller img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 2rem)); /* 2rem is half the gap */
    }
}

/* --- 3. Serviços --- */
#servicos {
    background: radial-gradient(circle at 10% 20%, rgb(224, 242, 254) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgb(224, 242, 254) 0%, transparent 20%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card h3 { margin-bottom: 15px; color: var(--secondary-color); }

/* --- Service Icons --- */
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(124, 58, 237, 0.1); /* Primary color with opacity */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* --- Service Images (Standardized) --- */
.service-img {
    width: 100%;
    height: 180px; /* Altura fixa para padronizar */
    object-fit: cover; /* Corta a imagem para preencher sem distorcer */
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #e2e8f0; /* Cor de fundo enquanto carrega */
}

/* --- Service List Items Reveal --- */
.service-list {
    margin-top: 20px;
    text-align: left;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
}

.service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #64748b;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.service-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

.service-card.show .service-list li { opacity: 1; transform: translateX(0); }
.service-card.show .service-list li:nth-child(1) { transition-delay: 0.2s; }
.service-card.show .service-list li:nth-child(2) { transition-delay: 0.4s; }
.service-card.show .service-list li:nth-child(3) { transition-delay: 0.6s; }

/* --- 4. Portfólio --- */
.portfolio { background: var(--bg-white); }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ajustado para telas menores */
    gap: 20px;
}

.project-card {
    position: relative;
    height: 250px;
    background-color: #cbd5e1; /* Placeholder cinza */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: bold;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.9);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.project-card:hover .project-info { transform: translateY(0); }

/* --- 5. Educação & 6. Diferenciais --- */
.education-section {
    background: var(--secondary-color);
    color: white;
}

.education-section .section-title { color: white; }
.education-section .section-subtitle { color: #94a3b8; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--accent-color); }

/* --- 7. FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question span {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden; /* Mantido para o efeito de acordeão */
    transition: max-height 0.3s ease;
    padding: 0 20px;
    background: #f1f5f9;
}

.faq-answer p { padding: 20px 0; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-question span {
    transform: rotate(135deg); /* Transforma o '+' em 'x' */
}

/* --- 8. Formulário --- */
.contact-section { background: var(--bg-white); }
.form-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus { outline: 2px solid var(--primary-color); border-color: transparent; }

/* --- 9. Footer --- */
footer {
    background: var(--secondary-color);
    color: #94a3b8;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
    text-align: left;
}

.footer-logo {
    max-height: 100px; /* Logo maior no rodapé */
    width: auto;
    margin-bottom: 15px;
}

.footer-col h4 { 
    color: white; 
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}
.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; font-size: 0.9rem; }

.footer-col { flex: 1; min-width: 200px; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; transition: var(--transition); }

.social-links { display: flex; gap: 10px; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover { background: var(--primary-color); transform: translateY(-3px); }
.social-links svg { width: 18px; height: 18px; fill: white; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    section { padding: 60px 0; } /* Espaçamento menor no mobile */
    
    /* Performance: Imagem de fundo menor para mobile */
    .hero {
        background-image: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.85)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=800&q=80');
    }

    /* Ajuste do Logo para Mobile */
    nav { height: 70px; } /* Altura reduzida no mobile */
    .logo { font-size: 0.9rem; gap: 8px; }
    .logo img { max-height: 40px; }
    
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Overlay Escuro */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999; /* Atrás do header (1000) */
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        position: fixed;
        left: -100%; 
        top: 70px; /* Altura ajustada para bater com o header mobile */
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-links.active { left: 0; }

    .nav-links a {
        margin: 16px 0;
        display: block;
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    }
    
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Animação em Cascata (Staggered) */
    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }

    .nav-links .btn {
        display: inline-block;
        margin-top: 10px;
        width: 80%;
    }

    .footer-content { flex-direction: column; gap: 30px; }

    /* Ajuste de Logos no Mobile para não estourar a largura */
    .logo-scroller img {
        height: 80px;
        max-width: 180px;
    }
}

/* --- Fade-in Animation --- */
.hidden, .hidden-left, .hidden-right, .scale-up, .blur-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.8s ease;
    will-change: opacity, transform;
}

/* Variações de Animação */
.hidden { transform: translateY(30px); } /* Padrão (baixo para cima) */
.hidden-left { transform: translateX(-50px); } /* Esquerda para direita */
.hidden-right { transform: translateX(50px); } /* Direita para esquerda */
.scale-up { transform: scale(0.8); } /* Zoom In */
.blur-in { filter: blur(10px); transform: translateY(20px); } /* Blur + Fade */

/* Estado Ativo (Reseta todas as transformações) */
.show { 
    opacity: 1; 
    transform: translate(0) scale(1); 
    filter: blur(0); 
}

/* Staggered Delays (Efeito Cascata) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 10px rgba(0,0,0,0.3), 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 4px 10px rgba(0,0,0,0.3), 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 10px rgba(0,0,0,0.3), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    margin-top: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 100px; /* Acima do botão do WhatsApp */
    right: 38px; /* Centralizado com o botão do WhatsApp */
    background-color: var(--secondary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Typewriter Effect --- */
.typewriter-text {
    color: var(--accent-color); /* Define a cor do texto digitado */
    /* color: #00ff00;  <-- Exemplo: Se quiser verde neon, use assim */
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.7), 0 0 20px rgba(245, 158, 11, 0.3); /* Efeito de brilho */
}

.cursor {
    display: inline-block;
    background-color: var(--accent-color);
    width: 5px;
    margin-left: 5px;
    animation: blink 1s infinite;
    box-shadow: 0 0 10px var(--accent-color); /* Efeito de brilho neon */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Cursor sólido enquanto digita */
.cursor.typing {
    animation: none;
    opacity: 1;
}

/* --- Sound Toggle Button --- */
.sound-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.sound-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* --- Stats Section --- */
.stats-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* --- Testimonials Carousel --- */
.testimonials-section {
    background-color: var(--bg-light);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #475569;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h5 {
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.9rem;
    color: #94a3b8;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover { background: var(--primary-color); color: white; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.dot { width: 10px; height: 10px; background-color: #cbd5e1; border-radius: 50%; cursor: pointer; transition: var(--transition); }
.dot.active { background-color: var(--primary-color); transform: scale(1.2); }

/* --- Discount Modal --- */
.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 2000; /* Acima de tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover { color: var(--secondary-color); }
.modal h2 { color: var(--primary-color); margin-bottom: 15px; }
.modal p { margin-bottom: 25px; color: var(--text-color); }

/* --- Glitch Effect --- */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip-path: inset(0 0 0 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip-path: inset(0 0 0 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(60% 0 20% 0); }
    100% { clip-path: inset(5% 0 80% 0); }
}

/* --- Blog Section --- */
.blog-section {
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ajustado para telas menores */
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.blog-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-content p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* --- Blog Search --- */
.blog-search {
    max-width: 500px;
    margin: 0 auto 40px auto;
    position: relative;
}

.blog-search input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.blog-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

/* --- Blog Pagination --- */
.blog-pagination, .services-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination-btn {
    background: white;
    border: 1px solid #cbd5e1;
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-indicator, #service-page-indicator {
    font-weight: 600;
    color: #64748b;
}

/* --- Article Page Styles --- */
.article-page {
    padding-top: 120px; /* Espaço para o header fixo */
    padding-bottom: 80px;
}

.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover { transform: translateX(-5px); }

.article-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 15px 0;
    line-height: 1.2;
}

.article-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 15px;
}

.article-image {
    max-width: 1000px;
    margin: 0 auto 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-color);
}

.article-content p { margin-bottom: 25px; }
.article-content .lead { font-size: 1.3rem; font-weight: 300; color: var(--secondary-color); }
.article-content h2 { color: var(--secondary-color); margin: 40px 0 20px; font-size: 1.8rem; }
.article-content ul { list-style: disc; margin-left: 20px; margin-bottom: 25px; }
.article-content li { margin-bottom: 10px; }

.article-cta {
    background: #eff6ff;
    padding: 40px;
    border-radius: 10px;
    margin-top: 60px;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.article-cta h3 { margin-bottom: 10px; color: var(--primary-color); }

/* --- Reading Progress Bar --- */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001; /* Acima do header */
}

.progress-bar {
    height: 4px;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- CRM Highlight Section --- */
.crm-section {
    background-color: #f8fafc; /* Fundo levemente diferente para destaque */
    padding: 100px 0;
    overflow: hidden;
}

.crm-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.crm-content {
    flex: 1;
    min-width: 300px;
}

.crm-content h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.crm-features-list {
    margin-bottom: 40px;
}

.crm-features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-color);
    font-weight: 500;
}

.crm-features-list li svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    margin-right: 15px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    padding: 4px;
}

.crm-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.crm-visual img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.5s ease;
}

.crm-visual:hover img {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .crm-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .crm-content h2, .crm-content p, .crm-content .section-title, .crm-content .section-subtitle {
        text-align: center !important;
    }

    .crm-features-list {
        display: inline-block;
        text-align: left;
    }
}

/* --- Pricing Section (Consultoria SEO) --- */
.pricing-section { background-color: var(--bg-light); }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.pricing-card.featured { border: 2px solid var(--primary-color); transform: scale(1.05); z-index: 1; }
.pricing-card.featured:hover { transform: scale(1.05) translateY(-10px); }
.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}
.pricing-header { text-align: center; margin-bottom: 30px; }
.pricing-header h3 { color: var(--secondary-color); font-size: 1.5rem; margin-bottom: 15px; }
.price { font-size: 3rem; font-weight: 800; color: var(--primary-color); display: flex; align-items: center; justify-content: center; gap: 5px; }
.price span { font-size: 1rem; color: #94a3b8; font-weight: 500; }
.pricing-features { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.pricing-features li { margin-bottom: 15px; color: var(--text-color); display: flex; align-items: center; gap: 10px; }
.pricing-features li::before { content: '✓'; color: var(--primary-color); font-weight: bold; }
.pricing-card .btn { width: 100%; }

@media (max-width: 768px) {
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-10px); }
}

/* --- Modal Grid & Link Button --- */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    text-align: left;
}
@media (max-width: 600px) { .modal-grid { grid-template-columns: 1fr; } }

.btn-link {
    background: none;
    border: none;
    color: #64748b;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 15px;
    display: block;
    width: 100%;
    transition: var(--transition);
}
.btn-link:hover { color: var(--primary-color); }

/* --- Modal List Hover Effects --- */
.modal-grid ul li {
    transition: var(--transition);
    cursor: default;
}
.modal-grid ul li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* --- Acessibilidade: Redução de Movimento --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}