/* 
   Al-Sultan Moving Company - Animations CSS
   Lightweight, Premium Effects
   Midnight Sapphire Blue & Safety Coral/Orange
*/

/* 1. Shimmer/Shine Effect on text (using Safety Coral gradient) */
@keyframes coralShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shimmer-text {
  background: linear-gradient(
    90deg, 
    #E15B28 0%, 
    #FF7F50 25%, 
    #E15B28 50%, 
    #FF7F50 75%, 
    #E15B28 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: coralShimmer 6s linear infinite;
}

/* 2. Floating Animation for boxes/cards */
@keyframes floatAnimation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float-anim {
  animation: floatAnimation 4s ease-in-out infinite;
}

/* 3. Soft Pulse Animation for Call & WhatsApp CTAs */
@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 91, 40, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(225, 91, 40, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 91, 40, 0);
  }
}

.pulse-accent {
  animation: ctaPulse 2.5s infinite;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-whatsapp {
  animation: whatsappPulse 2.5s infinite;
}

/* 4. Page Load Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-right {
  opacity: 0;
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-left {
  opacity: 0;
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delay Helpers */
.delay-100 { animation-delay: 100ms; transition-delay: 100ms; }
.delay-200 { animation-delay: 200ms; transition-delay: 200ms; }
.delay-300 { animation-delay: 300ms; transition-delay: 300ms; }
.delay-400 { animation-delay: 400ms; transition-delay: 400ms; }
.delay-500 { animation-delay: 500ms; transition-delay: 500ms; }

/* Interactive Hover Glow for Coral/Accent elements */
.accent-glow-hover {
  position: relative;
  overflow: hidden;
}

.accent-glow-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(225, 91, 40, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  transform: translate(-10%, -10%);
}

.accent-glow-hover:hover::after {
  opacity: 1;
}

/* 5. Sapphire Shield Pulse Watermark */
@keyframes shieldPulse {
  0% {
    transform: scale(1);
    opacity: 0.04;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.06;
  }
  100% {
    transform: scale(1);
    opacity: 0.04;
  }
}
.pulse-shield {
  animation: shieldPulse 6s ease-in-out infinite;
}

/* 6. Stagger items reveal helper */
.stagger-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* 8. Badge Shimmer effect */
@keyframes badgeShimmer {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}
.badge-shimmer {
  position: relative;
  overflow: hidden;
}
.badge-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: badgeShimmer 3s infinite;
  z-index: 1;
}

/* 7. Support for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .badge-shimmer::before {
    animation: none !important;
    display: none !important;
  }
  .shimmer-text {
    animation: none !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: var(--accent-color) !important;
  }
  .float-anim {
    animation: none !important;
  }
  .pulse-accent,
  .pulse-whatsapp,
  .pulse-shield {
    animation: none !important;
    box-shadow: none !important;
  }
  .anim-fade-up,
  .anim-fade-right,
  .anim-fade-left {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .stagger-item {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
