/* ==========================================================================
   Digitobrand - Keyframe Animations & Transitions
   ========================================================================== */

/* Fade & Slide Reveal Elements */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* Glowing Border Pulse for Featured Cards */
@keyframes goldPulse {
  0% {
    box-shadow: 0 0 10px rgba(212, 167, 44, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(242, 193, 78, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(212, 167, 44, 0.2);
  }
}

.gold-pulse-effect {
  animation: goldPulse 3s infinite ease-in-out;
}

/* Shimmer Light effect across gold CTAs */
@keyframes buttonShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.btn-gold:hover::after {
  animation: buttonShimmer 1s ease-in-out;
}

/* Float animation for hero badges */
@keyframes floatingBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.floating-anim {
  animation: floatingBadge 4s infinite ease-in-out;
}

/* Floating category pill tag subtle animation */
@keyframes pillGlow {
  0%, 100% { border-color: var(--border-gold); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
  50% { border-color: var(--gold-bright); box-shadow: 0 4px 18px rgba(242, 193, 78, 0.4); }
}

.service-cat-tag {
  animation: pillGlow 4s infinite ease-in-out;
}

/* Floating media icon pulse animation */
@keyframes iconPulseGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 167, 44, 0.3); }
  50% { box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 25px rgba(242, 193, 78, 0.6); }
}

.service-floating-icon {
  animation: iconPulseGlow 3.5s infinite ease-in-out;
}

/* Arrow move effect on button hover */
.btn-gold svg, .btn-outline-gold svg {
  transition: transform 0.3s ease;
}

.btn-gold:hover svg, .btn-outline-gold:hover svg {
  transform: translateX(4px);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
