:root {
    --primary: #6366f1;
    /* Indigo */
    --primary-dark: #18181b;
    --secondary: #fbbf24;
    /* Amarelo */
    --accent: #e11d48;
    /* Rosa Neon */
    --bg-primary: linear-gradient(135deg, #020617 0%, #18181b 100%);
    --bg-card: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(12, 74, 110, 0.2));
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: rgba(129, 140, 153, 0.2);
    --glow: 0 0 25px rgba(99, 102, 241, 0.5);
    --secondary_two: #06b6d4;
    --accent_two: #8b5cf6;
    --purple: #a855f7;
}

body {
    background: #020617;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.blog-cta {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary_two), var(--purple), var(--pink));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.blog-cta:hover::before {
    left: 100%;
}

.blog-cta:hover {
    background: linear-gradient(135deg, rgb(1, 73, 255), rgba(183, 10, 252, 0.938));
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(188, 117, 253, 0.3);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--purple), var(--pink));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    animation-delay: 0.3s;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    background: linear-gradient(135deg, rgba(133, 6, 236, 0.897), rgba(168, 85, 247, 0.2));
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(188, 117, 253, 0.3);
}

@keyframes backgroundShift {
    0% {
        background:
            radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
    }

    100% {
        background:
            radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.25) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    animation-delay: 0.3s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary_two), var(--purple));
    color: white;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, var(--secondary), var(--purple), var(--pink));
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--text-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 38, 150, 0.788), rgba(6, 130, 212, 0.1), rgba(118, 14, 214, 0.568));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 1rem;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent_two);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 0 50px rgba(168, 85, 247, 0.3);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll-left {
    animation: scroll-left 20s linear infinite;
}

.animate-scroll-left:hover {
    animation-play-state: paused;
}

/* Efeito Glass Card aprimorado */
.glass-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(12, 74, 110, 0.2));
    border: 1px solid rgba(129, 140, 153, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(12, 74, 110, 0.3));
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Animação de entrada */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
    .animate-scroll-left {
        animation-duration: 15s;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

/* Estilos específicos para testimonials lado a lado */
.testimonial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

#scrollTopBtn {
    display: none;
    /* Começa escondido */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #6366f1;
    /* Cor primária site */
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

#scrollTopBtn.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background-color: #4f46e5;
    /* Cor mais escura para hover */
}

/* ===== BARRA DE ROLAGEM CUSTOMIZADA ===== */

/* Funciona em navegadores baseados em WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 12px; /* Largura da barra de rolagem */
}

::-webkit-scrollbar-track {
  background: #0f172a; /* Cor de fundo da trilha (um tom de slate-900) */
}

::-webkit-scrollbar-thumb {
  /* O gradiente da sua identidade visual */
  background: linear-gradient(45deg, #818cf8, #c084fc); 
  border-radius: 10px; /* Bordas arredondadas */
  border: 2px solid #0f172a; /* Cria uma pequena borda em volta do polegar */
}

::-webkit-scrollbar-thumb:hover {
  /* Um gradiente um pouco mais vibrante quando o mouse passa por cima */
  background: linear-gradient(45deg, #6366f1, #a855f7);
}

/* Funciona no Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #818cf8 #0f172a; /* Cor do polegar e da trilha */
}

/* ===== BARRA DE PROGRESSO DE LEITURA ===== */
#progress-bar {
  position: fixed; /* Fica fixa no topo da tela */
  top: 0;
  left: 0;
  height: 4px; /* Altura da barra */
  background: linear-gradient(to right, #818cf8, #c084fc); /* Gradiente da ID Visual */
  width: 0%; /* Começa com largura 0 */
  z-index: 100; /* Garante que ela fique acima de outros elementos */
  transition: width 0.1s linear; /* Animação suave ao rolar */
}