/* Variáveis para fácil manutenção */
:root {
    --primary-color: #1e40af; /* Azul BNB / Corporativo */
    --secondary-color: #3b82f6;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html { scroll-behavior: smooth; }

/*body { background-color: var(--light-bg); color: var(--text-main); line-height: 1.6; } */
body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* títulos */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* texto */
p {
    margin-bottom: 12px;
    color: #475569;
}

/* Navegação */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }
.logo span { color: var(--secondary-color); }

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 1rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary-color); }

/* Estilo para a nova aba pessoal */
.nav-links a.nav-item-pessoal {
    color: var(--primary-color); /* Ou a cor destaque do seu site */
    font-weight: 600;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a.nav-item-pessoal:hover {
    border-bottom: 2px solid var(--primary-color);
    background: rgba(0, 0, 0, 0.05); /* Um leve destaque ao passar o mouse */
    border-radius: 4px 4px 0 0;
}

/* Hero Section com Imagem do Unsplash */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: var(--dark-bg);
    padding: 0 5%;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; color: #cbd5e1; }

/* Botões */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary { background: var(--secondary-color); color: white; margin-right: 1rem; }
.btn-primary:hover { background: var(--primary-color); }

.btn-outline { border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--dark-bg); }

/* Cards de Serviços */
.services { padding: 5rem 5%; text-align: center; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Seção Autoridade */
.section-autoridade {
    background-color: #0f172a; /* Slate 900 */
    color: #f8fafc;
    padding: 80px 5%;
}

.container-autoridade {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.texto-autoridade h2 {
    font-size: 2.5rem;
    margin: 20px 0;
    line-height: 1.2;
}

.texto-autoridade p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.lista-diferenciais {
    list-style: none;
}

.lista-diferenciais li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.lista-diferenciais i {
    color: #3b82f6;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Cards de Estatísticas */
.stats-autoridade {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background-color: #1e293b;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #334155;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #3b82f6;
}

.stat-label {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Padrão das novas seções */

.section {
    padding: 80px 0;
}

.section-light {
    background-color: #ffffff;
}

.section-gray {
    background-color: #f7f9fc;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 50px;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #2a6df4;
    display: block;
    margin: 10px auto 0;
}

/* Estilização da Seção Instituições e Projetos */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.cliente-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e3e6ea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.cliente-card h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cliente-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Estilização da Seção Stack Tecnológica */

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.stack-grid span {
    background: #eef3ff;
    color: #2a6df4;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Estilização da Seção Processo de Trabalho */
.processo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.passo {
    padding: 25px;
}

.passo h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.passo p {
    font-size: 0.95rem;
    color: #555;
}

/* Estilização da Seção Trajetória */
.section-trajetoria {
    padding: 80px 20px;
    background-color: #ffffff;
}

.container-trajetoria {
    max-width: 1200px;
    margin: 0 auto;
}

.section-trajetoria h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

.section-trajetoria h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff; /* Ou a cor primária do seu site */
    margin: 10px auto;
}

.content-trajetoria p {
    line-height: 1.8;
    color: #444;
    font-size: 1.15rem;
    margin-bottom: 20px;
    text-align: justify;
}

.cta-curriculo {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.cta-curriculo p {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.btn-trajetoria {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-trajetoria:hover {
    background-color: #2c3e50;
    color: #ffffff;
}

/* Responsividade */
@media (max-width: 768px) {
  /* Fixa e limpa o cabeçalho no mobile */
  header, .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }

  /* Oculta a lista de navegação padrão se não houver JS de menu ativo */
  .nav-menu {
    display: none; /* Ativar via classe .active ao clicar no hambúrguer */
  }

  /* Reduz o título principal para caber na tela sem quebras brutais */
  .hero-section h1, 
  .banner-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    padding: 0 15px;
  }

  /* Ajusta o subtítulo para não grudar na imagem */
  .hero-section p {
    font-size: 1rem !important;
    padding: 0 15px;
  }

  /* Garante que o WhatsApp fique fixo no canto da tela sem cobrir o texto */
  .whatsapp-float, 
  a[href*="wa.me"] {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 9999 !important;
  }
}

/* Footer Social */
.footer-social {
    background-color: #f1f5f9; /* Slate 100 - contraste com o fundo escuro da autoridade */
    padding: 60px 5% 20px 5%;
    border-top: 1px solid #e2e8f0;
    color: #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: #1e40af;
    margin-bottom: 15px;
}

.footer-brand h3 span {
    color: #3b82f6;
}

.footer-brand p {
    color: #64748b;
    max-width: 300px;
}

/* Links Sociais */
.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #0f172a;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.icon-link {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icon-link:hover {
    background-color: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
    transform: translateY(-3px);
}

/* Telefone e Contato */
.phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s;
}

.phone-link i {
    font-size: 1.5rem;
    color: #25d366; /* Cor oficial do WhatsApp */
}

.phone-link:hover {
    color: #3b82f6;
}

.location {
    margin-top: 10px;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 0 auto;
    }
    .social-icons {
        justify-content: center;
    }
    .phone-link {
        justify-content: center;
    }
}

/* Estilos para o Modal de E-mail */
.modal-email {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content-email {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-header-email {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-readonly {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    color: #666;
    cursor: not-allowed;
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
}

#userMessage {
    width: 100%;
    height: 150px;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

.modal-footer-email {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    background: #ccc;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit {
    background: #004a8d; /* Use a cor principal do seu site */
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

/* Efeito de Cursor e Botão no Card */
.services .card {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-detalhes {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #2b6cb0;
}

/* MODAL FIXO E CENTRALIZADO */
body.modal-open {
    overflow: hidden; /* Trava o scroll da página ao abrir o modal */
}

.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    
    /* Estado inicial: Invisível */
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-in-out !important;
}

/* Estado Ativo */
.modal-overlay.ativo {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Caixa Branca do Modal */
.modal-container {
    background: #ffffff !important;
    width: 90% !important;
    max-width: 550px !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    position: relative !important;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out !important;
    color: #333333 !important;
}

.modal-overlay.ativo .modal-container {
    transform: translateY(0);
}

/* Botão Fechar (X) */
.btn-fechar {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 26px !important;
    font-weight: bold !important;
    color: #a0aec0 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.btn-fechar:hover {
    color: #e53e3e !important;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 12px;
}

.modal-header i {
    font-size: 24px;
    color: #1a365d;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #1a365d;
}

.modal-body {
    font-size: 16.5px;
    line-height: 1.6;
    color: #4a5568;
}

.modal-body ul {
    margin-top: 12px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

/* SEÇÃO INSTITUIÇÕES E PROJETOS */
.instituicoes-section {
    padding: 60px 20px;
    background-color: #f8fafc;
    text-align: center;
}

.instituicoes-section h2 {
    font-size: 28px;
    color: #1a365d;
    margin-bottom: 8px;
}

.header-line {
    width: 60px;
    height: 3px;
    background-color: #2b6cb0;
    margin: 0 auto 15px auto;
}

.section-subtitle {
    font-size: 15px;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.grid-instituicoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1140px;
    margin: 0 auto;
}

.card-inst {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-inst:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #2b6cb0;
}

.inst-icon {
    font-size: 26px;
    color: #2b6cb0;
    margin-bottom: 15px;
}

.card-inst h3 {
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 10px;
}

.card-inst p {
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-inst-link {
    font-size: 13.5px;
    font-weight: bold;
    color: #2b6cb0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-inst-link i {
    transition: transform 0.2s ease;
}

.card-inst:hover .btn-inst-link i {
    transform: translateX(4px);
}

/* SEÇÃO TECNOLOGIAS E ARQUITETURAS */
.section-tech {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.section-tech h2 {
    font-size: 28px;
    color: #1a365d;
    margin-bottom: 8px;
}

/* Badge Destaque das 26 Linguagens */
.badge-bagagem {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 35px;
}

.badge-bagagem i {
    font-size: 16px;
}

/* Grid das Categorias */
.grid-tech-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Força exatamente 4 colunas lado a lado */
    gap: 18px;
    max-width: 1250px; /* Largura expandida para acomodar bem os 4 cards */
    margin: 0 auto;
    text-align: left;
}

.card-tech-cat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 15px; /* Espaçamento compacto para equilibrar o conteúdo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-tech-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #cbd5e0;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

.cat-header i {
    font-size: 18px;
    color: #2b6cb0;
}

.cat-header h3 {
    margin: 0;
    font-size: 16px; /* Ajuste fino de título para caber em 1 linha */
    color: #1a365d;
    white-space: nowrap;
}

/* Tags de Tecnologias */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    background: #ffffff;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
}

/* Destaque para as Principais (Java, Spring, Angular, Hexagonal) */
.tech-tags span.tag-highlight {
    background: #1a365d;
    color: #ffffff;
    border-color: #1a365d;
    font-weight: 600;
}

/* RESPONSIVIDADE PARA TABLETS E SMARTPHONES */
@media (max-width: 1024px) {
    .grid-tech-categories {
        grid-template-columns: repeat(2, 1fr); /* 2x2 em telas médias/tablets */
    }
}

@media (max-width: 640px) {
    .grid-tech-categories {
        grid-template-columns: 1fr; /* 1 coluna no celular */
    }
}

.workflow-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.workflow-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.title-underline {
  width: 60px;
  height: 4px;
  background-color: #2563eb;
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  text-align: left;
}

.workflow-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 1.5rem;
  color: #2563eb;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}

.card-list li::before {
  content: "•";
  color: #2563eb;
  font-weight: bold;
  position: absolute;
  left: 0;
}

