/* ================================
   RESET E VARIÁVEIS GLOBAIS
   ================================ */

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

:root {
    --primary-color: #3b82f6;
    --secondary-color: #06b6d4;
    --dark-bg: #0f172a;
    --darker-bg: #1e293b;
    --text-light: #e0e7ff;
    --text-lighter: #cbd5e1;
    --border-color: rgba(59, 130, 246, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* ================================
   CONTAINER E LAYOUT
   ================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ================================
   TIPOGRAFIA
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    color: var(--text-lighter);
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   BOTÕES
   ================================ */

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

.btn-primary {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(34, 211, 238, 0.5);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-plan {
    width: 100%;
    background: transparent;
    color: white;
    border: 2px dashed rgba(59, 130, 246, 0.6);
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
}

.btn-plan:hover {
    border-color: rgba(34, 211, 238, 0.8);
}

.btn-plan-active {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border: 2px solid rgba(34, 211, 238, 0.8);
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.3);
}

/* ================================
   SPLASH SCREEN
   ================================ */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 8rem;
    height: 8rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.loading-bar-container {
    width: 200px;
    height: 5px;
    background-color: var(--darker-bg);
    border-radius: 5px;
    margin: 0 auto 0.5rem;
    overflow: hidden;
}

#loading-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: width 0.5s ease;
}

#loading-percentage {
    font-size: 1rem;
    color: var(--text-lighter);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hidden {
    display: none;
}

/* ================================
   NAVEGAÇÃO
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permitir quebra de linha em telas muito pequenas */
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
}

.brand-text h1 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.brand-text p {
    font-size: 0.75rem;
    color: rgba(34, 211, 238, 0.8);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.nav-links a:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    color: white;
}

.nav-links li {
    padding: 0;
}

/* Botão CTA na navbar */
.navbar-content > .btn-primary {
    white-space: nowrap;
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .navbar-content > .btn-primary {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    /* Ajustar o padding-top para compensar a altura da navbar fixa (aprox. 5rem) */
    padding-top: 7rem; /* Aumentado para garantir espaço suficiente */
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
    /* Adicionar padding-top para evitar sobreposição com a navbar fixa */
    padding-top: 2rem;
}

.badge {
    display: inline-block;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    /* Remover qualquer posicionamento que possa causar sobreposição */
    position: relative; 
    z-index: 1;
}

.hero h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(224, 231, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Grid */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-lighter);
    font-size: 0.875rem;
}

/* ================================
   SEÇÃO DE RECURSOS
   ================================ */

.features {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(34, 211, 238, 0.5);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
}

/* ================================
   SEÇÃO DE PLANOS
   ================================ */

.plans {
    padding: 4rem 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ajuste para 3 colunas com largura mínima de 300px */
    gap: 2rem;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    text-align: center; /* Centralizar conteúdo como no site de referência */
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-popular {
    border-color: #06b6d4; /* Cor de destaque mais forte */
    box-shadow: 0 0 0 3px #06b6d4, 0 20px 40px rgba(34, 211, 238, 0.2); /* Adicionar um anel de destaque */
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #06b6d4, #3b82f6); /* Inverter o gradiente para destaque */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    /* Estilo para o ícone com fundo e borda */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 5px; /* Adicionar um pequeno padding para a imagem */
}

.plan-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plan-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.plan-desc {
    font-size: 0.875rem;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center; /* Centralizar preço */
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3rem; /* Aumentado de 2rem para 3rem */
    font-weight: 900;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    color: var(--text-lighter);
    font-size: 0.875rem;
}

.plan-features {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left; /* Alinhar lista de recursos à esquerda */
}

.plan-features li {
    padding: 0.5rem 0;
    font-size: 1rem; /* Aumentado de 0.9rem para 1rem */
    font-weight: 600; /* Adicionado peso da fonte */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    
    /* Aplicar gradiente de cor */
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Necessário para o gradiente funcionar */
    text-shadow: none;
}

.plan-features li::before {
    content: '✓'; /* Usar o checkmark diretamente */
    color: #22d3ee; /* Cor do checkmark */
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    width: auto;
    /* Manter o checkmark com a cor original para contraste */
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

/* ================================
   ANIMAÇÕES DE SCROLL-REVEAL
   ================================ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ================================
   SEÇÃO SOBRE
   ================================ */

.about {
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(224, 231, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* ================================
   SEÇÃO CTA
   ================================ */

.cta {
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.875rem;
}

/* ================================
   RESPONSIVIDADE
   ================================ */

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

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .features-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-popular {
        transform: scale(1);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

/* ================================
   ANIMAÇÕES
   ================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.feature-card,
.plan-card,
.stat-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.plan-card:nth-child(2) {
    animation-delay: 0.1s;
}

.plan-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* ================================
   SPLASH SCREEN (TELA DE CARREGAMENTO)
   ================================ */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Usar o mesmo fundo do body para manter a identidade visual */
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999; /* Garantir que fique acima de tudo */
    transition: opacity 0.5s ease-out;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.splash-logo {
    width: 120px;
    height: 120px;
    border-radius: 1rem;
    /* Animação de rotação */
    animation: spin 2s linear infinite;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
}

.loading-bar-container {
    width: 300px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

#loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #60a5fa, #22d3ee); /* Gradiente do site */
    transition: width 0.1s linear; /* Transição suave para a barra */
}

#loading-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-lighter);
}

/* Animação de rotação para a logo */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Classe para esconder o conteúdo principal */important; /* Usar !important para garantir que o display: none seja aplicado */
    opacity: 0;
}

/* Animação de entrada para o conteúdo principal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content-enter {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ================================
   PORTFOLIO SECTION
   ================================ */

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: rgba(30, 41, 59, 0.7); /* Cor de fundo do card, um pouco mais clara que o fundo */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.game-card p {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 1rem;
    flex-grow: 1; /* Garante que o parágrafo ocupe o espaço restante */
}

.game-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto; /* Empurra os botões para o final do card */
}

/* Ajuste para o grid de features/portfolio */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Ajuste para o hero da página de portfólio */
#portfolio-hero {
    padding-top: 7rem; /* Garante que o conteúdo comece abaixo da navbar */
}


/* ================================
   WHATSAPP FLOATING BUTTON
   ================================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #20ba5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}



/* ================================
   TESTIMONIALS SECTION
   ================================ */

.testimonials-section {
    padding: 5rem 0;
    text-align: center;
    background: transparent;
}

.testimonials-section h2 {
    margin-bottom: 0.5rem;
}

.testimonials-section p {
    color: #a0aec0;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: rgba(22, 27, 34, 0.3);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-bubble.admin {
    background-color: #262e35; /* Cor para a bolha do "admin" (você) */
    color: #e6edf3;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-bubble.client {
    background-color: #005c4b; /* Cor para a bolha do "cliente" (verde do WhatsApp) */
    color: #e6edf3;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
