@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Orbitron:wght@500;600;700&family=Space Grotesk, system-ui:wght@600;700;800;900&display=swap');

:root {
  --primary: #1d6bb3;
  --primary-dark: #0b4f8a;
  --primary-soft: #3a8ad3;
  --steel-900: #0f1720;
  --steel-800: #1c2630;
  --steel-700: #2b3642;
  --steel-600: #3a4654;
  --steel-500: #5a6776;
  --steel-200: #cdd6df;
  --steel-100: #e6eef5;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 20px 50px rgba(8, 18, 28, 0.15);
  --shadow-strong: 0 25px 60px rgba(10, 20, 32, 0.25);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
*{
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

.yaksh-home {
  position: relative;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--steel-900);
  background: linear-gradient(135deg, #f4f7fb 0%, #eef2f7 35%, #e9eef4 100%);
  line-height: 1.6;
  
}

.yaksh-home * {
  box-sizing: border-box;
}

.yaksh-home img {
  max-width: 100%;
  display: block;
}

.yaksh-home a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 6rem 7vw 5rem;
  min-height: 90vh;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.steel-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(29, 107, 179, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 107, 179, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  animation: drift 18s linear infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 107, 179, 0.5), rgba(29, 107, 179, 0));
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: 10%;
  animation-delay: 2s;
}

.orb-3 {
  width: 220px;
  height: 220px;
  top: 18%;
  right: 40%;
  animation-delay: 5s;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 0%, rgba(29, 107, 179, 0.12) 45%, transparent 55%);
  animation: scan 8s linear infinite;
  opacity: 0.4;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 1rem 0;
  font-weight: 700;
  color: var(--steel-900);
}

.subtitle {
  font-size: 1.1rem;
  max-width: 540px;
  color: var(--steel-600);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--primary);
  color: var(--white);
}

.btn.ghost {
  border: 1px solid rgba(29, 107, 179, 0.35);
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary-dark);
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  color: var(--steel-700);
}

.highlight-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(29, 107, 179, 0.6);
}

.hero-visual {
  display: grid;
  place-items: center;
  position: relative;
}

.hud-card {
  width: min(420px, 90%);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 2;
}

.hud-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--steel-700);
}

.hud-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.hud-title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.hud-body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.2rem;
}

.hud-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 10px solid rgba(29, 107, 179, 0.15);
  border-top-color: var(--primary);
  margin: 0 auto;
  animation: spin 8s linear infinite;
}

.hud-lines span {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(29, 107, 179, 0.6), transparent);
  margin: 0.6rem 0;
}

.hud-data {
  display: grid;
  gap: 0.6rem;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--steel-600);
}

.hud-row strong {
  color: var(--primary);
}

.metal-card {
  position: absolute;
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(205, 215, 226, 0.3));
  border-radius: 28px;
  transform: rotate(-8deg);
  top: -30px;
  right: -40px;
  box-shadow: 0 40px 80px rgba(10, 20, 32, 0.15);
  z-index: 0;
}

.metal-card.second {
  width: 220px;
  height: 220px;
  top: auto;
  bottom: -30px;
  left: -40px;
  transform: rotate(12deg);
}

/* ============================================================
   SLIDER SECTION
   ============================================================ */

.slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f1720;
  line-height: 0;
    height: calc(100vh - 80px);
width: 100vw;
    height: calc(100vh - 80px);
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.slide a {
  display: block;
  line-height: 0;
}

.slide img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.slide:hover img {
  transform: scale(1.02);
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 3rem;
  background: linear-gradient(to top, rgba(10, 20, 35, 0.85) 0%, transparent 100%);
  line-height: 1.4;
}

.slide-caption h3 {
  font-family: 'Space Grotesk, system-ui', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slide-caption p {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

/* Prev / Next buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(29, 107, 179, 0.75);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 1.2rem; }
.slider-btn.next { right: 1.2rem; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.slider-dots .dot.active {
  background: #fff;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .slide img { height: 320px; }
  .slide-caption { padding: 1.2rem 1.5rem; }
  .slider-btn { width: 38px; height: 38px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .slide img { height: 220px; }
  .slide-caption { padding: 1rem; }
  .slider-btn { width: 32px; height: 32px; font-size: 1.1rem; }
}

/* ============================================================
   HEADING DESIGN SYSTEM
   ============================================================ */

.section-head {
  max-width: 680px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

/* Eyebrow label */
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: ':::::';
  display: inline-block;
  /* width: 24px; */
  /* height: 2px; */
  /* background: var(--primary); */
  /* border-radius: 2px; */
   opacity: 0.55;}

/* Main heading wrapper � block so it fills width and centers */
.section-head h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--steel-900);
  text-transform: uppercase;
  display: block;
  text-align: center;
  position: relative;
  padding-bottom: 18px;
}

.section-head h2 .hl {
  color: var(--primary);
}


/* Side line decorators inside heading */
.section-head h2 .heading-inner {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* .section-head h2 .heading-inner::before,
.section-head h2 .heading-inner::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(29, 107, 179, 0.35);
  flex-shrink: 0;
} */

/* Sub-description */
.section-head > p {
  font-size: 0.97rem;
  color: var(--steel-600);
  max-width: 520px;
  margin: 1.2rem auto 0;
  line-height: 1.75;
}

/* Dark section (achievements) overrides */
.achievements .section-head h2 {
  color: #e8f1f9;
}



.achievements .section-head h2 .heading-inner::before,
.achievements .section-head h2 .heading-inner::after {
  background: rgba(29,107,179,0.3);
}

.achievements .section-head .eyebrow {
  color: var(--primary);
}



.achievements .section-head > p {
  color: #cfe0f0;
}

.about,
.products,
.why,
.clients,
.services,
.gallery,
.achievements {
  padding: 2rem 7vw;
  position: relative;
}

/* ============================================================
   ABOUT SECTION - Split Professional Layout
   ============================================================ */

.about {
  background: #fff;
  position: relative;
  overflow: hidden;
  padding: 6rem 7vw;
}

/* Subtle background texture */
/* .about::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, #f4f7fb 0%, #a6b8cf 100%);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 0;
} */

.about-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── LEFT ── */
.about-left .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.about-left .eyebrow::before,.about-left .eyebrow::after
{
    content: ':::::';
  display: inline-block;
  /* width: 24px; */
  /* height: 2px; */
  /* background: var(--primary); */
  /* border-radius: 2px; */
   opacity: 0.55;

}

.about-left h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 1.6rem;
  color: var(--steel-900);
  text-transform: uppercase;
  display: block;
  text-align: left;
  position: relative;
  padding-bottom: 18px;
}




.about-left h2 .heading-inner {
  font-family: "Space Grotesk", system-ui, sans-serif;
  display: inline;
}

.about-left h2 .hl {
  color: var(--primary);
}

.about-desc {
  font-size: 0.97rem;
  color: var(--steel-600);
  line-height: 1.85;
  margin: 0 0 2.5rem;
  max-width: 420px;
}

/* Stats */
.about-stats-row {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.about-stat strong {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--steel-900);
  line-height: 1;
  letter-spacing: -0.03em;
}

.about-stat strong span {
  color: var(--primary);
  font-size: 1.6rem;
}

.about-stat > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-500);
  margin-top: 0.3rem;
  line-height: 1.4;
}

.about-stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(29,107,179,0.25), transparent);
  flex-shrink: 0;
}

/* ── RIGHT: Feature list ── */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-feature {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  padding: 2rem 0;
  position: relative;
  transition: transform 0.3s ease;
}

.about-feature + .about-feature {
  border-top: 1px solid rgba(29,107,179,0.08);
}

.about-feature:hover {
  transform: translateX(6px);
}

/* Number + vertical bar */
.about-feature-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.af-num {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.about-feature:hover .af-num {
  opacity: 1;
}

.af-bar {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(180deg, var(--primary), transparent);
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.about-feature:hover .af-bar {
  opacity: 0.6;
}

/* Feature content */
.about-feature-body h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--steel-900);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  transition: color 0.3s ease;
}

.about-feature:hover .about-feature-body h3 {
  color: var(--primary);
}

.about-feature-body p {
  font-size: 0.9rem;
  color: var(--steel-600);
  line-height: 1.8;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about { padding: 4rem 5vw; }
  .about-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .about::before { display: none; }
  .about-left h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .about-desc { max-width: 100%; }
}

@media (max-width: 480px) {
  .about-stats-row { gap: 1.2rem; }
  .about-stat strong { font-size: 2rem; }
}

/* ============================================================
   SERVICES SECTION — 3D Industrial Theme
   ============================================================ */

.services {
  background: linear-gradient(160deg, #0a1628 0%, #0f2040 50%, #0d1a35 100%);
  position: relative;
  overflow: hidden;
}

.services-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 107, 179, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 107, 179, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: drift 20s linear infinite;
  pointer-events: none;
}

.services .section-head h2 { color: #e8f3ff; }
.services .section-head .eyebrow { color: #79b6f0; }
.services .section-head .eyebrow::before,
.services .section-head > p { color: #8eaecf; }
.services .section-head h2 .hl { color: #4da3ff; }
.services .section-head h2::after { background: linear-gradient(90deg, #4da3ff, #1d6bb3); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  perspective: 1200px;
}

.service-card {
  position: relative;
  padding: 2.2rem 1.8rem 2rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(29,107,179,0.08) 100%);
  border: 1px solid rgba(29, 107, 179, 0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
  cursor: default;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29,107,179,0.8), transparent);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: linear-gradient(225deg, rgba(29,107,179,0.2) 0%, transparent 60%);
  border-radius: 0 20px 0 0;
}

.service-card:hover {
  transform: translateY(-10px) rotateX(4deg);
  border-color: rgba(29, 107, 179, 0.6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(29,107,179,0.15), inset 0 1px 0 rgba(255,255,255,0.12);
}

.sc-number {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(29,107,179,0.6);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.sc-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29,107,179,0.25), rgba(29,107,179,0.08));
  border: 1px solid rgba(29,107,179,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: #4da3ff;
  transition: transform 0.4s ease, background 0.4s ease;
  box-shadow: 0 4px 16px rgba(29,107,179,0.2);
}

.sc-icon-wrap svg { width: 28px; height: 28px; }

.service-card:hover .sc-icon-wrap {
  transform: translateZ(20px) scale(1.1);
  background: linear-gradient(135deg, rgba(29,107,179,0.4), rgba(29,107,179,0.15));
}

.service-card h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8f3ff;
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.88rem;
  color: #7a9bbf;
  line-height: 1.7;
  margin: 0;
}

.sc-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  border-radius: 0 0 20px 20px;
}

.service-card:hover .sc-line { transform: scaleX(1); }

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.6rem 1.4rem; }
}

.products {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.products::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,107,179,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,107,179,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.products .section-head h2 { color: var(--steel-900); }
.products .section-head h2 .hl { color: var(--primary); }
.products .section-head .eyebrow { color: var(--primary); }
.products .section-head > p { color: var(--steel-600); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

/* First card spans 2 rows — featured */
.product-card:first-child {
  grid-row: span 2;
}

.product-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #0f1f35;
}

.product-card:first-child .product-img { height: 100%; min-height: 420px; }
.product-img {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  /* object-fit: contain; */
  object-position: center;
  display: block;
  background: #0f1f35;
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29,107,179,0.2), rgba(15,32,64,0.9));
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(8,18,35,0.97) 0%,
    rgba(8,18,35,0.55) 45%,
    rgba(8,18,35,0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  transition: background 0.4s ease;
}

.product-card:hover .product-overlay {
  background: linear-gradient(to top,
    rgba(29,107,179,0.95) 0%,
    rgba(29,107,179,0.4) 50%,
    rgba(8,18,35,0.1) 100%
  );
}

.product-tag {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #79b6f0;
  background: rgba(29,107,179,0.25);
  border: 1px solid rgba(29,107,179,0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: background 0.3s, color 0.3s;
}

.product-card:hover .product-tag {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(6px);
  transition: transform 0.4s ease;
}

.product-card:hover .product-info {
  transform: translateY(0);
}

.product-info h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-card:first-child .product-info h3 {
  font-size: 1.2rem;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.3s;
}

.product-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-cta {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
}

.product-card:hover .product-cta svg {
  transform: translateX(3px);
}

/* Border glow on hover */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1.5px solid transparent;
  transition: border-color 0.4s ease;
  pointer-events: none;
}

.product-card:hover::after {
  border-color: rgba(29,107,179,0.6);
}

/* Responsive */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .product-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
  .product-card:first-child .product-img { min-height: 180px; height: 180px; }
  .product-img { height: 140px; }
  .product-info h3 { font-size: 0.82rem; }
  .product-card:first-child .product-info h3 { font-size: 0.95rem; }
  .product-tag { font-size: 0.55rem; padding: 0.2rem 0.5rem; }
}

.gallery {
  background: linear-gradient(135deg, rgba(235, 241, 248, 0.9), rgba(255, 255, 255, 0.98));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(29, 107, 179, 0.12);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.gallery-media {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-video {
  height: 100%;
  background: linear-gradient(135deg, rgba(29, 107, 179, 0.3), rgba(20, 30, 42, 0.9));
  display: grid;
  place-items: center;
}

.gallery-video .play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(29, 107, 179, 0.9);
  position: relative;
}

.gallery-video .play-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.gallery-info {
  padding: 1rem 1.2rem 1.3rem;
}

.gallery-info h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--steel-800);
}

.gallery-info p {
  margin: 0;
  color: var(--steel-600);
  font-size: 0.85rem;
}

/* ============================================================
   WHY CHOOSE US — Horizontal Step Layout
   ============================================================ */

.why {
  background: #f4f7fb;
  position: relative;
  overflow: hidden;
}

.why::before {
  display: none;
}

.why .section-head h2       { color: var(--steel-900); }
.why .section-head h2::after{ background: linear-gradient(90deg, var(--primary), #3a8ad3); }
.why .section-head .eyebrow { color: var(--primary); }
.why .section-head .eyebrow::before,
.why .section-head > p      { color: var(--steel-600); }
.why .section-head h2 .hl   { color: var(--primary); }

.why-body h3 { color: var(--primary-soft); }
.why-body p  { color: var(--steel-600); }
.why-num     { color: var(--primary); }
.why-icon    { color: var(--primary); }

/* Grid: 4 columns with connecting line behind */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  /* max-width: 1100px; */
  margin: 0 auto;
}

/* Horizontal connecting line */
.why-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(29,107,179,0.5) 15%,
    rgba(29,107,179,0.5) 85%,
    transparent
  );
  z-index: 0;
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

/* Step number badge */
.why-num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

/* Icon circle */
.why-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  border: 1.5px solid rgba(29,107,179,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4da3ff;
  margin-bottom: 1.6rem;
  position: relative;
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 0 0 8px rgba(29,107,179,0.05);
}

.why-icon svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

/* Dot on the connecting line */
.why-icon::after {
  content: '';
  position: absolute;
  bottom: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(29,107,179,0.8);
}

.why-item:hover .why-icon {
  transform: translateY(-6px) scale(1.1);
  /* background: linear-gradient(135deg, rgba(29,107,179,0.35), rgba(29,107,179,0.12)); */
  /* box-shadow: 0 0 0 8px rgba(29,107,179,0.1), 0 8px 24px rgba(29,107,179,0.3); */
}

.why-body h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color:var(--primary-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}

.why-body p {
  font-size: 0.85rem;
  color: #7a9bbf;
  line-height: 1.7;
  margin: 0;
}

/* Arrow between items */
.why-arrow {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .why-grid::before { display: none; }
  .why-icon::after  { display: none; }
}

@media (max-width: 520px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .why-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid rgba(29,107,179,0.12);
  }
  .why-item:last-child { border-bottom: none; }
  .why-icon { flex-shrink: 0; margin-bottom: 0; width: 56px; height: 56px; }
  .why-icon svg { width: 24px; height: 24px; }
  .why-num { text-align: left; }
}

.achievements {
  background: #fff;
  color: var(--steel-900);
}

.achievements .section-head h2 {
  color: var(--steel-900);
}

.achievements .section-head .eyebrow {
  color: var(--primary);
}

.achievements .section-head > p {
  color: var(--steel-600);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat {
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f0f6ff, #e8f0fb);
  border: 1px solid rgba(29,107,179,0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), #3a8ad3);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #4da3ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(29,107,179,0.2);
  border-color: rgba(29,107,179,0.4);
}

.stat:hover::before { opacity: 1; }
.stat:hover::after  { transform: scaleX(1); }

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.stat:hover .stat-number { color: #fff; }

.stat-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--steel-600);
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.stat:hover .stat-label { color: rgba(255,255,255,0.85); }

/* ============================================================
   CLIENT TESTIMONIALS - Card Slider
   ============================================================ */

.clients {
  background: linear-gradient(135deg, #f0f5fb 0%, #e8f0f8 100%);
  overflow: hidden;
}

.tslider-wrap {
  position: relative;
  /* max-width: 1200px; */
  margin: 0 auto;
  overflow: hidden;
}

.tslider-track {
  display: flex;
  gap: 1.2rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding: 1rem 0 1.5rem;
}

.tcard {
  flex: 0 0 calc((100% - 3.6rem) / 4);
  width: calc((100% - 3.6rem) / 4);
  min-width: 0;
  background: #fff;
  border-radius: 20px;
  padding: 1.8rem 1.4rem 1.4rem;
  border: 1px solid rgba(29,107,179,0.1);
  position: relative;
  transition: transform 0.45s ease, box-shadow 0.45s ease, background 0.45s ease, border-color 0.45s ease;
  box-sizing: border-box;
  pointer-events: auto;
}

.tcard.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(29,107,179,0.35);
}

.tcard.active .tcard-text { color: rgba(255,255,255,0.9); }
.tcard.active .tcard-quote { color: #fff; opacity: 0.15; }
.tcard.active .tcard-divider { background: linear-gradient(90deg, rgba(255,255,255,0.45), transparent); opacity: 1; }
.tcard.active .tcard-author strong { color: #fff; }
.tcard.active .tcard-author span { color: rgba(255,255,255,0.7); }
.tcard.active .tcard-avatar { background: rgba(255,255,255,0.2); border: 1.5px solid rgba(255,255,255,0.4); }
.tcard.active:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(29,107,179,0.45); }

@media (max-width: 560px) {
  .tcard {
    flex: 0 0 100%;
    width: 100%;
  }
  .tcard-text { min-height: auto; }
}

.empty-state {
  padding: 2.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  color: var(--steel-600);
  grid-column: 1 / -1;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(30px);
  }
}

@keyframes scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(80px, 60px);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 5rem 6vw 4rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4.5rem 6vw 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 6vw 3rem;
  }

  .section-head {
    text-align: center;
  }

  .section-head h2 {
    font-size: 1.45rem;
    padding-bottom: 16px;
  }

  .section-head h2 .heading-inner::before,
  .section-head h2 .heading-inner::after {
    display: none;
  }
}

/* ============================================================
   GLOBAL RESPONSIVE — Mobile / Tablet / Laptop
   ============================================================ */

/* Base: ensure no horizontal overflow */
.yaksh-home {
  overflow-x: hidden;
}

/* Ensure images never overflow */
.yaksh-home img {
  max-width: 100%;
  height: 100%;
}

/* ── Laptop (≤1280px) ── */
@media (max-width: 1280px) {
  .about,
  .products,
  .why,
  .clients,
  .services,
  .gallery,
  .achievements {
    padding: 4rem 5vw;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .service-card {
    padding: 1.8rem 1.4rem;
  }

  .about-wrap {
    gap: 4rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .about,
  .products,
  .why,
  .clients,
  .services,
  .gallery,
  .achievements {
    padding: 3.5rem 5vw;
  }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about::before {
    display: none;
  }

  .about-desc {
    max-width: 100%;
  }

  .about-left h2 {
    text-align: center;
  }

  .about-left .eyebrow {
    display: flex;
    justify-content: center;
  }

  .about-stats-row {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .product-card:first-child .product-img {
    min-height: 260px;
    height: 260px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .why-grid::before,
  .why-icon::after {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tcard {
    flex: 0 0 calc((100% - 1.2rem) / 2);
    width: calc((100% - 1.2rem) / 2);
  }
}

/* ── Tablet portrait (≤768px) ── */
@media (max-width: 768px) {
  .about,
  .products,
  .why,
  .clients,
  .services,
  .gallery,
  .achievements {
    padding: 3rem 4vw;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .section-head h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
  }

  .about-stats-row {
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
  }

  .about-stat-divider {
    display: none;
  }

  .about-stat strong {
    font-size: 2rem;
  }

  .about-left h2 {
    text-align: center;
  }

  .about-left .eyebrow {
    display: flex;
    justify-content: center;
  }

  .about-desc {
    text-align: center;
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .product-card:first-child .product-img {
    min-height: 220px;
    height: 220px;
  }

  .product-img {
    height: 180px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .gallery-media {
    height: 140px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .tslider-wrap {
    padding: 0 0.5rem;
  }

  .tcard {
    flex: 0 0 calc((100% - 1.2rem) / 2);
    width: calc((100% - 1.2rem) / 2);
  }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  .about,
  .products,
  .why,
  .clients,
  .services,
  .gallery,
  .achievements {
    padding: 2.5rem 4vw;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head h2 {
    font-size: 1.4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .service-card {
    padding: 1.5rem 1.2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .product-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .product-card:first-child .product-img {
    min-height: 180px;
    height: 180px;
  }

  .product-img { height: 140px; }

  .product-info h3 { font-size: 0.8rem; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .gallery-media {
    height: 120px;
  }

  .gallery-info {
    padding: 0.7rem 0.9rem 1rem;
  }

  .gallery-info h3 {
    font-size: 0.88rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .why-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 0 1.2rem;
    border-bottom: 1px solid rgba(29,107,179,0.12);
  }

  .why-item:last-child {
    border-bottom: none;
  }

  .why-icon {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 52px;
    height: 52px;
  }

  .why-icon svg {
    width: 22px;
    height: 22px;
  }

  .why-num {
    text-align: left;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .stat {
    padding: 1.2rem 0.8rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .tcard {
    flex: 0 0 100%;
    width: 100%;
    padding: 1.5rem 1.3rem 1.3rem;
  }

  .tcard-text {
    min-height: auto;
    font-size: 0.88rem;
  }

  .tslider-controls {
    margin-top: 1.2rem;
    gap: 0.8rem;
  }

  .tslider-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .about-left h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    text-align: center;
    margin-bottom: 0;
  }

  .about-left .eyebrow {
    display: flex;
    justify-content: center;
  }

  .about-desc {
    text-align: center;
    max-width: 100%;
  }

  .about-stats-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-stat-divider {
    display: none;
  }

  .about-feature {
    gap: 1.2rem;
    padding: 1.5rem 0;
  }

  .about-feature-body h3 {
    font-size: 0.95rem;
  }

  .about-feature-body p {
    font-size: 0.85rem;
  }

  /* See More Products button */
  .products > div[style] a {
    font-size: 0.85rem !important;
    padding: 0.75rem 1.6rem !important;
  }
}

/* ── Small mobile (≤400px) ── */
@media (max-width: 400px) {
  .about,
  .products,
  .why,
  .clients,
  .services,
  .gallery,
  .achievements {
    padding: 2rem 3.5vw;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .product-card:first-child {
    grid-column: span 1;
  }

  .product-card:first-child .product-img {
    min-height: 200px;
    height: 200px;
  }

  .product-img {
    height: 180px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .gallery-media {
    height: 160px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .section-head h2 {
    font-size: 1.25rem;
  }

  .tslider-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .about-3d-wrap {
    min-height: 240px;
  }

  #stlCanvas {
    min-height: 180px;
  }

  .slide img {
    height: 180px;
  }
}

/* ============================================================
   ABOUT RIGHT — 3D STL VIEWER OVERRIDE
   ============================================================ */

.about-right {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.about-3d-wrap {
  position: relative;
  width: 100%;
  /* background: linear-gradient(160deg, #0a1628 0%, #0f2040 60%, #0d1a35 100%); */
  border-radius: 20px;
  border: 1px solid rgba(29,107,179,0.3);
  box-shadow: 0 0 0 1px rgba(29,107,179,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.a3d-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(29,107,179,0.2);
  flex-shrink: 0;
}

.a3d-dot-r, .a3d-dot-y, .a3d-dot-g {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.a3d-dot-r { background: #ff5f57; }
.a3d-dot-y { background: #febc2e; }
.a3d-dot-g { background: #28c840; }

.a3d-title {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a8ab0;
  margin-left: 0.4rem;
}

.a3d-badge-live {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #28c840;
  background: rgba(40,200,64,0.12);
  border: 1px solid rgba(40,200,64,0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#stlCanvas {
  display: block;
  width: 100% !important;
  flex: 1;
  min-height: 360px;
  cursor: grab;
}

#stlCanvas:active { cursor: grabbing; }

.a3d-hint {
  text-align: center;
  font-size: 0.7rem;
  color: #3a6080;
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(29,107,179,0.15);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.a3d-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
}
.a3d-tl { top: 44px; left: 8px; border-top: 2px solid #1d6bb3; border-left: 2px solid #1d6bb3; }
.a3d-tr { top: 44px; right: 8px; border-top: 2px solid #1d6bb3; border-right: 2px solid #1d6bb3; }
.a3d-bl { bottom: 32px; left: 8px; border-bottom: 2px solid #1d6bb3; border-left: 2px solid #1d6bb3; }
.a3d-br { bottom: 32px; right: 8px; border-bottom: 2px solid #1d6bb3; border-right: 2px solid #1d6bb3; }

@media (max-width: 768px) {
  .about-3d-wrap { min-height: 320px; }
  #stlCanvas { min-height: 260px; }
}

@media (max-width: 480px) {
  .about-3d-wrap { min-height: 260px; }
  #stlCanvas { min-height: 200px; }
}

/* tcard inner elements */


.tcard-text {
  font-size: 0.88rem;
  color: var(--steel-600);
  line-height: 1.75;
  margin: 0 0 1.2rem;
  position: relative;
  z-index: 1;
  min-height: 90px;
}

.tcard-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  margin-bottom: 1rem;
  opacity: 0.2;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tcard-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3a8ad3);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "Space Grotesk", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.tcard-author strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--steel-800);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.tcard-author span {
  display: block;
  font-size: 0.75rem;
  color: var(--steel-500);
  margin-top: 1px;
}

.tslider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 0.5rem;
}

.tslider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(29,107,179,0.3);
  background: #fff;
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29,107,179,0.1);
}

.tslider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  /* transform: scale(1.08); */
}

.tslider-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  /* flex: 1; */
  /* justify-content: center; */
}

.tslider-dots .tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(29,107,179,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.tslider-dots .tdot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}

/* Homepage products grid: keep this at the end so it wins over earlier rules */
.home-product-grid {
  grid-template-rows: repeat(2, 260px);
  grid-auto-rows: 190px;
  gap: 0.8rem;
}

.home-product-grid .product-card {
  height: 100%;
  border-radius: 14px;
}

.home-product-grid .product-card::after {
  border-radius: 14px;
}

.home-product-grid .product-card:first-child .product-img,
.home-product-grid .product-img {
  height: 100%;
  min-height: 0;
}

.home-product-grid .product-overlay {
  padding: 0.85rem 0.95rem;
}

.home-product-grid .product-tag {
  font-size: 0.54rem;
  padding: 0.18rem 0.48rem;
}

.home-product-grid .product-info {
  gap: 0.35rem;
}

.home-product-grid .product-info h3 {
  font-size: 0.84rem;
}

.home-product-grid .product-card:first-child .product-info h3 {
  font-size: 0.98rem;
}

.home-product-grid .product-cta {
  gap: 0.25rem;
  font-size: 0.62rem;
}

.home-product-grid .product-cta svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 1024px) {
  .home-product-grid {
    grid-template-rows: repeat(2, 160px);
    grid-auto-rows: 160px;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .home-product-grid {
    grid-template-rows: repeat(2, 155px);
    grid-auto-rows: 145px;
    gap: 0.7rem;
  }

  .home-product-grid .product-info h3 {
    font-size: 0.76rem;
  }

  .home-product-grid .product-card:first-child .product-info h3 {
    font-size: 0.88rem;
  }
}

@media (max-width: 600px) {
  .home-product-grid {
    grid-template-rows: repeat(2, 155px);
    grid-auto-rows: 125px;
    gap: 0.62rem;
  }

  .home-product-grid .product-info h3 {
    font-size: 0.72rem;
  }

  .home-product-grid .product-card:first-child .product-info h3 {
    font-size: 0.82rem;
  }

  .home-product-grid .product-tag {
    font-size: 0.48rem;
    padding: 0.16rem 0.4rem;
  }
}

@media (max-width: 400px) {
  .home-product-grid {
    grid-template-rows: repeat(2, 152px);
    grid-auto-rows: 112px;
    gap: 0.55rem;
  }
}

.home-products {
  padding-top: 1.7rem;
  padding-bottom: 1.7rem;
}

.home-products .section-head {
  margin-bottom: 1.7rem;
}

.home-products .section-head .eyebrow {
  margin-bottom: 0.45rem;
}

.home-products .section-head > p {
  margin-top: 0.55rem;
}

.home-products-actions {
  text-align: center;
  margin-top: 1.25rem;
}

.home-products-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary);
  color: #fff !important;
  padding: 0.72rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  transition: 0.3s;
}

.home-products-btn svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1280px) {
  .home-products {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .home-products .section-head {
    margin-bottom: 1.55rem;
  }
}

@media (max-width: 1024px) {
  .home-products {
    padding-top: 1.95rem;
    padding-bottom: 1.95rem;
  }
}

@media (max-width: 768px) {
  .home-products {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .home-products .section-head {
    margin-bottom: 1.35rem;
  }

  .home-products-actions {
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .home-products {
    padding-top: 1.45rem;
    padding-bottom: 1.45rem;
  }

  .home-products .section-head {
    margin-bottom: 1.1rem;
  }

  .home-products-btn {
    padding: 0.64rem 1.45rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .home-products {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
  }

  .home-products-actions {
    margin-top: 0.9rem;
  }
}
