@import url('https://fonts.googleapis.com/css2?family=Amita:wght@400;700&display=swap');

.spa-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 100%;
}

.spa-button-container.full-width {
  width: 100%;
}

.spa-cta-button {
  position: relative;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spa-cta-button.full-width {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spa-cta-button:hover {
  transform: translateY(-6px);
}

.spa-cta-button:active {
  transform: translateY(-3px);
}

/* Individual Items */
.spa-item {
  position: absolute;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.2));
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: bottom center;
  z-index: 10;
  height: auto;
}

/* PHASE 1: Jump up and fall down */
.spa-item.jump-fall {
  animation: jumpAndFall 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes jumpAndFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translateY(-30px) rotate(15deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(50px) rotate(35deg);
    opacity: 0;
  }
}

.spa-item.towel.jump-fall {
  animation: jumpAndFallTowel 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes jumpAndFallTowel {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translateY(-30px) rotate(-12deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(50px) rotate(-25deg);
    opacity: 0;
  }
}

.spa-item.bottle.jump-fall {
  animation: jumpAndFallBottle 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes jumpAndFallBottle {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translateY(-35px) rotate(18deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(55px) rotate(32deg);
    opacity: 0;
  }
}

.spa-item.jar.jump-fall {
  animation: jumpAndFallJar 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes jumpAndFallJar {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translateY(-32px) rotate(-15deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(52px) rotate(-28deg);
    opacity: 0;
  }
}

/* PHASE 2: Fall from top */
.spa-item.fall-from-top {
  animation: fallFromTop 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fallFromTop {
  0% {
    transform: translateY(-150px) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

/* Button Text */
.button-text {
  font-family: 'Amita', serif;
  display: block;
  transition: all 0.3s ease;
}

.spa-cta-button.clicked .button-text {
  opacity: 0.8;
}

/* Elementor Editor Support */
.elementor-editor-active .spa-cta-button {
  pointer-events: auto;
}

/* Mobile: Remove hover bottom movement */
@media (max-width: 768px) {
  .spa-cta-button:hover {
    transform: none;
  }
  
  .spa-cta-button:active {
    transform: none;
  }
}