:root {
    --bg-dark: #0a0a0c;
    --bg-dark-textured: #0a0a0c;
    --bg-card: #15151a;
    --primary: #00e5ff;
    --primary-hover: #00b8cc;
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #1ca34d;
    --text-light: #f4f4f5;
    --text-muted: #a1a1aa;
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
a { text-decoration: none; color: var(--text-light); transition: 0.3s; }

/* Section Titles with Glow */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; margin-bottom: 10px; color: var(--primary); }
.section-title p { font-size: 1.2rem; color: var(--text-muted); }
.text-glow h2 { text-shadow: 0 0 15px rgba(0, 229, 255, 0.5); }

/* Buttons & Neon Effects */
.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}

.neon-btn { box-shadow: none; border: 1px solid var(--primary); color: var(--primary); background: transparent;}
.neon-btn:hover { background: var(--primary); color: var(--bg-dark); box-shadow: 0 0 15px rgba(0, 229, 255, 0.5); }
.neon-btn-active { background: var(--primary); color: var(--bg-dark); box-shadow: 0 0 20px rgba(0, 229, 255, 0.5); border: none;}
.neon-btn-active:hover { box-shadow: 0 0 30px rgba(0, 229, 255, 0.7); }

.btn-large { padding: 16px 36px; font-size: 1.2rem; }
.btn-full { width: 100%; font-size: 1.1rem; padding: 14px; text-transform: uppercase;}

.btn-whatsapp-full {
    background-color: var(--whatsapp-green);
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp-full:hover {
    background-color: var(--whatsapp-green-hover);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
}

/* Background Types */
.dark-tech-bg { background-image: radial-gradient(circle at center, #15151a 0%, #0a0a0c 100%); }
.dark-card-bg { background-color: var(--bg-card); border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03);}

/* Neon Borders & Shadows */
.neon-border { border: 1px solid var(--primary); box-shadow: 0 0 15px rgba(0, 229, 255, 0.3); }
.neon-hover:hover { border: 1px solid var(--primary); box-shadow: 0 0 25px rgba(0, 229, 255, 0.5); }
.neon-card { border: 1px solid rgba(0, 229, 255, 0.2); box-shadow: 0 0 15px rgba(0, 229, 255, 0.15); }

/* Header */
header {
    background-color: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

nav { display: flex; gap: 30px; align-items: center; }
nav a { font-weight: 600; font-family: var(--font-heading); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 1px;}
nav a:hover:not(.btn-primary) { color: var(--primary); }

.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--primary); transition: 0.3s; }

/* Hero */
.hero { padding: 220px 0 150px; }
.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }

.hero-text h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-text h1 span { color: var(--primary); text-shadow: 0 0 15px rgba(0, 229, 255, 0.5); }

.hero-text .tagline {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 45px;
}

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.floating-logo {
    width: 100%;
    max-width: 450px;
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.4));
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sobre Nós & Stats */
.about-section { padding: 120px 0; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.about-text h3 { font-size: 2rem; color: var(--primary); margin-bottom: 25px; text-transform: none; font-family: var(--font-body);}
.about-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }

.about-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-card {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card .count { font-size: 3.5rem; font-weight: 800; font-family: var(--font-heading); color: var(--primary); }
.stat-card p { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase;}
.sub-stat { font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; font-weight: 400; text-transform: none !important;}

/* Serviços Grid */
.services-section { padding: 120px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s ease-out;
}
.service-card i { font-size: 3rem; color: var(--primary); margin-bottom: 25px; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));}
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 1rem; }

/* ============================================================
   Galeria de Trabalhos
============================================================ */
.works-section {
    padding: 100px 0 80px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    max-height: 380px;
}

.work-card img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.work-card:hover {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 15px 45px rgba(0,0,0,0.6), 0 0 30px rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
}

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



/* ============================================================
   Carrossel de Depoimentos — Redesenhado
============================================================ */
.testimonials-section {
    padding: 120px 0;
    background-color: #0a0a0c;
    background-image: radial-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.testimonials-container {
    position: relative;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 100%;
    min-width: 0;
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
}

.testimonial-stars i {
    color: #FFD700;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    flex: 1;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0077b6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.testimonial-author {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.3);
    background: rgba(21, 21, 26, 0.9);
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    border-color: var(--primary);
}

.carousel-arrow:active {
    transform: scale(0.92);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 229, 255, 0.15);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.dot:hover {
    background-color: rgba(0, 229, 255, 0.4);
}

.dot.active {
    background-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
    border-color: var(--primary);
    transform: scale(1.15);
}

/* Contato */
.contact-section { padding: 120px 0; }
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.contact-info h2 { font-size: 3rem; margin-bottom: 25px; }
.contact-info p { color: var(--text-muted); margin-bottom: 35px; font-size: 1.1rem; }

.info-list { list-style: none; margin-bottom: 45px; }
.info-list li { margin-bottom: 20px; font-size: 1.2rem; display: flex; align-items: center; gap: 15px;}
.info-list i { color: var(--primary); font-size: 1.3rem; filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.3));}

.social-links { display: flex; gap: 20px; margin-bottom: 40px; }
.neon-social-icon { font-size: 2rem; color: rgba(0, 229, 255, 0.5); transition: 0.3s; }
.neon-social-icon:hover { color: var(--primary); transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.7)); }

.contact-form {
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
}
.contact-form h3 { margin-bottom: 30px; font-size: 2rem; }

.input-group { margin-bottom: 25px; }
.input-group label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-heading); }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text-light);
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}
.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

/* Form Message */
.form-message {
    text-align: center;
    padding: 12px 18px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: fadeInMsg 0.3s ease;
}

.form-message.success {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.form-message.error {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.security-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-content {
    position: relative;
    text-align: center;
}

.footer-credit {
    position: absolute;
    right: 0;
    bottom: 0;
    color: var(--text-dimmed, #52525b);
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.5;
    transition: 0.3s;
    white-space: nowrap;
}

.footer-credit:hover {
    opacity: 1;
    color: var(--primary);
}

/* ============================================================
   Responsividade Aprimorada
============================================================ */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3rem; }
    .hero-content, .about-content { gap: 40px; }
    .contact-info h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    .nav-container { height: 70px; }
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    }
    nav.active { display: flex; }
    .menu-toggle { display: block; }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero { padding: 150px 0 80px; }
    .hero-content, .about-content, .contact-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 30px; 
    }
    
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text .description, .hero-text .tagline { margin-left: auto; margin-right: auto; }
    
    .stat-card { padding: 20px; }
    .stat-card .count { font-size: 2.8rem; }
    
    .works-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .testimonial-card { padding: 30px; }
    .testimonial-text { font-size: 1.1rem; }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .contact-form { padding: 30px; }
}

@media (max-width: 480px) {
    .carousel-arrow {
        display: none;
    }
    .carousel-wrapper {
        gap: 0;
    }
    .testimonial-card {
        padding: 25px;
    }
    .works-grid {
        max-width: 100%;
    }
}

/* ============================================================
   WhatsApp FAB + Widget Flutuante
============================================================ */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 6px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.4);
    z-index: 9998;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fabPulse 2.5s infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37,211,102,0.7);
    animation: none;
}

@keyframes fabPulse {
    0%   { box-shadow: 0 6px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.35); }
    70%  { box-shadow: 0 6px 24px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}

.fab-tooltip {
    position: absolute;
    right: 74px;
    background: var(--bg-card);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    border: 1px solid rgba(37,211,102,0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.25s, transform 0.25s;
}

.whatsapp-fab:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Widget popup */
.whatsapp-widget {
    position: fixed;
    bottom: 102px;
    right: 28px;
    width: 320px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(37,211,102,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(37,211,102,0.1);
    z-index: 9997;
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-widget.open {
    opacity: 1;
    pointer-events: all;
    transform: scale(1) translateY(0);
}

.ww-header {
    background: linear-gradient(135deg, #1ca34d, #25D366);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ww-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ww-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.ww-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
}

.ww-status {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0 0;
}

.ww-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: dotBlink 1.5s ease-in-out infinite;
}

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

.ww-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.ww-close:hover { background: rgba(255,255,255,0.35); }

.ww-body {
    padding: 18px;
}

.ww-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.ww-input-group {
    margin-bottom: 12px;
}

.ww-input-group label {
    display: block;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.ww-input-group input,
.ww-input-group textarea {
    width: 100%;
    padding: 10px 13px;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    outline: none;
    resize: none;
    transition: border-color 0.25s;
}

.ww-input-group input:focus,
.ww-input-group textarea:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 2px rgba(37,211,102,0.15);
}

.ww-send-btn {
    width: 100%;
    padding: 11px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    transition: background 0.25s, transform 0.2s;
}

.ww-send-btn:hover {
    background: #1ca34d;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .whatsapp-widget {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 90px;
    }
    .whatsapp-fab {
        bottom: 16px;
        right: 16px;
    }
}