/* 
   SECTION 5: HERO
    */
#hero {
  /* Let the section end after its content instead of forcing a full viewport. */
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  padding: 6rem 4rem 4rem;
  position: relative;
  overflow: hidden;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Grid background lines */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 196, 0.080) 0.5px, transparent 2px),
    linear-gradient(90deg, rgba(0, 245, 196, 0.080) 0.5px, transparent 2px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}
/* Glow blobs */
.hero-glow {
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,196,0.06) 0%, transparent 70%);
  top: 50%; left: 30%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,79,255,0.05) 0%, transparent 70%);
  top: 20%; right: 5%;
  pointer-events: none;
}
/* Left content */
.hero-left { z-index: 2; }
/* Available badge */
.hero-tag {
  display: inline-flex; align-items: center; gap: 1.5rem;
  background: rgba(0,245,196,0.05);
  border: 2px solid rgba(0, 245, 196, 0.233);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.6s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: blink 2s infinite;
}
/* Big name */
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.1s ease both;
  opacity: 0;
}

.hero-name span { display: block; }
.hero-name .accent {
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
  opacity: 0;
}
.hero-title .hl { color: var(--neon3); font-weight: 500; }
.hero-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s 0.3s ease both;
  opacity: 0;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
  opacity: 0;
}

.btn-primary {
  background: var(--neon); color: var(--bg);
  padding: 0.8rem 2rem; border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  cursor: none; border: none;
  letter-spacing: 0.05em; transition: opacity 0.3s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: transparent; color: var(--text);
  padding: 0.8rem 2rem; border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem; cursor: none;
  border: 1px solid var(--border);
  letter-spacing: 0.05em; transition: all 0.3s;
}

.btn-secondary:hover { border-color: var(--neon); color: var(--neon); }

.hero-stats {
  display: flex; gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
  animation: fadeUp 0.6s 0.5s ease both;
  opacity: 0;
}

.stat { border-left: 2px solid var(--neon); padding-left: 1rem; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 800; line-height: 1;
}

.stat-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; margin-top: 0.2rem; }

/* Photo Circle (right side) */
.hero-photo-wrap {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
  opacity: 0;
}
/* Spinning gradient ring around photo */
.photo-ring {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    var(--neon)     0deg,
    var(--neon2)  120deg,
    transparent   200deg,
    var(--neon)   360deg
  );
  animation: spinRing 4s linear 1;
  flex-shrink: 0;
  position: relative;
}
/* Static outer glow */
.photo-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,196,0.12) 0%, transparent 70%);
  pointer-events: none;
}
/* Solid backdrop to hide the ring gradient when photo fades during theme switch */
.photo-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}
/* The actual image */
.photo-ring img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  border: 4px solid var(--bg);
  transition: border-color 0.4s;
}
.photo-ring img.photo-switching {
  animation: photoSwitch 0.8s ease;
}
@keyframes photoSwitch {
  0%   { opacity: 1; transform: rotate(0deg); }
  45%  { opacity: 0; transform: rotate(180deg); }
  55%  { opacity: 0; transform: rotate(180deg); }
  100% { opacity: 1; transform: rotate(360deg); }
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
