/* =============================================
   PORTFOLIO — hero.css  v3.0
   Hero section, canvas, blobs, particles, gears
   ============================================= */

/* ── Hero ── */
#hero {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-top: none;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  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: 56px 56px;
  animation: grid-pulse 5s ease-in-out infinite alternate;
}

@keyframes grid-pulse {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

#hero .container {
  position: relative;
  z-index: 3;
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 130%, transparent 15%, var(--bg) 68%),
    radial-gradient(ellipse 55% 55% at 90% -5%, rgba(124,92,255,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 35% 40% at 5% 95%, rgba(0,212,255,0.06) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

/* Hero eyebrow — terminal prompt */
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--accent-3);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 10px rgba(0,255,136,0.5);
}
.hero-eyebrow::before {
  content: '▶';
  font-size: 0.55rem;
  animation: tw-blink 1.4s step-end infinite;
}

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent-3);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 6px var(--accent-3), 0 0 0 0 rgba(0,255,136,0.4); }
  50%     { box-shadow: 0 0 12px var(--accent-3), 0 0 0 10px rgba(0,255,136,0); }
}

/* Hero name */
.hero-name {
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #e2e8f0 0%, #00d4ff 40%, #7c5cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-name.glitching {
  animation: glitch-name 0.45s steps(3) forwards;
}

@keyframes glitch-name {
  0%   { transform: translate(0)           skewX(0deg);   filter: blur(0)       hue-rotate(0deg);   }
  18%  { transform: translate(-5px, 2px)   skewX(-4deg);  filter: blur(0.5px)   hue-rotate(90deg);  }
  36%  { transform: translate(5px, -2px)   skewX(4deg);   filter: blur(0)       hue-rotate(-80deg); }
  54%  { transform: translate(-3px, -3px)  skewX(2deg);   filter: blur(0.8px)   hue-rotate(40deg);  }
  72%  { transform: translate(3px, 2px)    skewX(-2deg);  filter: blur(0)       hue-rotate(-20deg); }
  100% { transform: translate(0)           skewX(0deg);   filter: blur(0)       hue-rotate(0deg);   }
}

.hero-title {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero canvas ── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Floating hero particles ── */
.hero-floater {
  position: absolute;
  bottom: -40px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: float-up linear infinite;
  user-select: none;
  line-height: 1;
}

@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.12; }
  88%  { opacity: 0.07; }
  100% { transform: translateY(-110vh) rotate(30deg); opacity: 0; }
}

@keyframes slow-spin     { to { transform: rotate(360deg);  } }
@keyframes slow-spin-rev { to { transform: rotate(-360deg); } }

/* ── Hero blobs ── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}
.blob-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(0,212,255,0.2), transparent 70%);
  top: -280px; left: -100px;
  animation: blob-drift 11s ease-in-out infinite;
}
.blob-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(124,92,255,0.18), transparent 70%);
  top: -100px; right: -90px;
  animation: blob-drift 14s ease-in-out infinite reverse;
  animation-delay: -5s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,255,136,0.08), transparent 70%);
  bottom: -80px; left: 45%;
  animation: blob-drift 9s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes blob-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(44px,-32px) scale(1.08); }
  66%     { transform: translate(-28px,42px) scale(0.92); }
}
