/* index-extra.css — 3D interactive enhancements for Quadratech homepage */

/* ─── Hero 3D canvas overlay ─── */
.hero-3d { position: relative; overflow: hidden; }

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
}

.hero-3d .hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

/* Hero badge pill */
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.04);
}

/* Hero floating labels */
.hero-label {
  position: absolute;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 5px 10px;
  border-radius: 4px;
  pointer-events: none;
  animation: labelFloat 4s ease-in-out infinite;
}
.hero-label--blue   { color: #5599ff; border: 1px solid rgba(51, 119, 255, 0.35); background: rgba(10, 30, 60, 0.6); animation-delay: 0s; }
.hero-label--cyan   { color: #00ddaa; border: 1px solid rgba(0, 204, 136, 0.35); background: rgba(6, 24, 16, 0.6);  animation-delay: 1.3s; }
.hero-label--purple { color: #bb88ff; border: 1px solid rgba(153, 102, 255, 0.35); background: rgba(18, 10, 30, 0.6); animation-delay: 2.6s; }

@keyframes labelFloat {
  0%, 100% { transform: translateY(0px); opacity: 0.8; }
  50%       { transform: translateY(-8px); opacity: 1; }
}

/* Hero sub-heading */
.hero-sub {
  opacity: 0.7;
  font-size: 0.75em;
}

/* ─── Card illustrations ─── */
.card-illustration {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.illus-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Pulsing ring animation inside PCB SVG */
.pulse-ring {
  animation: svgPulse 2.4s ease-in-out infinite;
  transform-origin: 130px 85px;
}
@keyframes svgPulse {
  0%, 100% { opacity: 0.3; r: 22; }
  50%       { opacity: 0.06; r: 30; }
}

/* ─── 3D card tilt ─── */
.card-3d {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ─── Pathway visual container ─── */
.pathway-visual {
  width: 100%;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
}
.pathway-card .pathway-visual .illus-svg {
  border-radius: 8px;
}

/* ─── Capabilities: SVG icon style ─── */
.feature-item--svg .feature-icon-svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary, #111);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  transition: border-color 0.25s, background 0.25s;
}
.feature-item--svg .feature-icon-svg svg {
  width: 100%;
  height: 100%;
}
.feature-item--svg:hover .feature-icon-svg {
  border-color: rgba(51, 119, 255, 0.4);
  background: rgba(51, 119, 255, 0.07);
}

/* Keep same flex layout as .feature-item */
.feature-item--svg {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* ─── Showcase section ─── */
.showcase-section { background: var(--bg-primary, #000); }

.showcase-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.showcase-panel:last-child { margin-bottom: 0; }

.showcase-panel--reverse {
  direction: rtl;
}
.showcase-panel--reverse > * { direction: ltr; }

.showcase-text { display: flex; flex-direction: column; }

.showcase-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  width: fit-content;
}
.tag-industry { background: rgba(51, 119, 255, 0.12); color: #5599ff; border: 1px solid rgba(51, 119, 255, 0.3); }
.tag-education { background: rgba(0, 204, 136, 0.1); color: #00ddaa; border: 1px solid rgba(0, 204, 136, 0.25); }
.tag-printing  { background: rgba(153, 102, 255, 0.1); color: #bb88ff; border: 1px solid rgba(153, 102, 255, 0.25); }

.showcase-text h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  line-height: 1.25;
}
.showcase-text p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.showcase-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.showcase-list li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
}
.showcase-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #3377ff;
  font-size: 0.75em;
  top: 2px;
}

.showcase-visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #050a0f;
}
.illus-large {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Stat icon ─── */
.stat-item { text-align: center; }
.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  opacity: 0.7;
}
.stat-icon svg { width: 100%; height: 100%; }

/* ─── CTA Section ─── */
.cta-section { background: var(--bg-secondary, #0a0a0a); }
.cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.cta-inner p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .showcase-panel,
  .showcase-panel--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
    margin-bottom: 56px;
  }
  .showcase-visual { order: -1; }

  .hero-label { display: none; }
}

@media (max-width: 640px) {
  .hero-canvas { display: none; }
  .card-illustration { margin-bottom: 14px; }
  .pathway-visual     { margin-bottom: 12px; }
}
