/* --- VARIAVEIS GLOBAIS --- */
:root {
    --primary-dark-1: #010C36;
    --primary-dark-2: #051252;
    --primary-dark-3: #121671;
    --accent-cyan-1: #06ECFC;
    --accent-cyan-2: #02ACF9;
    --text-light: #E0E0E0;
    --text-dark: #333;
    --text-muted: #a0a0a0;
    
    --accent-sites: #39FF14;
    --accent-automacoes: #FF00FF;
    --accent-aplicativos: #FFA500;
    --accent-iptv: #DC143C;
    --accent-sobre: #FFFFFF;
    --accent-contato: #02ACF9;

    --font-family: 'Roboto Mono', monospace;
}

/* --- ESTILOS DE BASE E RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-dark-1);
    color: var(--text-light);
    background: linear-gradient(-45deg, var(--primary-dark-1), var(--primary-dark-2), var(--primary-dark-3), var(--primary-dark-1));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0;
    animation: fadeIn 0.7s ease-in-out forwards;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- HEADER E NAVEGAÇÃO --- */
header {
    padding: 25px 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(1, 12, 54, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(6, 236, 252, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan-1);
    text-decoration: none;
    text-shadow: 0 0 10px var(--accent-cyan-1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan-1);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-cyan-1);
    text-shadow: 0 0 5px var(--accent-cyan-1);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* --- ESTRUTURA PRINCIPAL --- */
main {
    padding-top: 80px;
    min-height: calc(100vh - 159px);
}

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-cyan-1);
    text-shadow: 0 0 10px var(--accent-cyan-1);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.2rem;
    margin: 0;
}

p {
    line-height: 1.8;
    color: var(--text-muted);
}

/* --- HERO SECTION (HOME) --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

/* --- BOTÕES --- */
.btn,
.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn {
    background-color: var(--accent-cyan-1);
    color: var(--primary-dark-1);
    border: 2px solid var(--accent-cyan-1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-cyan-1);
    border: 2px solid var(--accent-cyan-1);
}

.btn:hover,
.btn-secondary:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 20px var(--accent-cyan-1);
}

/* --- SERVICES OVERVIEW (HOME) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(18, 22, 113, 0.3);
    padding: 40px;
    border: 1px solid rgba(6, 236, 252, 0.1);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan-1);
}

.service-card h3 {
    color: var(--accent-cyan-2);
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.service-card .btn-secondary {
    font-size: 0.9rem;
    padding: 10px 20px;
}

/* --- ESTILOS DE PÁGINAS DE SERVIÇO (PADRÃO) --- */
.service-page-hero {
    padding-top: 50px;
    padding-bottom: 50px;
}

.service-page-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

.service-details {
    padding: 50px 0;
}

.detail-block {
    background: rgba(18, 22, 113, 0.3);
    padding: 30px;
    border-left: 5px solid;
    border-radius: 5px;
    margin-bottom: 30px;
}

.detail-block p {
    color: var(--text-light);
}

/* --- CORES DE DESTAQUE POR PÁGINA --- */
.page-sites .detail-block { border-color: var(--accent-sites); }
.page-sites .service-page-hero h1 { color: var(--accent-sites); text-shadow: 0 0 10px var(--accent-sites); }
.page-automacoes .detail-block { border-color: var(--accent-automacoes); }
.page-automacoes .service-page-hero h1 { color: var(--accent-automacoes); text-shadow: 0 0 10px var(--accent-automacoes); }
.page-aplicativos .detail-block { border-color: var(--accent-aplicativos); }
.page-aplicativos .service-page-hero h1 { color: var(--accent-aplicativos); text-shadow: 0 0 10px var(--accent-aplicativos); }
.page-iptv .service-page-hero h1 { color: var(--accent-iptv); text-shadow: 0 0 10px var(--accent-iptv); }
.page-sobre .service-page-hero h1 { color: var(--accent-sobre); text-shadow: 0 0 10px var(--accent-sobre); }
.page-contato .service-page-hero h1 { color: var(--accent-contato); text-shadow: 0 0 10px var(--accent-contato); }

/* --- PÁGINA SOBRE NÓS --- */
.about-intro { padding-bottom: 50px; }
.about-intro .container { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-image, .about-text { flex: 1; min-width: 300px; }
.about-image svg { max-width: 100%; height: auto; }
.about-text h1 { font-size: 2.8rem; }
.about-text p { font-size: 1.1rem; color: var(--text-light); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.value-card { background: rgba(18, 22, 113, 0.3); padding: 40px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; }
.value-icon { margin-bottom: 20px; }
.value-icon svg { width: 48px; height: 48px; color: var(--accent-cyan-2); }

/* --- PÁGINA DE CONTATO --- */
.contact-content { padding-top: 50px; padding-bottom: 100px; }
.contact-layout { display: flex; gap: 50px; flex-wrap: wrap; }
.contact-form-wrapper { flex: 2; min-width: 300px; }
.direct-contact-wrapper { flex: 1; min-width: 300px; }
.contact-form-wrapper h2, .direct-contact-wrapper h2 { text-align: left; margin-bottom: 20px; }
.direct-contact-wrapper p { margin-bottom: 30px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea { width: 100%; padding: 15px; background-color: rgba(0,0,0,0.3); border: 1px solid rgba(6, 236, 252, 0.2); border-radius: 5px; color: var(--text-light); font-family: var(--font-family); font-size: 1rem; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-cyan-1); box-shadow: 0 0 15px rgba(6, 236, 252, 0.5); }
.form-group textarea { resize: vertical; min-height: 150px; }
form .btn { margin-top: 10px; }
.direct-contact-card { display: flex; align-items: center; gap: 20px; background-color: rgba(18, 22, 113, 0.3); padding: 25px; border-radius: 8px; text-decoration: none; border: 1px solid rgba(6, 236, 252, 0.1); transition: all 0.3s ease; margin-bottom: 20px; }
.direct-contact-card:hover { transform: translateY(-5px); border-color: var(--accent-cyan-1); }
.direct-contact-card svg { width: 40px; height: 40px; color: var(--accent-cyan-2); flex-shrink: 0; }
.direct-contact-info h4 { color: var(--text-light); }
.direct-contact-info p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; margin: 0; }

/* --- SEÇÃO DE PORTFÓLIO --- */
.portfolio-section { background-color: rgba(0,0,0,0.2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.portfolio-card { background: var(--primary-dark-2); border: 1px solid rgba(6, 236, 252, 0.1); border-radius: 8px; overflow: hidden; transition: all 0.3s ease-out; }
.portfolio-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); border-color: var(--accent-cyan-1); }
.portfolio-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.portfolio-info { padding: 25px; }
.portfolio-info h3 { color: var(--text-light); margin-bottom: 10px; transition: color 0.3s ease; }
.portfolio-info p { font-size: 0.9rem; color: var(--text-muted); }
.page-sites .portfolio-card:hover h3 { color: var(--accent-sites); }
.page-aplicativos .portfolio-card:hover h3 { color: var(--accent-aplicativos); }
/* --- SEÇÃO DE PREÇOS (IPTV) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background: rgba(18, 22, 113, 0.3);
    border: 1px solid rgba(6, 236, 252, 0.1);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--accent-iptv);
}
.pricing-card .badge {
    position: absolute;
    top: 20px;
    right: -45px;
    background: var(--accent-iptv);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: 700;
}
.pricing-card .card-header h3 { font-size: 1.8rem; color: var(--text-light); }
.pricing-card .card-header p { font-size: 0.9rem; }
.pricing-card .card-price { margin: 30px 0; font-size: 4rem; font-weight: 700; color: var(--accent-iptv); }
.card-price span { font-size: 1.5rem; vertical-align: super; }
.card-price .period { font-size: 1rem; color: var(--text-muted); }
.pricing-card .card-body ul { list-style: none; margin-bottom: 30px; }
.pricing-card .card-body li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.pricing-card .card-body li:last-child { border: none; }
.pricing-card .card-body small { color: var(--text-muted); font-style: italic; display: block; margin-top: 15px; }
.page-iptv .btn { background-color: var(--accent-iptv); border-color: var(--accent-iptv); }
.page-iptv .btn:hover { box-shadow: 0 0 20px var(--accent-iptv); }

/* --- ANIMAÇÕES DE SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* --- BOTÃO DE CHAT E WIDGET --- */
#chat-open-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    padding: 0;
    display: none; 
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}
#chat-open-button img {
    width: 100%;
    height: 100%;
    transition: filter 0.3s ease;
}
#chat-open-button:hover {
    transform: scale(1.1);
}
#chat-open-button:hover img {
    filter: drop-shadow(0 0 8px var(--accent-cyan-2));
}
#chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 101;
    display: none; 
    flex-direction: column;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
#chat-widget.minimized {
    transform: translateY(calc(100% - 50px)); 
}
#chat-header { background: var(--primary-dark-3); color: var(--text-light); padding: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
#chat-header span { font-weight: 700; }
#chat-header button { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; }
#chat-body { background: var(--primary-dark-1); height: 300px; padding: 15px; overflow-y: auto; }
.chat-message.bot { background: var(--primary-dark-2); padding: 10px; border-radius: 10px; font-size: 0.9rem; }
#chat-footer { display: flex; }
#chat-footer input { flex-grow: 1; border: none; padding: 15px; background: var(--primary-dark-2); color: white; }
#chat-footer input:focus { outline: none; }
#chat-footer button { background: var(--accent-cyan-1); border: none; color: var(--primary-dark-1); padding: 0 20px; font-weight: 700; cursor: pointer; }

/* --- SEÇÃO DE CHAMADA PARA AÇÃO (ORÇAMENTO) --- */
.cta-section { text-align: center; background: rgba(0, 0, 0, 0.2); padding: 80px 0; }
.cta-section h2 { font-size: 2.2rem; margin-bottom: 20px; }
.cta-section p { margin-bottom: 30px; font-size: 1.1rem; color: var(--text-light); }
.page-sites .cta-section .btn { background-color: var(--accent-sites); border-color: var(--accent-sites); color: var(--primary-dark-1); }
.page-sites .cta-section .btn:hover { box-shadow: 0 0 20px var(--accent-sites); }
.page-automacoes .cta-section .btn { background-color: var(--accent-automacoes); border-color: var(--accent-automacoes); color: var(--text-light); }
.page-automacoes .cta-section .btn:hover { box-shadow: 0 0 20px var(--accent-automacoes); }
.page-aplicativos .cta-section .btn { background-color: var(--accent-aplicativos); border-color: var(--accent-aplicativos); color: var(--primary-dark-1); }
.page-aplicativos .cta-section .btn:hover { box-shadow: 0 0 20px var(--accent-aplicativos); }

/* --- PÁGINAS LEGAIS E RODAPÉ --- */
.page-legal main { min-height: calc(100vh - 200px); }
.legal-content { padding-top: 50px; padding-bottom: 50px; }
.legal-content .container { max-width: 800px; }
.legal-content h1 { text-align: center; color: var(--accent-cyan-1); margin-bottom: 15px; }
.legal-content .last-updated { text-align: center; display: block; margin-bottom: 40px; font-size: 0.9rem; color: var(--text-muted); }
.legal-content h2 { text-align: left; font-size: 1.8rem; color: var(--accent-cyan-2); margin-top: 30px; margin-bottom: 20px; }
.legal-content p, .legal-content li { color: var(--text-light); line-height: 1.9; margin-bottom: 15px; }
.legal-content ul { list-style-position: inside; padding-left: 10px; }
.site-footer { text-align: center; padding: 30px 0; background: rgba(0, 0, 0, 0.2); border-top: 1px solid rgba(6, 236, 252, 0.1); }
.footer-links { margin-bottom: 15px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; margin: 0 10px; }
.footer-links a:hover { color: var(--accent-cyan-1); }

/* --- MENU MOBILE E OTIMIZAÇÕES --- */
.menu-toggle {
    display: none; /* Escondido por padrão no desktop */
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Garante que fique acima de tudo */
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-cyan-1);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    nav#main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(1, 12, 54, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    nav#main-nav.is-active {
        display: flex;
    }
    nav#main-nav ul {
        flex-direction: column;
        gap: 30px;
    }
    nav#main-nav a {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .about-text h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .container { padding: 0 15px; }
    header { padding: 15px; }
    header .container { flex-direction: row; } /* Garante que logo e menu fiquem na mesma linha */
    
    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
        min-height: auto;
        display: block;
    }
    
    #chat-open-button {
        bottom: 20px;
        right: 20px;
        width: 65px;
        height: 65px;
    }
    
    #chat-widget {
        width: calc(100% - 20px);
        max-width: 350px;
        left: 10px;
        right: auto;
        bottom: 20px;
    }
}