/* =============================================
   hero.css — Hero Section Styles
   ============================================= */

.hero {
  padding: 6rem 0 5rem;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

/* ── Kiri: teks ── */


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(108, 99, 255, 0.1);
  border: 0.5px solid rgba(108, 99, 255, 0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: #9b95ff;
  font-family: var(--font-mono);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}

.name-highlight {
  background: linear-gradient(135deg, #6c63ff 20%, #00d9b5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line {
  display: block;
  color: var(--text);
}

.hero-desc {
  text-align: justify;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.4rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Kanan: foto ── */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  padding-bottom: 0px;
}

.hero-photo-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #6c63ff, #00d9b5);
  position: relative;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--bg3);
  position: relative;
  z-index: 1;
}

/* Placeholder inisial — muncul kalau foto belum ada */
.hero-photo-placeholder {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--muted);
  z-index: 0;
}

/* Sembunyikan placeholder kalau foto berhasil load */
.hero-photo-ring:not(.no-photo) .hero-photo-placeholder {
  display: none;
}
.hero-photo-ring.no-photo .hero-photo {
  display: none !important;
}

/* Badge floating di pojok kiri bawah lingkaran */
.hero-float-badge {
  position: absolute;
  bottom: -10px;        /* turunin dikit biar ga overlap foto */
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 0.5px solid var(--border2);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 10;
}

.float-icon {
  font-size: 18px;
}

.float-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}

.float-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

/* ── Animasi fade up ── */
.hero-badge,
.hero h1,
.hero-desc,
.hero-cta {
  animation: heroFadeUp 0.7s ease both;
}
.hero h1        { animation-delay: 0.1s; }
.hero-desc      { animation-delay: 0.2s; }
.hero-cta       { animation-delay: 0.3s; }
.hero-photo-wrap { animation: heroFadeUp 0.7s ease 0.2s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrap {
    display: flex;
    justify-content: center;
    order: -1; /* foto di atas teks di mobile */
    margin-bottom: 1rem;
  }
  .hero-photo-ring {
    width: 160px;
    height: 160px;
  }
  .hero-float-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -16px;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
}
