/* NDTECHLY — supplemental animations (Tailwind handles most UI) */
:root {
  --ocean-600: #0284c7;
  --ocean-800: #075985;
  --accent-500: #f97316;
  --accent-600: #ea580c;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-slide {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .client-logos-marquee-track:hover {
    animation: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide {
  transition: opacity 0.9s ease-in-out;
}

.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dark .glass-card-dark,
.glass-card-dark {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tech-logo {
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.tech-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
}

/* Technology row — larger logos, scale + glow on hover */
.tech-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid rgb(241 245 249);
  background: linear-gradient(180deg, rgb(255 255 255) 0%, rgb(248 250 252) 100%);
  padding: 1.25rem 1rem;
  min-height: 6.5rem;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

@media (min-width: 1024px) {
  .tech-logo-wrap {
    min-height: 7.5rem;
    padding: 1.5rem 1.25rem;
  }
}

.tech-logo-wrap:hover {
  transform: scale(1.06) translateY(-4px);
  border-color: rgb(125 211 252);
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.12),
    0 12px 40px -12px rgba(2, 132, 199, 0.35),
    0 8px 24px -8px rgba(249, 115, 22, 0.2);
}

.tech-logo-wrap .tech-logo-img {
  height: 2.25rem;
  width: auto;
  max-width: 100%;
  filter: grayscale(1);
  opacity: 0.82;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 640px) {
  .tech-logo-wrap .tech-logo-img {
    height: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .tech-logo-wrap .tech-logo-img {
    height: 3rem;
  }
}

.tech-logo-wrap:hover .tech-logo-img {
  filter: grayscale(0);
  opacity: 1;
}

/* Service cards — gradient border + lift */
.service-card-shell {
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgb(56 189 248), rgb(2 132 199), rgb(249 115 22));
  box-shadow: 0 10px 40px -15px rgba(15, 23, 42, 0.15);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

.service-card-shell:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px -20px rgba(2, 132, 199, 0.35),
    0 16px 40px -24px rgba(249, 115, 22, 0.2);
}

.service-card-inner {
  border-radius: calc(1rem - 1px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  height: 100%;
}

/* Primary CTA buttons — subtle press + shadow */
.btn-cta-primary {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(2, 132, 199, 0.45);
  filter: brightness(1.05);
}

.btn-cta-primary:active {
  transform: translateY(0);
}

/* FAQ polish */
details.ndtechly-faq summary {
  transition: color 0.2s ease;
}

details.ndtechly-faq[open] summary {
  color: rgb(3 105 161);
}

/* Trust metric cards */
.trust-metric-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(15, 23, 42, 0.12);
}

/* Hero — full-viewport height on small screens only (desktop uses Tailwind min-h) */
@media (max-width: 767px) {
  .hero-section {
    min-height: 100svh;
    min-height: 100dvh;
  }
}

/* Client logos — infinite marquee (duplicate row in HTML for seamless loop) */
.client-logos-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.client-logos-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: client-logos-marquee-scroll 50s linear infinite;
}

.client-logos-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes client-logos-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logos-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.client-logos-marquee-item img {
  max-height: 2.5rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .client-logos-marquee-item {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }

  .client-logos-marquee-item img {
    max-height: 3rem;
    max-width: 11rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-logos-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .client-logos-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100% !important;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
  }

  .client-logos-marquee-dupe {
    display: none !important;
  }

  .client-logos-marquee-track > div:first-child {
    flex-wrap: wrap;
    justify-content: center;
  }

  .client-logos-marquee-item {
    padding: 0.5rem 1rem;
  }
}

.hero-slider .slide > img {
  object-position: center center;
}

@media (max-width: 639px) {
  .hero-slider .slide > img {
    object-position: center 25%;
    transform: scale(1.05);
  }
}

.hero-slider .slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

.hero-slider .slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-controls {
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

/* Hero copy visible immediately (scroll-reveal rootMargin can miss short viewports) */
[data-hero-slider] .reveal {
  opacity: 1;
  transform: none;
}

/* Blog / long-form (Tailwind CDN has no @tailwindcss/typography) */
.prose {
  max-width: 65ch;
}
.prose p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #475569;
}
.prose.prose-lg p {
  font-size: 1.125rem;
}
.prose strong {
  color: #0f172a;
  font-weight: 600;
}
.prose em {
  font-style: italic;
}
.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}
.prose ul,
.prose ol {
  margin: 1rem 0 1rem 1.25rem;
  color: #475569;
}
.prose li {
  margin-top: 0.5rem;
  line-height: 1.7;
}
.prose a {
  color: #0369a1;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: #0c4a6e;
}

/* Desktop sticky CTA (injected by app.js; avoids Tailwind JIT missing dynamic classes) */
.ndtechly-sticky-consult {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 40;
  display: none;
  align-items: center;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.35);
  background: linear-gradient(90deg, #0284c7, #f97316);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.ndtechly-sticky-consult:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
@media (min-width: 768px) {
  .ndtechly-sticky-consult {
    display: inline-flex;
  }
}
