/* Homepage scroll reveals, premium motion & white icon treatment */

.home-reveal,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-reveal.is-visible,
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered child reveals inside sections */
.home-reveal-child {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.home-reveal.is-visible .home-reveal-child,
.reveal-on-scroll.is-visible .home-reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.glass-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: homeGlassBreathe 5s ease-in-out infinite;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(46, 49, 146, 0.16);
}

@keyframes homeGlassBreathe {
  0%, 100% { box-shadow: 0 12px 40px rgba(46, 49, 146, 0.1); }
  50% { box-shadow: 0 18px 48px rgba(46, 49, 146, 0.16); }
}

.home-cases__card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.home-cases__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(46, 49, 146, 0.14);
}

.news-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(46, 49, 146, 0.12);
}

/* Premium homepage icon treatment — crisp white on dark surfaces */
.page-home .home-hero svg {
  color: #fff;
}

.page-home .home-about-intro__cta svg,
.page-home .home-cta__btn svg {
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.2));
}

.page-home .home-services--dark .home-services__icon--premium svg,
.page-home .home-services--dark .home-services__card-link-btn svg,
.page-home .home-services__cta svg {
  color: #fff;
}

.page-home .home-services__card--light .home-services__icon {
  background: linear-gradient(135deg, #2E3192 0%, #1F2478 100%);
  color: #fff;
}

.page-home .home-services__card--light .home-services__icon svg {
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.2));
}

.page-home .home-services__card-link-btn {
  background: #2E3192;
  color: #fff;
}

.page-home .home-services__card-link-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.25rem;
}

.page-home .home-process__step-num {
  animation: homeStepBreathe 4s ease-in-out infinite;
}

@keyframes homeStepBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.25); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(0, 174, 239, 0); }
}

.page-home .home-showcase__card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.page-home .home-showcase__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(46, 49, 146, 0.2);
}

.page-home .home-about-intro__image-wrap {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.page-home .home-about-intro__image-wrap:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 64px rgba(46, 49, 146, 0.18);
}

.page-home .home-about-intro__cta {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.page-home .home-about-intro__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(46, 49, 146, 0.35);
}

.page-home .home-hero__panel.is-active h1 {
  animation: homeTitleIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .home-hero__panel.is-active p,
.page-home .home-hero__panel.is-active .home-hero__eyebrow,
.page-home .home-hero__panel.is-active .flex {
  animation: homeFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .home-hero__panel.is-active p { animation-delay: 0.12s; }
.page-home .home-hero__panel.is-active .flex { animation-delay: 0.24s; }

@keyframes homeTitleIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes homeFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal,
  .reveal-on-scroll,
  .home-reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .glass-card,
  .page-home .home-process__step-num {
    animation: none;
  }

  .page-home .home-hero__panel.is-active h1,
  .page-home .home-hero__panel.is-active p,
  .page-home .home-hero__panel.is-active .home-hero__eyebrow,
  .page-home .home-hero__panel.is-active .flex {
    animation: none;
  }
}

/* Animated stat counters (homepage + about) */
[data-stats-counter].is-animated .home-stat,
[data-stats-counter].is-animated .about-story__stat {
  animation: statReveal 0.6s ease both;
  animation-delay: var(--stat-delay, 0s);
}

.about-story__counter,
.home-stat__value .about-story__counter {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.about-story__counter.is-counting,
.home-stat__value .about-story__counter.is-counting {
  animation: statPop 0.35s ease;
}

@keyframes statReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); color: #00AEEF; }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  [data-stats-counter].is-animated .home-stat,
  [data-stats-counter].is-animated .about-story__stat,
  .about-story__counter.is-counting {
    animation: none;
  }
}
