/* ========================================================== */
/* --- 0. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
/* ========================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores */
    --primary-blue: #6366F1;
    --white: #ffffff;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Seleciona a barra de rolagem inteira */
::-webkit-scrollbar {
  width: 8px; /* Largura da barra */
}

/* Seleciona a trilha da barra (o fundo) */
::-webkit-scrollbar-track {
  background: rgb(1, 20, 20); /* Cor da trilha */
}

/* Seleciona a alça (o polegar) que é arrastável */
::-webkit-scrollbar-thumb {
  background: var(--primary-blue); /* Cor da alça */
  border-radius: 6px; /* Arredonda os cantos da alça */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--slate-900);
    color: var(--slate-300);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}


/* ========================================================== */
/* --- 1. NAVBAR --- */
/* ========================================================== */
.floating-nav { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 1000; width: 95%; max-width: 1100px; }
.navbar-container { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 3.6rem; background-color: rgba(10, 25, 47, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(191, 85, 236, 0.15); padding: 0.5rem 1.5rem; border-radius: 50px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.navbar-logo { height: 28px; display: block; }
.nav-list { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; position: relative; gap: 0.2rem; }
.nav-highlight { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 50px; background: rgba(191, 85, 236, 0.15); box-shadow: 0 0px 20px rgba(99, 102, 241, 0.4);; transition: transform 350ms cubic-bezier(.2,.9,.3,1), width 350ms cubic-bezier(.2,.9,.3,1); pointer-events: none; z-index: 1; }
.nav-item { position: relative; }
.nav-link { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 0.75rem 0.9rem; color: #E0E0E0; text-decoration: none; border-radius: 50px; transition: color 0.3s ease; white-space: nowrap; }
span.link-text { font-weight: bold; font-size: 10pt; }
.nav-link > i { margin: 0 7px 0 0; }
.nav-link .fa-caret-down { transition: transform 0.3s ease; }
.hamburger-menu { display: none; cursor: pointer; padding: 10px; }
.hamburger-menu .bar { width: 25px; height: 3px; background-color: #E0E0E0; margin: 2.8px 0; transition: 0.4s; }
@media (max-width: 999px) { .nav-list { display: none; flex-direction: column; align-items: center; position: absolute; top: calc(100% + 10px); left: 0; width: 100%; background-color: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; padding: 0.8rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); border: 1px solid rgba(191, 85, 236, 0.15); } .nav-list.active { display: flex; } .nav-highlight { display: none; } .navbar-container { padding: 0.5rem 1rem; } .navbar-container.menu-open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .hamburger-menu { display: flex; flex-direction: column; } .hamburger-menu.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-6px, 6px); } .hamburger-menu.active .bar:nth-child(2) { opacity: 0; } .hamburger-menu.active .bar:nth-child(3) { transform: rotate(45deg) translate(-6px, -6px); } .dropdown-content { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background-color: transparent; padding: 0.5rem 0 0.5rem 0.5rem; min-width: auto; width: 100%; } .dropdown.open .dropdown-content { display: flex; flex-direction: column; align-items: center;} }

/* ========================================================== */
/* --- 2. NOVA SEÇÃO HERO --- */
/* ========================================================== */
.new-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
    text-align: center;
    background-color: var(--slate-900);
}

.new-hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url(Imagens/fundo.png); /* Certifique-se de que o caminho 'fundo.png' está correto */
    background-size: cover;
    background-position: center;
    animation: pan-background 10s linear infinite alternate;
    z-index: 0;
    opacity: 0.8; /* Aumentado para 0.8 para torná-la mais visível, mas ainda semi-transparente */
}

@keyframes pan-background {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-5%) translateY(5%); }
}

.new-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 9999px;
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    color: var(--slate-300);
}

.new-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 600px;
}

.highlight-blue {
    background: linear-gradient(to right, #A5B4FC, #6366F1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--slate-400);
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-primary-new, .btn-secondary-new {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.tango-inicio{
    z-index: 1000;
    opacity: 1;
    width: 32rem;
}

@media(max-width: 1050px){
    .new-hero-section{
        flex-direction: column;
        padding-top: 3rem;
    }

    .tango-inicio{
        width: 22rem;
    }
}

@media(max-width: 660px){
    .new-hero-section{
        flex-direction: column;
        padding-top: 7.5rem;
    }

    .tango-inicio{
        width: 15rem;
    }
}

.btn-primary-new {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary-new {
    background-color: transparent;
    color: var(--slate-300);
    border: 1px solid var(--slate-800);
}

.btn-secondary-new:hover {
    background-color: var(--slate-800);
    color: var(--white);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--slate-800);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--slate-400);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        border-top: none;
        padding-top: 1rem;
    }
}

/* ========================================================== */
/* --- 3. SEÇÃO ECOSYSTEM --- */
/* ========================================================== */
.ecosystem-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 20px 20px 20px;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    border-bottom: 1px solid #1B2735;
    border-top: 1px solid rgba(1, 2, 5, 0.135);
    
}

.ecosystem-intro-text {
    width: 90%;
    max-width: 1100px;
    text-align: center;
    z-index: 5;
    color: #ffffff;
    margin-bottom: 1rem;
}
.ecosystem-intro-text h1 {padding-top: 40px; padding-bottom: 25px; font-size: clamp(1.2rem, 3vw, 2rem); color: #ffffff; }
.ecosystem-intro-text p {color: #CBD5E1; }

.progress-counter {
    position: absolute;
    top: 60px;
    right: 50px;
    background-color: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(5px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.progress-counter.visible { opacity: 1; transform: translateY(0); }

.ecosystem-container {
    position: relative;
    width: 800px;
    height: 600px;
    z-index: 1;
    transition: transform 0.3s ease-in-out;
}

.cloud-icon-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px; /* Base size, 2.5x the 80px nodes */
    height: 140px; /* Base size */
    background-color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 2; /* Mesma camada da antiga imagem da nuvem */
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5); /* Sombra mais destacada */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cloud-icon-node i {
    font-size: 60px; /* Ícone da nuvem, ajustado para ser visível no novo tamanho */
    color: var(--primary-blue);
}

/* Ajusta a animação de pulso da nuvem para o novo nó de ícone */
.ecosystem-container.all-connected .cloud-icon-node {
    animation: cloud-pulse 2.5s infinite ease-in-out;
}
/* Reajuste o keyframe cloud-pulse se necessário, dependendo de como você quer o brilho */
@keyframes cloud-pulse {
    0% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.7); }
    50% { box-shadow: 0 0 50px rgba(99, 102, 241, 1); }
    100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.7); }
}
.service-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.service-node:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5); }
.service-node i { font-size: 30px; color: #6366F1; }

/* Posicionamento dos nós */
#node-niche { top: 40px; left: 360px; }
#node-gestao { top: 180px; left: 100px; }
#node-educacao { top: 180px; right: 100px; }
#node-financas { bottom: 60px; left: 180px; }
#node-marketing { bottom: 60px; right: 180px; }

.connection-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.connection-lines path { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s ease, filter 0.5s ease; }
.connection-lines path.connected { stroke: #ffc107; filter: url(#yellow-glow); }

.info-card {
    position: fixed;
    top: 50%;
    left: 50%;
    
    width: 100%;
    max-width: 540px; /* Um pouco mais compacto para elegância */
    
    /* Fundo escuro com efeito 'frosted glass' */
    background-color: rgba(30, 41, 59, 0.7); /* Cor --slate-800 com transparência */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Borda fina e clara, como sugerido */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    border-radius: 16px; /* Bordas mais suaves */
    padding: 2rem; /* Espaçamento interno (32px) */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    
    z-index: 11;
    text-align: center;
    
    /* Animação de surgimento */
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.info-card.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.info-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem; /* 24px */
    font-weight: 600;
    color: var(--white);
    
    /* Alinha o ícone e o texto do título */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* 12px */
    margin-bottom: 1rem; /* Espaço abaixo do título */
}

.info-card h2 i {
    color: var(--primary-blue); /* Mantém o ícone com a cor de destaque */
}

.info-card p {
    font-family: var(--font-body);
    color: var(--slate-300); /* Cor mais suave para o texto principal */
    line-height: 1.7;
    font-size: 1.2rem;
    margin-bottom: 1.5rem; /* Espaço abaixo do parágrafo */
}

.info-card span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--slate-400); /* Cor ainda mais suave para os exemplos */
    font-style: italic;
}

/* Botão de fechar redesenhado */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--slate-300);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.tango-astronauta{
    position: absolute;
    left: -50px;
    bottom: 0;
    width: 23rem;
}

@media(max-width: 1080px){
    .tango-astronauta{
        width: 12rem;
        left: -30px;
    }
}

#overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 59, 92, 0.6); z-index: 10; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
#overlay.visible { opacity: 1; pointer-events: auto; }

/* REMOVIDO: Regras do .ecosystem-final-text */

@keyframes cloud-pulse { 0% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)); } 50% { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)); } 100% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)); } }
@keyframes line-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
@keyframes burst-effect { 0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(10); opacity: 0; } }
.ecosystem-container.all-connected .cloud-img { animation: cloud-pulse 2.5s infinite ease-in-out; }
.ecosystem-container.all-connected .connection-lines path.connected { stroke-dasharray: 10 20; animation: line-flow 3s linear infinite; animation-delay: 0.5s; }
.energy-burst { position: absolute; top: 50%; left: 50%; width: 80px; height: 80px; background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0; z-index: 1; }
.ecosystem-container.all-connected .energy-burst { animation: burst-effect 0.8s ease-out forwards; }


/* ========================================================== */
/* --- 6. ANIMAÇÃO DE FUNDO DE ESTRELAS --- */
/* ========================================================== */

@keyframes animStar {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2000px);
    }
}

/* Camada de estrelas pequenas (mais distantes e lentas) */
#stars {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 
        1875px 1052px #FFF, 1572px 1459px #FFF, 801px 1378px #FFF, 459px 384px #FFF, 
        1488px 439px #FFF, 1158px 133px #FFF, 1261px 1045px #FFF, 1259px 1335px #FFF, 
        /* ... e muitas outras estrelas geradas aleatoriamente ... */
        539px 1192px #FFF, 1154px 1113px #FFF, 140px 1832px #FFF, 1000px 1000px #FFF;
    animation: animStar 70s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
#stars:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: inherit; /* Reutiliza as mesmas estrelas para um loop perfeito */
}

/* Camada de estrelas médias */
#stars2 {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 
        1007px 1445px #FFF, 24px 1729px #FFF, 413px 456px #FFF, 1131px 1863px #FFF, 
        /* ... etc ... */
        1984px 132px #FFF, 1782px 1183px #FFF, 1511px 1134px #FFF, 838px 1137px #FFF;
    animation: animStar 50s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
#stars2:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: inherit;
}

/* Camada de estrelas grandes (mais próximas e rápidas) */
#stars3 {
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 
        108px 1529px #FFF, 1969px 1383px #FFF, 1084px 81px #FFF, 1033px 1461px #FFF, 
        /* ... etc ... */
        1438px 1413px #FFF, 1189px 422px #FFF, 1073px 1785px #FFF;
    animation: animStar 14s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
#stars3:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: inherit;
}

/* ========================================================== */
/* --- 4. ACHIEVEMENT MESSAGE (NOVO) --- */
/* ========================================================== */
.achievement-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1e293b; /* Cor de fundo escura */
    border: 1px solid #6366F1; /* Borda com a cor primária */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2); /* Efeito bounce */
    z-index: 2000; /* Garante que fique acima de tudo */
}

.achievement-message.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.achievement-message .message-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.achievement-message .message-header {
    display: flex;
    align-items: flex-start; /* Alinha o ícone com o topo do texto */
    gap: 12px;
}

.achievement-message .message-icon {
    font-size: 2.2rem; /* Ícone maior */
    color: #6366F1; /* Cor primária para o check */
    flex-shrink: 0; /* Impede que o ícone encolha */
}

.achievement-message .message-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
    display: block; /* Para o margin-bottom funcionar */
}

.achievement-message .message-title .emoji {
    margin-right: 5px; /* Espaço para o emoji */
}

.achievement-message .message-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--slate-300);
    line-height: 1.4;
    margin: 0;
}

/* Responsividade da mensagem */
@media (max-width: 600px) {
    .achievement-message {
        bottom: 10px;
        right: 10px;
        max-width: calc(100% - 20px); /* Ocupa quase toda a largura em mobile */
        padding: 12px 15px;
    }
    .achievement-message .message-icon {
        font-size: 1.8rem;
    }
    .achievement-message .message-title {
        font-size: 1rem;
    }
    .achievement-message .message-subtitle {
        font-size: 0.8rem;
    }
}

/* ========================================================== */
/* --- 5. RESPONSIVIDADE GERAL --- */
/* ========================================================== */
@media (max-width: 810px) {
    .ecosystem-container { transform: scale(0.8); }
    .ecosystem-section { padding-top: 20px; }
    .progress-counter {
    /* Remove o posicionamento antigo no topo/direita */
    top: auto;
    right: auto;
    /* Adiciona o novo posicionamento no canto inferior esquerdo */
    bottom: 60px;
    left: 50%px;

    /* Mantém os ajustes de estilo */
    padding: 6px 12px;
    font-size: 0.8rem;
}
}
@media (max-width: 500px) {
    .ecosystem-section { min-height: 400px; padding-top: 60px;}
    .energy-burst{
        width: 60px;
        height: 60px;
    }
    .ecosystem-container {transform: scale(0.57); margin-top: -105px; }
    .ecosystem-intro-text h1 { font-size: 1.3rem; padding-bottom: 20px;}
    .ecosystem-intro-text p { font-size: 0.9rem; }
    .cloud-icon-node{
        width: 9rem;
        height: 9rem;
        
    }
    
    .cloud-icon-node i {
    font-size: 70px; /* Ícone da nuvem, ajustado para ser visível no novo tamanho */
    color: var(--primary-blue);
}


.progress-counter {
    /* Remove o posicionamento antigo no topo/direita */
    top: auto;
    right: auto;
    /* Adiciona o novo posicionamento no canto inferior esquerdo */
    bottom: 80px;
    left: 50%px;

    /* Mantém os ajustes de estilo */
    padding: 6px 12px;
    font-size: 0.8rem;
}
    .info-card { padding: 40px; max-width: 350px; }

    .info-card h2{
        margin: 16px;
    }

    .info-card h2>i{
        position: absolute;
        top: 1.3rem;
        left: 1.3rem;
    }
}

#line-niche.connected {
    /* Desativa o filtro de brilho APENAS para esta linha para evitar o bug de renderização */
    filter: none;
}

/* ========================================================== */
/* --- 4. SEÇÃO DE RECURSOS (FEATURES) --- */
/* ========================================================== */
.features-section {
    padding: 100px 20px 0px 20px;
    background-color: var(--slate-900);
    text-align: center;
}

.features-content {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--slate-400);
    max-width: 1200px;
    margin: 0 auto 3rem auto; /* Centraliza e adiciona espaço abaixo */
    line-height: 1.6;
}

.features-grid {
    display: grid;
    /* 4 colunas em desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--slate-800);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem; /* 12px */
    padding: 1.5rem; /* 24px */
    text-align: left;
    position: relative;
    overflow: hidden; /* Importante para o efeito de borda */
    transition: background-color 0.3s ease;
}

/* Efeito de brilho da borda no hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(270px circle at var(--mouse-x) var(--mouse-y), rgba(99, 102, 241, 0.4), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Conteúdo do card fica por cima do brilho */
.card-icon, .feature-card h3, .feature-card p {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem; /* 8px */
    background-color: var(--slate-900);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.card-icon i {
    font-size: 1.25rem; /* 20px */
    color: var(--slate-300);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem; /* 20px */
    color: var(--white);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--slate-400);
    line-height: 1.6;
}

/* Mudanças no hover */
.feature-card:hover {
    background-color: var(--slate-800); /* Mantém o fundo */
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-card:hover .card-icon {
    background-color: var(--primary-blue);
}

/* Responsividade da seção */
@media (max-width: 1024px) {
    /* 2 colunas em telas médias */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    /* 1 coluna em telas pequenas */
    .features-grid {
        grid-template-columns: 1fr;
    }
    .features-section {
        padding: 80px 15px 0 15px;
    }
    .feature-card{
        margin: 0px 20px;
    }
}


/* =================================================================
   FAQ SECTION - APE TECHNOLOGY (DARK NEUTRAL THEME)
================================================================= */
.faq-section {
    /* Removemos a altura fixa (height) e o justify-content */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 95px 20px 50px 20px; /* Adiciona espaçamento vertical e horizontal */
    background-color: var(--slate-900); /* Garante um fundo consistente */
}

.faq-section .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto; /* Aumenta a margem inferior */
}

.faq-section .section-intro h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.faq-section .section-intro p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--slate-400);
}

.faq-accordion {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--slate-800);
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2); /* Borda sutil */
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--primary-blue);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
}

.faq-question i {
    font-size: 1rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    color: var(--slate-300);
    line-height: 1.7;
}

.faq-answer p strong {
    color: var(--white);
    font-weight: 600;
}

/* Quando o item está ativo (aberto) */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Altura máxima para a animação. Ajuste se tiver respostas muito longas. */
}

/* Responsividade */
@media(max-width: 768px){
    .faq-section {
        padding: 80px 15px;
    }
    .faq-question {
        font-size: 1rem;
        padding: 18px 20px;
    }
    .faq-answer p {
        padding: 0 20px 20px 20px;
    }
}

/* ========================================================== */
/* --- 5. SEÇÃO DE CONTATO --- */
/* ========================================================== */
.contact-section {
    padding: 90px 20px 20px 20px;
    background-color: var(--slate-900);
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.title-decorator {
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #A5B4FC, #6366F1);
    border-radius: 2px;
    margin: 1rem auto;
}

.contact-box {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--slate-800);
    border-radius: 0.75rem;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Coluna da direita é 1.5x maior */
    gap: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-channels h3, .contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-channels p {
    color: var(--slate-400);
    margin-bottom: 2rem;
}

.channel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.channel-list a {
    color: var(--slate-300);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.channel-list a:hover {
    color: var(--primary-blue);
}

.channel-list i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.solutions-link {
    color: #A5B4FC;
    text-decoration: none;
    font-weight: 600;
}

.solutions-link:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    background-color: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: var(--slate-400);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(to right, #A5B4FC, var(--primary-blue)); /* Gradiente de azul do site */
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    /* Sombra ajustada para os tons de azul */
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Responsividade da seção de Contato */
@media (max-width: 900px) {
    .contact-box {
        grid-template-columns: 1fr; /* As colunas ficam uma sobre a outra */
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr; /* Os inputs de nome ficam um sobre o outro */
    }
    .contact-section {
        padding: 90px 15px 30px 15px;
    }
}

/* ========================================================== */
/* --- 6. SEÇÃO SOLUÇÕES (CARROSSEL) --- */
/* ========================================================== */
.solutions-carousel-section {
    width: 100%;
    height: 100vh;
    margin: 0;
    min-height: 500px; /* Aumenta a altura mínima para caber o título */
    display: flex; /* Muda de 'grid' para 'flex' */
    flex-direction: column; /* Empilha os itens (título e carrossel) */
    justify-content: center; /* Centraliza o conjunto na vertical */
    align-items: center; /* Centraliza o conjunto na horizontal */
    overflow: hidden;
    padding: 1rem 2rem 1rem 2rem;
}

.section-title{
    text-align: center;

}

.carousel-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 60vh;
    max-height: 500px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
}

.carousel-container .slide .item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.carousel-p{
    margin-bottom: 2rem;
}

.slide .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    z-index: 1;
}

/* O primeiro item visível (o menor, de fundo) */
.slide .item:nth-child(1) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

/* O item principal (o ativo, na frente) */
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

/* Itens na fila, à direita */
.slide .item:nth-child(3) { left: 75%; }
.slide .item:nth-child(4) { left: calc(75% + 220px); }
.slide .item:nth-child(5) { left: calc(75% + 440px); }
.slide .item:nth-child(n + 6) { left: calc(75% + 660px); opacity: 0; }

.item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    display: none;
    z-index: 2;
}

.slide .item:nth-child(2) .content {
    display: block;
}

.content .name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: bold;
    opacity: 0;
    animation: animate-content 1s ease-in-out 1 forwards;
    line-height: 1.2;
}

.content .des {
    font-family: var(--font-body);
    color: var(--slate-300);
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate-content 1s ease-in-out 0.3s 1 forwards;
}

.content button {
    font-family: var(--font-heading);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--slate-900);
    font-weight: 600;
    transition: all 0.3s;
    animation: animate-content 1s ease-in-out 0.6s 1 forwards;
}

.content button:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

.slide .item::before {
        border-radius: 12px;
        /* Aumenta a opacidade do overlay para melhorar contraste do texto */
        background: rgba(27, 27, 27, 0.75); /* Antes era 0.4 */
    }

@keyframes animate-content {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(20px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
        filter: blur(0);
    }
}

.carousel-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.carousel-navigation button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.3);
    color: #eee;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-navigation button:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

@media (max-width: 900px) {
    .content{
        margin-left: -60px;
        margin-top: -30px;
        max-width: 700px;
    }

    
}

@media (max-width: 600px) {
    .content{
        margin-left: -60px;
        margin-top: -30px;
        max-width: 140px;
    }

    .content .des{
        font-size: 0.9rem;
        font-weight: 500;
        line-height: 18px;
    }

    .content .name{
        font-size: 1.3rem;
        line-height: 25px;
    }

    
}

.footer {
    position: relative;
    width: 100%;
    color: hsl(0, 0%, 85%);
    padding: 1rem 0 2rem 0;
    overflow: hidden;
    background-color: rgb(15, 23, 42);
}



.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Styles */
.logo-wrapper {
    animation: float 4s ease-in-out infinite;
    position: relative;
}


.logo-box {
    position: relative;
    padding: 2rem 0 1rem 0;
}

.logo-text {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    letter-spacing: 0.1em;
}



/* Copyright */
.copyright {
    position: relative;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 48rem;
}

.copyright-line {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(250, 85%, 60%), transparent);
}

.copyright-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.company-name {
    font-weight: bold;
    background: linear-gradient(90deg, hsl(250, 85%, 60%), hsl(280, 70%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copyright-subtext {
    font-size: 0.75rem;
    color: hsl(0, 0%, 70%);
    margin-bottom: 0.3rem;
}


@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        filter: blur(2rem);
        opacity: 0.3;
    }
    50% {
        filter: blur(2.5rem);
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 0.5rem 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .contact-icons {
        gap: 1rem;
    }
    
    .icon-link {
        padding: 0.625rem;
    }
}











/* ========================================================== */
/* --- CONTAINER ESPECÍFICO PARA A SEÇÃO "PARA QUEM É" --- */
/* ========================================================== */

.who-we-help-wrapper {
    max-width: 1100px;      /* Define a largura máxima do conteúdo */
    margin-left: auto;      /* Centraliza o conteúdo horizontalmente */
    margin-right: auto;     /* Centraliza o conteúdo horizontalmente */
    padding-left: 2rem;     /* Cria um "respiro" em telas menores */
    padding-right: 2rem;    /* Cria um "respiro" em telas menores */
    width: 100%;            /* Garante que o container se comporte bem */
}

.who-we-help-section {
    padding: 6rem 0; /* Espaçamento vertical da seção */
    background-color: var(--slate-900); /* Fundo escuro padrão */
}

/* Títulos e Subtítulos da Seção */
.who-we-help-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto; /* Centraliza e adiciona espaço abaixo */
}

.who-we-help-section .section-intro h2 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 2.5rem; /* Tamanho do título principal da seção */
    margin-bottom: 1rem;
}

.who-we-help-section .section-intro p {
    color: var(--slate-400);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Grid para os Cards de Público-Alvo */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas */
    gap: 2rem; /* Espaçamento entre os cards */
}

/* Estilo Individual do Card */
.audience-card {
    background-color: var(--slate-800); /* Cor de fundo do card, um pouco mais clara que o fundo */
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #334155; /* Borda sutil */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-10px); /* Efeito de elevação no hover */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Ícone do Card */
.audience-card .card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1)); /* Gradiente sutil com as cores da marca */
}

.audience-card .card-icon i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

/* Título e Texto do Card */
.audience-card h3 {
    font-family: var(--font-heading);
    color: var(--slate-300);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.audience-card p {
    font-family: var(--font-body);
    color: var(--slate-400);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .audience-grid {
        grid-template-columns: 1fr; /* Empilha os cards em telas menores */
    }
}



/* ========================================================== */
/* --- AJUSTE ESPECÍFICO PARA A SEÇÃO "PARA QUEM É" --- */
/* ========================================================== */

/* Esta regra força a grade da seção #who-we-help a ter 3 colunas em desktop */
#who-we-help .features-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Regras de responsividade ESPECÍFICAS para esta seção */
@media (max-width: 1024px) {
    /* Em tablets, mantemos o padrão de 2 colunas */
    #who-we-help .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    /* Em celulares, mantemos o padrão de 1 coluna */
    #who-we-help .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================== */
/* --- AJUSTE DE LARGURA PARA A SEÇÃO "PARA QUEM É" --- */
/* ========================================================== */

/* Adiciona padding nas laterais da seção principal */
#who-we-help-section {
    padding-left: 50%;
    padding-right: 10%;
}

/* Ajustes de responsividade para o padding */
@media (max-width: 1024px) {
    #who-we-help-section {
        padding-left: 24rem; /* 32px */
        padding-right: 24rem; /* 32px */
    }
}

@media (max-width: 640px) {
    #who-we-help-section {
        padding-left: 15rem; /* 16px */
        padding-right: 1rem; /* 16px */
    }
}