/* ═══════════════════════════════════════════════════
   HERO.CSS — Hero Section Styles
   Somala Ajay Portfolio
═══════════════════════════════════════════════════ */

/* ── Hero Section ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 2rem 4rem;
  overflow: hidden;
  background: transparent;
  z-index: 2;
}

/* ── Deep AI Mesh Background ── */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 5%,  rgba(155,89,245,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 85%,  rgba(212,168,67,0.14) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 50% 50%,  rgba(155,89,245,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 15%,  rgba(96,165,250,0.1)  0%, transparent 50%);
  animation: meshPulse 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* Second layer — subtle vignette depth */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(10,8,15,0.6) 100%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] #hero::before {
  background:
    radial-gradient(ellipse 90% 70% at 15% 5%,  rgba(124,58,237,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 85%,  rgba(184,134,11,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 50% 50%,  rgba(124,58,237,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 15%,  rgba(96,165,250,0.07) 0%, transparent 50%);
}

[data-theme="light"] #hero::after {
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(250,248,255,0.5) 100%);
}

@keyframes meshPulse {
  0%   { opacity: 0.75; transform: scale(1); }
  50%  { opacity: 1;    transform: scale(1.03); }
  100% { opacity: 0.85; transform: scale(1); }
}

/* ── Background Grid ── */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(155,89,245,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,89,245,0.05) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
}

[data-theme="light"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
}

/* ── Glow Orbs ── */
.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155,89,245,0.18) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%);
  bottom: 0;
  left: -80px;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -30px) scale(1.1); }
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  width: 100%;
}

/* ── Available Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 1.3rem;
  background: rgba(0,210,100,0.08);
  border: 1px solid rgba(0,210,100,0.35);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #00d264;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s 0.1s both;
}

[data-theme="light"] .hero-badge {
  background: rgba(0,180,80,0.08);
  border-color: rgba(0,180,80,0.3);
  color: #00a050;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00d264;
  box-shadow: 0 0 10px #00d264;
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

[data-theme="light"] .badge-dot {
  background: #00a050;
  box-shadow: 0 0 10px #00a050;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 6px #00d264; transform: scale(1); }
  50%       { box-shadow: 0 0 16px #00d264, 0 0 28px rgba(0,210,100,0.4); transform: scale(1.4); }
}

/* ── Avatar ── */
.hero-avatar {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s 0.2s both;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--purple), var(--gold), var(--purple));
  animation: spinRing 6s linear infinite;
  z-index: 0;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes spinRing { to { transform: rotate(360deg); } }

.avatar-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--bg3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ── Name ── */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s 0.3s both;
}

/* Name shimmer handled per-letter by logo.js */
.name-first { display: block; }
.name-last  { display: block; }

@keyframes nameShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Role Typed ── */
.hero-role-wrap {
  height: 2rem;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s 0.45s both;
}

.hero-role {
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  font-family: var(--font-mono);
  color: var(--gold-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 0 18px rgba(212,168,67,0.4);
}

[data-theme="light"] .hero-role {
  color: var(--gold);
  text-shadow: none;
}

.role-cursor {
  color: var(--gold-bright);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Divider ── */
.hero-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  margin: 0 auto 1.25rem;
  animation: fadeIn 0.5s 0.55s both;
}

/* ── Summary ── */
.hero-summary {
  font-size: 0.97rem;
  color: var(--text-sub);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.6s 0.55s both;
}

/* ── CTA Buttons ── */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s 0.7s both;
}

/* ── Stats Bar ── */
.hero-stats {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeUp 0.6s 0.85s both;
  background: var(--card);
}

.stat-item {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.stat-item:last-child { border-right: none; }

.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--purple-dim);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-item:hover::before { opacity: 1; }

.stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
}

.stat-unit {
  font-size: 1rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
}

.stat-label {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: fadeIn 1s 1.5s both;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}
