/* Animations for MobileMedia Static Site */

/* Bounce animation for scroll indicator */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Background gradient animation */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-animate {
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

/* Light beams animation */
@keyframes lightBeam {
  0% { transform: translateX(0%); }
  100% { transform: translateX(600%); }
}

.light-beam-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.light-beam {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.05) 45%,
    rgba(139, 92, 246, 0.05) 55%,
    transparent 100%
  );
  animation: lightBeam 8s linear infinite;
}

.light-beam:nth-child(2) {
  width: 30%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.03) 45%,
    rgba(139, 92, 246, 0.03) 55%,
    transparent 100%
  );
  animation: lightBeam 12s linear infinite;
  animation-delay: -4s;
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

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

/* Glow pulse animation */
@keyframes glowPulse {
  0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.4); }
  100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.2); }
}

.animate-glow-pulse {
  animation: glowPulse 4s ease-in-out infinite;
}

/* Shimmer effect */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

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

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Staggered fade-in for lists */
.fade-in-item:nth-child(1) { animation-delay: 0.1s; }
.fade-in-item:nth-child(2) { animation-delay: 0.2s; }
.fade-in-item:nth-child(3) { animation-delay: 0.3s; }
.fade-in-item:nth-child(4) { animation-delay: 0.4s; }
.fade-in-item:nth-child(5) { animation-delay: 0.5s; }
.fade-in-item:nth-child(6) { animation-delay: 0.6s; }

/* Spin animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 2s linear infinite;
}

/* Pulse animation for hover effects */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

/* Slide-in animation */
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

/* Slide-out animation */
@keyframes slideOut {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.slide-out {
  animation: slideOut 0.5s ease forwards;
}

/* Background blur for modals */
.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}