/* hero.css */
.hero-section {
  overflow: hidden;
}
.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-layout,
.stats-row,
.hero-content { position: relative; z-index: 1; }
.hero-visual { position: relative; z-index: 1; }

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-block-end: var(--space-xs);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-hero);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-heading, 0);
  line-height: 1.1;
  margin-block-end: var(--space-sm);
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--accent-gold);
  font-weight: 500;
  margin-block-end: var(--space-lg);
  min-height: 2em;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  line-height: var(--line-height);
  margin-block-end: var(--space-xl);
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-block-end: var(--space-lg);
}

/* ── Hero Visual: animated blob profile ────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Giant soft radial glow that slow-spins behind everything */
.hero-bg-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: conic-gradient(
    from 0deg,
    rgba(201, 162, 39, 0.22),
    rgba(168, 132, 31, 0.14),
    rgba(224, 185, 75, 0.10),
    rgba(201, 162, 39, 0.22)
  );
  filter: blur(80px);
  opacity: 0.55;
  border-radius: 50%;
  pointer-events: none;
  animation: rotateGlow 30s linear infinite;
}

/* Image wrapper — sets the canvas size */
.hero-image-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}

/* Tight conic ring that morphs and spins */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: conic-gradient(
    from 0deg,
    #C9A227,
    #A8841F,
    #E0B94B,
    #C9A227
  );
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation:
    blob 8s ease-in-out infinite,
    rotateGlow 8s linear infinite;
  opacity: 0.65;
  filter: blur(18px);
  z-index: -1;
}

/* Profile photo — morphs in sync with the ring */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob 8s ease-in-out infinite;
  border: 3px solid rgba(201, 162, 39, 0.5);
  box-shadow:
    0 0 40px rgba(201, 162, 39, 0.25),
    inset 0 0 30px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
  display: block;
}
.hero-image:hover {
  box-shadow:
    0 0 60px rgba(201, 162, 39, 0.45),
    inset 0 0 30px rgba(0, 0, 0, 0.2);
}

/* ── Floating badge cards ───────────────────── */
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: floatRotate 5s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 16px rgba(201, 162, 39, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  z-index: 2;
}
.hero-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 32px rgba(201, 162, 39, 0.3);
  border-color: var(--accent-gold);
}

.hero-float-1 {
  top: 8%;
  inset-inline-start: -10%;
  animation-delay: 0s;
}
.hero-float-2 {
  bottom: 18%;
  inset-inline-end: -6%;
  animation-delay: 1.5s;
}

.hero-float .icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--accent-gold);
  flex-shrink: 0;
}
.hero-float-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}
.hero-float-text span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-block-start: 1px;
}

/* ── Responsive ───────────────────────────── */

/* Mobile — show image, hide badges, scale everything down */
@media (max-width: 479px) {
  .hero-visual {
    margin-inline: auto;
    margin-block-end: var(--space-lg);
  }
  .hero-image-wrapper {
    width: 210px;
    height: 210px;
  }
  .hero-bg-decoration {
    width: 280px;
    height: 280px;
  }
  .hero-float { display: none; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .hero-visual {
    margin-inline: auto;
    margin-block-end: var(--space-lg);
  }
  .hero-image-wrapper {
    width: 260px;
    height: 260px;
  }
  .hero-bg-decoration {
    width: 340px;
    height: 340px;
  }
  .hero-float { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-image-wrapper {
    width: 300px;
    height: 300px;
  }
  .hero-float-1 { inset-inline-start: -5%; }
  .hero-float-2 { inset-inline-end: -2%; }
}

/* Desktop: portrait on opposite side from text based on dir */
@media (min-width: 1024px) {
  [dir="rtl"] .hero-layout { direction: rtl; }
  [dir="ltr"] .hero-layout { direction: ltr; }
}
