/* Nano Soft — calm mobile motion (lightweight) */

@keyframes ns-rise {
  from { transform: translate3d(0, 22px, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes ns-pop {
  0% { transform: translate3d(0, 16px, 0) scale(0.98); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes ns-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
@keyframes ns-breathe {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}
@keyframes ns-glow {
  0%, 100% { box-shadow: 0 10px 24px rgba(26, 102, 224, 0.22); }
  50% { box-shadow: 0 14px 34px rgba(47, 191, 58, 0.28), 0 10px 24px rgba(26, 102, 224, 0.22); }
}
@keyframes ns-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes ns-dot {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.35); opacity: 1; }
}

.reveal {
  opacity: 1 !important;
  transform: translate3d(0, 18px, 0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { transform: none; }

.reveal .stat,
.reveal .service-card,
.reveal .process-item,
.reveal .panel,
.reveal .product-card,
.reveal .product-main,
.reveal .faq-item,
.reveal .industries span,
.reveal .tech div,
[data-motion] {
  transform: translate3d(0, 16px, 0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in .stat,
.reveal.in .service-card,
.reveal.in .process-item,
.reveal.in .panel,
.reveal.in .product-card,
.reveal.in .product-main,
.reveal.in .faq-item,
.reveal.in .industries span,
.reveal.in .tech div,
[data-motion].in {
  transform: none;
}

.reveal.in .stat:nth-child(1),
.reveal.in .service-card:nth-child(1),
.reveal.in .process-item:nth-child(1),
.reveal.in .faq-item:nth-child(1),
.reveal.in .industries span:nth-child(1),
.reveal.in .tech div:nth-child(1) { transition-delay: 0.04s; }
.reveal.in .stat:nth-child(2),
.reveal.in .service-card:nth-child(2),
.reveal.in .process-item:nth-child(2),
.reveal.in .faq-item:nth-child(2),
.reveal.in .industries span:nth-child(2),
.reveal.in .tech div:nth-child(2) { transition-delay: 0.08s; }
.reveal.in .stat:nth-child(3),
.reveal.in .service-card:nth-child(3),
.reveal.in .process-item:nth-child(3),
.reveal.in .faq-item:nth-child(3),
.reveal.in .industries span:nth-child(3),
.reveal.in .tech div:nth-child(3) { transition-delay: 0.12s; }
.reveal.in .stat:nth-child(4),
.reveal.in .service-card:nth-child(4),
.reveal.in .process-item:nth-child(4),
.reveal.in .faq-item:nth-child(4),
.reveal.in .industries span:nth-child(4),
.reveal.in .tech div:nth-child(4) { transition-delay: 0.16s; }
.reveal.in .service-card:nth-child(5),
.reveal.in .industries span:nth-child(5),
.reveal.in .tech div:nth-child(5) { transition-delay: 0.2s; }
.reveal.in .industries span:nth-child(6) { transition-delay: 0.24s; }
.reveal.in .industries span:nth-child(7) { transition-delay: 0.28s; }
.reveal.in .industries span:nth-child(8) { transition-delay: 0.32s; }

@media (max-width: 820px) {
  .hero { animation: ns-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-copy { animation: ns-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-visual,
  .hero-visual-inner {
    animation: ns-pop 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
  }
  .hero-logo,
  .hero-visual img {
    animation: ns-float 5s ease-in-out infinite;
  }
  .hero-eyebrow i { animation: ns-dot 1.8s ease-in-out infinite; }

  .btn-primary {
    background-image: linear-gradient(120deg, #0b3d91, #1a66e0 40%, #2fbf3a 70%, #1a66e0);
    background-size: 200% 200%;
    animation: ns-glow 3.2s ease-in-out infinite, ns-shimmer 4.5s linear infinite;
  }
  .nav-cta { animation: ns-glow 3.2s ease-in-out infinite; }

  /* Mild idle float — few elements only */
  .reveal.in .tech div,
  .reveal.in .stat {
    animation: ns-breathe 5.5s ease-in-out infinite;
  }
  .reveal.in .tech div:nth-child(2n),
  .reveal.in .stat:nth-child(2n) {
    animation-delay: -1.5s;
  }

  .btn:active,
  .service-card:active,
  .stat:active,
  .tech div:active,
  .industries span:active {
    transform: scale(0.98);
  }

  .menu-toggle { transition: transform 0.2s ease, background 0.2s ease; }
  .menu-toggle:active { transform: scale(0.94); }
  body.nav-open .menu-toggle {
    background: #eef5ff;
    border-color: rgba(26, 102, 224, 0.28);
  }
  body.nav-open .nav-links > li {
    animation: ns-rise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.nav-open .nav-links > li:nth-child(1) { animation-delay: 0.02s; }
  body.nav-open .nav-links > li:nth-child(2) { animation-delay: 0.05s; }
  body.nav-open .nav-links > li:nth-child(3) { animation-delay: 0.08s; }
  body.nav-open .nav-links > li:nth-child(4) { animation-delay: 0.11s; }
  body.nav-open .nav-links > li:nth-child(5) { animation-delay: 0.14s; }
  body.nav-open .nav-links > li:nth-child(6) { animation-delay: 0.17s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal .stat,
  .reveal .service-card,
  .reveal .process-item,
  .reveal .panel,
  .reveal .product-card,
  .reveal .faq-item,
  .reveal .industries span,
  .reveal .tech div,
  [data-motion],
  .hero,
  .hero-copy,
  .hero-visual,
  .hero-logo,
  .btn-primary,
  .nav-cta,
  body.nav-open .nav-links > li {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
