/* Enhanced Animations for DuoWeave Pitch Deck */

/* Keyframe Animations */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: translateX(-30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes scaleIn {
  from { 
    opacity: 0; 
    transform: scale(0.8); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

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

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

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

@keyframes counterUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

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

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.animate-counter {
  animation: counterUp 0.8s ease-out forwards;
}

/* Staggered Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Glassmorphism Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Enhanced Gradients */
.gradient-verify {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-growth {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-trust {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-innovation {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-duoweave {
  background: linear-gradient(135deg, #EEBECE 0%, #B7CBDF 100%);
}

.gradient-duoweave-reverse {
  background: linear-gradient(135deg, #B7CBDF 0%, #EEBECE 100%);
}

/* Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.button-hover {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.button-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.button-hover:hover::before {
  left: 100%;
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #EEBECE, #B7CBDF);
  transition: width 0.3s ease;
  z-index: 1000;
}

/* Slide Transition Enhancements */
.slide-transition {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-enter {
  opacity: 0;
  transform: translateX(50px) scale(0.95);
}

.slide-enter-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.slide-exit {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.slide-exit-active {
  opacity: 0;
  transform: translateX(-50px) scale(0.95);
}

/* Metric Counter Animation */
.metric-counter {
  font-weight: 700;
  font-size: 2.5rem;
  color: #1f2937;
  display: inline-block;
}

.metric-counter.animate {
  animation: counterUp 1s ease-out forwards;
}

/* Icon Animations */
.icon-bounce {
  animation: float 2s ease-in-out infinite;
}

.icon-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Background Pattern Overlays */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive Animations */
@media (max-width: 768px) {
  .animate-fade-in-up,
  .animate-slide-in,
  .animate-slide-in-right {
    animation-duration: 0.4s;
  }
  
  .card-hover:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-slide-in,
  .animate-slide-in-right,
  .animate-scale-in,
  .animate-pulse,
  .animate-float,
  .animate-gradient,
  .animate-counter {
    animation: none;
  }
  
  .card-hover {
    transition: none;
  }
  
  .card-hover:hover {
    transform: none;
  }
}
