/* ============================================
   KernelCrew Global CSS — shared across all pages
   ============================================ */

/* ── Font faces ─────────────────────────────── */
@font-face {
  font-family: 'Ambit';
  src: url('../assets/fonts/ambit/Ambit Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ambit';
  src: url('../assets/fonts/ambit/Ambit Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Ambit';
  src: url('../assets/fonts/ambit/Ambit Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ambit';
  src: url('../assets/fonts/ambit/Ambit SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ambit';
  src: url('../assets/fonts/ambit/Ambit Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ambit';
  src: url('../assets/fonts/ambit/Ambit Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src: url('../assets/fonts/Aeonik/fonts/fonnts.com-Aeonik-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../assets/fonts/Aeonik/fonts/fonnts.com-Aeonik-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Typography rules ───────────────────────── */
/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Base font — Aeonik for all body/UI text */
body { font-family: 'Aeonik', sans-serif; }

/* Headings — Ambit */
h1, h2, h3, h4, h5, h6 { font-family: 'Ambit', sans-serif; }

/* ── Carousel: Services (marquee) ─────────── */
@keyframes marquee-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.services-carousel-track {
  animation: marquee-scroll 40s linear infinite;
  display: flex;
  gap: 20px;
  width: fit-content;
  will-change: transform;
  backface-visibility: hidden;
}
.services-carousel-track:hover { animation-play-state: paused; }

/* ── Carousel: Tech logos ─────────────────── */

@keyframes logo-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.carousel-wrapper {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.carousel-track:hover { animation-play-state: paused; }

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.logo-item img {
  height: 60px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .carousel-track { gap: 50px; }
  .logo-item { height: 44px; }
  .logo-item img { height: 44px; max-width: 100px; }
}

/* ── CTA Pulse ──────────────────────────────── */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(83,128,254,0.5); }
  50%       { box-shadow: 0 0 0 12px rgba(83,128,254,0); }
}
.animate-cta-pulse { animation: cta-pulse 2s ease-in-out infinite; }

/* ── Scroll-reveal animations ──────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Navbar active underline ─────────────── */
.nav-link-active { color: #134BF8 !important; }
.nav-link-active::after { width: 100% !important; }

/* ── FAQ accordion ──────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* ── Industry tabs ──────────────────────── */
.industry-tab { transition: all 0.3s ease; }
.industry-tab.active {
  background: linear-gradient(to right, #134BF8, #5380FE);
  color: white;
  box-shadow: 0 4px 15px rgba(19,75,248,0.4);
  transform: scale(1.05);
}
.industry-content { display: none; }
.industry-content.active { display: block; }

/* ── Engagement model / feature cards ─── */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* ── Utility overrides ───────────────────── */
* { box-sizing: border-box; }
img { max-width: 100%; }
a { text-decoration: none; }
