/* ============================================================
   ERGEN TECHNOVATION — hero.css
   Hero section + PCBA scroll section
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 40px 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border-bright);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.8s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title span { color: var(--cyan); }
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.8vw, 20px);
  font-weight: 400;
  color: var(--grey);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-desc {
  max-width: 560px;
  color: var(--grey);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 48px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s ease both;
}

/* ── PCBA Scroll Section ─────────────────────────────────── */
.pcba-scroll-section {
  position: relative;
  height: 540px;
  background: var(--navy);
  border-top: 1px solid rgba(0,200,80,0.15);
  border-bottom: 1px solid rgba(0,212,255,0.15);
  overflow: hidden;
}
.pcba-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 30%;
}
.pcba-board {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(10deg) rotateY(-3deg);
  width: min(920px, 95vw);
  height: 300px;
  background: linear-gradient(135deg, #061a10 0%, #0a2a1a 50%, #061a10 100%);
  border: 2px solid rgba(0,200,80,0.5);
  border-radius: 12px;
  box-shadow: 0 0 80px rgba(0,255,80,0.12), 0 20px 60px rgba(0,0,0,0.6), inset 0 0 40px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  will-change: transform;
  animation: pcbFloat 7s ease-in-out infinite;
}
@keyframes pcbFloat {
  0%,  100% { transform: translate(-50%,-50%) rotateX(10deg) rotateY(-3deg); }
  50%        { transform: translate(-50%,-50%) rotateX(6deg)  rotateY(3deg);  }
}
.pcba-board svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Stats overlay */
.pcba-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
  flex-direction: column;
  gap: 0;
}
.pcba-title-row {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0,212,255,0.7);
  margin-bottom: 16px;
}
.pcba-stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: all;
}
.pcba-stat {
  text-align: center;
  background: rgba(2,11,24,0.82);
  border: 1px solid rgba(0,212,255,0.5);
  border-radius: 8px;
  padding: 14px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.pcba-stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 30px rgba(0,212,255,0.5);
}
.pcba-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}

/* Green PCB component colours */
.pcb-trace-green  { stroke: rgba(0,220,80,0.55); }
.pcb-node-green   { fill: rgba(0,255,100,0.8); }
.pcb-chip-green   { fill: rgba(5,30,15,0.95); stroke: rgba(0,220,80,0.5); }
.pcb-copper-gold  { stroke: rgba(180,120,0,0.35); }

@media (max-width: 600px) {
  .pcba-scroll-section { height: 420px; }
  .pcba-board          { height: 220px; }
  .pcba-stat-num       { font-size: 30px; }
  .pcba-stats-row      { gap: 14px; }
  .pcba-stat           { padding: 10px 14px; }
}
