/* Custom enhancements beyond Tailwind */

/* ============ AOS (Animate On Scroll) Enhancements ============ */
[data-aos] {
  opacity: 0;
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Slide animations */
[data-aos="slide-up"] {
  transform: translate3d(0, 40px, 0);
}

[data-aos="slide-down"] {
  transform: translate3d(0, -40px, 0);
}

[data-aos="slide-left"] {
  transform: translate3d(40px, 0, 0);
}

[data-aos="slide-right"] {
  transform: translate3d(-40px, 0, 0);
}

/* Fade animations */
[data-aos="fade"] {
  opacity: 0;
}

[data-aos="fade-up"] {
  transform: translate3d(0, 30px, 0);
}

[data-aos="zoom-in"] {
  transform: translate3d(0, 0, 0) scale(0.85);
}

/* ============ Card Interactions ============ */
.card-raise {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card-raise:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

.parallax-target {
  transition: transform 300ms ease;
}

/* ============ Button Animations ============ */
button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(138, 75, 36, 0.4);
  outline-offset: 2px;
}

/* Purchase button pulse animation */
.btn-purchase {
  position: relative;
  overflow: hidden;
}

.btn-purchase::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 1s infinite;
}

@keyframes ripple {
  0% {
    width: 5px;
    height: 5px;
    opacity: 1;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}

.btn-purchase:hover::after {
  animation: none;
}

/* ============ Toast Notifications ============ */
#toast-container > div {
  will-change: transform, opacity;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============ Scroll Trigger Animations ============ */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  animation: textSlideUp 0.6s ease-out backwards;
}

@keyframes textSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.counter-animate {
  transition: color 0.3s ease;
