


/* Modern Stats Section v2 Styles */

/* Base section styles */
.stats-v2 {
  position: relative;
  overflow: hidden;
}

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

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

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

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

/* Stat card enhancements */
.stat-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Icon rotation effect */
.group-hover\:rotate-360:hover {
  transform: rotate(360deg);
  transition: transform 0.6s ease-in-out;
}

/* Counter animation */
.stat-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Intersection Observer animation trigger */
.stat-card.animate-in .stat-number {
  animation: countUp 2s ease-out forwards;
}

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

/* Enhanced backdrop blur for better browser support */
@supports (backdrop-filter: blur(8px)) {
  .stat-card {
    backdrop-filter: blur(8px);
  }
}

@supports not (backdrop-filter: blur(8px)) {
  .stat-card {
    background-color: rgba(255, 255, 255, 0.15);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stats-v2 {
    padding: 3rem 0;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-value {
    font-size: 1.875rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-float-delayed,
  .stat-card,
  .group-hover\:rotate-360 {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus states for accessibility */
.stat-card:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Enhanced gradient background with animation */
.stats-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(-45deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1), rgba(236, 72, 153, 0.1), rgba(59, 130, 246, 0.1));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

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

/* Stat items entrance animation */
.stats-v2 .stat-item-v2 {
  animation: fadeInScale 0.8s ease forwards;
  opacity: 0;
  transform: scale(0.8) translateY(30px);
}

.stats-v2 .stat-item-v2:nth-child(1) { animation-delay: 0.1s; }
.stats-v2 .stat-item-v2:nth-child(2) { animation-delay: 0.2s; }
.stats-v2 .stat-item-v2:nth-child(3) { animation-delay: 0.3s; }
.stats-v2 .stat-item-v2:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Number glow effect on hover */
.stats-v2 .stat-number-v2 span {
  position: relative;
  display: inline-block;
}

.stats-v2 .group:hover .stat-number-v2 span {
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

/* Pulsing effect for numbers */
.stats-v2 .stat-number-v2 span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

/* Enhanced decoration line animation */
.stats-v2 .stat-decoration-v2 {
  position: relative;
  overflow: hidden;
}

.stats-v2 .stat-decoration-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Dark mode adjustments */
/* Dark mode automatically handled by design tokens */
}

/* Print styles */
@media print {
  .stats-v2 {
    background-color: var(--bg-primary) !important;
    color: var(--color-neutral-1000) !important;
  }
  
  .stats-v2 .stat-number-v2 span {
    color: var(--color-neutral-1000) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
  }
} 