/* Custom Industrial Engineering Styles for ist3Dye.com */

:root {
  --bg-carbon: #090b0e;
  --bg-panel: #101318;
  --bg-elevated: #161a22;
  --border-tech: #222834;
  --accent-cyan: #06b6d4;
  --accent-blue: #2563eb;
  --accent-emerald: #10b981;
  color-scheme: dark;
}

/* Critical Pre-Render Baseline (Eliminates FOUC before JIT execution) */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: #090b0e;
  color: #f1f5f9;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.font-sans {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-display {
  font-family: "Space Grotesk", sans-serif;
}

.font-mono {
  font-family: "JetBrains Mono", monospace;
}

body {
  margin: 0;
  color: #f1f5f9;
  background-color: var(--bg-carbon);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090b0e;
}
::-webkit-scrollbar-thumb {
  background: #1e2430;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333c4d;
}

/* Industrial CAD Panel with subtle top highlight & sharp geometry */
.tech-panel {
  background: #0f1319;
  border: 1px solid #222834;
}

.tech-card {
  background: #101319;
  border: 1px solid #202632;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
  border-color: #384357;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.7);
}

/* Blueprint Visual Header inside Portfolio Cards */
.blueprint-viewport {
  background-color: #0b0e14;
  background-image:
    radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(to right, rgba(30, 41, 59, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.35) 1px, transparent 1px);
  background-size: 16px 16px, 32px 32px, 32px 32px;
}

/* Section Index Tag (Industrial Numbering) */
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #22d3ee;
}

/* Canvas Box */
#canvasBox canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
  cursor: grab;
}
#canvasBox canvas:active {
  cursor: grabbing;
}

/* Drag over highlight */
#dropZone.drag-over {
  border-color: #0ea5e9 !important;
  background-color: rgba(14, 165, 233, 0.08) !important;
}

/* Fix webkit text gradient clipping across all browsers */
.bg-clip-text {
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Custom Infill & Layer Quality Range Sliders */
#infillSlider,
#qualitySlider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  cursor: pointer;
}

#infillSlider::-webkit-slider-thumb,
#qualitySlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #06b6d4;
  border: 2px solid #090b0e;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#infillSlider::-webkit-slider-thumb:active,
#qualitySlider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.9);
}

#infillSlider::-moz-range-thumb,
#qualitySlider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #06b6d4;
  border: 2px solid #090b0e;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#infillSlider::-moz-range-thumb:active,
#qualitySlider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.9);
}
