/* ==========================================================================
   Pramukh Engineering Works - Level 2 Domain-Specific Engineering Motion
   ========================================================================== */

/* ==========================================================================
   1. VTL / CNC LATHE MACHINING AXIS
   ========================================================================== */

.vtl-machining-axis {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  transition: opacity 0.5s ease;
  will-change: transform;
}

.hero .vtl-machining-axis {
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
}

.about-hero .vtl-machining-axis,
.infra-hero-content .vtl-machining-axis {
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
}

.vtl-rotate-ring {
  transform-origin: center;
  animation: vtlRotate 28s linear infinite;
}

.vtl-rotate-ring-reverse {
  transform-origin: center;
  animation: vtlRotateReverse 36s linear infinite;
}

@keyframes vtlRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes vtlRotateReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* ==========================================================================
   2. PIPELINE FLOW VECTOR & TECHNICAL MEASUREMENT LINES
   ========================================================================== */

.technical-flow-line {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  height: 40px;
  opacity: 0.22;
  overflow: visible;
}

.hero .technical-flow-line {
  bottom: 20px;
  left: 0;
}

.flow-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.technical-flow-line.is-visible .flow-path {
  stroke-dashoffset: 0;
}

.flow-pulse-dot {
  animation: flowPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes flowPulse {
  0%, 100% {
    opacity: 0.3;
    r: 3;
  }
  50% {
    opacity: 0.9;
    r: 5;
  }
}

/* Technical Callout Text */
.technical-callout-text {
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 10px;
  letter-spacing: 1.5px;
  fill: var(--secondary, #D89A2B);
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

/* ==========================================================================
   3. VALVE BODY BLUEPRINT SILHOUETTE CONTOUR
   ========================================================================== */

.valve-blueprint-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  transition: opacity 0.6s ease;
}

.about-section .valve-blueprint-bg {
  right: 3%;
  top: 15%;
  width: 380px;
  height: 380px;
}

.blueprint-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.valve-blueprint-bg.is-visible .blueprint-path {
  stroke-dashoffset: 0;
}

/* ==========================================================================
   4. MACHINING QUALITY SCAN LINE OVERLAY
   ========================================================================== */

.scan-overlay-container {
  position: relative;
  overflow: hidden;
}

.machining-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--secondary, #D89A2B) 50%, transparent 100%);
  box-shadow: 0 0 12px var(--secondary, #D89A2B);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.scan-overlay-container:hover .machining-scan-line {
  opacity: 0.85;
  animation: scanSweep 2.2s ease-in-out infinite;
}

@keyframes scanSweep {
  0% {
    top: 0%;
  }
  50% {
    top: 96%;
  }
  100% {
    top: 0%;
  }
}

/* ==========================================================================
   5. PRODUCT CARD TECHNICAL BLUEPRINT MARKS
   ========================================================================== */

.product-card {
  position: relative;
}

.product-card .blueprint-mark {
  position: absolute;
  font-family: monospace;
  font-size: 9px;
  color: var(--secondary, #D89A2B);
  opacity: 0;
  letter-spacing: 1px;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 4;
}

.product-card .blueprint-mark-tl {
  top: 12px;
  left: 14px;
  transform: translate3d(-4px, -4px, 0);
}

.product-card .blueprint-mark-br {
  bottom: 14px;
  right: 14px;
  transform: translate3d(4px, 4px, 0);
}

.product-card:hover .blueprint-mark {
  opacity: 0.65;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   6. 5-STAGE MANUFACTURING PROCESS FLOW PIPELINE
   ========================================================================== */

.process-flow-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 35px 0;
  padding: 0 10px;
}

.process-flow-connector {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 3px;
  background: rgba(7, 27, 59, 0.12);
  transform: translateY(-50%);
  z-index: 1;
}

.process-flow-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary, #071B3B) 0%, var(--secondary, #D89A2B) 100%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(216, 154, 43, 0.4);
}

.process-step-node {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #071B3B);
  font-size: 20px;
  transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}

.process-step-node.active {
  border-color: var(--secondary, #D89A2B);
  background: var(--primary, #071B3B);
  color: var(--secondary, #D89A2B);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(7, 27, 59, 0.18);
}

.process-step-label {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary, #071B3B);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ==========================================================================
   7. RESPONSIVE TOUCH & MOBILE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 767px) {
  .vtl-machining-axis {
    opacity: 0.08 !important;
    width: 300px !important;
    height: 300px !important;
  }

  .vtl-rotate-ring,
  .vtl-rotate-ring-reverse {
    animation-duration: 45s !important;
  }

  .valve-blueprint-bg {
    opacity: 0.06 !important;
    width: 260px !important;
    height: 260px !important;
  }

  .machining-scan-line {
    display: none !important;
  }

  .product-card .blueprint-mark {
    display: none !important;
  }

  .process-flow-line {
    flex-direction: column;
    gap: 30px;
  }

  .process-flow-connector {
    top: 5%;
    bottom: 5%;
    left: 50%;
    width: 3px;
    height: auto;
    transform: translateX(-50%);
  }

  .process-flow-progress {
    width: 100% !important;
    height: 0%;
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .process-step-label {
    top: 50%;
    left: 70px;
    transform: translateY(-50%);
  }
}

/* ==========================================================================
   8. ACCESSIBILITY - REDUCED MOTION OVERRIDE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .vtl-rotate-ring,
  .vtl-rotate-ring-reverse,
  .flow-pulse-dot,
  .machining-scan-line {
    animation: none !important;
  }

  .flow-path,
  .blueprint-path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .vtl-machining-axis,
  .valve-blueprint-bg {
    opacity: 0.05 !important;
  }

  .machining-scan-line,
  .blueprint-mark {
    display: none !important;
  }
}
