:root {
    /* Tema Claro (Default) */
    --primary-color: #007bff;
    /* Azul primário vibrante */
    --primary-hover: #0056b3;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --card-background: #ffffff;
    --border-color: #dee2e6;
    --header-background: rgba(255, 255, 255, 0.9);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --header-height: 70px;
}

/* Tema Escuro */
body.dark-mode {
    --primary-color: #0084ff;
    /* Azul um pouco mais brilhante para o escuro */
    --primary-hover: #339aff;
    --secondary-color: #adb5bd;
    --background-color: #121212;
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --card-background: #1e1e1e;
    --border-color: #343a40;
    --header-background: rgba(30, 30, 30, 0.9);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Garante que o scroll para âncora não fique sob o header fixo */
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 2. Componentes Reutilizáveis */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cta-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.cta-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.cta-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Classe para animação de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Header & Navegação */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    padding-top: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

#theme-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}

/* 4. Seção Hero (Início) */

#inicio {
    padding-top: calc(var(--header-height) + 5rem);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-visual dotlottie-wc {
    width: 100%;
    max-width: 450px;
    height: auto;
}

@media (max-width: 768px) {
    .hero-visual dotlottie-wc {
        max-width: 320px;
    }
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

.hero-text .cta-button {
    margin-right: 0.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual .visual-placeholder {
    width: 100%;
    max-width: 450px;
    height: 350px;
    background-color: var(--border-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    background-image: linear-gradient(45deg, var(--border-color) 25%, var(--card-background) 25%, var(--card-background) 50%, var(--border-color) 50%, var(--border-color) 75%, var(--card-background) 75%, var(--card-background) 100%);
    background-size: 56.57px 56.57px;
}

/* 5. Seção Serviços */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--text-color);
}

/* 6. Seção Plataformas */

#plataformas {
    background-color: var(--card-background);
}

.platforms-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.platform-item:hover {
    transform: scale(1.1);
}

.platform-item i {
    font-size: 4rem;
}

.platform-item span {
    font-weight: 600;
    color: var(--text-color);
}

/* Cores das marcas */
.bi-whatsapp {
    color: #25D366;
}

.bi-instagram {
    color: #E4405F;
}

.bi-discord {
    color: #5865F2;
}

.bi-telegram {
    color: #0088cc;
}

/* 7. Seção Benefícios */

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.benefit-item {
    background-color: var(--card-background);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid var(--primary-color);
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.benefit-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* 8. Seção Contato */

#contato {
    background-color: var(--card-background);
}

.contact{
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact i {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* ===================================================================
           9. Footer
           =================================================================== */

footer {
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 3rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin: 0 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===================================================================
           10. Media Queries (Responsividade Mobile-First)
           =================================================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 3rem 0;
    }

    #inicio {
        padding-top: calc(var(--header-height) + 3rem);
    }

    /* --- Header & Nav Mobile --- */
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease-in-out;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .nav-right .cta-button {
        display: none;
        /* Esconde button do header no mobile, pra priorizar o do Hero */
    }

    /* --- Hero Mobile --- */
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text .cta-button {
        margin: 0.5rem;
    }

    .hero-visual .visual-placeholder {
        height: 250px;
    }
}