/* Enhanced Infographic Visual Design for Three-Icon Layout */

/* Infographic container with improved styling */
.infographic-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
  border-radius: 12px;
  padding: 30px 25px;
  margin-bottom: 30px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

/* Improved infographic step styling */
.infographic-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.infographic-step:hover {
  transform: scale(1.1);
}

/* Enhanced icon styling with gradients and animations */
.infographic-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.infographic-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.05) 0%, rgba(255, 102, 0, 0.15) 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.infographic-step:hover .infographic-icon::before {
  opacity: 1;
}

.infographic-icon i {
  font-size: 32px;
  color: #FF6600;
  position: relative;
  z-index: 1;
}

/* Icon pulse animations with staggered timing */
@keyframes iconPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
}

.infographic-step:nth-child(1) .infographic-icon {
  animation: iconPulse 3s infinite;
}

.infographic-step:nth-child(3) .infographic-icon {
  animation: iconPulse 3s infinite 0.5s;
}

.infographic-step:nth-child(5) .infographic-icon {
  animation: iconPulse 3s infinite 1s;
}

/* Enhanced arrow styling with drawing animation */
.infographic-arrow {
  width: 60px;
  height: 2px;
  background: #FF6600;
  position: relative;
  margin: 0 5px;
}

.infographic-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #FF6600;
}

/* Arrow drawing animations */
@keyframes drawArrow {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.infographic-arrow-1 {
  animation: drawArrow 1.5s ease forwards;
  transform-origin: left;
  transform: scaleX(0);
}

.infographic-arrow-2 {
  animation: drawArrow 1.5s ease 0.5s forwards;
  transform-origin: left;
  transform: scaleX(0);
}

/* Improved label styling */
.infographic-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  position: relative;
  padding-bottom: 3px;
}

.infographic-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #FF6600;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.infographic-step:hover .infographic-label::after {
  width: 70%;
}

/* Tooltip styling */
.infographic-step {
  position: relative;
}

.infographic-step::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  width: max-content;
  max-width: 200px;
  text-align: center;
}

.infographic-step::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: rgba(51, 51, 51, 0.95) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.infographic-step:hover::before,
.infographic-step:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .infographic-container {
    padding: 25px 20px;
  }
  
  .infographic-icon {
    width: 70px;
    height: 70px;
  }
  
  .infographic-icon i {
    font-size: 28px;
  }
  
  .infographic-arrow {
    width: 50px;
  }
}

@media (max-width: 768px) {
  .infographic-container {
    flex-direction: column;
    padding: 20px 15px;
  }
  
  .infographic-step {
    margin: 15px 0;
  }
  
  .infographic-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
    width: 30px;
  }
  
  .infographic-arrow::after {
    right: -6px;
    top: -6px;
    transform: rotate(90deg);
    transform-origin: center;
  }
  
  @keyframes drawArrow {
    0% {
      transform: scaleY(0) rotate(90deg);
    }
    100% {
      transform: scaleY(1) rotate(90deg);
    }
  }
  
  .infographic-arrow-1,
  .infographic-arrow-2 {
    transform-origin: center;
  }
  
  .infographic-arrow-1 {
    animation: drawArrow 1.5s ease forwards;
    transform: scaleY(0) rotate(90deg);
  }
  
  .infographic-arrow-2 {
    animation: drawArrow 1.5s ease 0.5s forwards;
    transform: scaleY(0) rotate(90deg);
  }
  
  .infographic-step::before {
    width: 180px;
    white-space: normal;
  }
}
