/* Variáveis */
:root {
    --bg-dark: #121826;
    --bg-darker: #0b0f19;
    --primary-blue: #007bff;
    --neon-blue: #00d2ff;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* =========================================
   HEADER E MENU
   ========================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(18, 24, 38, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    transition: 0.3s ease;
}
header.scrolled { background: rgba(11, 15, 25, 0.95); }

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; height: 80px; padding: 0 20px;
}

/* Logo */
.logo { display: flex; align-items: center; z-index: 1002; position: relative; }
.img-logo { max-height: 45px; width: auto; object-fit: contain; }
.img-logo-footer { max-height: 60px; width: auto; object-fit: contain; margin-bottom: 15px; }

/* Links e Botão (Desktop) */
.nav-links { display: flex; align-items: center; gap: 35px; }
nav ul { list-style: none; display: flex; gap: 35px; }
nav a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--neon-blue); }
nav a.active { border-bottom: 2px solid var(--primary-blue); padding-bottom: 5px; }

.btn-nav, .btn-glow {
    background: linear-gradient(90deg, var(--primary-blue), var(--neon-blue));
    color: #fff; text-decoration: none; padding: 12px 28px; border-radius: 30px;
    font-weight: 600; font-size: 0.95rem; transition: 0.3s; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); border: none;
}
.btn-nav:hover, .btn-glow:hover { box-shadow: 0 6px 25px rgba(0, 210, 255, 0.6); transform: translateY(-2px); }

/* Botão Hambúrguer */
.menu-toggle { 
    display: none; flex-direction: column; gap: 6px; 
    cursor: pointer; border: none; background: transparent; 
    z-index: 1002; position: relative; 
}
.menu-toggle .bar { 
    width: 30px; height: 3px; background-color: var(--text-main); 
    transition: 0.4s; border-radius: 3px; 
}

/* =========================================
   HERO E ELEMENTOS GERAIS
   ========================================= */
.hero-section {
    position: relative; padding-top: 150px; padding-bottom: 50px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: radial-gradient(circle at top center, #1e293b 0%, var(--bg-darker) 70%);
}

.ambient-glow {
    position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px; background: var(--primary-blue);
    filter: blur(150px); opacity: 0.15; z-index: 0; pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin-bottom: 40px; padding: 0 15px; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--neon-blue); font-size: 1.2rem; margin-bottom: 15px; }
.hero-eyebrow .line { width: 40px; height: 1px; background: var(--neon-blue); opacity: 0.5; }

.hero-title { font-family: var(--font-heading); font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 15px; letter-spacing: -1px; }
.highlight { color: var(--neon-blue); text-shadow: 0 0 25px rgba(0, 210, 255, 0.5); }
.hero-desc { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 20px; }
.accent-line { width: 60px; height: 3px; background: var(--neon-blue); margin: 25px auto; border-radius: 5px; box-shadow: 0 0 10px var(--neon-blue); }

.showcase-container { position: relative; z-index: 1; max-width: 900px; width: 90%; margin-bottom: -50px; perspective: 1000px; }
.laptop-mockup { width: 100%; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0, 136, 255, 0.15); border: 1px solid rgba(255,255,255,0.05); }

/* =========================================
   CARDS DE SERVIÇOS
   ========================================= */
.services-cards { display: flex; gap: 20px; justify-content: center; position: relative; z-index: 2; margin-top: 20px; flex-wrap: wrap; padding: 0 20px; }
.glass-card { background: var(--glass-bg); padding: 30px 20px; border-radius: 20px; width: 220px; text-align: center; color: #111; cursor: pointer; box-shadow: 0 15px 35px rgba(0,0,0,0.2); border: 1px solid var(--glass-border); transition: all 0.4s ease; display: flex; flex-direction: column; align-items: center; }
.glass-card:hover { transform: translateY(-10px); }
.glass-card .icon-wrapper { width: 55px; height: 55px; background: rgba(0, 123, 255, 0.1); color: var(--primary-blue); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.6rem; margin-bottom: 15px; transition: 0.3s; }
.glass-card h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.active-card { background: linear-gradient(145deg, #0a1930, #061020); color: #fff; border: 1px solid rgba(0, 210, 255, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 -5px 25px rgba(0, 210, 255, 0.2); transform: translateY(-5px); }
.active-card .icon-wrapper { background: rgba(255,255,255,0.1); color: var(--neon-blue); }
.card-dots { display: flex; gap: 6px; }
.card-dots span { width: 6px; height: 6px; background: #ddd; border-radius: 50%; }
.active-card .card-dots span { background: var(--primary-blue); }
.active-card .card-dots span:nth-child(2) { background: var(--neon-blue); box-shadow: 0 0 8px var(--neon-blue); }

/* =========================================
   ESTATÍSTICAS
   ========================================= */
.stats-row { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(15px); border-radius: 100px; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 50px; margin: 70px auto 40px; max-width: 950px; width: 95%; position: relative; z-index: 2; flex-wrap: wrap; gap: 20px; }
.stat-item { text-align: left; }
.stat-item h2 { font-family: var(--font-heading); font-size: 1.8rem; color: #fff; line-height: 1; margin-bottom: 5px; font-weight: 700; }
.stat-item p { font-size: 0.9rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 45px; background: rgba(255,255,255,0.15); }
.btn-glow { padding: 18px 40px; font-size: 1.1rem; border-radius: 50px; margin-left: auto; text-align: center; }

.bottom-keywords { margin-top: 20px; color: var(--text-muted); font-size: 1rem; letter-spacing: 2px; font-weight: 300; }
.bottom-keywords span { color: var(--neon-blue); font-weight: 500; }

/* =========================================
   SEÇÃO SOBRE E PORTFÓLIO
   ========================================= */
.section-container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; }
.section-title { font-family: var(--font-heading); font-size: 2.8rem; margin-bottom: 20px; }
.text-center { text-align: center; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 50px; }

.about-section { background-color: var(--bg-darker); border-top: 1px solid rgba(255,255,255,0.05); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }
.about-text strong { color: var(--text-main); }
.about-list { list-style: none; margin-top: 30px; }
.about-list li { color: var(--text-main); margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-size: 1.05rem; }
.about-list i { color: var(--neon-blue); background: rgba(0, 210, 255, 0.1); padding: 8px; border-radius: 50%; font-size: 0.9rem; }
.about-image-wrapper { position: relative; }
.about-img { width: 100%; border-radius: 20px; position: relative; z-index: 2; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.about-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; height: 80%; background: var(--primary-blue); filter: blur(100px); opacity: 0.3; z-index: 1; }

.portfolio-section { background-color: var(--bg-dark); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.portfolio-item { position: relative; border-radius: 15px; overflow: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,0.05); aspect-ratio: 4/3; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.3) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; opacity: 0; transition: all 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { font-family: var(--font-heading); color: var(--neon-blue); font-size: 1.3rem; margin-bottom: 5px; transform: translateY(20px); transition: transform 0.4s ease; }
.portfolio-overlay p { color: var(--text-main); font-size: 0.9rem; transform: translateY(20px); transition: transform 0.4s ease 0.1s; }
.portfolio-item:hover .portfolio-overlay h4, .portfolio-item:hover .portfolio-overlay p { transform: translateY(0); }

/* =========================================
   FOOTER E WHATSAPP
   ========================================= */
.main-footer { background-color: var(--bg-darker); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding: 0 20px; }
.brand-col p { color: var(--text-muted); margin-top: 15px; font-size: 0.95rem; }
.social-links { margin-top: 20px; display: flex; gap: 15px; }
.social-links a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: rgba(255,255,255,0.05); color: #fff; border-radius: 50%; transition: 0.3s; text-decoration: none; }
.social-links a:hover { background: var(--primary-blue); transform: translateY(-3px); }
.footer-col h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--neon-blue); padding-left: 5px; }
.contact-col li { color: var(--text-muted); display: flex; gap: 10px; line-height: 1.5; }
.contact-col i { color: var(--neon-blue); margin-top: 4px; }
.footer-bottom { text-align: center; padding: 20px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25d366; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 35px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 9999; text-decoration: none; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* =========================================
   RESPONSIVIDADE (CELULARES E TABLETS)
   ========================================= */
@media (max-width: 992px) {
    /* Menu Hamburguer */
    .menu-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 100%; max-width: 320px; height: 100vh; background: rgba(11, 15, 25, 0.98); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; transition: right 0.4s ease-in-out; box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 1001; border-left: 1px solid rgba(255,255,255,0.05); gap: 30px; }
    .nav-links.active { right: 0; }
    nav ul { flex-direction: column; gap: 25px; align-items: center; padding: 0; margin: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Ajustes Gerais Hero */
    .hero-section { padding-top: 120px; }
    .hero-title { font-size: 2.8rem; }
    .hero-eyebrow { font-size: 1rem; }
    .showcase-container { margin-bottom: -30px; }

    /* Estatísticas e Layouts */
    .stats-row { border-radius: 20px; padding: 25px; justify-content: center; text-align: center; }
    .stat-divider { display: none; }
    .stat-item { text-align: center; width: 45%; } /* Divide os itens para não encavalarem */
    .btn-glow { margin: 15px auto 0 auto; width: 100%; justify-content: center; }
    
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-list li { justify-content: center; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .contact-col li { justify-content: center; }
    .social-links { justify-content: center; }
    .stat-item { width: 100%; margin-bottom: 15px; } /* Itens de estatística um em cima do outro */
}

/* =========================================
   CORREÇÃO DE VAZAMENTO LATERAL E WHATSAPP MOBILE
   ========================================= */
@media (max-width: 768px) {
    /* Ajusta o botão do WhatsApp para não empurrar a tela */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 28px;
        box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); /* Reduz a expansão da sombra */
    }

    /* Trava absoluta contra rolagem horizontal */
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100% !important;
    }
}