/* --- FONTES E CONFIGURAÇÕES GLOBAIS --- */
:root {
    --bg-color: #02040a;
    --primary-color: #0d1117;
    --text-color: #e6edf3;
    --gradient-start: #3081f2;
    --gradient-mid: #05e6d8;
    --gradient-end: #7928ca;
    --border-color: #21262d;
    --glow-color: rgba(5, 230, 216, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeInPage 1.5s ease-in-out forwards;
    cursor: default;
}

/* Animação de entrada da página */
@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

/* Fundo de estrelas animado */
#starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

section {
    padding: 120px 20px;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Prevenir barras de rolagem indesejadas */
}

/* Efeitos de Título */
.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3rem); /* Tamanho de fonte responsivo */
    margin-bottom: 60px;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.animated-gradient-text {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end), var(--gradient-start));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 8s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Botão Principal */
.cta-button {
    background-image: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-start) 100%);
    background-size: 200% auto;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.4s ease;
    display: inline-block;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px var(--glow-color);
    background-position: right center;
}

/* --- CABEÇALHO --- */
.header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.8rem;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}
.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
    transition: width 0.3s ease;
}
.nav-link:hover { color: white; text-shadow: 0 0 10px var(--glow-color); }
.nav-link:hover::after { width: 100%; }

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.4s cubic-bezier(0.7, 0, 0.2, 1); background-color: white; border-radius: 2px; }

/* --- SEÇÃO HERO --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 30px;
    margin-bottom: -30px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-family: 'Teko', sans-serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SEÇÃO SOBRE --- */
.about-content { display: flex; align-items: center; gap: 60px; }
.about-image { flex: 1; }
.about-image img {
    max-width: 100%;
    width: 400px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 25px var(--glow-color);
}
.about-text { flex: 1.2; }
.about-text h2 { text-align: left; }
.about-text p { line-height: 1.8; margin-bottom: 40px; margin-top: -45px; }
.cta-button-secondary {
    border: 2px solid var(--gradient-mid);
    color: var(--gradient-mid);
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.cta-button-secondary:hover {
    background-color: var(--gradient-mid);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--glow-color);
}

/* --- SEÇÃO COMO FUNCIONA --- */
.process-section { background-color: rgba(13, 17, 23, 0.7); }
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
    gap: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 5%;
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
    border-radius: 2px;
    z-index: -1;
}
.timeline-item { text-align: center; width: 18%; position: relative; }
.timeline-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 4px solid var(--gradient-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-icon i { font-size: 1.5rem; color: var(--gradient-mid); transition: transform 0.3s; }
.timeline-item:hover .timeline-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 20px var(--glow-color);
}
.timeline-item:hover .timeline-icon i { transform: scale(1.1); }
.timeline-item h3 { margin-bottom: 10px; color: white; font-size: 1.1rem; }
.timeline-item p { font-size: 0.9rem; }
.timeline-footer { text-align: center; margin-top: 50px; font-size: 1.1rem; }

/* --- SEÇÃO RESULTADOS (VERSÃO COM LOOP INFINITO PERFEITO) --- */
.scrolling-wrapper {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 50px;
    /* Máscara para criar um efeito de fade nas laterais */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.scrolling-inner {
    display: flex;
    /* Otimização para o navegador, garante uma animação mais suave */
    will-change: transform;
    animation: scroll 25s linear infinite;
}

/* Pausa a animação quando o mouse está sobre o carrossel */
.scrolling-wrapper:hover .scrolling-inner {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        /* Move exatamente 50% para a esquerda. Como o conteúdo é duplicado,
            isso cria um loop perfeito e imperceptível. */
        transform: translateX(-50%);
    }
}

.scrolling-inner img {
    height: 450px;
    width: auto; /* Mantém a proporção da imagem */
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-right: 25px; 
}

.scrolling-inner img:hover {
    transform: scale(1.05); /* Efeito de zoom no hover */
    box-shadow: 0 10px 25px var(--glow-color);
    cursor: pointer;
}

/* --- SEÇÃO SERVIÇOS --- */
.services-section { background-color: rgba(13, 17, 23, 0.7); }
.services-container { display: flex; align-items: center; gap: 50px; }
.services-list { flex: 1; }
.services-list ul { list-style: none; padding: 0; }
.services-list li {
    font-size: 1.1rem;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.services-list li:hover {
    background-color: rgba(255,255,255,0.05);
    transform: translateX(10px);
    border-left: 3px solid var(--gradient-start);
}
.services-list li i {
    color: var(--gradient-start);
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
}
.services-image { flex: 1; text-align: center; }
.services-image img { max-width: 100%; filter: drop-shadow(0 0 25px #4c8bff79); }

/* --- SEÇÃO PREÇOS (COM HOVER CORRIGIDO) --- */
.pricing-section {
    position: relative;
}
.pricing-container { display: flex; justify-content: center; align-items: stretch; gap: 30px; flex-wrap: wrap; }
.pricing-card {
    background: linear-gradient(145deg, var(--primary-color), #1c232e);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    width: 350px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Hover para cards normais */
.pricing-card:hover {
    transform: translateY(-10px) scale(1.05) rotate(-3deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px var(--glow-color);
    border-color: var(--gradient-mid);
}

.pricing-card h3 { font-size: 1.5rem; margin-bottom: 20px; font-family: 'Teko', sans-serif; letter-spacing: 1px;}
.price { font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; color: white; }
.price span { font-size: 3rem; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; }
.price-full { margin-bottom: 30px; opacity: 0.8; }
.pricing-card .cta-button { margin-top: auto; }
.card-footer { margin-top: 30px; display: flex; justify-content: space-around; font-size: 0.8rem; opacity: 0.7; }
.card-footer i { margin-right: 5px; }

/* Card em destaque - estado padrão (maior que os outros) */
.pricing-card.featured {
    border: 2px solid var(--gradient-start);
    transform: scale(1.05); /* Mantém ele maior por padrão */
    box-shadow: 0 0 30px var(--glow-color);
    animation: featuredGlow 3s infinite alternate;
}

/* Hover específico para o card em destaque (para não anular o scale) */
.pricing-card.featured:hover {
    transform: scale(1.1) translateY(-10px) rotate(-3deg); /* Aumenta ainda mais no hover */
    box-shadow: 0 0 40px rgba(48, 129, 242, 0.6);
}

@keyframes featuredGlow {
    from { box-shadow: 0 0 20px var(--glow-color); }
    to { box-shadow: 0 0 40px rgba(48, 129, 242, 0.6); }
}
.featured-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.features-list { list-style: none; text-align: left; margin: 30px 0; padding: 0 20px; flex-grow: 1;}
.features-list li { margin-bottom: 12px; }
.features-list i { color: var(--gradient-mid); margin-right: 10px; }

/* --- RODAPÉ --- */
.footer { background-color: var(--primary-color); padding: 60px 20px 20px; text-align: center; border-top: 1px solid var(--border-color); }
.footer .nav-logo { font-size: 2.2rem; }
.social-links { margin: 20px 0; }
.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.social-links a:hover { color: var(--gradient-mid); transform: scale(1.2) translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; margin-top: 20px; font-size: 0.9rem; opacity: 0.7; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .about-content { flex-direction: column; text-align: center; }
    .about-text h2 { text-align: center; }
    .about-image { margin-bottom: 40px; }
    .services-container { flex-direction: column-reverse; }
    .services-image { margin-top: 40px; }
    .timeline { flex-direction: column; gap: 40px; align-items: center; }
    .timeline::before { display: none; }
    .timeline-item { width: 80%; max-width: 350px; }
}

@media (max-width: 768px) {
    .scrolling-inner img {
        height: 350px; /* Altura menor para telas mobile */
    }

    .hamburger { 
        display: block; 
        z-index: 101;
        position: relative;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(2, 4, 10, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 100;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        clip-path: circle(25px at calc(100% - 45px) 45px);
        transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.2, 1);
        visibility: hidden;
    }

    .nav-menu.active {
        visibility: visible;
        clip-path: circle(150vh at calc(100% - 45px) 45px);
    }

    .nav-item {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.5s; }

    .nav-link { 
        font-size: 1.8rem; 
    }
}