/* ============================================================
   slide-system.css — SISTEMA DE SLIDES
   ============================================================ */

/* Remove o scroll do body — quem scrolla é o container */
html, body {
  height: 100%;
  overflow: hidden;
}

/* Container principal que recebe o scroll */
#scroll-container {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
  /* Scrollbar estilizada */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

#scroll-container::-webkit-scrollbar {
  width: 4px;
}

#scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

#scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 4px;
}

#scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.6);
}

/* Cada seção é um slide de 100vh ou mais */
.page {
  min-height: 100vh;
  height: auto;
  scroll-snap-align: none !important;
  box-sizing: border-box;
}


/* Classe aplicada via JS durante a transição de saída */
.page--leaving {
  pointer-events: none;
}

/* Overlay de transição global (flash suave entre slides) */
#slide-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

/* Linha de progresso no topo (estilo YouTube/NProgress) */
#slide-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--blue-accent) 0%,
    #B060FF       60%,
    var(--blue-accent) 100%
  );
  background-size: 200% 100%;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
  border-radius: 0 2px 2px 0;
}

/* Indicador de progresso lateral (dots de navegação) */
#slide-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
  pointer-events: all;
}

.slide-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  background: transparent;
  cursor: none;
  transition:
    background     0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color   0.4s ease,
    transform      0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow     0.4s ease,
    width          0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-nav-dot.active {
  width: 20px; /* Vira pílula */
  height: 8px;
  border-radius: 4px;
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  transform: none;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.7);
}

.slide-nav-dot:hover {
  background: rgba(0, 212, 255, 0.4);
  border-color: var(--blue-accent);
  transform: scale(1.3);
}

/* Indicador de seção atual (canto inferior esquerdo) */
#slide-counter {
  position: fixed;
  bottom: 28px;
  left: 5%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

#slide-counter .current-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-accent);
  display: inline-block; /* Para a transição do número */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#slide-counter .total-num {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Seta "scroll para baixo" (primeira seção) */
#scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 300;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

#scroll-hint span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

#scroll-hint svg {
  animation: bounce-arrow 1.8s ease-in-out infinite;
  color: var(--blue-accent);
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(7px); opacity: 0.5; }
}