/* ============================================================
   DESIGN SYSTEM GLOBAL
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&amp;family=Space+Grotesk:wght@400;500;600;700;800&amp;display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:          #020B18;
  --bg-section-alt:   #041A2E;
  --bg-card:          rgba(8, 42, 74, 0.55);
  --bg-card-hover:    rgba(10, 55, 95, 0.85);
  --blue-primary:     #1E90FF;
  --blue-mid:         #0D6EFD;
  --blue-light:       #60B4FF;
  --blue-accent:      #00D4FF;
  --blue-soft:        rgba(30, 144, 255, 0.12);
  --xp-gold:          #FFD700;
  --xp-gold-glow:     rgba(255, 215, 0, 0.35);
  --text-white:       #F0F8FF;
  --text-secondary:   #A8C8E8;
  --text-muted:       #5A8AAF;
  --glow-soft:        0 0 20px rgba(30, 144, 255, 0.3);
  --glow-medium:      0 0 45px rgba(30, 144, 255, 0.5);
  --glow-strong:      0 0 90px rgba(0, 212, 255, 0.65);
  --glow-xp:          0 0 30px rgba(255, 215, 0, 0.5);
  --border-glow:      1px solid rgba(30, 144, 255, 0.3);
  --border-accent:    1px solid rgba(0, 212, 255, 0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-white);
  overflow-x: hidden;
  cursor: none;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* ── CURSOR ── */
.cursor-dot,
.cursor-outline {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--blue-accent);
  box-shadow: 0 0 12px var(--blue-accent); /* Levemente mais forte */
}
.cursor-outline {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(0, 212, 255, 0.8); /* Borda mais visível */
  background: transparent;
}

/* ── ORB DE LUZ ── */
.mouse-orb {
  position: fixed;
  width: 450px; height: 450px; /* Um pouco maior */
  border-radius: 50%;
  /* Aumenta a opacidade do gradiente para revelar mais o fundo */
  background: radial-gradient(circle, rgba(30,144,255,0.1) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  /* Aumenta a duração da transição para um rastro mais suave */
  transition: left 0.25s ease-out, top 0.25s ease-out;
}

/* ── CANVAS ── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── PÁGINAS ── */
.page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.page::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%;
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,144,255,0.4), transparent);
  opacity: 0.3;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
  border-bottom: 1px solid rgba(30, 144, 255, 0.15);
  z-index: 200;
  background: rgba(2, 11, 24, 0.7); /* Fundo semi-transparente */
  backdrop-filter: blur(12px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo svg {
  width: 38px; height: 38px;
  display: block;
}

/* No seu global.css ou section1.css, onde estiver o estilo da navbar */
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Transição suave caso queira efeito no hover */
  transition: opacity 0.3s ease, filter 0.3s ease;
  margin-top: 17px;
}

.nav-logo-img:hover {
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.5));
}

/* Responsivo — um pouco menor em mobile */
@media (max-width: 600px) {
  .nav-logo-img {
    height: 28px;
  }
}

.nav-divider {
  width: 1px; height: 24px;
  background: rgba(90, 138, 175, 0.4);
}

.nav-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.nav-sep {
  color: rgba(90, 138, 175, 0.5);
  font-size: 0.9rem;
}

.nav-univesp {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-accent);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  border: 1.5px solid rgba(30, 144, 255, 0.45);
  border-radius: 10px;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: none;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}


/* ── BOTÃO COMEÇAR (agora um &lt;a&gt; estilizado) ── */
#secao-1 .s1-cta {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a7ee8 0%, #00C8F0 100%);
  border: none; /* Remove a borda padrão do link */
  border-radius: 50px;
  cursor: none; /* Mantém o cursor personalizado */
  box-shadow:
    0 0 40px rgba(0, 212, 255, 0.4),
    0 0 80px rgba(0, 212, 255, 0.15);
  transition: box-shadow 0.3s, transform 0.2s;
  white-space: nowrap;
  min-width: 220px;
  min-height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0; /* Estado inicial para animação */
  position: relative;
  text-decoration: none; /* Remove sublinhado padrão do link */
}

#secao-1 .s1-cta span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  padding: 0 28px 0 36px;
  flex: 1;
  text-align: center;
  letter-spacing: -0.01em;
}

#secao-1 .s1-cta-arrow {
  width: 70px;
  height: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,0.15);
}

#secao-1 .s1-cta:hover {
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.65),
    0 0 120px rgba(0, 212, 255, 0.3);
}

/* Responsividade do botão CTA */
@media (max-width: 900px) {
  #secao-1 .s1-cta {
    min-width: unset;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  #secao-1 .s1-cta {
    min-height: 76px;
  }
  #secao-1 .s1-cta span {
    font-size: 1.2rem;
  }
  #secao-1 .s1-cta-arrow {
    width: 56px;
    min-height: 76px;
  }
}



/* ============================================================
   TRANSIÇÕES SUAVES ENTRE SLIDES
   Adicionar ao final do slide-system.css
   ============================================================ */

/* Estado base de cada seção — pronta para animar */
.page {
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* 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;
}

/* Dots de navegação lateral — transição de tamanho suave */
.slide-nav-dot {
  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);
}

/* Dot ativo vira uma pílula */
.slide-nav-dot.active {
  width: 20px;
  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);
}

/* Contador de slide — transição do número */
#slide-counter .current-num {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Hint de scroll — fade out suave */
#scroll-hint {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

/* ============================================================
   SIDEBAR MENU
   ============================================================ */
.sidebar-menu {
  position: fixed;
  inset: 0;
  z-index: 190; /* Just below navbar (200) */
  pointer-events: none; /* Let clicks pass through when closed */
  visibility: hidden;
  transition: visibility 0.5s;
}

.sidebar-menu.open {
  pointer-events: auto;
  visibility: visible;
}

/* Sidebar Backdrop */
.sidebar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 11, 24, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.sidebar-menu.open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar Content Panel */
.sidebar-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 85%;
  height: 100%;
  background: rgba(4, 14, 36, 0.85);
  backdrop-filter: blur(25px);
  border-left: 1px solid rgba(0, 212, 255, 0.2);
  padding: 90px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-menu.open .sidebar-content {
  transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
  margin-bottom: 24px;
}

.sidebar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  border-bottom: 1px solid rgba(90, 138, 175, 0.2);
  padding-bottom: 12px;
}

/* Sidebar Links */
.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
  margin-top: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: color 0.3s, padding-left 0.3s, border-bottom-color 0.3s;
  cursor: none; /* Custom cursor takes over */
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--blue-accent);
  padding-left: 8px;
  border-bottom-color: rgba(0, 212, 255, 0.2);
}

.sidebar-link-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s;
}

.sidebar-link:hover .sidebar-link-num,
.sidebar-link.active .sidebar-link-num {
  color: var(--blue-accent);
}

.sidebar-link-text {
  font-size: 1.05rem;
  font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(90, 138, 175, 0.2);
  padding-top: 20px;
  margin-top: 20px;
}

.sidebar-footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.7;
}

.sidebar-footer span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Trigger Button Active State */
.nav-btn.active {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--blue-accent);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* Responsividade Menu Lateral */
@media (max-width: 480px) {
  .sidebar-content {
    width: 100%;
    max-width: 100%;
    padding: 90px 30px 30px;
  }
}