/* ============================================
   HERO MODULE
   ============================================ */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Animated BG Grid */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s ease infinite alternate;
  z-index: 0;
}

@keyframes grid-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-30px, -15px); }
}

/* Blob Backgrounds */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blob-float 8s ease-in-out infinite;
  z-index: 0;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero__blob--2 {
  width: 350px;
  height: 350px;
  background: var(--color-accent-2);
  bottom: 50px;
  left: -80px;
  animation-delay: 3s;
}

.hero__blob--3 {
  width: 250px;
  height: 250px;
  background: #6BCB77;
  top: 50%;
  left: 40%;
  animation-delay: 6s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Content */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Available Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(107,203,119,0.12);
  border: 1px solid rgba(107,203,119,0.3);
  color: #2D8C3E;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  width: fit-content;
  animation: badge-appear 0.6s var(--transition-bounce) 0.5s both;
}

[data-theme="dark"] .hero__badge {
  color: #6BCB77;
  background: rgba(107,203,119,0.1);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #6BCB77;
  border-radius: 50%;
  animation: ping 1.5s ease infinite;
}

@keyframes ping {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(107,203,119,0.4); }
  50%       { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 6px rgba(107,203,119,0); }
}

@keyframes badge-appear {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Name */
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  animation: name-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero__name--highlight {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.hero__name--highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  border-radius: 3px;
  opacity: 0.3;
}

@keyframes name-reveal {
  from { opacity: 0; transform: translateY(20px) skewY(2deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0); }
}

/* Typewriter role */
.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--color-text-muted);
  min-height: 2em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fade-in 0.6s ease 0.8s both;
}

.typewriter {
  color: var(--color-accent);
  border-right: 2px solid var(--color-accent);
  padding-right: 2px;
  animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { border-color: var(--color-accent); }
  50%       { border-color: transparent; }
}

/* Bio */
.hero__bio {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 52ch;
  animation: fade-in 0.6s ease 1s both;
}

/* CTAs */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-in 0.6s ease 1.2s both;
}

/* Stats row */
.hero__stats {
  display: flex;
  gap: 2.5rem;
  animation: fade-in 0.6s ease 1.4s both;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Social links */
.hero__socials {
  display: flex;
  gap: 0.75rem;
  animation: fade-in 0.6s ease 1.6s both;
}

.hero__social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-bounce);
}

.hero__social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

/* Visual Side */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fade-in 1s ease 0.4s both;
}

.hero__avatar-wrapper {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orbit Ring */
.hero__orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(79,142,247,0.2);
  border-radius: 50%;
  animation: orbit-spin 20s linear infinite;
}

.hero__orbit--2 {
  width: 80%;
  height: 80%;
  animation-duration: 15s;
  animation-direction: reverse;
  border-color: rgba(255,107,107,0.15);
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Orbit dots */
.hero__orbit::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-left: -4px;
  box-shadow: 0 0 10px var(--color-accent);
}

.hero__orbit--2::before {
  background: var(--color-accent-2);
  box-shadow: 0 0 10px var(--color-accent-2);
}

/* Avatar */
.hero__avatar {
  width: 280px;
  height: 280px;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  background: linear-gradient(135deg, var(--color-accent-light), rgba(79,142,247,0.1));
  border: 3px solid rgba(79,142,247,0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: morph-shape 8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes morph-shape {
  0%, 100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  25%       { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
  50%       { border-radius: 50% 50% 50% 50% / 40% 60% 40% 60%; }
  75%       { border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
}

.hero__avatar-initials {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-accent);
  user-select: none;
}

/* Floating cards */
.hero__float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  z-index: 2;
}

.hero__float-card--1 {
  top: 30px;
  right: -10px;
  animation: float-card 4s ease-in-out infinite;
}

.hero__float-card--2 {
  bottom: 60px;
  left: -20px;
  animation: float-card 4s ease-in-out infinite 2s;
}

.hero__float-card--3 {
  bottom: 20px;
  right: 0px;
  animation: float-card 4s ease-in-out infinite 1s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero__float-icon {
  font-size: 1.25rem;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero__bio,
  .hero__badge {
    margin: 0 auto;
  }

  .hero__ctas,
  .hero__stats,
  .hero__socials {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__avatar-wrapper {
    width: 300px;
    height: 300px;
  }

  .hero__avatar {
    width: 210px;
    height: 210px;
  }

  .hero__float-card--1 { right: -5px; }
  .hero__float-card--2 { left: -5px; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 1.5rem; }
  .hero__float-card { display: none; }
}
