/* ===== ADVANCED ANIMATIONS ===== */

/* Float Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
.float-anim {
  animation: float 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Pulse Ring */
@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Rotating Border */
@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Glow Pulse */
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
  }
}

/* Slide In */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Scale In */
@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hero Background Parallax Simulation */
.hero {
  animation: heroBgShift 20s ease-in-out infinite alternate;
  background-size: cover;
  background-position: center;
}
@keyframes heroBgShift {
  0% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 52% 52%;
  }
}

/* Product Card Hover Effect — subtle lift only */
.product-card {
  position: relative;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Stat Counter Pop */
.stat-number.counted {
  animation: countPop 0.5s ease;
}
@keyframes countPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    color: var(--gold);
  }
  100% {
    transform: scale(1);
  }
}

/* Value Card Icon Animation */
.value-card:hover .value-icon {
  animation: iconBounce 0.6s ease;
}
@keyframes iconBounce {
  0%,
  100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(0.9);
  }
}

/* Gallery Hover Effect */
.gallery-img img {
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}
.gallery-item:hover .gallery-img img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Smooth Section Transitions */
section {
  transition: background-color 0.3s ease;
}

/* Loading Skeleton */
@keyframes skeleton {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-light) 25%,
    var(--gray) 50%,
    var(--gray-light) 75%
  );
  background-size: 200px 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* Timeline Step Reveal */
.timeline-step {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}
.timeline-step.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline-step:nth-child(even) {
  transform: translateX(30px);
}
.timeline-step:nth-child(even).visible {
  transform: translateX(0);
}

/* CTA Section Particles */
.cta-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.15),
    transparent 70%
  );
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
}
.cta-section::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
  animation: float 5s ease-in-out infinite reverse;
}

/* Gold Button Pulse */
.btn-gold {
  animation: glowPulse 3s ease-in-out infinite;
}
.btn-gold:hover {
  animation: none;
}

/* Stats Card Stagger */
.stats-grid .stat-card:nth-child(1) {
  transition-delay: 0.1s;
}
.stats-grid .stat-card:nth-child(2) {
  transition-delay: 0.2s;
}
.stats-grid .stat-card:nth-child(3) {
  transition-delay: 0.3s;
}
.stats-grid .stat-card:nth-child(4) {
  transition-delay: 0.4s;
}
.stats-grid .stat-card:nth-child(5) {
  transition-delay: 0.5s;
}
.stats-grid .stat-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Fade transitions for page elements */
.hero-content > * {
  animation-fill-mode: both;
}
