@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap');

:root {
  --bg-deep:      #020b18;
  --bg-mid:       #071a2e;
  --accent-blue:  #1a6faf;
  --accent-cyan:  #00c8ff;
  --accent-glow:  rgba(0, 200, 255, 0.18);
  --text-primary: #f0f6ff;
  --text-muted:   #7bafd4;
  --border-glow:  rgba(0, 200, 255, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-deep);
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Plano de Fundo - Canvas Constellation */
#constellation-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Container Principal */
.hero-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem;
  width: 100%;
  min-height: 100dvh;
}

/* Logotipo */
.logo-container {
  position: relative;
  margin-bottom: 3rem;
}

.logo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-glow);
  box-shadow:
    0 0 18px var(--accent-glow),
    inset 0 0 18px var(--accent-glow);
  animation: ringPulse 3s ease-in-out infinite;
}

.logo-ring-outer {
  inset: -26px;
  border-color: rgba(0, 200, 255, 0.12);
  animation-delay: 0.8s;
}

.logo-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.4));
  animation: logoBreathe 4s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.03); }
}

@keyframes logoBreathe {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(0, 200, 255, 0.35)); }
  50%       { filter: drop-shadow(0 0 32px rgba(0, 200, 255, 0.7)); }
}

/* Nome do Evento */
.event-name {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: clamp(0.7rem, 3.5vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  animation: fadeSlideUp 1s ease both;
  animation-delay: 0.2s;
}

.event-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 300;
  font-size: clamp(0.75rem, 3vw, 0.95rem);
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2.8rem;
  animation: fadeSlideUp 1s ease both;
  animation-delay: 0.4s;
}

/* Linha Divisória */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  margin: 0 auto 2.8rem;
  animation: fadeSlideUp 1s ease both;
  animation-delay: 0.5s;
}

/* Conteúdo Textual Principal */
.await-text {
  font-family: 'Orbitron', monospace;
  font-weight: 500;
  font-size: clamp(1rem, 4vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  animation: fadeSlideUp 1s ease both;
  animation-delay: 0.6s;
  position: relative;
}

/* Efeito de Espera */
.await-text::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  background: linear-gradient(135deg, var(--accent-cyan) 30%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: glitch 6s infinite;
  animation-delay: 2s;
}

@keyframes glitch {
  0%, 94%, 100% { opacity: 0; transform: translateX(0); }
  95%            { opacity: 0.6; transform: translateX(-3px); }
  97%            { opacity: 0.4; transform: translateX(2px); }
}

.date-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 5vw, 1.8rem);
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-top: 0.8rem;
  animation: fadeSlideUp 1s ease both;
  animation-delay: 0.8s;
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
}

/* Barra de Escaneamento */
.scan-bar {
  width: min(320px, 80vw);
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-cyan) 50%, transparent 100%);
  margin: 1rem;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 1s ease both;
  animation-delay: 1s;
}

.scan-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: scanMove 2.5s linear infinite;
}

/* Instituições Parceiras */
.institutions-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  max-width: min(1250px, 88vw);
  line-height: 1.25;
  animation: fadeSlideUp 1s ease both;
  animation-delay: 1.2s;
}

.institutions-highlight {
  font-weight: 600;
  color: var(--text-primary);
}

@keyframes scanMove {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

/* Efeito de Animação de Slide */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (min-width: 576px) {
  .logo-img { width: 220px; height: 220px; }
}

@media (min-width: 768px) {
  .logo-img { width: 260px; height: 260px; }
}