@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

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

html, body {
  height: 100%;
  font-family: 'Rajdhani', sans-serif;
  background: #0a0a1a;
  color: #e0e0ff;
  overflow: hidden;
}

.cyber-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: 
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  z-index: 0;
}

@keyframes gridMove {
  0% { transform: perspective(500px) rotateX(0deg); }
  100% { transform: perspective(500px) rotateX(2deg); }
}

.scanline {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
  z-index: 10;
}

.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: float 8s infinite;
}

.particle:nth-child(1) { background: #ff6600; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { background: #00bfff; left: 30%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(3) { background: #ff6600; left: 50%; animation-delay: 2s; animation-duration: 6s; }
.particle:nth-child(4) { background: #00bfff; left: 70%; animation-delay: 3s; animation-duration: 10s; }
.particle:nth-child(5) { background: #ff00ff; left: 85%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(6) { background: #00ff88; left: 95%; animation-delay: 2.5s; animation-duration: 7s; }

@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

#content-container {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

#content-container-center {
  text-align: center;
}

.title-section {
  margin-bottom: 50px;
}

.glitch-text {
  font-family: 'Orbitron', monospace;
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 
    0 0 10px rgba(0, 255, 255, 0.8),
    0 0 40px rgba(0, 255, 255, 0.4),
    0 0 80px rgba(0, 255, 255, 0.2);
  letter-spacing: 8px;
  animation: glow 2s ease-in-out infinite alternate;
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  color: #ff6600;
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
  color: #00bfff;
  animation: glitch2 3s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(0,255,255,0.8), 0 0 40px rgba(0,255,255,0.4); }
  to { text-shadow: 0 0 20px rgba(0,255,255,1), 0 0 60px rgba(0,255,255,0.6), 0 0 100px rgba(0,255,255,0.3); }
}

@keyframes glitch1 {
  0%, 95% { transform: translateX(0); }
  96% { transform: translateX(-3px); }
  97% { transform: translateX(3px); }
  98% { transform: translateX(-1px); }
  99% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

@keyframes glitch2 {
  0%, 95% { transform: translateX(0); }
  96% { transform: translateX(3px); }
  97% { transform: translateX(-3px); }
  98% { transform: translateX(1px); }
  99% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

.subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #8888aa;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 10px;
}

.pulse-line {
  width: 200px;
  height: 2px;
  margin: 15px auto 0;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; width: 200px; }
  50% { opacity: 1; width: 350px; }
}

#choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.vote-btn {
  position: relative;
  width: 220px;
  height: 260px;
  border: 2px solid;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
  font-family: 'Orbitron', monospace;
}

.vote-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, transparent, transparent, rgba(255,255,255,0.05));
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.btn-a {
  border-color: #ff6600;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.3), inset 0 0 15px rgba(255, 102, 0, 0.1);
}

.btn-a:hover {
  border-color: #ff8833;
  box-shadow: 0 0 30px rgba(255, 102, 0, 0.6), inset 0 0 30px rgba(255, 102, 0, 0.2);
  transform: scale(1.05) translateY(-5px);
  background: rgba(255, 102, 0, 0.1);
}

.btn-a .btn-label {
  color: #ff6600;
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.8);
}

.btn-b {
  border-color: #00bfff;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.3), inset 0 0 15px rgba(0, 191, 255, 0.1);
}

.btn-b:hover {
  border-color: #33ccff;
  box-shadow: 0 0 30px rgba(0, 191, 255, 0.6), inset 0 0 30px rgba(0, 191, 255, 0.2);
  transform: scale(1.05) translateY(-5px);
  background: rgba(0, 191, 255, 0.1);
}

.btn-b .btn-label {
  color: #00bfff;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
}

.btn-icon {
  width: 80px;
  height: 80px;
  position: relative;
  z-index: 2;
}

.cloud-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.btn-label {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  animation: btnGlow 2s ease-in-out infinite;
}

.btn-a .btn-glow { background: linear-gradient(90deg, transparent, #ff6600, transparent); }
.btn-b .btn-glow { background: linear-gradient(90deg, transparent, #00bfff, transparent); }

@keyframes btnGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.vs-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #ff00ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.1rem;
  color: #ff00ff;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
  animation: vsPulse 1.5s ease-in-out infinite alternate;
  background: rgba(255, 0, 255, 0.05);
}

@keyframes vsPulse {
  from { box-shadow: 0 0 10px rgba(255,0,255,0.3); }
  to { box-shadow: 0 0 30px rgba(255,0,255,0.6), 0 0 60px rgba(255,0,255,0.2); }
}

.vote-btn.selected {
  animation: selectedPulse 1s ease-in-out infinite alternate;
}

.btn-a.selected {
  background: rgba(255, 102, 0, 0.15);
  box-shadow: 0 0 40px rgba(255, 102, 0, 0.5);
}

.btn-b.selected {
  background: rgba(0, 191, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 191, 255, 0.5);
}

@keyframes selectedPulse {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

.vote-btn.dimmed {
  opacity: 0.3;
  filter: grayscale(0.5);
}

.check {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

#tip {
  font-size: 0.95rem;
  color: #555577;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.blink {
  animation: blink 1s step-end infinite;
  color: #00ffff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#hostname {
  font-family: 'Rajdhani', monospace;
  font-size: 0.8rem;
  color: #333355;
  letter-spacing: 1px;
}

.label-dim {
  color: #00ffff;
  opacity: 0.5;
}

@media (max-width: 600px) {
  .glitch-text { font-size: 2.2rem; letter-spacing: 4px; }
  #choice { flex-direction: column; gap: 15px; }
  .vote-btn { width: 180px; height: 200px; }
  .vs-badge { width: 45px; height: 45px; font-size: 0.9rem; }
}

.nav-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.nav-action-btn {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-primary {
  background: rgba(0, 255, 255, 0.2);
  color: #00ffff;
  border: 2px solid #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.nav-primary:hover {
  background: rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), inset 0 0 25px rgba(0, 255, 255, 0.15);
}

.nav-outlined {
  background: transparent;
  color: #8888aa;
  border: 2px solid #8888aa;
}

.nav-outlined:hover {
  color: #00ffff;
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}