/* ========================
   ANIMATIONS & TRANSITIONS
   ======================== */

/* ---------- Keyframes ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(212, 168, 67, 0.3); }
  50% { box-shadow: 0 0 25px rgba(212, 168, 67, 0.6); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-in-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-down {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100%) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes counter-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ---------- Scroll Reveal Classes ---------- */
.animate-hidden {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-visible {
  opacity: 1;
}

/* Fade Up */
[data-animate="fade-up"].animate-hidden {
  transform: translateY(40px);
}

[data-animate="fade-up"].animate-visible {
  transform: translateY(0);
}

/* Fade Down */
[data-animate="fade-down"].animate-hidden {
  transform: translateY(-40px);
}

[data-animate="fade-down"].animate-visible {
  transform: translateY(0);
}

/* Fade Left */
[data-animate="fade-left"].animate-hidden {
  transform: translateX(-40px);
}

[data-animate="fade-left"].animate-visible {
  transform: translateX(0);
}

/* Fade Right */
[data-animate="fade-right"].animate-hidden {
  transform: translateX(40px);
}

[data-animate="fade-right"].animate-visible {
  transform: translateX(0);
}

/* Scale In */
[data-animate="scale-in"].animate-hidden {
  transform: scale(0.85);
}

[data-animate="scale-in"].animate-visible {
  transform: scale(1);
}

/* Zoom In */
[data-animate="zoom-in"].animate-hidden {
  transform: scale(0.5);
}

[data-animate="zoom-in"].animate-visible {
  transform: scale(1);
}

/* ---------- Utility Animations ---------- */
.anim-float {
  animation: float 6s ease-in-out infinite;
}

.anim-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

.anim-rotate {
  animation: rotate-slow 20s linear infinite;
}

/* ---------- Scroll to Top Button ---------- */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-gold-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purple);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}

/* ---------- Page Transition ---------- */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.page-transition--active {
  animation: page-wipe 0.6s ease-in-out;
}

@keyframes page-wipe {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.01% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
