.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}

.reveal[data-reveal="left"] {
  transform: translateX(-48px);
}

.reveal[data-reveal="right"] {
  transform: translateX(48px);
}

.reveal[data-reveal="up"] {
  transform: translateY(48px);
}

.reveal[data-reveal="down"] {
  transform: translateY(-48px);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0,0);
}

/* Floating animation for stat cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.stat-card:nth-child(1) {
  animation: float 3s ease-in-out infinite;
  animation-delay: 0s;
}

.stat-card:nth-child(2) {
  animation: float 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
  animation: float 3s ease-in-out infinite;
  animation-delay: 1s;
}

.stat-card:nth-child(4) {
  animation: float 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Shimmer effect for cards */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.card::after {
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.headline {
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes profileGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes backgroundPulse {
  0% { opacity: 0.24; transform: scale(1) rotate(0deg); }
  100% { opacity: 0.4; transform: scale(1.04) rotate(0.6deg); }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

@keyframes messageSlide {
  0% { 
    opacity: 0; 
    transform: translateY(20px) scale(0.95); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes typingDots {
  0%, 60%, 100% { 
    transform: translateY(0); 
    opacity: 0.4; 
  }
  30% { 
    transform: translateY(-10px); 
    opacity: 1; 
  }
}

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

@keyframes embedSlide {
  0% { 
    opacity: 0; 
    transform: translateX(-20px) scale(0.95); 
  }
  100% { 
    opacity: 1; 
    transform: translateX(0) scale(1); 
  }
}

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

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

/* Loading Screen Animations --------------------------------------------- */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.8;
  }
}

@keyframes titleGlow {
  0% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  100% {
    background-position: 100% 50%;
    filter: brightness(1.2);
  }
}

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

@keyframes textFade {
  0%, 100% {
    opacity: 0.7;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  40% {
    transform: translateY(-12px) scale(1.2);
    opacity: 1;
  }
}

@keyframes backgroundOrbs {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.8;
    transform: scale(1.1) rotate(90deg);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.9) rotate(180deg);
  }
  75% {
    opacity: 0.7;
    transform: scale(1.05) rotate(270deg);
  }
}

@keyframes modernGridPulse {
  0%, 100% {
    opacity: 0.03;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.08;
    transform: scale(1.02) rotate(1deg);
  }
}

@keyframes finalMessage {
  0% {
    opacity: 0.7;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
}

@keyframes titleFinalGlow {
  0% {
    background-position: 0% 50%;
    filter: brightness(1) drop-shadow(0 0 10px rgba(255,255,255,0.3));
  }
  100% {
    background-position: 100% 50%;
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(255,255,255,0.6));
  }
}

@keyframes rocketLaunch {
  0% {
    transform: translateX(-50%) scale(0) rotate(-180deg);
    opacity: 0;
  }
  30% {
    transform: translateX(-50%) scale(1.2) rotate(-90deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-200px) scale(0.3) rotate(0deg);
    opacity: 0;
  }
}

@keyframes rocketTrail {
  0% {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
  }
  30% {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scaleY(0.2);
    opacity: 0;
  }
}

@keyframes particleBurst {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.6;
  }
}

@keyframes loadingGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}
