/* === Animation System (Modular) === */
:root {
  --anim-duration-short: .45s;
  --anim-duration: .75s;
  --anim-ease: cubic-bezier(.16,.84,.44,1);
  --anim-distance: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .will-animate,
  [data-parallax],
  .parallax-layer {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.will-animate {
  opacity: 0;
  transform: translateY(var(--anim-distance));
  transition:
    opacity var(--anim-duration) var(--anim-ease),
    transform var(--anim-duration) var(--anim-ease);
}

.will-animate.fade-in {
  transform: none;
}

.will-animate.scale-in {
  transform: scale(.95);
}

.will-animate.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.will-animate.is-in.fade-in {
  transform: none;
}

.will-animate.is-in.scale-in {
  transform: scale(1);
}

[data-animate-stagger] > * {
  --stagger-index: 0;
}
[data-animate-stagger].stagger-in > * {
  transition-delay: calc(var(--stagger-index) * 90ms);
}

.parallax-container {
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

[data-parallax] {
  will-change: transform;
  transition: transform .6s var(--anim-ease);
}

.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: overlay;
  opacity: .35;
}

.parallax-layer.layer-gradient {
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.08), rgba(0,0,0,.55));
  opacity: .55;
}

.card[data-hover-accent],
.service-card[data-hover-accent] {
  position: relative;
  transition: transform .4s var(--anim-ease), box-shadow .4s var(--anim-ease);
}

.card[data-hover-accent]::after,
.service-card[data-hover-accent]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(80,140,255,.0);
  border-radius: inherit;
  transition: border-color .4s var(--anim-ease);
}

.card[data-hover-accent]:hover,
.service-card[data-hover-accent]:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.22);
}

.card[data-hover-accent]:hover::after,
.service-card[data-hover-accent]:hover::after {
  border-color: rgba(80,140,255,.55);
}

/* Heading underline accent */
.heading-accent {
  position: relative;
  display: inline-block;
  padding-bottom: .3rem;
}
.heading-accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg,#0a58ca,#35c6ff);
  transition: width .8s var(--anim-ease);
}
.heading-accent.in-view::after {
  width: 100%;
}

.reveal-delayed { transition-delay: .25s; }
.reveal-fast { transition-duration: .45s; }

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.animated-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animated-slide-in {
    animation: slideIn 0.5s ease-in-out;
}

.animated-bounce {
    animation: bounce 1s infinite;
}

.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
}

.demo-request-button {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.demo-request-button:hover {
    background-color: #ff6b6b;
    transform: translateY(-2px);
}