* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Monospace for singularity numbers */
.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Particles background animation */
.particles-bg {
  background: radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Flowing waves animation */
.flowing-waves {
  background: 
    linear-gradient(45deg, transparent 30%, rgba(6, 182, 212, 0.1) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(147, 51, 234, 0.1) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: flowingWaves 15s ease-in-out infinite;
}

@keyframes flowingWaves {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glass morphism effect */
.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

/* Glow effect */
.shadow-glow {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3),
              0 0 40px rgba(6, 182, 212, 0.1);
}

.shadow-glow-amber {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4),
              0 0 40px rgba(245, 158, 11, 0.2);
}

.drop-shadow-glow {
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
  animation: fadeIn 1s ease-out 0.3s both;
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Speaker card expanded state */
.speaker-card-expanded {
  background: rgba(15, 23, 42, 0.8);
}

/* Singularity Card Styles */
.singularity-card {
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.2),
              0 0 60px rgba(245, 158, 11, 0.1),
              inset 0 0 30px rgba(245, 158, 11, 0.05);
  animation: singularityPulse var(--pulse-speed, 3s) ease-in-out infinite;
}

@keyframes singularityPulse {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2),
                0 0 60px rgba(245, 158, 11, 0.1),
                inset 0 0 30px rgba(245, 158, 11, 0.05);
  }
  50% { 
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.4),
                0 0 80px rgba(245, 158, 11, 0.2),
                inset 0 0 40px rgba(245, 158, 11, 0.1);
  }
}

.singularity-year {
  background: linear-gradient(135deg, #f59e0b 0%, #fb923c 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.5);
}

.singularity-progress {
  background: linear-gradient(90deg, #f59e0b, #fb923c, #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.singularity-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.singularity-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 158, 11, 0.1) 25%,
    rgba(245, 158, 11, 0.2) 50%,
    rgba(245, 158, 11, 0.1) 75%,
    transparent 100%
  );
  animation: particleFlow 8s linear infinite;
}

@keyframes particleFlow {
  0% { transform: translateX(-33%); }
  100% { transform: translateX(0%); }
}

/* Glitch effect for easter eggs */
.glitch-text {
  animation: glitch 0.5s ease-in-out infinite;
}

@keyframes glitch {
  0%, 100% { text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
  25% { text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; }
  50% { text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff; }
  75% { text-shadow: -2px -2px #ff00ff, 2px 2px #00ffff; }
}

/* Konami celebration */
.konami-celebration {
  animation: konamiFlash 0.3s ease-in-out 5;
}

@keyframes konamiFlash {
  0%, 100% { background-color: rgba(0, 0, 0, 0.9); }
  50% { background-color: rgba(245, 158, 11, 0.3); }
}

/* Happening mode celebration */
.happening-mode {
  animation: happeningPulse 0.5s ease-in-out infinite;
}

@keyframes happeningPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Scroll indicator */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .drop-shadow-glow {
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.3));
  }
  
  .singularity-card {
    padding: 1.5rem;
  }
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid rgba(6, 182, 212, 0.5);
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, transform, opacity;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

button, a, input {
  transition-property: all;
}