@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px currentColor; }
  50% { box-shadow: 0 0 40px currentColor, 0 0 60px currentColor; }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f0417;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #FF1493, #FFD700, #00FFFF);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #FF1493, #FFD700, #00FFFF);
  filter: brightness(1.2);
}

/* Cosmic text effects */
.cosmic-text {
  background: linear-gradient(45deg, #FF1493, #FFD700, #00FFFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.3));
}

/* Timeline connection lines */
.timeline-connector {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 20, 147, 0.3) 25%, 
    rgba(255, 215, 0, 0.3) 50%, 
    rgba(0, 255, 255, 0.3) 75%, 
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Particle effects */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}

/* Button hover effects */
button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Message capsule typewriter effect */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter 2s steps(40, end);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .timeline-node {
    transform: scale(0.8);
  }
  
  .timeline-text {
    font-size: 0.75rem;
    width: 80px;
  }
}

/* Glitch effect for easter eggs */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.glitch {
  animation: glitch 0.5s ease-in-out;
}