/* ==========================================================================
   UDAYARAVI CREATION (URC) — REALISTIC INDUSTRIAL MACHINERY MOTION GRAPHICS
   AUTHENTIC FACTORY MACHINERY STYLING · STRICTLY NO NEON · NO FUTURISTIC GLOWS
   Brushed Stainless Steel · Dark Cast Iron · Industrial Painted Enamel · Bronze
   ========================================================================== */

/* ===== ACCESSIBILITY (REDUCED MOTION) ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video,
  .hero-bg-video-frame {
    display: none !important;
  }
  .hero-bg-poster {
    opacity: 1 !important;
  }
  #hero-mech-canvas,
  #stats-shaft-canvas,
  #about-cutaway-canvas,
  #timeline-mech-canvas,
  #advisor-hook-canvas,
  #app-loom-canvas,
  #portal-belt-canvas,
  #trust-gauge-canvas,
  #footer-shaft-canvas,
  .product-mech-canvas,
  .stat-rev-counter i {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   2. STATS BAR SYNCHRONIZED DRIVE SHAFT
   ========================================================================== */
.stats-drive-shaft {
  width: 100%;
  height: 24px;
  margin-bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

#stats-shaft-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stat-rev-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 0.35rem;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   3. ABOUT SECTION DUAL-MODE VISUAL & CUTAWAY
   ========================================================================== */
.about-visual-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.av-tab {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.av-tab.active, .av-tab:hover {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.about-cutaway-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #0f172a;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#about-cutaway-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Milestones rack & pinion track */
.timeline-mech-track {
  width: 100%;
  height: 32px;
  margin-bottom: 1rem;
  background: #0f172a;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#timeline-mech-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   4. EXCLUSIVE BREAKTHROUGH — MAGGAM VIDEO INTEGRATION (#innovation)
   ========================================================================== */
.spotlight-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 380px;
  max-height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0a101d;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: none !important;
  outline: none !important;
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   5. PRODUCT CARDS LIVE MECHANISM OVERLAY (#products)
   ========================================================================== */
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.product-mech-overlay {
  position: absolute;
  inset: 0;
  background: #090e17;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.product-card:hover .product-mech-overlay,
.product-card.mech-active .product-mech-overlay {
  opacity: 1;
  pointer-events: auto;
}

.product-mech-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.product-inspect-badge {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(15, 23, 42, 0.92);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.product-card:hover .product-inspect-badge {
  opacity: 0;
}

/* Product Modal Stage */
.modal-mech-stage {
  width: 100%;
  background: #0b111c;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   6. ADVISOR SECTION HOOK SELECTOR KINEMATICS (#advisor)
   ========================================================================== */
.advisor-mech-container {
  width: 100%;
  margin-bottom: 1.75rem;
  background: #0f172a;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.advisor-mech-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #182234;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.mech-badge {
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mech-sub {
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 600;
}

#advisor-hook-canvas {
  width: 100%;
  height: 220px;
  display: block;
}

/* ==========================================================================
   7. APPLICATIONS WEFT INSERTION KINEMATICS
   ========================================================================== */
.app-loom-container {
  width: 100%;
  margin-bottom: 2rem;
  background: #0f172a;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.loom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #182234;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 700;
}

.loom-pill {
  color: var(--accent-gold);
  font-weight: 700;
}

#app-loom-canvas {
  width: 100%;
  height: 120px;
  display: block;
}

/* ==========================================================================
   8. PORTALS SYNCHRONOUS TIMING BELT
   ========================================================================== */
.portal-belt-container {
  width: 100%;
  height: 70px;
  margin-bottom: 1.5rem;
  background: #0f172a;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

#portal-belt-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   9. GALLERY INDUSTRIAL CORNER BRACKETS
   ========================================================================== */
.gallery-item {
  position: relative;
}

.gallery-mech-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(203, 213, 225, 0.6);
  pointer-events: none;
  z-index: 2;
}

.g-tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.g-tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.g-bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.g-br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* ==========================================================================
   10. TRUST SECTION BALANCE & VIBRATION GAUGE
   ========================================================================== */
.trust-gauge-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}

#trust-gauge-canvas {
  width: 320px;
  height: 90px;
  background: #0f172a;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: block;
}

/* ==========================================================================
   11. FACTORY STAMPED IDENTIFICATION PLATE & FOOTER SHAFT
   ========================================================================== */
.factory-id-plate {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #64748b;
  border-radius: 4px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.plate-rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e2e8f0, #475569);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.r-tl { top: 6px; left: 6px; }
.r-tr { top: 6px; right: 6px; }
.r-bl { bottom: 6px; left: 6px; }
.r-br { bottom: 6px; right: 6px; }

.plate-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.plate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.74rem;
}

.plate-grid span {
  color: #94a3b8;
  display: block;
}

.plate-grid strong {
  color: #cbd5e1;
}

.footer-shaft-line {
  width: 100%;
  height: 16px;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.8);
}

#footer-shaft-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .spotlight-video-wrapper { min-height: 320px; }
}

@media (max-width: 768px) {
  .spotlight-video-wrapper { min-height: 260px; aspect-ratio: 16 / 9; }
  .plate-grid { grid-template-columns: 1fr; }
  #advisor-hook-canvas { height: 180px; }
  #app-loom-canvas { height: 100px; }
}

@media (max-width: 480px) {
  .spotlight-video-wrapper { min-height: 220px; }
  #trust-gauge-canvas { width: 100%; max-width: 320px; }
}
