/* ==========================================================================
   HERO.CSS — Sprint 1 (Refined)
   Creative direction for the Hero only: "Neo Futuristic Premium Digital
   Portfolio" — Apple / Vercel / Linear / Framer / Stripe reference class.
   Sophisticated gradients, soft ambient light, glassmorphism, floating
   depth. No neon, no cyberpunk, no heavy dark UI. This does not change
   the sitewide token set in style.css — every new color/material below
   is scoped to `.hero` via local custom properties, so Nav / About /
   Craft / Work / Education / Contact are unaffected until their sprint.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0F1A 0%, #0D1220 55%, #0A0E17 100%);
}

/* ---------------------------------------------------------------------
   ATMOSPHERE
   Three soft, blurred gradient blobs (aurora) drifting slowly behind a
   faint dot-grid — this is what replaces "heavy dark UI" with ambient,
   modern light. Nothing here is decorative filler: the aurora is the
   Hero's primary lighting source and the grid signals "engineered,"
   both load-bearing for the Neo-Futuristic read.
   --------------------------------------------------------------------- */

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}

.hero__aurora--a {
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  top: -14%;
  left: -8%;
  background: radial-gradient(circle at 40% 40%, rgba(76, 130, 255, 0.34), transparent 68%);
  animation: auroraDriftA 26s ease-in-out infinite;
}

.hero__aurora--b {
  width: 40vw;
  height: 40vw;
  max-width: 560px;
  max-height: 560px;
  top: 6%;
  right: -12%;
  background: radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.30), transparent 68%);
  animation: auroraDriftB 32s ease-in-out infinite;
}

.hero__aurora--c {
  width: 34vw;
  height: 34vw;
  max-width: 460px;
  max-height: 460px;
  bottom: -16%;
  left: 24%;
  background: radial-gradient(circle at 50% 50%, rgba(45, 212, 191, 0.18), transparent 70%);
  animation: auroraDriftC 38s ease-in-out infinite;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 75%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 55%, rgba(6, 8, 13, 0.5) 100%);
}

/* ---------------------------------------------------------------------
   LAYOUT / STAGE
   --------------------------------------------------------------------- */

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--nav-height);
  transform-origin: 50% 30%;
  will-change: transform, opacity, filter;
}

.hero__content {
  max-width: 620px;
}

/* ---------------------------------------------------------------------
   STATUS BADGE
   A small, current-and-alive detail that premium product/founder sites
   use to signal "this is a real, active person" — reinforces hierarchy
   (it's the very first thing read) more than it decorates.
   --------------------------------------------------------------------- */

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--marble);
  margin-bottom: var(--space-md);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aurora-teal);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  animation: badgePulse 2.4s ease-out infinite;
}

/* ---------------------------------------------------------------------
   EDITORIAL / PRODUCT TYPE
   Space Grotesk replaces the serif for this Hero: geometric, confident,
   product-native — the register of Linear/Vercel rather than an
   editorial magazine. The surname carries a gradient fill, the single
   "premium modern gradient" signature moment in the type system.
   --------------------------------------------------------------------- */

.hero__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.hero__label-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--aurora-blue), var(--aurora-violet));
}

.hero__title {
  font-family: 'Space Grotesk', var(--font-body);
  font-weight: 600;
  font-size: clamp(3.2rem, 6.6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--soft-white);
  margin-bottom: var(--space-md);
}

.hero__title-accent {
  font-weight: 700;
  background: linear-gradient(100deg, var(--aurora-blue) 10%, var(--aurora-violet) 55%, var(--aurora-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--marble);
  letter-spacing: 0.01em;
  max-width: 34ch;
  margin-bottom: var(--space-lg);
}

.hero__paragraph {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
  max-width: 520px;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons: no Hero-specific override needed anymore — the global .btn
   in style.css now carries this exact gradient/glass language sitewide
   as of Sprint 2. */

/* ---------------------------------------------------------------------
   COMPOSITION — signature element
   A floating glassmorphic "product card" replaces the flat monogram
   frame: real stack (C++ / OpenGL / Web pulled straight from the site's
   own meta description), a live status row, and a small trend line —
   it reads as evidence of shipped work, not decoration. A soft aurora
   orb sits behind it for depth; three tag chips float at staggered
   heights/phases around it for layered depth and gentle premium motion.
   --------------------------------------------------------------------- */

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  perspective: 1400px;
}

.hero__orb {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(139, 92, 246, 0.4), rgba(76, 130, 255, 0.22) 45%, transparent 72%);
  filter: blur(36px);
  animation: orbPulse 7s ease-in-out infinite;
}

.hero__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  transform: translate(-50%, -50%) rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  padding: var(--space-md);
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 var(--glass-bg-strong);
  animation: cardFloat 7s ease-in-out infinite;
}

/* ---- .hero__card--portrait: a placeholder variant of the same glass
   card, reserved for a future professional photo. Same shell (glass,
   tilt, float), different content — an elegant "coming soon" state
   rather than the earlier dashboard mockup. ---- */

.hero__card--portrait {
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
}

.hero__portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.hero__chip {
  position: absolute;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--marble);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.6);
}

.hero__chip--a {
  top: 8%;
  left: -2%;
  animation: chipFloatA 6s ease-in-out infinite;
}

.hero__chip--b {
  top: 20%;
  right: -6%;
  animation: chipFloatB 7.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.hero__chip--c {
  bottom: 10%;
  left: 4%;
  animation: chipFloatC 8.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* ---------------------------------------------------------------------
   SCROLL INDICATOR
   --------------------------------------------------------------------- */

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--stone);
  opacity: 0.8;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}

.scroll-indicator__mouse {
  width: 22px;
  height: 36px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-indicator__wheel {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--aurora-blue), var(--aurora-violet));
  animation: scrollWheel 2.6s ease-in-out infinite;
}

.scroll-indicator__text {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
}
