/**
 * SMT Developments — Motion Graphics & Animations
 */

/* High-contrast Gold & Bronze Shimmer for Light Editorial Background */
@keyframes goldShimmerLight {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(
    105deg,
    #583009 0%,
    #834E17 15%,
    #BA7E26 30%,
    #E8B84C 48%,
    #BA7E26 66%,
    #583009 85%,
    #834E17 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
  animation: goldShimmerLight 5s ease-in-out infinite;
  display: inline-block;
  font-weight: 600;
  position: relative;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.85));
}

/* Subtle float animation for decorative elements */
@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: softFloat 5s ease-in-out infinite;
}

/* Subtle pulse glow for sacred accents */
@keyframes subtlePulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animate-pulse-glow {
  animation: subtlePulse 4s ease-in-out infinite;
}

/* Reveal transition states: Default visible for accessibility & SEO; animated when JS is active */
.reveal-fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready .reveal-fade-up:not(.is-inview) {
  opacity: 0;
  transform: translateY(28px);
}

.js-ready .reveal-fade-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Geometric rotating mandala ornament */
@keyframes slowRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: slowRotate 40s linear infinite;
}

/* Line draw effect */
.line-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s ease-in-out;
}

.line-draw.is-inview {
  stroke-dashoffset: 0;
}
