/* Avatech landing page — custom rules beyond Tailwind utilities */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  background-color: #F8F6F1;
  color: #0D1B33;
}

/* Offset anchor scroll targets so content isn't hidden under the fixed navbar */
section[id], footer[id] {
  scroll-margin-top: 88px;
}

/* Active nav link state, toggled by script.js */
.nav-link.is-active {
  color: #C9A227;
}

/* Klien Kami logo marquee — continuous auto-scroll strip */
.klien-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.klien-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: klien-marquee-scroll 12s linear infinite;
  /* Overwritten by script.js once it measures the real, rendered width of
     one logo set — see setupKlienMarquee(). 0px is a harmless fallback if
     JS is disabled (the track just won't visibly move). */
  --klien-marquee-distance: 0px;
}

.klien-marquee:hover .klien-marquee-track {
  animation-play-state: paused;
}

.klien-logo {
  height: 5.5rem;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 6rem;
}

@keyframes klien-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* script.js clones the logo set enough times to fill the viewport, then
       sets --klien-marquee-distance to the exact rendered width of ONE set
       (image widths + margins). Translating by exactly that distance always
       lands a clone precisely where the original set started — an exact,
       seamless loop regardless of viewport width or how many clones exist. */
    transform: translateX(calc(-1 * var(--klien-marquee-distance)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .klien-marquee-track {
    animation: none;
  }
}
