/* Floating icons animation */
.floating-icons {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 2rem;
  perspective: 1000px;
  transform-style: preserve-3d;
  z-index: 100;
  pointer-events: none;
  overflow: visible;
}

.floating-icon {
  animation: floatForward 8s infinite;
  opacity: 0;
  transform: scale(0.5) translateZ(-200px);
  position: absolute;
  /* filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7)); */
  z-index: 101;
  width: 50px;
  height: 50px;
}

/* Position each icon around the heading */
.floating-icon:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 7s;
  top: -60%;
  left: 30%;
}

.floating-icon:nth-child(2) {
  animation-delay: 1s;
  animation-duration: 6s;
  top: -80%;
  left: 60%;
}

.floating-icon:nth-child(3) {
  animation-delay: 2s;
  animation-duration: 8s;
  top: -50%;
  left: 45%;
}

.floating-icon:nth-child(4) {
  animation-delay: 3s;
  animation-duration: 7.5s;
  top: -20%;
  left: 75%;
}

.floating-icon:nth-child(5) {
  animation-delay: 4s;
  animation-duration: 6.5s;
  top: -20%;
  left: 20%;
}



@keyframes floatForward {
  0% {
    transform: scale(0.5) translateZ(-300px) rotate(-5deg);
    opacity: 0;
  }

  15% {
    transform: scale(0.7) translateZ(-150px) rotate(0deg);
    opacity: 0.7;
  }

  45% {
    transform: scale(1) translateZ(0) rotate(5deg);
    opacity: 1;
  }

  75% {
    transform: scale(1.3) translateZ(150px) rotate(0deg);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.5) translateZ(300px) rotate(-5deg);
    opacity: 0;
  }
}

/* Add responsive adjustments */
@media (max-width: 768px) {
  .floating-icons {
    height: 150px;
  }

  .floating-icon {
    max-width: 40px;
    max-height: 40px;
  }

  /* Adjust positions for smaller screens */
  .floati-icon:nth-child(1) {
    top: -30px;
    left: 15%;
  }

  .floating-icon:nth-child(2) {
    top: -15px;
    left: 55%;
  }

  .floating-icon:nth-child(3) {
    top: 20px;
    left: 70%;
  }

  .floating-icon:nth-child(4) {
    top: 60px;
    left: 60%;
  }

  .floating-icon:nth-child(5) {
    top: 40px;
    left: 30%;
  }
}

@media (max-width: 480px) {
  .floating-icons {
    height: 120px;
  }

  .floating-icon {
    max-width: 30px;
    max-height: 30px;
  }

  /* Further adjust positions for mobile */
  .floating-icon:nth-child(1) {
    top: -25px;
    left: 10%;
  }

  .floating-icon:nth-child(2) {
    top: -10px;
    left: 50%;
  }

  .floating-icon:nth-child(3) {
    top: 15px;
    left: 75%;
  }

  .floating-icon:nth-child(4) {
    top: 40px;
    left: 55%;
  }

  .floating-icon:nth-child(5) {
    top: 30px;
    left: 35%;
  }
}
