/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 5.5rem 0 3rem; position: relative; z-index: 2; overflow: hidden; }

/* ── Hero background: orbs + dot grid ── */
.hero-bg-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(69,137,255,0.22) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 20%, transparent 100%);
}
[data-theme="dark"]  .hero-dot-grid { opacity: 0.28; }
[data-theme="light"] .hero-dot-grid { opacity: 0.35; background-image: radial-gradient(circle, rgba(15,98,254,0.28) 1px, transparent 1px); }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  transition: opacity 0.6s ease;
}

.hero-orb-1 {
  width: 580px; height: 580px;
  top: -18%; left: -12%;
  background: radial-gradient(circle, rgba(69,137,255,0.45) 0%, transparent 65%);
  animation: orb-drift-1 22s ease-in-out infinite;
}
.hero-orb-2 {
  width: 480px; height: 480px;
  top: 15%; right: -10%;
  background: radial-gradient(circle, rgba(120,169,255,0.35) 0%, transparent 65%);
  animation: orb-drift-2 28s ease-in-out infinite;
}
.hero-orb-3 {
  width: 420px; height: 420px;
  bottom: -12%; left: 38%;
  background: radial-gradient(circle, rgba(15,98,254,0.3) 0%, transparent 65%);
  animation: orb-drift-3 18s ease-in-out infinite;
}

[data-theme="dark"]  .hero-orb { opacity: 0.65; }
[data-theme="light"] .hero-orb { opacity: 0.7; }
[data-theme="light"] .hero-orb-1 { background: radial-gradient(circle, rgba(15,98,254,0.35) 0%, transparent 65%); }
[data-theme="light"] .hero-orb-2 { background: radial-gradient(circle, rgba(69,137,255,0.28) 0%, transparent 65%); }
[data-theme="light"] .hero-orb-3 { background: radial-gradient(circle, rgba(0,67,206,0.28) 0%, transparent 65%); }

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(38px, -28px); }
  66%  { transform: translate(-18px, 42px); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  40%  { transform: translate(-44px, 32px); }
  72%  { transform: translate(26px, -36px); }
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50%  { transform: translate(30px, -48px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

.hero-wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.hero-logo-text {
  display: block;
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-family: var(--font-heading) !important;
}

/* Typewriters */
.hero-typewriter { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 1.25rem; min-height: 1.2em; opacity: 0.9; }
.hero-typewriter::after { content: '_'; color: var(--accent); animation: tw-blink 0.75s step-end infinite; margin-left: 1px; }

.experience-typewriter { min-height: 1.4em; margin-bottom: 1.15rem; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; letter-spacing: 0.01em; font-family: var(--font-body) !important; font-weight: 400; }
.experience-typewriter::after { content: '_'; color: var(--accent); animation: tw-blink 0.75s step-end infinite; margin-left: 1px; font-family: var(--font-body) !important; }
.experience-typewriter-org { color: var(--accent-light); font-weight: 600; }

.tech-stack-inline-typewriter { display: inline; min-height: 0; color: var(--accent); font-size: 0.875rem; line-height: 1.6; letter-spacing: 0.01em; text-transform: none; font-family: var(--font-body) !important; font-weight: 500; opacity: 0.9; }
.tech-stack-inline-typewriter::after { content: '_'; color: var(--accent); animation: tw-blink 0.75s step-end infinite; margin-left: 1px; font-family: var(--font-body) !important; }

.rec-inline-typewriter { display: inline; min-height: 0; color: var(--accent); font-size: inherit; line-height: inherit; letter-spacing: 0.01em; font-family: var(--font-body) !important; font-weight: 500; opacity: 0.9; }
.rec-inline-typewriter::after { content: '_'; color: var(--accent); animation: tw-blink 0.75s step-end infinite; margin-left: 1px; font-family: var(--font-body) !important; }

.hero-bio { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); max-width: 480px; margin-bottom: 2rem; font-family: var(--font-body) !important; font-weight: 400; letter-spacing: 0.01em; }
.hero-bio strong { color: var(--text); font-weight: 600; font-family: var(--font-body) !important; }
.hero-cta { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  max-width: 720px;
}

.hero-socials .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--text-secondary);
  text-decoration: none;
  flex: 0 0 auto;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.hero-socials .social-btn:hover,
.hero-socials .social-btn:focus-visible {
  color: var(--text);
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(69,137,255,0.12), rgba(255,255,255,0.04));
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-1px);
  outline: none;
}

.hero-socials .social-btn__glyph {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.hero-socials .social-btn__glyph i {
  font-size: 0.95rem;
  line-height: 1;
}

/* ── Hero photo ── */
.hero-photo { display: flex; justify-content: center; }
.hero-photo-wrap { position: relative; padding: 1rem 1rem 4.6rem; isolation: isolate; }
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 2rem 1.5rem 3.6rem;
  background: radial-gradient(circle at 20% 18%, rgba(69,137,255,0.2), transparent 30%), radial-gradient(circle at 78% 82%, rgba(124,58,237,0.16), transparent 28%), linear-gradient(180deg, rgba(8,13,26,0.8), rgba(8,13,26,0.1));
  border-radius: 28px;
  filter: blur(22px);
  z-index: -2;
}
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0.5rem 0.25rem 2.8rem;
  border-radius: 30px;
  border: 1px solid rgba(69,137,255,0.08);
  background: linear-gradient(135deg, rgba(69,137,255,0.04), rgba(255,255,255,0.01), rgba(124,58,237,0.03));
  z-index: -1;
}
.hero-photo-frame {
  position: relative;
  width: 360px; height: 392px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(69,137,255,0.35);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(69,137,255,0.06) inset, 0 22px 70px rgba(0,0,0,0.4), 0 0 40px rgba(69,137,255,0.1);
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(116,169,255,0.6), rgba(255,255,255,0.04), rgba(69,137,255,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 16%), radial-gradient(circle at 50% 120%, rgba(0,0,0,0.2), transparent 44%);
  pointer-events: none;
  z-index: 1;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.02); }
.hero-photo-frame picture { width: 100%; height: 100%; }

.hero-deco-tr { position: absolute; top: 0; right: -0.2rem; width: 7rem; height: 7rem; border: 1px solid rgba(69,137,255,0.14); border-radius: 18px; z-index: -1; }
.hero-deco-bl { position: absolute; bottom: 0.75rem; left: 0.2rem; width: 5rem; height: 7rem; background: linear-gradient(180deg, rgba(69,137,255,0.1), rgba(124,58,237,0.07)); border-radius: 14px; filter: blur(0.3px); z-index: -1; }

.hero-badge {
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  transform: translateX(-50%);
  min-width: 17.5rem;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: var(--glass-shadow);
  z-index: 2;
}
.hero-badge-dot { width: 0.65rem; height: 0.65rem; background: #22c55e; border-radius: 50%; display: block; flex-shrink: 0; box-shadow: 0 0 12px rgba(34,197,94,0.4); }
.hero-badge-text { font-size: 0.65rem; font-weight: 600; font-family: var(--font-heading) !important; letter-spacing: var(--tracking-normal); white-space: nowrap; color: var(--text-secondary); text-transform: uppercase; }

[data-theme="dark"] .hero-photo-wrap::before {
  inset: 1.9rem 1.2rem 3.35rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.12), transparent 24%),
    radial-gradient(circle at 24% 18%, rgba(116,169,255,0.2), transparent 32%),
    radial-gradient(circle at 78% 82%, rgba(124,58,237,0.12), transparent 30%),
    linear-gradient(180deg, rgba(17,24,39,0.62), rgba(8,13,26,0.22));
  filter: blur(26px);
  opacity: 0.95;
}

[data-theme="dark"] .hero-photo-wrap::after {
  inset: 0.3rem 0rem 2.4rem;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.13);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 40%, rgba(69,137,255,0.06) 100%),
    rgba(22,26,40,0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    inset 1px 0 0 rgba(255,255,255,0.06),
    0 24px 60px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.04);
}

[data-theme="dark"] .hero-photo-frame {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(22,26,40,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 28px 70px rgba(0,0,0,0.5),
    0 0 40px rgba(69,137,255,0.12),
    0 0 1px rgba(255,255,255,0.06);
}

[data-theme="dark"] .hero-photo-frame::before {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.38) 0%,
    rgba(186,221,255,0.18) 18%,
    rgba(255,255,255,0.04) 45%,
    rgba(69,137,255,0.15) 100%);
}

[data-theme="dark"] .hero-photo-frame::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02) 20%, transparent 36%),
    radial-gradient(circle at 50% 120%, rgba(0,0,0,0.28), transparent 50%);
}

[data-theme="dark"] .hero-deco-tr {
  border-color: rgba(116,169,255,0.16);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(69,137,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

[data-theme="dark"] .hero-deco-bl {
  background: linear-gradient(180deg, rgba(174,208,255,0.1), rgba(124,58,237,0.08));
  opacity: 0.9;
}

[data-theme="dark"] .hero-badge {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    rgba(17,24,39,0.34);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(255,255,255,0.03),
    0 18px 38px rgba(0,0,0,0.28);
}

[data-theme="dark"] .hero-badge-text {
  color: rgba(244,244,244,0.88);
}

/* ── Stats bar ── */
.stats-bar { padding: 3rem 0; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; text-align: center; max-width: 1100px; margin: 0 auto; }
.stat-num { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 700; font-family: var(--font-heading) !important; line-height: 1; letter-spacing: 0.02em; }
.stat-label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-top: 0.75rem; line-height: 1.6; max-width: 14rem; margin-left: auto; margin-right: auto; letter-spacing: 0.005em; text-align: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; grid-template-rows: auto auto; }
  .hero-photo { justify-content: center; margin-top: 1.5rem; }
  .hero-photo-wrap { padding: 0.5rem 0.5rem 3rem; }
  .hero-photo-frame { width: 220px; height: 240px; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .hero-socials { gap: 0.65rem; }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr !important; }
  .hero-socials .social-btn {
    width: 2.7rem;
    height: 2.7rem;
    min-width: 2.7rem;
    min-height: 2.7rem;
  }
}
