/* =====================================================
   VARIÁVEIS DE TEMA
===================================================== */

/* DARK MODE (PADRÃO) */
:root {
    --bg: #0b0f14;
    --bg-soft: #0f172a;

    --card: #121826;
    --card-soft: #0e1320;

    --text: #e5e7eb;
    --text-soft: #cbd5e1;
    --muted: #9ca3af;

    --green: #22c55e;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --gray: #9ca3af;
}

/* LIGHT MODE */
body.light {
    --bg: #f8fafc;
    --bg-soft: #eef2f7;

    --card: #ffffff;
    --card-soft: #f1f5f9;

    --text: #0f172a;
    --text-soft: #334155;
    --muted: #475569;
}

/* =====================================================
   RESET / BASE
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(900px 500px at 50% -10%, rgba(34, 197, 94, .12), transparent 60%),
        radial-gradient(600px 400px at 90% 20%, rgba(59, 130, 246, .12), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background .3s ease, color .3s ease;
}

p {
    color: var(--text-soft);
    line-height: 1.7;
}

/* =====================================================
   CONTAINER
===================================================== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* =====================================================
   HEADER / MENU
===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 20, .75);
    backdrop-filter: blur(10px);
}

body.light .header {
    background: rgba(255, 255, 255, .75);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-weight: 700;
    letter-spacing: .3px;
}

nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: .3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--green);
}

.btn-menu {
    background: var(--green);
    color: #000;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text);
}

.theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
}

/* =====================================================
   HERO
===================================================== */
.hero {
    padding: 110px 0 120px;
}

.badge {
    display: inline-block;
    background: rgba(34, 197, 94, .15);
    color: var(--green);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
    border: 1px solid rgba(34, 197, 94, .3);
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.highlight {
    color: var(--green);
    text-shadow:
        0 0 25px rgba(34, 197, 94, .7),
        0 0 45px rgba(34, 197, 94, .4);
}

.hero p {
    max-width: 720px;
    margin: 22px 0 32px;
    font-size: 18px;
}


.subtitle {
    text-align: center;
}


.btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #000;
    padding: 16px 30px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0 35px rgba(34, 197, 94, .85);
}

/* =====================================================
   SECTIONS
===================================================== */
.section {
    padding: 110px 0;
}

.subtitle {
    color: var(--muted);
    margin: 10px 0 40px;
}

/* =====================================================
   SERVICE CARDS
===================================================== */
.service-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;

    background: linear-gradient(180deg, var(--card), var(--card-soft));
    border-radius: 22px;
    padding: 40px;
    margin-bottom: 30px;

    border-left: 6px solid transparent;
    transition: transform .4s ease, box-shadow .4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
}

body.light .service-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, .12);
}

.service-text {
    text-align: center;
}

.service-text h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.service-text span {
    display: block;
    font-weight: 700;
    margin-bottom: 14px;
}

.service-text p {
    max-width: 520px;
    margin: auto;
}

.service-card img {
    width: 180px;
    justify-self: center;
    filter: drop-shadow(0 0 25px rgba(0, 0, 0, .35));
    transition: transform .4s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* CORES POR SERVIÇO */
.whatsapp {
    border-color: var(--green);
}

.whatsapp span {
    color: var(--green);
}

.discord {
    border-color: var(--blue);
}

.discord span {
    color: var(--blue);
}

.web {
    border-color: var(--gray);
}

.web span {
    color: var(--text);
}

.automation {
    border-color: var(--purple);
}

.automation span {
    color: var(--purple);
}

/* INVERTER IMAGEM */
.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.reverse img {
    order: -1;
}

/* =====================================================
   ABOUT
===================================================== */
.about-box {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 22px;
    background: linear-gradient(180deg, var(--card), var(--card-soft));
    padding: 40px;
    border-radius: 22px;
}

/* ===== sobre - mobile */
@media (max-width: 768px) {
    .about-box {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .about-box .avatar {
        margin-bottom: 10px;
    }

    .about-box h2 {
        text-align: center;
    }

    .about-box p {
        text-align: center;
    }
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #4ade80);

    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(34, 197, 94, .7);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* =====================================================
   CTA FINAL
===================================================== */
.cta-final {
    text-align: center;
    padding: 120px 0;
}

.cta-final p {
    color: var(--muted);
    margin: 14px 0 28px;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    text-align: center;
    padding: 24px;
    color: var(--muted);
}

/* =====================================================
   ANIMAÇÕES
===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: .6s ease;
}

.reveal.on {
    opacity: 1;
    transform: none;
}

/* =====================================================
   RESPONSIVO
===================================================== */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border-radius: 16px;
        display: none;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .service-card,
    .reverse {
        grid-template-columns: 1fr;
    }

    .reverse img {
        order: 0;
    }

    .service-card img {
        width: 140px;
    }

    .about-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* =====================================================
   BOT FLUTUANTE
===================================================== */
#chat-bot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

/* Botão flutuante */
#chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 24px;
    background: linear-gradient(135deg, var(--green), #4ade80);
    box-shadow: 0 0 30px rgba(34, 197, 94, .8);
    color: #000;

}

/* Janela do chat */
#chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    max-height: 420px;
    background: linear-gradient(180deg, var(--card), var(--card-soft));
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-soft);
    font-weight: 700;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

/* Mensagens */
.chat-messages {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
}

.message.bot {
    background: rgba(34, 197, 94, .15);
    color: var(--text);
}

.message.user {
    background: rgba(59, 130, 246, .2);
    margin-left: auto;
    color: var(--text);
}

/* Input */
.chat-input {
    display: flex;
    padding: 12px;
    gap: 8px;
    background: var(--bg-soft);
}

.chat-input input {
    flex: 1;
    border-radius: 12px;
    border: 1px solid var(--muted);
    padding: 10px;
    background: transparent;
    color: var(--text);
}

.chat-input button {
    background: var(--green);
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    color: #000;
}

/* =========================
   BOTÕES DO BOT
========================= */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat-options button {
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .4);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    transition: .2s;
}

.chat-options button:hover {
    background: var(--green);
    color: #000;
}

/* =========================
   MICRO-INTERAÇÕES GLOBAIS
========================= */
a,
button {
    transition:
        background-color .25s ease,
        color .25s ease,
        transform .15s ease,
        box-shadow .25s ease;
}

button:active,
a:active {
    transform: scale(0.97);
}

.btn-cta:hover,
.btn-menu:hover {
    box-shadow: 0 0 40px rgba(34, 197, 94, .9);
}

/* botao flutuante com inmagem */
#chat-toggle img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    pointer-events: none;
    border-radius: 50%
}


/* MODAL CONTATO */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #0f172a;
    padding: 32px;
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(34, 197, 94, .4);
}

.modal-box h3 {
    margin-bottom: 24px;
    color: #fff;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    margin-bottom: 12px;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #000;
    font-weight: 600;
}

.modal-btn.outline {
    background: transparent;
    border: 1px solid #22c55e;
    color: #22c55e;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
}

.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 9999;
}

.contact-modal.active {
    opacity: 1;
    pointer-events: all;
}

.contact-modal-content {
    background: linear-gradient(180deg, #0f172a, #020617);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    box-shadow: 0 0 60px rgba(34, 197, 94, .35);
    text-align: center;
}

.contact-modal-content h2 {
    margin-bottom: 8px;
}

.contact-modal-content p {
    color: #94a3b8;
    margin-bottom: 20px;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    margin-bottom: 12px;
    background: #020617;
    color: #fff;
}

#contactForm textarea {
    min-height: 100px;
    resize: none;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    border: none;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(34, 197, 94, .6);
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
}