/* ==========================================================================
   JARINA CORPORATION - ADDITIONAL COMPONENTS & HARDWARE ACCENTS
   ========================================================================== */

/* Enhanced Tactile Hardware Styling */
.hardware-stage {
  position: absolute;
  left: 0;
  top: 52%;
  transform: translateY(-48%);
  z-index: 5;
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .hardware-stage {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 40px auto 30px;
    justify-content: center;
  }
}

.cable-assembly {
  position: relative;
  width: 220px;
  height: 140px;
  margin-right: -42px;
  z-index: 2;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,0.3));
}

@media (max-width: 640px) {
  .cable-assembly {
    display: none;
  }
}

/* Detailed Cable Coupler SVG */
.cable-assembly svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Enclosure Box - Realistic Industrial Cast Aluminum */
.industrial-console-box {
  width: 230px;
  height: 220px;
  background: linear-gradient(135deg, #f0f2ee 0%, #dee2dc 40%, #caced0 100%);
  border-radius: 36px;
  border: 3px solid #b8beb7;
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    inset -4px -5px 10px rgba(0, 0, 0, 0.22),
    0 25px 45px rgba(0, 0, 0, 0.24),
    0 8px 16px rgba(0, 0, 0, 0.12);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  cursor: pointer;
}

.industrial-console-box:hover {
  transform: scale(1.02);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.95),
    inset -4px -5px 10px rgba(0, 0, 0, 0.22),
    0 30px 55px rgba(0, 0, 0, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.15);
}

.industrial-console-box:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 4px;
}

/* Metal Side Guard & Cooling Fin Accents */
.side-bracket {
  position: absolute;
  left: -14px;
  top: 30px;
  bottom: 30px;
  width: 18px;
  border-left: 6px solid #8e949e;
  border-top: 6px solid #8e949e;
  border-bottom: 6px solid #8e949e;
  border-radius: 12px 0 0 12px;
  box-shadow: inset 1px 1px 2px #ffffff, 3px 3px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.fins-cluster {
  position: absolute;
  left: -20px;
  top: 44px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.cooling-fin {
  width: 22px;
  height: 6px;
  background: linear-gradient(to right, #ff4500, #ff5722);
  border-radius: 3px 0 0 3px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.25);
}

/* Recessed Orange Core Plate */
.console-faceplate {
  width: 154px;
  height: 148px;
  background: linear-gradient(145deg, #ff5a19 0%, #ff4200 55%, #d63600 100%);
  border-radius: 24px;
  border: 1.5px solid #ff7b47;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -4px 8px rgba(0, 0, 0, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  position: relative;
  overflow: hidden;
}

/* Machined Corner Hex Screws */
.machined-screw {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #525866 20%, #20232a 100%);
  border-radius: 50%;
  border: 1px solid #717786;
  box-shadow: inset 0 1px 1px #000;
}
.screw-1 { top: 8px; left: 8px; }
.screw-2 { top: 8px; right: 8px; }
.screw-3 { bottom: 8px; left: 8px; }
.screw-4 { bottom: 8px; right: 8px; }

.faceplate-header-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.faceplate-footer-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: #121316;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
}

/* Acrylic Safety Guard Cover */
.acrylic-hinged-guard {
  position: absolute;
  inset: 16px 14px;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.25) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 3px rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(1.5px);
  pointer-events: none;
  z-index: 6;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.industrial-console-box:hover .acrylic-hinged-guard {
  transform: translateY(-8px) rotateX(15deg);
}

/* Chrome Toggle Switch Hub */
.toggle-socket {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b0b7c2 55%, #4a505b 100%);
  border-radius: 50%;
  border: 2px solid #2f333a;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.toggle-switch-rod {
  width: 15px;
  height: 44px;
  background: linear-gradient(to right, #8a919c 0%, #ffffff 45%, #595f6a 100%);
  border-radius: 8px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 4px;
  transform-origin: center 85%;
  transform: rotate(-22deg);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.toggle-switch-rod::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #cbd3de 55%, #545b66 100%);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
}

/* Active State (Engaged Toggle) */
.industrial-console-box.is-active .toggle-switch-rod {
  transform: rotate(22deg);
}

.industrial-console-box.is-active .toggle-socket {
  box-shadow:
    0 0 22px rgba(255, 72, 0, 0.8),
    0 5px 12px rgba(0, 0, 0, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.9);
}

/* Floating Status Pill Under Switch */
.hardware-click-label {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f1115;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Architecture & Tech Stack Grid */
.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
}

@media (max-width: 900px) {
  .tech-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .tech-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.tech-column {
  padding: 36px 30px;
  border-right: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-column:last-child {
  border-right: none;
}

.tech-column-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.tech-column h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-weight: 500;
}

/* Process Timeline Section */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-canvas);
}

@media (max-width: 900px) {
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  padding: 36px 28px;
  border-right: 1px solid var(--border-line);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.step-card:last-child {
  border-right: none;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.step-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.step-card p {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.55;
}

/* Interactive Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 16, 19, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-box {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 1px solid var(--border-line);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #121316;
  color: #ffffff;
}

.modal-header-bar h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 32px 28px;
}

