/* Base and scroll (Clean Light Theme) */
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { background: #f8f9fa; color: #1e293b; }
::selection { background: #0056b3; color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 9999px; border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover { background: #0056b3; }

/* Professional text gradient override (Solid Blue) */
.text-gradient {
  color: #0056b3 !important;
  background: none !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Scroll progress */
#fl-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: #0056b3;
  z-index: 60; transition: width .1s linear; 
  box-shadow: 0 1px 3px rgba(0, 86, 179, 0.3);
}

/* Cursor companion (Subtle Professional Blue) */
.fl-cursor-ring, .fl-cursor-glow {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  border-radius: 9999px; transform: translate(-50%, -50%); will-change: transform;
  opacity: 0; transition: opacity .3s ease;
}
.fl-cursor-ring {
  width: 30px; height: 30px; border: 1.5px solid rgba(0, 86, 179, 0.4);
  box-shadow: none;
  transition: width .25s ease, height .25s ease, border-color .25s ease, background-color .25s ease, opacity .3s ease;
}
.fl-cursor-ring.is-hover {
  width: 52px; height: 52px; border-color: #0056b3;
  background: rgba(0, 86, 179, 0.05);
  box-shadow: none;
}
.fl-cursor-ring.is-down { width: 22px; height: 22px; border-color: #004494; }
.fl-cursor-glow {
  width: 30px; height: 30px; filter: blur(2px);
  background: radial-gradient(circle, rgba(0, 86, 179, 0.15), transparent 68%);
}

/* Structural initial states */
.anim-ready #home .hero-frame > *,
.anim-ready #about > div > *,
.anim-ready #services > div > *,
.anim-ready #why > div > *,
.anim-ready #clients > div > *,
.anim-ready #contact > div > *,
.anim-ready #view-home .spec-card { opacity: 0; }

/* Micro-interactions (Clean Crisp Cards) */
.spec-card {
  border-radius: 1.25rem;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
@media (hover: hover) {
  .spec-card:hover { 
    transform: translateY(-6px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08) !important;
  }
}

.btn-sheen { position: relative; overflow: hidden; }
.btn-sheen::after {
  content: ""; position: absolute; top: 0; left: -140%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn-sheen:hover::after { left: 160%; }

/* Condensed navbar */
#navbar { transition: box-shadow .3s ease, backdrop-filter .3s ease, background-color .3s ease; }
#navbar.nav-scrolled {
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #e2e8f0;
}

/* Sections backgrounds (Alternating Crisp White and Soft Gray/Blue) */
#home    { background: transparent !important; }
#about   { background: #ffffff !important; }
#services{ background: #f8f9fa !important; }
#why     { background: #ffffff !important; }
#clients { background: #f8f9fa !important; }
#contact { background: #ffffff !important; }
#view-products, #view-checkout { background: #f8f9fa !important; }

/* Buttons (Solid Corporate Blue) */
.cta-grad, #clients-grid .cta-grad {
  background-image: none !important;
  background-color: #0056b3 !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2) !important;
}
.cta-grad:hover { 
  background-color: #004494 !important; 
  box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3) !important;
}

/* Cart UI */
#cart-drawer { background: #ffffff !important; border-left: 1px solid #e2e8f0; color: #1e293b; }
#cart-drawer .bg-gradient-to-r {
  background: #0056b3 !important; /* solid blue header */
}
#cart-drawer .text-slate-500 { color: #64748b !important; }
#cart-drawer .text-slate-800 { color: #1e293b !important; }
#cart-list > div {
  padding: 0.85rem; border-radius: 0.9rem; background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
#cart-list > div:hover {
  border-color: #cbd5e1; box-shadow: 0 10px 20px -10px rgba(0,0,0, 0.08);
}
#cart-total { color: #0056b3 !important; }

/* Products UI */
#products-grid .spec-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08) !important;
}

/* Infinite Marquee */
.fl-marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.fl-marquee-track {
  display: flex; gap: 1.25rem; width: max-content;
  animation: fl-scroll 40s linear infinite;
}
.fl-marquee:hover .fl-marquee-track { animation-play-state: paused; }
@keyframes fl-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.fl-marquee-track a {
  flex: 0 0 auto; width: 205px; height: 118px; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important; border-radius: 1rem !important;
  box-shadow: 0 4px 10px rgba(0,0,0, 0.03) !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.fl-marquee-track a:hover {
  transform: translateY(-5px); border-color: #0056b3 !important;
  box-shadow: 0 10px 20px -10px rgba(0, 86, 179, 0.15) !important;
}
.fl-marquee-track img {
  height: 3.3rem; filter: grayscale(1); opacity: 0.6;
  transition: filter .4s ease, opacity .4s ease, transform .4s ease;
}
.fl-marquee-track a:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.07); }
.fl-marquee-track a span {
  font-weight: 600; font-size: .85rem; color: #1e293b; text-align: center; padding: 0 .6rem; line-height: 1.3;
}

@media print {
  .anim-ready #home .hero-frame > *, .anim-ready #about > div > *,
  .anim-ready #services > div > *, .anim-ready #why > div > *,
  .anim-ready #clients > div > *, .anim-ready #contact > div > *,
  .anim-ready #view-home .spec-card { opacity: 1 !important; transform: none !important; }
  #fl-bg, #fl-progress, .fl-cursor-ring, .fl-cursor-glow, #fl-machinery { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-blueprint, .hero-particle { display: none; }
  .fl-cursor-dot, .fl-cursor-ring, .fl-cursor-glow { display: none; }
  .fl-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  #fl-bg svg, #fl-machinery svg { animation: none !important; }
}

/* Background Globe (Engineering Blueprint Style) */
#fl-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  display: flex; align-items: center; justify-content: center; opacity: 0.2;
}
#fl-bg svg {
  width: 120vw; height: 120vw; max-width: 1200px; max-height: 1200px;
  stroke: #94a3b8; stroke-width: 1px; fill: none;
  filter: none;
  animation: spin-globe 120s linear infinite;
}
#fl-bg ellipse:nth-child(even) { stroke: #cbd5e1; }
#fl-bg ellipse:nth-child(odd) { stroke: #94a3b8; }

@keyframes spin-globe {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1); }
}

/* Machinery Animation Container (Engineering Blueprint Style) */
#fl-machinery {
  position: absolute; right: -5%; top: -5%; width: 700px; height: 700px; z-index: -1;
  pointer-events: none; opacity: 0.12;
  filter: none;
}
.gear {
  transform-origin: center;
  fill: transparent;
  stroke: #64748b;
  stroke-width: 1.5;
}
