/**
 * Brass Tacks Digital Animation CSS Stylesheet
 * Incorporates active hover loops, structural visual shifts,
 * and high-performance layout transitions.
 */

/* 1. KEYFRAME DEFINITIONS */

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Glowing Animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(63, 193, 201, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(63, 193, 201, 0.6);
  }
}

/* Shimmer Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Rotation Loader */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Typewriter Animation - For Hero Header Visuals */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Caret Cursor Blink Configuration */
@keyframes blink {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary);
  }
}


/* 2. REUSABLE ANIMATION CLASSES */

.animate-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-right {
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

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

/* Skeleton Loading Support */
.skeleton {
  background: linear-gradient(90deg, #141c2e 25%, #1e2d45 50%, #141c2e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}


/* 3. INTERSECTION OBSERVER REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-left {
  transform: translateX(-50px);
}

.reveal.reveal-right {
  transform: translateX(50px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Stagger Animation Delays */
.delay-100 { transition-delay: 100s; animation-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; animation-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; animation-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; animation-delay: 0.5s; }

/* ── workflows-automations Page — What We Build Shimmer ── */
.wb-shimmer-heading {
  background: linear-gradient(
    100deg,
    #0a7a85   0%,
    #0e9aa7  15%,
    #3fc1c9  30%,
    #6dd5db  42%,
    #ffffff  50%,
    #6dd5db  58%,
    #3fc1c9  70%,
    #0e9aa7  85%,
    #0a7a85 100%
  ) !important;
  background-size: 250% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: wbHeadingShimmer 4s linear infinite !important;
  display: inline-block !important;
  position: relative !important;
}

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

/* Fallback for browsers that do not support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .wb-shimmer-heading {
    color: #3fc1c9 !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    animation: none !important;
  }
}
