/* ==========================================================================
   ElevateStack - Refined Micro-Animations & Reveal Effects
   ========================================================================== */

/* Fade In & Up Scroll Reveals */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Subtle Ambient Glow Pulsing */
@keyframes ambientGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: ambientGlow 8s ease-in-out infinite alternate;
  max-width: 100vw;
  overflow: hidden;
}

.glow-orb-indigo {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
}

.glow-orb-cyan {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
}

@media (max-width: 768px) {
  .glow-orb {
    width: 220px !important;
    height: 220px !important;
    opacity: 0.25;
  }
}

/* Shimmer Button Effect on Hover */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 140%;
}

/* Subtle Card Edge Highlight on Hover */
.card-hover-border {
  position: relative;
}

.card-hover-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Connecting Line Animation for Process Steps (Desktop) */
@media (min-width: 1081px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 45px;
    right: -15px;
    width: 15px;
    height: 2px;
    background: linear-gradient(to right, rgba(56, 189, 248, 0.4), rgba(99, 102, 241, 0.2));
    z-index: 1;
  }
}
