/* ==========================================================================
   LIGHT THEME OVERRIDES — DK FOODS MACHINERY (index.html)
   Loaded AFTER vinayak-style.css. Converts dark surfaces to premium light.
   ========================================================================== */

/* Modern crisp typography & remove muddy retro 3D shadows */
:root {
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.font-display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: -0.025em !important;
}
/* Clean flat typography — no retro 3D text shadows */
.text-3d,
.text-3d.text-white,
.text-white .text-3d,
.dark .text-3d,
.text-3d .bg-clip-text,
.text-3d .text-transparent,
.text-3d [class*="bg-clip-text"],
.text-3d [class*="text-transparent"],
.text-3d .text-\[\#33abe3\],
.text-3d .text-\[\#0284c7\],
.text-3d .text-\[\#4CABD9\],
.text-3d .text-sky-500 {
  text-shadow: none !important;
  filter: none !important;
}


/* ---------- 1. Header / Navigation ---------- */
.hero-glass-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #e8ebee !important;
  box-shadow: 0 6px 24px rgba(17, 17, 17, 0.06) !important;
}

.hero-glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.1) !important;
}

.nav-link-dark { color: #232a31 !important; }
.nav-link-dark:hover { color: #33abe3 !important; text-shadow: none !important; }
.nav-link-dark.active { color: #33abe3 !important; text-shadow: none !important; }

.mega-menu-dark {
  background: #ffffff !important;
  border: 1px solid #e8ebee !important;
  box-shadow: 0 24px 50px rgba(17, 17, 17, 0.12) !important;
}

.mega-link-dark { color: #4b5563 !important; }
.mega-link-dark:hover {
  color: #111111 !important;
  background: rgba(51, 171, 227, 0.07) !important;
  text-shadow: none !important;
}

/* Hamburger button (was white on dark) */
#main-header button[onclick="openMobileNav()"] {
  background: #f3f5f7 !important;
  color: #111111 !important;
}
#main-header button[onclick="openMobileNav()"] svg { color: #111111 !important; }
#main-header button[onclick="openMobileNav()"]:hover { background: #e9ecef !important; }

/* Logo drop-shadow: tone down on light */
#main-header .brand img,
#main-header a img { filter: drop-shadow(0 2px 8px rgba(51, 171, 227, 0.14)) !important; }

/* ---------- 2. Hero scene ---------- */
.hero-3d-scene {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7f8 100%) !important;
  color: #111111;
}

/* Full-bleed hero video: keep it full-cover behind everything, on all breakpoints.
   (vinayak-main.js writes an inline transform for parallax — the !important
   transform here only applies until JS takes over, which is what we want.) */
#hero-3d-cinematic #hero-bg-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: translateZ(0);
  will-change: transform;
}

/* On phones the copy sits over the video, so the veil is stronger */
@media (max-width: 1023px) {
  #hero-3d-cinematic .hero-veil:first-of-type {
    background: linear-gradient(180deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.9) 62%, rgba(255,255,255,.82) 100%) !important;
  }
  #hero-3d-cinematic .hero-veil:last-of-type {
    background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 55%, rgba(255,255,255,.75) 100%) !important;
  }
}

/* Clean, crisp video: smooth hardware-accelerated HD scaling */
#hero-3d-cinematic #hero-bg-layer,
#testbay-video,
.testbay-video {
  image-rendering: auto !important;
  filter: saturate(1.06) contrast(1.04) !important;
  -webkit-filter: saturate(1.06) contrast(1.04) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

#hero-sparks-canvas { display: none !important; }

/* ---------- 3b. Foundry Test Bay cinematic video hero (clean + crisp) ---------- */
#test-bay { min-height: 100vh; background: #000 !important; }

.testbay-video {
  transform: none;
  animation: none;
  will-change: auto;
}

/* spec chips: glass hover pop on the video */
#test-bay .tb-chip { transition: all .3s ease; cursor: default; }
#test-bay .tb-chip:hover { background: rgba(51,171,227,.35) !important; border-color: rgba(51,171,227,.7) !important; transform: translateY(-2px); }

/* ---------- 3. Hero feature mini badges ---------- */
.feature-mini-badge {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #e8ebee !important;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.05) !important;
}

.feature-mini-badge:hover {
  background: #ffffff !important;
  border-color: rgba(51, 171, 227, 0.4) !important;
  box-shadow: 0 12px 26px rgba(51, 171, 227, 0.14) !important;
}

.feature-mini-badge .icon-circle {
  background: #fff5f5 !important;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.04) !important;
}


/* ---------- 6. Hero video modal (stays dark — intentional video overlay) ---------- */
.hero-video-modal {
  background: rgba(10, 10, 12, 0.86) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---------- 7. Mobile drawer ---------- */
#mobile-nav {
  background: #ffffff !important;
  border-right: 1px solid #e8ebee !important;
  color: #111111 !important;
}
#mobile-nav .mobile-link { color: #374151 !important; }
#mobile-nav .mobile-link:hover { color: #33abe3 !important; }
#mobile-nav .mobile-sub { background: #f8fafb !important; }
#mobile-nav .mobile-sub-link { color: #4b5563 !important; }
#mobile-nav [class~="text-gray-200"] { color: #374151 !important; }
#mobile-nav [class~="text-gray-300"] { color: #6b7280 !important; }
#mobile-nav [class~="bg-black/50"] { background: #f8fafb !important; }
#mobile-nav [class~="border-white/10"] { border-color: #e8ebee !important; }
#mobile-nav .mobile-nav-head { color: #111111 !important; }
#mobile-nav a:hover, #mobile-nav button:hover { color: #33abe3 !important; }
#mobile-nav a[class*="hover:text-white"]:hover { color: #33abe3 !important; }
#mobile-nav a[class*="hover:bg-white/10"]:hover { background: #f3f5f7 !important; }

/* ---------- 8. LED readout keeps its industrial dark look ---------- */
.led-display-panel {
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.35), inset 0 0 10px rgba(0, 0, 0, 0.9) !important;
}

/* ---------- 9. Contact CTA section (light) ---------- */
#section-contact-cta { background: linear-gradient(120deg, #fff6f6 0%, #faf8f5 55%, #ffffff 100%) !important; }
#section-contact-cta .cta-eyebrow { color: #33abe3 !important; }
#section-contact-cta .cta-title { color: #111111 !important; }
#section-contact-cta .cta-text { color: #4b5563 !important; }

/* ---------- Trusted By / Our Clients — infinite logo marquee ---------- */
.client-marquee {
  overflow-x: auto;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.client-marquee::-webkit-scrollbar { display: none; }
.client-marquee.dragging { cursor: grabbing; }

.client-track {
  --client-gap: 40px;
  display: flex;
  align-items: center;
  gap: var(--client-gap);
  width: max-content;
  padding: 8px 0 12px;
}

.client-item {
  min-width: 140px;
  height: 140px;
  background: #ffffff;
  border-radius: 50%;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(51, 171, 227, 0.18);
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.08);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.client-item img {
  width: auto;
  height: auto;
  max-height: 90px;
  max-width: 96px;
  object-fit: contain;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform .35s ease;
}
.client-item:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 171, 227, 0.45);
  box-shadow: 0 22px 46px rgba(2, 132, 199, 0.18);
}
.client-item:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
  .client-track { --client-gap: 14px; }
  .client-item { min-width: 112px; height: 112px; padding: 14px; border-radius: 50%; }
  .client-item img { max-height: 70px; max-width: 80px; }
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY UNIFICATION — matches the homepage exactly.
   Homepage H1 (hero) = Inter 800, normal case, tight tracking. All other
   pages must render identical heading text styles; the homepage itself is
   untouched by these rules (its H1 already uses these exact values).
   ========================================================================== */
h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: -0.025em !important;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
