/* ======================================================== */
/* === RESET E VARIÁVEIS GLOBAIS                          === */
/* ======================================================== */
:root {
    --primary-green: #00e59b;
    --primary-dark: #030712;
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================================== */
/* === BACKGROUND GLOW APRIMORADO                         === */
/* ======================================================== */
.glow-background {
    position: absolute;
    top: -50px;
    left: 30%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 155, 0.18) 0%, rgba(14, 165, 233, 0.08) 40%, rgba(3, 7, 18, 0) 75%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
    transition: opacity 0.3s ease;
}

/* ======================================================== */
/* === NAVBAR                                             === */
/* ======================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: 0.3s;
}

.code-bracket {
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
    font-weight: 400;
}

.custom-i {
    position: relative;
    display: inline-block;
    color: inherit;
    line-height: 1;
}

.custom-i::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-green);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-green), #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.btn-outline {
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 8px;
    transition: 0.3s !important;
}

.btn-outline:hover {
    border-color: var(--primary-green);
    background: rgba(0, 229, 155, 0.05);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======================================================== */
/* === HERO SECTION E PLANETINHA ORBITAL                  === */
/* ======================================================== */
.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.tagline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.title-main {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), #059669);
    color: #030712;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 229, 155, 0.2);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 229, 155, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Visual do Hero & Efeito Planetinha Orbital */
.hero-visual {
    position: relative;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-mockup {
    width: 290px;
    height: 290px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(3, 7, 18, 0.8) 80%);
    box-shadow: inset 0 0 30px rgba(0, 229, 155, 0.15), 0 20px 40px rgba(0,0,0,0.4);
}

.pulse-ring {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 229, 155, 0.35);
    animation: rotateRing 25s linear infinite;
    pointer-events: none;
}

.planet-orbit {
    position: absolute;
    width: 370px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.3);
    transform: rotate(-25deg);
    animation: rotateOrbit 15s linear infinite;
    pointer-events: none;
}

.orbiting-moon {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #00e59b;
    border-radius: 50%;
    box-shadow: 0 0 12px #00e59b, 0 0 20px #0ea5e9;
}

@keyframes rotateRing {
    100% { transform: rotate(360deg); }
}

@keyframes rotateOrbit {
    100% { transform: rotate(-385deg); }
}

.floating-card {
    position: absolute;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: floatCard 4s ease-in-out infinite alternate;
    z-index: 5;
}

.floating-card i {
    color: var(--primary-green);
}

.c1 { top: 15px; left: 5px; animation-delay: 0s; }
.c2 { top: 60px; right: -10px; animation-delay: 1s; }
.c3 { bottom: 30px; left: -10px; animation-delay: 2s; }
.c4 { bottom: 5px; right: 10px; animation-delay: 1.5s; }

@keyframes floatCard {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

/* ======================================================== */
/* === SEÇÕES E COMPONENTES COMUNS                        === */
/* ======================================================== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-top: 15px;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Serviços Duplos */
.services-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-column {
    padding: 40px;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 155, 0.1);
    border: 1px solid rgba(0, 229, 155, 0.2);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 25px;
}

.service-column h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.benefits-list-mini {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefits-list-mini li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.benefits-list-mini li i {
    color: var(--primary-green);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 35px;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: rgba(0, 229, 155, 0.3);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ======================================================== */
/* === PORTFÓLIO & SLIDESHOW                              === */
/* ======================================================== */
.slideshow-container {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
}

.slide-item {
    display: none;
    animation: fadeInSlide 0.6s ease;
}

.slide-item.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.case-study {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 45px;
}

.case-content {
    flex: 1;
    min-width: 280px;
}

.case-visual {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dyn-mockup {
    width: 100%;
    max-width: 420px;
    height: 240px;
    background: #0b132b;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    display: flex !important;
    position: relative;
    overflow: hidden;
}

.dyn-sidebar {
    flex: 0 0 32% !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 8px;
    box-sizing: border-box;
}

.dyn-content {
    flex: 1 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.wireframe-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 10px;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

.wf-dots {
    display: flex;
    gap: 4px;
}

.wf-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.wf-url {
    background: #fff;
    flex: 1;
    font-size: 0.55rem;
    padding: 2px 8px;
    border-radius: 4px;
    color: #64748b;
    font-family: monospace;
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.slide-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.slide-btn:hover {
    background: var(--primary-green);
    color: #030712;
    border-color: var(--primary-green);
}

.slide-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-green);
    width: 25px;
    border-radius: 6px;
}

/* ======================================================== */
/* === TIMELINE & PROCESSO                                === */
/* ======================================================== */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    margin-top: 40px;
}

.timeline-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    position: relative;
    backdrop-filter: blur(10px);
}

.step-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-green);
    color: #030712;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.timeline-icon {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.timeline-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ======================================================== */
/* === CORREÇÃO DA CAIXA E FORMULÁRIO DE CONTATO          === */
/* ======================================================== */
.contact-box {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 50px !important;
    box-sizing: border-box;
}

.contact-text {
    flex: 1;
    min-width: 280px;
}

.contact-form {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .form-group {
    margin-bottom: 0 !important;
}

.contact-form .btn-primary {
    margin-top: 10px;
    position: relative;
    width: 100%;
}

@media (max-width: 900px) {
    .contact-box {
        flex-direction: column;
        padding: 30px !important;
        gap: 30px;
    }
}

/* ======================================================== */
/* === TEMA CLARO / NOTURNO DO SITE                        === */
/* ======================================================== */
body.light-mode-site {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(15, 23, 42, 0.1);
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

body.light-mode-site .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-mode-site .navbar .logo {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.04);
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

body.light-mode-site .navbar .logo .code-bracket {
    color: #0284c7 !important;
}

body.light-mode-site .navbar .logo .custom-i::after {
    background-color: #059669 !important;
    box-shadow: 0 0 6px rgba(5, 150, 105, 0.6) !important;
}

body.light-mode-site .nav-links a {
    color: #0f172a !important;
}

body.light-mode-site .glass-panel {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

body.light-mode-site .glow-background {
    opacity: 0.15;
}

/* Botão flutuante de Tema (Ícone no mobile) */
.site-theme-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background: rgba(17, 24, 39, 0.85);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.site-theme-toggle:hover {
    transform: translateY(-3px);
    background: #00e59b;
    color: #030712;
}

body.light-mode-site .site-theme-toggle {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ======================================================== */
/* === OTIMIZAÇÕES MOBILE E ALINHAMENTO CENTRALIZADO      === */
/* ======================================================== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--text-main);
    }

    /* CENTRALIZAÇÃO COMPLETA DO HERO NO MOBILE */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding-top: 10px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 320px;
    }

    .title-main {
        font-size: 2.3rem;
    }

    .hero-visual {
        height: 300px;
        transform: scale(0.85);
        margin: 0 auto;
    }

    .floating-card {
        display: none; 
    }

    .services-dual-grid {
        grid-template-columns: 1fr;
    }

    .case-study {
        grid-template-columns: 1fr !important;
        padding: 25px !important;
        gap: 25px;
    }

    .section-header h2 {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 130px 0 50px;
        min-height: auto;
    }

    .title-main {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .hero-mockup {
        width: 220px;
        height: 220px;
    }

    .pulse-ring {
        width: 250px;
        height: 250px;
    }

    .planet-orbit {
        width: 260px;
        height: 90px;
    }

    .contact-box {
        padding: 20px !important;
        gap: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px !important;
        font-size: 0.95rem !important;
    }

    /* Botão flutuante compacto (somente ícone) no celular */
    .site-theme-toggle {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
    
    #site-theme-text {
        display: none !important;
    }
}