.block-showcase.floating-icons-showcase {
  background-color: var(--ncs-container-weak);
  --text-color: var(--text);

  &.colorless-bg {
    background-color: var(--background);
  }
}

.floating-icons-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 3rem 0;

  /* Animation States */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  &.animate-in {
    opacity: 1;
    transform: translateY(0);
  }

  .main-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .main-image-wrapper {
    position: relative;
    max-width: 600px;
    width: 100%;
    background-color: var(--ncs-container-strong);
    border-radius: 24px;
    padding: 12px;

    &:hover {
      .icon-box.icon1 {
        transform: translate(-8px, -16px) rotate(-12deg);
      }
      .icon-box.icon2 {
        transform: translate(8px, -16px) rotate(12deg);
      }
      .icon-box.icon3 {
        transform: translate(-8px, -8px) rotate(-6deg);
      }
      .icon-box.icon4 {
        transform: translate(8px, -8px) rotate(6deg);
      }
    }
  }

  .main-showcase-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;

    &[data-state="loaded"] {
      /* Additional loaded state styling if needed */
    }
  }

  &.animate-in .main-showcase-image {
    opacity: 1;
  }

  /* Floating Icons */
  .floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
  }

  .icon-box {
    width: 16%;
    aspect-ratio: 1/1;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background: color-mix(in srgb, var(--background) 70%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid var(--ncs-container-strong);
    border-radius: 16px;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);

    img {
      width: 70%;
      height: 70%;
      object-fit: contain;
    }
  }

  &.animate-in .icon-box {
    opacity: 1;
  }

  /* Icon Positioning */
  .icon1 {
    top: 15%;
    left: -8%;
  }

  .icon2 {
    top: -5%;
    right: 2%;
  }

  .icon3 {
    bottom: 8%;
    left: -5%;
  }

  .icon4 {
    bottom: 30%;
    right: -5%;
  }

  /* Text Overlay Container */
  .text-overlay-container {
    position: absolute;
    bottom: -8%;
    right: -3%;
    max-width: 300px;
    width: 55%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, white 20%, transparent);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
    z-index: 3;

    h2, h3, h4 {
      color: white;
      margin-bottom: 0.75rem;
      font-size: 1.1rem;
    }

    p {
      color: white;
      opacity: 0.9;
      line-height: 1.5;
      font-size: 0.85rem;
    }

    a {
      color: white;
      text-decoration: underline;
      
      &:hover {
        opacity: 0.8;
      }
    }
  }

  &.animate-in .text-overlay-container {
    opacity: 1;
    transform: translateY(0);
  }

  /* Responsive Styles */
  @media (max-width: 1260px) {
    .icon1 {
      left: -6%;
      top: 16%;
    }
    
    .icon2 {
      right: 4%;
      top: -4%;
    }
    
    .icon3 {
      left: -2%;
      bottom: 9%;
    }
    
    .icon4 {
      right: -2%;
      bottom: 30%;
    }

    .text-overlay-container {
      bottom: -6%;
      right: -2%;
      width: 50%;
      max-width: 280px;
    }
  }

  @media (max-width: 768px) {
    padding: 2rem 0;

    .main-image-wrapper {
      padding: 8px;
      border-radius: 20px;

      &:hover {
        .icon-box.icon1 {
          transform: translate(-5px, -10px) rotate(-8deg);
        }
        .icon-box.icon2 {
          transform: translate(5px, -10px) rotate(8deg);
        }
        .icon-box.icon3 {
          transform: translate(-5px, -6px) rotate(-4deg);
        }
        .icon-box.icon4 {
          transform: translate(5px, -6px) rotate(4deg);
        }
      }
    }

    .main-showcase-image {
      border-radius: 12px;
    }

    .icon1 {
      top: 14%;
      left: -4%;
    }

    .icon2 {
      top: -2%;
      right: 3%;
    }

    .icon3 {
      bottom: 7%;
      left: -1%;
    }

    .icon4 {
      bottom: 26%;
      right: 0%;
    }

    .text-overlay-container {
      bottom: -5%;
      right: -2%;
      width: 60%;
      max-width: 250px;
      padding: 1rem;
      border-radius: 10px;

      h2, h3, h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
      }

      p {
        font-size: 0.8rem;
      }
    }
  }

  @media (max-width: 576px) {
    .main-image-wrapper {
      padding: 6px;
      border-radius: 16px;

      &:hover {
        .icon-box.icon1 {
          transform: translate(-3px, -8px) rotate(-5deg);
        }
        .icon-box.icon2 {
          transform: translate(3px, -8px) rotate(5deg);
        }
        .icon-box.icon3 {
          transform: translate(-3px, -4px) rotate(-2.5deg);
        }
        .icon-box.icon4 {
          transform: translate(3px, -4px) rotate(2.5deg);
        }
      }
    }

    .main-showcase-image {
      border-radius: 10px;
    }

    .icon1 {
      top: 12%;
      left: -2%;
    }

    .icon2 {
      top: -1%;
      right: 4%;
    }

    .icon3 {
      bottom: 5%;
      left: -1%;
    }

    .icon4 {
      bottom: 40%;
      right: -2%;
    }

    .text-overlay-container {
      bottom: -4%;
      right: -1%;
      width: 65%;
      max-width: 200px;
      padding: 0.8rem;
      border-radius: 8px;

      h2, h3, h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
      }

      p {
        font-size: 0.75rem;
        line-height: 1.4;
      }
    }
  }

  @media (max-width: 400px) {
    .main-content-wrapper {
      gap: 1.5rem;
    }

    .text-overlay-container {
      position: relative;
      bottom: auto;
      right: auto;
      width: 100%;
      max-width: none;
      margin-top: 1rem;
      padding: 1rem;
      border-radius: 12px;

      h2, h3, h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
      }

      p {
        font-size: 0.8rem;
        line-height: 1.5;
      }
    }

    .icon4 {
      bottom: 15%;
    }
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .floating-icons-container,
  .floating-icons-container .main-showcase-image,
  .floating-icons-container .icon-box,
  .floating-icons-container .text-overlay-container,
  .floating-icons-container .main-image-wrapper {
    transition: none;
    animation: none;
  }
} 