/* ============================================================
   HERO LOCKUP & LAYOUT — Shan Asharaf Portfolio
   Flagship incident room presentation:
   - Three.js interactive WebGL canvas at z-index: 0
   - Ultra-attractive dominant "SHAN" (15vw) with glossy white-to-candy-red
     gradient fill and glowing edge light
   - Integrated wide-tracked "ASHARAF" (letter-spacing: 0.28em) with glowing
     neon candy-red accent rule extending across the grid
   - Interactive terminal widget & high-impact CTAs
   - Viewfinder HUD frame for Photo 1 (crystal clear, zero overlays)
   ============================================================ */

#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Three.js interactive 3D background canvas */
#hero-three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* ── Designed Name Mark: Giant "SHAN" (15vw) + Integrated "ASHARAF" ── */
.hero-name-lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  width: 100%;
}

/* Giant "SHAN" (15vw) with glossy white-to-candy-red gradient & edge-light */
.hero-name-shan {
  display: inline-block;
  font-family: var(--font-display), 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(84px, 15vw, 210px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  /* Glossy specular white down into intense candy-red */
  background: linear-gradient(180deg, #ffffff 12%, #ff4569 50%, #d90429 82%, #8b0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #ff1744; /* fallback */
  /* Intense glowing edge light and ambient halo */
  filter: drop-shadow(0 0 28px rgba(255, 23, 68, 0.7))
          drop-shadow(0 0 55px rgba(255, 23, 68, 0.4));
  user-select: none;
  will-change: transform;
}

/* Integrated "ASHARAF" + Glowing Neon Accent Rule */
.hero-name-asharaf-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin-top: -2px;
  padding-left: 6px;
}

.hero-name-asharaf {
  font-family: var(--font-display), 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(26px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 23, 68, 0.9),
               0 0 40px rgba(255, 23, 68, 0.55),
               0 0 2px #ffffff;
  user-select: none;
}

/* Glowing Neon Candy-Red Accent Rule extending across the grid */
.hero-neon-rule {
  flex: 1;
  height: 3px;
  min-width: 40px;
  background: linear-gradient(90deg, #ff1744 0%, #ff4569 45%, rgba(255, 23, 68, 0.4) 80%, transparent 100%);
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.95),
              0 0 32px rgba(255, 23, 68, 0.6);
  border-radius: 2px;
}

/* ── Hero Lead Pitch ─────────────────────────────────────────── */
.hero-pitch {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 58ch;
}

/* ── Interactive Hero Incident Terminal Card ─────────────────── */
.hero-terminal-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(135deg, rgba(16, 16, 22, 0.88) 0%, rgba(8, 8, 12, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 23, 68, 0.35);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85),
              0 0 24px rgba(255, 23, 68, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.terminal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.t-red    { background: #ff5f56; }
.t-yellow { background: #ffbd2e; }
.t-green  { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.terminal-card-body {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.t-prompt {
  color: var(--candy-red);
  font-weight: 700;
}

.t-cmd {
  color: #ffffff;
  font-weight: 600;
}

.t-output {
  color: var(--text-secondary);
  font-size: 11px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 23, 68, 0.3);
  margin-top: 4px;
}

.t-col-name { color: #f5f5f5; font-weight: 600; }
.t-col-stat { color: #22c55e; margin-left: 8px; }
.t-col-lat  { color: var(--text-muted); margin-left: 8px; }
.t-col-ok   { color: var(--candy-red-hi); font-weight: 700; margin-left: auto; }

/* ── Call to Action Buttons ──────────────────────────────────── */
.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

/* ── Quick Metrics Strip ─────────────────────────────────────── */
.hero-metrics-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 560px;
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.hero-metric-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

/* ── Photo 1 Viewfinder HUD Frame ────────────────────────────── */
.hero-photo-col {
  position: relative;
  z-index: 20;
}

.hero-viewfinder-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

/* Corner Reticles */
.viewfinder-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--candy-red);
  border-style: solid;
  pointer-events: none;
  z-index: 25;
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
}
.vc-tl { top: -6px; left: -6px; border-width: 2px 0 0 2px; }
.vc-tr { top: -6px; right: -6px; border-width: 2px 2px 0 0; }
.vc-bl { bottom: -6px; left: -6px; border-width: 0 0 2px 2px; }
.vc-br { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }

/* HUD Badges */
.hud-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 25;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 23, 68, 0.4);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-dot-rec {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--candy-red);
  box-shadow: 0 0 8px var(--candy-red);
  animation: radarPulse 1.2s infinite;
}

.hud-badge-bottom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 25;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--candy-red-hi);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 23, 68, 0.3);
  letter-spacing: 0.1em;
}

@keyframes radarPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ── Responsive Adjustments ──────────────────────────────────── */
@media (max-width: 992px) {
  #hero {
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 60px;
  }
  .hero-left-col {
    margin-bottom: 48px;
  }
  .hero-name-shan {
    font-size: clamp(60px, 16vw, 120px);
  }
  .hero-name-asharaf {
    font-size: clamp(20px, 6vw, 42px);
    letter-spacing: 0.22em;
  }
  .hero-name-asharaf-bar {
    gap: 14px;
  }
  .hero-terminal-card {
    max-width: 100%;
  }
}
