/* ARQUIVO: styles.css (Refatorado - Sem Animações)
   Mantém: Responsividade, Cores e Estrutura de Slides
*/

/* Reset e Estilos Base */

/* Container para posicionar o botão de teste no canto da tela */
.test-area {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9999;
}

.btn-test-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(14, 165, 233, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 50px;
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-test-link i {
  font-size: 1.1rem;
}

.btn-test-link:hover {
  background: #0ea5e9;
  color: #ffffff;
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
  border-color: #0ea5e9;
}

/* Responsividade para não atrapalhar no celular */
@media (max-width: 768px) {
  .test-area {
    bottom: 80px;
    right: 50%;
    transform: translateX(50%);
    width: max-content;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: #0f172a;
  color: #f8fafc;
  overflow: hidden; /* Mantém o comportamento de slide fixo */
}

/* Otimização de Imagens */
img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

/* Container Principal */
.presentation-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #0f172a;
}

.slide-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Removida a opacidade 0 e animação de entrada */
  opacity: 1;
}

/* Navegação */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

.nav-icon {
  width: 24px;
  height: 24px;
}

/* Contador de Slides */
.slide-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- ESTRUTURAS DE GRID E RESPONSIVIDADE --- */

/* Exemplo de Grid para os Slides (Baseado no seu arquivo anterior) */
.bfs-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  height: 100%;
  align-items: center;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  body {
    overflow-y: auto; /* Permite scroll no mobile se o conteúdo for grande */
  }

  .presentation-container {
    height: auto;
    min-height: 100vh;
  }

  .bfs-grid-main {
    grid-template-columns: 1fr; /* Coluna única no mobile */
    gap: 1.5rem;
    padding: 1rem;
  }

  .nav-btn {
    display: none; /* Esconde setas no mobile para usar touch */
  }
}

/* Ajustes para Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .bfs-grid-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

/* Utilitários de Cores e Backgrounds */
.bg-slate-900 {
  background-color: #0f172a;
}
.text-sky-400 {
  color: #0ea5e9;
}
.text-slate-400 {
  color: #94a3b8;
}

/* No seu styles.css */
:root {
  --bg-primary: #000000; /* #24456f O azul marinho da imagem */
  --text-white: #ffffff;
}

body,
.presentation-container {
  background-color: var(--bg-primary);
  color: var(--text-white);
  overflow: hidden; /* Evita o scroll padrão para o swipe funcionar melhor */
}
/* =============================================================
   PÁGINA 02: VALORES (RESPONSIVIDADE BLINDADA TOTAL)
   ============================================================= */

.slide-02-container.values-page {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 60px;
  height: 100vh;
  height: 100dvh; /* Altura dinâmica para iOS */
  width: 100vw;
  background-color: #0a1128;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* FUNDO E BRILHOS (IDÊNTICO AO SLIDE 01) */
.slide-02-container.values-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.slide-02-container.values-page::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.15) 0%,
    transparent 70%
  );
  filter: blur(80px);
  z-index: 0;
}

/* ... (Mantenha seus estilos de .sidebar-identity, .value-card, etc aqui) ... */

/* =============================================================
   6. RESPONSIVIDADE (VERTICAL - MOBILE & TABLET)
   ============================================================= */
@media (max-width: 1024px) {
  .slide-02-container.values-page {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    padding: 60px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  /* Remove efeitos pesados no mobile para fluidez */
  .slide-02-container.values-page::before,
  .slide-02-container.values-page::after {
    display: none;
  }

  .sidebar-identity {
    min-width: 100%;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .values-content {
    padding-left: 0;
    width: 100%;
    text-align: center;
  }

  .cards-wrapper {
    flex-direction: column; /* Empilha os cards */
    gap: 20px;
  }

  .value-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .slide-01-footer {
    position: relative;
    margin-top: 50px;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* =============================================================
   7. RESPONSIVIDADE (HORIZONTAL - LANDSCAPE)
   ============================================================= */
@media (max-height: 550px) and (orientation: landscape) {
  .slide-container.values-page {
    height: auto;
    min-height: 100dvh;
    padding: 30px;
    flex-direction: row; /* Volta para row para aproveitar a largura */
    align-items: flex-start;
  }

  .sidebar-identity {
    min-width: 200px;
    border-right: 1px solid rgba(14, 165, 233, 0.2);
    border-bottom: none;
    padding-bottom: 0;
  }

  .sidebar-identity .mini-logo {
    width: 120px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .cards-wrapper {
    flex-direction: row; /* Cards lado a lado no landscape */
    flex-wrap: wrap; /* Quebra se não couber */
    justify-content: center;
  }

  .value-card {
    flex: 1 1 200px; /* Base de 200px mas pode crescer */
    padding: 20px 15px;
  }

  .card-icon {
    font-size: 1.8rem;
  }

  .value-card h3 {
    font-size: 1.1rem;
  }

  .value-card p {
    font-size: 0.8rem;
  }
}

/*teste*/

/* ================= BLINDAGEM SAMSUNG & MOBILE ================= */
@media (max-width: 992px) {
  /* Aumentamos o range para pegar tablets e "desktop mode" de celulares */

  .slide-01-container,
  .slide-02-container,
  .slide-03-container,
  .slide-04-container,
  .slide-05-container,
  .slide-06-container,
  .slide-07-container,
  .slide-08-container,
  .slide-09-container,
  .slide-10-container,
  .slide-11-container,
  .slide-12-container,
  .slide-14-container,
  .slide-15-container,
  .slide-16-container {
    /* 1. Resolve o bug do 100vh no Samsung/Android */
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 100dvh !important;
    min-height: -webkit-fill-available !important;

    /* 2. Força o preenchimento correto da largura */
    width: 100% !important;
    padding: 40px 20px !important;
    gap: 30px !important;

    /* 3. Garante que o scroll seja suave e tátil */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;

    /* 4. Reseta o grid que causa o bug de sobreposição no Samsung */
    grid-template-columns: 1fr !important;
  }

  /* 5. Previne que imagens e logos "estourem" no modo desktop do celular */
  .company-logo,
  .cloudbox-logo-top,
  .sidebar-identity img {
    max-width: 180px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  /* 6. Corrige o tamanho do texto gigante (20+) que aparece na sua imagem */
  .slide-01-left .year {
    font-size: clamp(
      5rem,
      20vw,
      8rem
    ) !important; /* Ajusta conforme o espaço disponível */
    line-height: 1;
    margin: 0 auto;
  }

  /* 7. Blindagem para os Cards (Cloudbox/Valores) */
  .cloudbox-grid,
  .cards-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 15px !important;
  }

  /* 8. Resolve o bug de "elementos voando" no Samsung Internet */
  .slide-01-left,
  .slide-01-center,
  .slide-01-right {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    text-align: center !important;
  }

  /* 9. Coloca a foto sempre no topo no mobile */
  .slide-01-center {
    order: -1 !important;
  }
}

/* Fix para navegadores que não suportam dvh (Legacy Android) */
@supports not (height: 100dvh) {
  .slide-01-container {
    height: 100vh !important;
  }
}

/* ================= FIX CARROSSEL MOBILE/SAFARI ================= */

@media (max-width: 992px) {
  /* Força o container do slide 13 a aceitar conteúdo flexível */
  .slide-13-container {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 100dvh !important;
    padding: 40px 20px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Garante que o container do meio ocupe espaço e seja visível */
  .slide-13-center {
    display: block !important;
    width: 100% !important;
    min-height: 120px !important; /* Altura mínima para o Safari "enxergar" */
    margin: 20px 0 !important;
    position: relative !important;
    order: 2 !important; /* Garante que fique entre o título e o rodapé */
    overflow: visible !important; 
    z-index: 20 !important;
  }

  /* Ajuste do Slider para sangrar na tela (opcional) */
  .logo-slider-s13 {
    width: 100vw !important;
    margin-left: -20px !important; 
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Força a largura da track para o Safari não colapsar os itens */
  .logo-track-s13 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 1500px !important; /* 10 itens * 150px */
    animation: scrollS13-mob 15s linear infinite !important;
  }

  .logo-item-s13 {
    width: 150px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .logo-item-s13 img {
    width: 100px !important;
    height: auto !important;
    max-height: 60px !important;
    display: block !important;
    opacity: 1 !important;
    filter: none !important; /* Safari às vezes buga com filtros em animações */
  }
}

/* Keyframe específico para mobile para evitar saltos */
@keyframes scrollS13-mob {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-750px, 0, 0); } /* Metade de 1500px */
}
