﻿/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: clamp(0.9rem, 3vw, 1.125rem); /* <-- MUDANÇA AQUI */
    max-width: 800px;
    margin: 0 auto;
    margin-top: 30px;
    font-weight: 300; /* ADICIONADO */
    font-style: italic; /* ADICIONADO */
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700; /* ADICIONADO */
    font-style: italic; /* ADICIONADO */
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}


.btn-secondary {
    background: transparent;
    color: var(--text-gray);
    border: 2px solid var(--text-gray);
}

.btn-secondary:hover {
    color: var(--text-light);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

#loading-screen > p{
    width: 90%; /* Garante que ocupe a largura da tela no mobile */
    max-width: 26rem; /* Mantém o limite de 26rem para telas maiores */
    text-align: center; /* Centraliza o texto se ele quebrar em 2 linhas */
}

.loading-logo-img{
    height: 4rem;
    margin-bottom: 21px;
}

.spiral-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
}

.spiral-ring {
    position: absolute;
    border: 3px solid transparent;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spiral-spin 2s linear infinite;
}

.spiral-ring:nth-child(1) {
    width: 100px;
    height: 100px;
    animation-duration: 2s;
}

.spiral-ring:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 15px;
    left: 15px;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spiral-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 30px;
    left: 30px;
    animation-duration: 1s;
}

@keyframes spiral-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
    top: 0;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #262626 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    transition: all 0.3s ease;
    padding: 0;
    transform: none;
}

.navbar {
    position: relative;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 3rem;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    width: 140px;
    height: 36px;
    transition: width 0.3s ease;
}

.logo-img {
    height: 36px;
    width: auto;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: absolute;
    left: 0;
    top: 50%;
}

/* Logo transition on scroll */
.logo-full {
    opacity: 1;
    transform: translateY(-50%);
}

.logo-icon {
    opacity: 0;
    transform: translateY(-50%) translateY(-10px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-item {
    margin: 0;
}

.nav-menu .nav-item:last-child {
    position: relative;
    top: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link::after {
    display: none;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    background: var(--secondary-color);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
    margin: 0;
    vertical-align: middle;
}

.nav-cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Header scrolled state */
.header.scrolled {
    background: #262626 !important;
}

.header.scrolled .nav-logo {
    width: 40px;
}

.header.scrolled .logo-full {
    opacity: 0;
    transform: translateY(-50%) translateY(10px);
}

.header.scrolled .logo-icon {
    opacity: 1;
    transform: translateY(-50%);
}

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

.hero-tags {
    display: flex; /* Alinha as tags lado a lado */
    justify-content: flex-start; /* Centraliza o conjunto de tags */
    align-items: center;
    gap: 0.75rem; /* Espaçamento entre as tags */
    margin-bottom: 1.5rem; /* Espaçamento abaixo das tags, antes do título principal */
}

.fire-tag{
    justify-content: center;
}

.hero-tag {
    /* O gradiente dourado, como na imagem */
    background: var(--gradient-primary);
    color: var(--text-dark); /* Cor do texto escura para contraste */
    
    padding: 0.4rem 1.2rem; /* Espaçamento interno */
    border-radius: 12px; /* Deixa as bordas bem arredondadas (formato de pílula) */
    
    font-family: var(--font-heading);
    font-size: 0.8rem; /* Tamanho da fonte pequeno e legível */
    font-weight: 700; /* Negrito */
    text-transform: uppercase; /* Tudo em maiúsculas */
    letter-spacing: 0.5px; /* Leve espaçamento entre as letras */
    white-space: nowrap; /* Evita que o texto quebre a linha */
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
}

.spiral-logo {
    width: 120px;
    height: auto;
}


/* 2. Estilo para a linha de Meta Tags */
.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: -0.5rem; /* Ajusta o espaço com o título acima */
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.2rem;
    flex-wrap: wrap; /* Garante que quebre a linha em telas pequenas */
}

.hero-meta .meta-highlight {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.hero-meta .meta-separator {
    color: var(--text-gray); /* Deixa os separadores mais sutis */
}


/* 3. Estilo para o Link de CTA secundário */
.hero-secondary-cta {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.hero-secondary-cta:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.hero-title {
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-top: 8rem;
    color: var(--text-dark);
}

.title-line {
    display: block;
}

.hero-subtitle {
    max-width: 900px;
    /* MUDANÇA 1: Fonte fluida para se adaptar ao tamanho da tela */
    font-size: clamp(1.1rem, 4vw, 1.4rem); 
    margin-left: auto;
    margin-right: auto;
    font-weight: 300; 
    font-style: italic;
    color: #555555;
    /* MUDANÇA 2: Adiciona espaço nas laterais para não encostar nas bordas */
    padding-left: 1rem;
    padding-right: 1rem;
}

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

.hero-button-subtext {
    color: var(--text-gray); /* Cor cinza sutil */
    font-size: 0.9rem;       /* Tamanho um pouco menor */
    font-weight: 400;
    margin-top: 0.75rem;     /* Espaço abaixo do botão */
    text-align: center;
    font-style: normal;      /* Garante que o texto base não seja itálico */
}

/* Estiliza a parte em itálico que você pediu */
.hero-button-subtext i {
    font-style: italic;
    color: var(--accent-color); /* Usa a cor de destaque (azul claro) */
}

.initial-section-button{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 1.7s infinite;
}

.scroll-arrow {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* ===== PARTNERS CAROUSEL ===== */
.partners-carousel {
    position: absolute;
    bottom: 5rem;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    background: transparent;
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: scrollPartners 25s linear infinite;
    width: max-content;
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.partner-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Hero Animations */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes subtitleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


/* ===== AI CHAT SECTION (NOVO DESIGN) ===== */
.ai-chat {
    padding: 4rem 1rem; /* MUDANÇA AQUI */
    position: relative;
}

.ai-chat-logo {
    display: block;
    margin: 0 auto 2rem auto;
    height: 35px;
}

#ai-chat .section-header {
    margin-bottom: 2rem;
}

#ai-chat .section-title {
    /* Título maior, como na referência */
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 700;
}
/* Remove a linha azul debaixo do título apenas nesta seção */
#ai-chat .section-title::after {
    display: none;
}

/* O container principal do chat */
.chat-container {
    max-width: 900px;
    margin: 0 auto;
    
    /* Fundo escuro #262626 */
    background: #262626;
    
    /* Efeito de vidro para desfocar o fundo */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 70vh; 
    min-height: 500px;
    display: flex;
    flex-direction: column; 
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* 1. Janela de Mensagens */
.chat-window {
    flex-grow: 1; /* Ocupa todo o espaço disponível */
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Logo transparente no fundo do chat */
.chat-window::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza o logo */
    
    width: 250px;  /* Tamanho do logo no fundo */
    height: 250px; /* Tamanho do logo no fundo */
    
    /* Use o caminho para o seu logo (o ícone é o melhor) */
    background-image: url('../img/GEONAI-LOGO08.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    /* Esta é a mágica: ajuste a opacidade como desejar */
    opacity: 0.05; /* 5% de opacidade (bem sutil) */
    
    z-index: -1; /* Coloca o logo atrás das mensagens */
}

/* ===== ESTILO DO CTA TEMPORÁRIO DO CHAT (ATUALIZADO) ===== */

#chat-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Move o texto para cima (-120px) para ficar acima do logo */
    transform: translate(-50%, -120px);
    
    color: var(--text-gray);
    font-size: 1.5rem; /* <-- MUDANÇA: Aumentamos o tamanho da fonte */
    font-weight: bold;
    text-align: center;
    max-width: 80%;
    opacity: 0.4;
    pointer-events: none; 
    transition: opacity 0.3s ease;
}

#chat-placeholder.hidden {
    opacity: 0;
}

/* ===== ESTILO DO MICROFONE (GRAVANDO) ===== */

#mic-btn {
    /* Torna o ícone clicável */
    cursor: pointer;
    transition: color 0.3s ease;
    
    /* Garante que o ícone fique posicionado corretamente */
    position: absolute;
    left: 1.25rem;
    color: var(--text-gray);
    font-size: 1.1rem;
    z-index: 10; /* Coloca o ícone na frente do campo de input */
}

#mic-btn:hover {
    color: var(--secondary-color); /* Efeito hover padrão */
}

/* * Classe que será adicionada via JS
 * quando o microfone estiver ouvindo
*/
#mic-btn.listening {
    color: #ff4757; /* Vermelho para "gravando" */
    animation: pulse 1.5s infinite;
}

/* * Animação de pulsar
*/
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* * Ajusta o padding do input para não sobrepor o ícone
 * (o seu código já tinha, mas vamos garantir)
*/
#chat-input {
    padding-left: 3.5rem; 
}

.chat-message {
    display: flex;
    gap: 1rem;
    max-width: 85%;
    align-items: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}
.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.message-avatar i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(0, 123, 255, 0.2);
    color: var(--secondary-color);
}

.message-content p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    background: rgba(0, 123, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 123, 255, 0.15);
}

.typing-indicator {
    display: flex;
    align-items: center;
    /* Ajusta a altura para corresponder ao padding do texto */
    padding: 10px 0; 
}

.typing-indicator span {
    height: 9px;
    width: 9px;
    /* Usa a cor de texto do seu tema */
    background-color: var(--text-gray); 
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px; /* Espaçamento entre os pontos */
    
    /* Animação */
    animation: bounce 1.4s infinite both;
}

/* Define atrasos para a animação */
.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}
.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animação de "pulo" dos pontos */
@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}

/* ===== ANIMAÇÃO DE START DO LOGO DE FUNDO ===== */

/* 1. Define a animação de "giro" */
@keyframes spin-start {
    0% {
        /* Começa na posição e opacidade normais */
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.05;
    }
    50% {
        /* Gira 360 graus e fica um pouco mais visível */
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.2;
    }
    100% {
        /* Termina o giro e volta à opacidade normal */
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.05;
    }
}

/* 2. Aplica a animação no logo de fundo */
/* O JS vai adicionar a classe 'first-message-sent' no chat-window */
.chat-window.first-message-sent::before {
    animation: spin-start 1s ease-out forwards;
}

/* Mensagem da IA (Esquerda) */
.ai-message {
    align-self: flex-start;
}

/* Mensagem do Usuário (Direita) */
.user-message {
    align-self: flex-end;
    flex-direction: row-reverse; /* Inverte a ordem (avatar à direita) */
}
.user-message .message-content p {
    background: var(--secondary-color);
    color: var(--text-dark); /* Texto escuro para contraste */
    font-weight: 500;
}


/* 2. Formulário de Input (Barra Inferior) */
.chat-input-form {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid rgba(0, 123, 255, 0.2);
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.chat-input-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

#chat-input {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1rem 0.85rem 3.5rem; /* Padding para o ícone */
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
#chat-input:focus {
    border-color: var(--secondary-color);
}
#chat-input::placeholder {
    color: var(--text-gray);
}


#chat-submit-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
#chat-submit-btn:hover {
    background: var(--accent-color);
}
#chat-submit-btn:disabled {
    background: var(--text-gray);
    cursor: not-allowed;
}

/* 3. Disclaimer/Aviso Legal */
.ai-chat-disclaimer {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== STRUCTURAL INTELLIGENCE SECTION ===== */
.structural-intelligence {
    padding: 4rem 0;
    background: var(--primary-color);
    overflow: hidden;
}

.intelligence-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intelligence-text h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.intelligence-text h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.intelligence-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.intelligence-text .btn {
    margin-top: 1.5rem;
}

.intelligence-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.intelligence-image img:hover {
    transform: scale(1.03);
}

/* ===== SEÇÃO SOLUÇÃO INTELIGENTE (NOVA) ===== */
.solution-intelligence {
    padding: 4rem 0;
    background: var(--primary-color);
    overflow: hidden;
}

/* Reutiliza .intelligence-content, .intelligence-text, etc.
   A ordem invertida (imagem/texto) é controlada pela ordem no HTML.
   Precisamos apenas estilizar a nova lista de features.
*/
.solution-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.solution-features li {
    color: var(--text-gray);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem; 
    font-weight: 300; 
    margin-bottom: 0; /* Remove a margem padrão de 'p' */
}

.solution-features li i {
    color: var(--secondary-color); /* Ícone azul */
    font-size: 1.2rem;
}



/* Responsividade para a nova seção */
@media (max-width: 1097px) {
    .intelligence-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intelligence-image {
        /* Inverte a ordem no mobile para a imagem aparecer primeiro */
        order: -1;
    }

    .intelligence-text {
        text-align: center;
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 3rem 0 4rem 0;
    background: var(--primary-color);
}

.about-content {
    display: grid;
    gap: 4rem;
}

.about-story,
.about-mission,
.about-vision {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    backdrop-filter: blur(10px);
}

.about-story h3,
.about-mission h3,
.about-vision h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-story p,
.about-mission p,
.about-vision p {
    font-weight: 300;
}

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

.value-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.value-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 123, 255, 0.1);
    border-color: var(--secondary-color);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
}

.team-section {
    margin-top: 4rem;
    text-align: center;
}

.team-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-gray);
}

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

.team-member {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.team-member:hover {
    transform: translateY(-5px);
    background: rgba(0, 123, 255, 0.1);
    border-color: var(--secondary-color);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
}

/* Adicione esta regra */
.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: rgba(0, 123, 255, 0.2);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 6rem 0;
}

/* RH Card Special */
.rh-card-wrapper {
    margin-bottom: 3rem;
}

.rh-card {
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.rh-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.rh-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.rh-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 123, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #007bff;
    flex-shrink: 0;
}

.rh-title-area h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rh-title-area p {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 300;
}

.rh-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.rh-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.rh-feature i {
    color: #007bff;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.rh-feature strong {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.rh-feature span {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 300;
}

.rh-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.rh-highlight-tag {
    display: inline-block;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

/* Services Grid */
.services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.show-card{
    border: 2.4px solid var(--secondary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: rgba(0, 123, 255, 0.25);
}

.service-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
    width: 100%;
}

.service-features li {
    color: var(--text-gray);
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Services Responsive */
@media (max-width: 768px) {
    .rh-card {
        padding: 2rem;
    }
    
    .rh-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .rh-features-grid {
        grid-template-columns: 1fr;
    }
    
    .rh-highlights {
        justify-content: center;
    }
}

.methodology-section {
    margin-top: 4rem;
    text-align: center;
}

.methodology-section h3 {
    margin-bottom: 3rem;
    color: var(--text-light);
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-light);
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-gray);
    margin: 0;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 4rem 0;
    background: var(--primary-color);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--secondary-color);
}

.project-image {
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image > .project-overlay > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.project-overlay {
    font-size: 3rem;
    color: var(--text-light);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.project-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: var(--border-radius);
}

.result-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 123, 255, 0.2);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a2332 0%, #0A1128 50%, #1a2332 100%);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(10px);
}

.testimonial-card.active {
    display: block;
    animation: testimonialFadeIn 0.5s ease-in-out;
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-photo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
}

.author-info h4 {
    color: var(--text-light);
    margin: 0;
}

.author-info p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #ffd700;
    font-size: 1.2rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--gradient-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--secondary-color);
}

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

/* Modal de Política de Privacidade */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.privacy-modal-content {
    background: var(--primary-color);
    margin: auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 900px;
    color: var(--text-light);
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--secondary-color);
    animation: modalFadeIn 0.3s ease-out;
}

.privacy-modal-content h2, 
.privacy-modal-content h3 {
    color: var(--secondary-color);
}

.privacy-modal-content p,
.privacy-modal-content li {
    color: var(--text-gray);
    line-height: 1.6;
}

.privacy-modal-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.privacy-modal-content a:hover {
    color: var(--secondary-color);
}

.close-modal {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

/* Animação de entrada */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Grid background effect */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 123, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 123, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Glowing dots effect */
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 123, 255, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 90% 80%, rgba(0, 123, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 50% 10%, rgba(0, 123, 255, 0.25) 0%, transparent 1.5%),
        radial-gradient(circle at 80% 30%, rgba(0, 123, 255, 0.35) 0%, transparent 1%),
        radial-gradient(circle at 20% 70%, rgba(0, 123, 255, 0.3) 0%, transparent 1.5%),
        radial-gradient(circle at 70% 60%, rgba(0, 123, 255, 0.2) 0%, transparent 1%),
        radial-gradient(circle at 30% 40%, rgba(0, 123, 255, 0.15) 0%, transparent 0.8%),
        radial-gradient(circle at 85% 15%, rgba(0, 123, 255, 0.25) 0%, transparent 1%),
        radial-gradient(circle at 15% 85%, rgba(0, 123, 255, 0.2) 0%, transparent 1.2%),
        radial-gradient(circle at 60% 90%, rgba(0, 123, 255, 0.3) 0%, transparent 1%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.cta-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 3rem;
    background: var(--primary-color);
    border: 1px solid rgba(0, 123, 255, 0.15);
    border-radius: 20px;
    padding: 4rem 5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(0, 123, 255, 0.08),
        0 0 120px rgba(0, 123, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    z-index: 1;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 30%, rgba(0, 123, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.cta-logo {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.2) 0%, rgba(0, 123, 255, 0.05) 40%, transparent 70%);
    pointer-events: none;
}

.cta-logo img {
    width: 300px;
    height: 220px;
    object-fit: contain;
    opacity: 1;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    filter: none;
}

.cta-wrapper:hover .cta-logo img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(0, 123, 255, 0.3));
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.cta-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: #555555;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(0, 123, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-main:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.8);
    transform: translateX(3px);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
}

.cta-button-main svg {
    transition: transform 0.3s ease;
}

.cta-button-main:hover svg {
    transform: translateX(4px);
}

/* CTA Responsive */
@media (max-width: 768px) {
    .cta-wrapper {
        padding: 3rem 2rem;
        gap: 2rem;
        flex-direction: column;
    }
    
    .cta-logo img {
        width: 160px;
        height: 160px;
    }
    
    .cta-logo::before {
        width: 250px;
        height: 250px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: rgb(38, 38, 38);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(0, 123, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #ffffff;
    margin: 0;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact p > a{
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* ===== FLOATING ELEMENTS ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1070px){

    .navbar{
        padding: none;
        width: 80%;
        margin: 0 auto;
    }

    .nav-menu {
        position: fixed;
        top: 57px;
        left: 60px;
        right: 30px;
        flex-direction: column;
        background: rgba(38, 38, 38, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        gap: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        transform: translateY(-10px);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        text-align: center;
        font-size: 1rem;
    }

    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header {
        width: 100%;
    }

    .nav-container {
        padding: 1.2rem;
    }

    .hero-tags {
        justify-content: center;
    }
}

/* ===== AJUSTES PARA ALTURA BAIXA ===== */
@media (max-height: 750px) {
    .hero {
        min-height: 100vh; /* Evita forçar a tela cheia */
        padding: 4rem 1rem;
    }

    .hero-title {
        padding: 5rem 0 0 0;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        margin-bottom: 2rem;
    }

    .hero-buttons {
        margin-bottom: 2rem;
    }

    .about, .services, .contact {
        padding: 3rem 0;
    }

    .team-grid, .services-grid {
        gap: 1rem;
    }

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


@media (max-width: 825px) {
    .container {
        padding: 0 1rem;
    }
    
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .methodology-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .spiral-logo {
        width: 80px;
    }
    
    .hero-title {
        font-size: 4rem;
        padding: 2rem;
        margin-top: 8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem 1rem;
    }
    
    .carousel-controls {
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-scroll-indicator {
    bottom: 0.7rem;
}

/* Responsividade do Novo Chat */
@media (max-width: 600px) {
    .ai-chat {
        padding: 4rem 0.5rem;
    }
    .chat-container {
        height: 55vh; /* Ocupa mais tela no mobile */
        min-height: 400px;
        border-left: none;
        border-right: none;
    }

    .chat-window {
        padding: 1rem;
    }

    .chat-input-wrapper i {
        left: 1rem;
    }

    #chat-input {
        padding-left: 3rem;
    }

    #chat-submit-btn {
        width: 44px;
        height: 44px;
    }
}


/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .back-to-top,
    #particles-js {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title,
    .highlight {
        color: black;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== SELECTION STYLES ===== */
::selection {
    background: var(--secondary-color);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--secondary-color);
    color: var(--text-light);
}

/* ===== MOUSE FOLLOW EFFECT ===== */
.mouse-follower {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, rgba(0, 212, 255, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(20px);
    opacity: 0.7;
}

.mouse-follower::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(10px);
}
}

/* ==========================================================================
   MEDIA QUERIES PARA TELAS GRANDES E TELEVISÕES (Full HD e 4K)
   ========================================================================== */

@media screen and (min-width: 1920px) {

    /* --------------------------------------------------------------------------
     * PASSO 1: FUNDAÇÃO - AJUSTES GLOBAIS
     * Expandimos a base do site para telas maiores.
     * -------------------------------------------------------------------------- */

    html {
        /* Aumentamos o tamanho da fonte base. Todos os elementos com unidade 'rem'
           crescerão proporcionalmente, mantendo a harmonia. */
        font-size: 18px;
    }

    .container {
        /* Aumentamos a largura máxima do conteúdo para aproveitar melhor o espaço
           horizontal, reduzindo as margens laterais excessivas. */
        max-width: 1600px;
    }

    /* Ajustamos o tamanho máximo dos títulos para garantir a legibilidade à distância.
       Os valores do clamp() em reset.css são bons, mas limitados para telas tão grandes. */
    h1 { font-size: 4.5rem; }
    h2.section-title { font-size: 3.5rem; }
    h3 { font-size: 2.25rem; }

    .hero-content {
        width: 100%; /* Garante que o container use o espaço corretamente */
        margin-left: auto;  /* Força a centralização horizontal */
        margin-right: auto; /* Força a centralização horizontal */
    }


    /* --------------------------------------------------------------------------
     * PASSO 2: AJUSTE DE COMPONENTES ESPECÍFICOS
     * Corrigimos cada seção baseando-nos na sua estrutura HTML.
     * -------------------------------------------------------------------------- */

    /* ----- Header ----- */
    .header .navbar {
        /* Aumentamos o padding interno do header para que ele não pareça tão
           pequeno e adicionamos uma largura máxima para que ele cresça, mas não infinitamente. */
        padding: 1rem 3rem;
        max-width: 1800px;
    }

    .header .nav-menu {
        /* Aumentamos o espaçamento entre os links do menu. */
        gap: 3.5rem;
    }


    /* ----- Seção Hero (#home) ----- */
    .hero-title {
        /* O problema principal aqui. Reduzimos o espaçamento entre linhas (line-height)
           para criar um bloco de texto mais coeso e impactante. */
        line-height: 1.1;
        margin-bottom: 2.5rem;
    }

    .hero-subtitle {
        /* Aumentamos a largura máxima do subtítulo para que ele se ajuste melhor
           ao novo tamanho do container. */
        max-width: 900px;
        font-size: 1.4rem; /* Tamanho de fonte específico para o subtítulo */
    }

    /* ----- Seção Sobre Nós (#about) ----- */
    .about-story,
    .about-mission,
    .about-vision {
        /* CRÍTICO: Para evitar linhas de texto excessivamente longas e ilegíveis,
           limitamos a largura máxima destes cards e os centramos em seu espaço no grid. */
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .values-grid {
        /* No grid de valores, definimos explicitamente 4 colunas. Isso impede que o
           'auto-fit' crie mais colunas e quebre o design. */
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        /* O mesmo para a equipe, garantimos 3 colunas para um layout estável. */
        grid-template-columns: repeat(3, 1fr);
    }

    /* ----- Seção Serviços (#services) ----- */
    .services-grid {
        /* Definimos um layout fixo de 3 colunas para os serviços, evitando que o
           grid se expanda para 4 ou 5 colunas e deixe os cards muito estreitos. */
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem; /* Aumentamos o espaçamento entre os cards */
    }


    /* ----- Seção Projetos (#projects) ----- */
    .projects-grid {
        /* Para os projetos, um layout de 2 colunas em telas muito largas fica
           mais elegante e dá mais peso a cada projeto. */
        grid-template-columns: repeat(2, 1fr);
        max-width: 1400px; /* Limitamos a largura para não esticar demais os cards */
        margin-left: auto;
        margin-right: auto;
    }


    /* ----- Seção Contato (#contact) ----- */
    .contact-content {
        /* Ajustamos o grid do formulário para dar um pouco mais de espaço (1.2fr) ao
           formulário e alinhamos verticalmente os itens ao centro para resolver o
           desequilíbrio visual. */
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
        gap: 5rem;
    }
}

/* ==========================================================================
   AJUSTES ADICIONAIS E OPCIONAIS PARA TELAS 4K (UHD)
   ========================================================================== */

@media screen and (min-width: 3800px) {
    /* Para telas 4K, podemos ir além. */

    html {
        font-size: 24px; /* Aumenta ainda mais a legibilidade à distância */
    }

    .container {
        max-width: 2500px; /* Permite que o conteúdo ocupe mais espaço */
    }

    .projects-grid, .services-grid {
        /* Em 4K, podemos voltar a ter 3 colunas para projetos e serviços
           sem que o layout pareça lotado. */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== ESTILOS PARA TROCA DE LOGO NO HEADER ===== */

/* 1. Prepara o container dos logos */
.nav-logo {
    position: relative; /* Essencial para o posicionamento absoluto dos logos */
    width: 140px; /* Ajuste a largura para o tamanho do seu logo completo */
    height: 33px;  /* Ajuste a altura para o tamanho do seu logo completo */
    transition: all 0.3s ease;
}

/* 2. Estilo base para ambos os logos */
.logo-img {
    position: absolute;
    top: -4px;
    left: 0;
    height: 130%;
    width: auto;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* 3. Estilo inicial dos logos */
.logo-full {
    opacity: 1; /* O logo completo começa visível */
    transform: translateY(0);
}

.logo-icon {
    opacity: 0; /* O ícone começa invisível */
    transform: translateY(-10px); /* Começa um pouco acima para um efeito sutil */
    height: 110%; /* Ajuste para o ícone parecer bem centralizado e dimensionado */
}

/* 4. Estilos do Header quando a classe .scrolled for ativada */
.header.scrolled .nav-logo {
    width: 35px; /* Reduz a largura do container para o tamanho do ícone */
}

.header.scrolled .logo-full {
    opacity: 0; /* Esconde o logo completo */
    transform: translateY(10px); /* Move para baixo ao desaparecer */
}

.header.scrolled .logo-icon {
    opacity: 1; /* Mostra o ícone */
    transform: translateY(0);
}

