/* Visual Statistics Section - EventsXp */

.stats-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(19, 142, 158, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(19, 142, 158, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.stat-item {
  text-align: center;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(19, 142, 158, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #138e9e, #0f7a87);
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(19, 142, 158, 0.15);
  border-color: #138e9e;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #138e9e, #0f7a87);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.stat-icon i {
  font-size: 2rem;
  color: #ffffff;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 30px rgba(19, 142, 158, 0.4);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #138e9e;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
}

.stat-description {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
}

/* Conference Illustration */
.stats-visual {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.conference-illustration {
  position: relative;
  width: 300px;
  height: 200px;
}

.stage {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: linear-gradient(135deg, #138e9e, #0f7a87);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 15px rgba(19, 142, 158, 0.3);
}

.stage::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 20px;
  width: 60%;
  height: 20px;
  background: #138e9e;
  border-radius: 4px;
  opacity: 0.7;
}

.audience {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 120px;
}

.seat {
  width: 30px;
  height: 30px;
  background: linear-gradient(
    135deg,
    rgba(19, 142, 158, 0.8),
    rgba(19, 142, 158, 0.6)
  );
  border-radius: 50% 50% 20% 20%;
  position: relative;
  animation: audienceWave 3s ease-in-out infinite;
}

.seat:nth-child(1) {
  animation-delay: 0s;
}
.seat:nth-child(2) {
  animation-delay: 0.2s;
}
.seat:nth-child(3) {
  animation-delay: 0.4s;
}
.seat:nth-child(4) {
  animation-delay: 0.1s;
}
.seat:nth-child(5) {
  animation-delay: 0.3s;
}
.seat:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes audienceWave {
  0%,
  70%,
  100% {
    transform: translateY(0) scale(1);
  }
  15% {
    transform: translateY(-5px) scale(1.1);
  }
}

.screen {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60px;
  background: linear-gradient(135deg, #f8fafb, #e5e7eb);
  border-radius: 8px;
  border: 3px solid #138e9e;
  position: relative;
  overflow: hidden;
}

.screen::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: linear-gradient(
    45deg,
    rgba(19, 142, 158, 0.1) 0%,
    rgba(19, 142, 158, 0.05) 50%,
    rgba(19, 142, 158, 0.1) 100%
  );
  border-radius: 4px;
  animation: screenGlow 2s ease-in-out infinite alternate;
}

@keyframes screenGlow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}

/* Floating Elements */
.stats-section::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 60px;
  height: 60px;
  background: rgba(19, 142, 158, 0.1);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float 4s ease-in-out infinite;
}

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

/* Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  animation: countUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-section {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
  }

  .stat-item {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .stat-label {
    font-size: 1.1rem;
  }

  .conference-illustration {
    width: 250px;
    height: 160px;
  }

  .audience {
    width: 100px;
  }

  .seat {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .stat-item {
    padding: 25px 15px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
  }

  .stat-icon i {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}
