/* Reference-inspired portrait hero. Scoped to preserve the existing navigation. */
.intro-hero {
  --intro-blue: rgb(var(--rgb-hero-accent));
  background: rgb(var(--rgb-neutral-surface));
  color: rgb(var(--rgb-hero-text));
  padding: 180px 32px 100px;
  font-family: var(--font-localized, 'Outfit', 'Cairo', sans-serif);
}
.intro-hero__inner { max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(40px, 6vw, 90px); }
.intro-hero__badge { display: inline-block; padding: 10px 19px; border: 1px solid rgb(var(--rgb-hero-badge-border)); border-radius: 100px; background: rgb(var(--rgb-hero-badge-background)); color: rgb(var(--rgb-hero-badge-text)); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; }
.intro-hero__title { margin: 24px 0 28px; font-size: clamp(44px, 5vw, 72px); line-height: 1.08; letter-spacing: -2px; font-weight: 800; }
.intro-hero__name { color: var(--intro-blue); }
.intro-hero__description { max-width: 540px; color: rgb(var(--rgb-hero-text-muted)); font-size: 19px; line-height: 1.85; font-weight: 400; }
.intro-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 32px; }
.intro-hero__button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 28px; border-radius: 100px; background: rgb(var(--rgb-hero-button)); color: rgb(var(--rgb-white)); font-size: 16px; font-weight: 600; transition: background .2s, transform .2s; }
.intro-hero__button svg { width: 21px; height: 21px; }
.intro-hero__button:hover { background: rgb(var(--rgb-hero-button-hover)); transform: translateY(-2px); }
.intro-hero__contact { font-weight: 500; color: rgb(var(--rgb-hero-contact-text)); text-underline-offset: 5px; }
.intro-hero__contact:hover { text-decoration: underline; }
.intro-hero a:focus-visible { outline: 3px solid var(--intro-blue); outline-offset: 5px; }
.intro-hero__stats { display: flex; margin-top: 40px; gap: 0; }
.intro-hero__stats:empty { display: none; }
.intro-hero__stat { padding-inline: 26px; border-inline-start: 1px solid rgb(var(--rgb-hero-divider)); flex: 1; }
.intro-hero__stat:first-child { padding-inline-start: 0; border: 0; }
.intro-hero__stat strong { display: block; font-size: 29px; line-height: 1.3; font-weight: 700; }
.intro-hero__stat span { display: block; margin-top: 8px; color: rgb(var(--rgb-hero-text-muted)); font-size: 14px; line-height: 1.5; }
.intro-hero__portrait { position: relative; width: 88%; justify-self: center; margin: 0; border-radius: 26px; overflow: hidden; background: rgb(var(--rgb-hero-portrait-background)); box-shadow: 0 32px 50px -20px rgba(var(--rgb-hero-shadow), .3); }
.intro-hero__portrait > img { width: 100%; height: auto; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: center top; }
.intro-hero__identity { position: absolute; inset-inline: 20px; bottom: 20px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(var(--rgb-white), .7); border-radius: 18px; background: rgba(var(--rgb-neutral-surface), .95); }
.intro-hero__identity strong { display: block; font-size: 19px; font-weight: 600; }
.intro-hero__identity span:not(.intro-hero__code) { display: block; margin-top: 5px; font-size: 14px; color: rgb(var(--rgb-hero-text-muted)); }
.intro-hero__linkedin, .intro-hero__code { color: rgb(var(--rgb-hero-button)); font-size: 25px; font-weight: 700; }
.intro-hero__linkedin { font-family: Arial, sans-serif; padding: 6px; }
[dir="rtl"] .intro-hero { font-family: var(--font-localized, 'Cairo', sans-serif); }
[dir="rtl"] .intro-hero__title, [dir="rtl"] .intro-hero__badge { letter-spacing: 0; }
[dir="rtl"] .intro-hero__title { line-height: 1.4; }
[dir="rtl"] .intro-hero__button svg { transform: rotate(180deg); }
[data-theme="dark"] .intro-hero { background: var(--color-bg-page); color: var(--color-text-primary); --intro-blue: rgb(var(--rgb-hero-accent-dark)); }
[data-theme="dark"] .intro-hero__badge { background: rgb(var(--rgb-hero-badge-background-dark)); border-color: rgb(var(--rgb-hero-badge-border-dark)); color: rgb(var(--rgb-hero-badge-text-dark)); }
[data-theme="dark"] .intro-hero__description, [data-theme="dark"] .intro-hero__stat span, [data-theme="dark"] .intro-hero__contact { color: rgb(var(--rgb-hero-text-muted-dark)); }
[data-theme="dark"] .intro-hero__stat { border-color: rgb(var(--rgb-hero-divider-dark)); }
[data-theme="dark"] .intro-hero__identity { background: rgba(var(--rgb-surface-dark), .96); border-color: rgb(var(--rgb-hero-identity-border-dark)); }
[data-theme="dark"] .intro-hero__identity span:not(.intro-hero__code) { color: rgb(var(--rgb-hero-text-muted-dark)); }
[data-theme="dark"] .intro-hero__linkedin, [data-theme="dark"] .intro-hero__code { color: rgb(var(--rgb-hero-accent-dark)); }
@media (min-width: 1500px) { .intro-hero { padding-top: 210px; padding-bottom: 120px; } }
@media (max-width: 900px) {
  .intro-hero { padding: 140px 24px 72px; }
  .intro-hero__inner { gap: 32px; }
  .intro-hero__title { font-size: 46px; }
  .intro-hero__description { font-size: 17px; }
  .intro-hero__stat { padding-inline: 14px; }
  .intro-hero__identity { inset-inline: 12px; bottom: 12px; padding: 14px; }
}
@media (max-width: 680px) {
  .intro-hero { padding: 124px 22px 60px; }
  .intro-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .intro-hero__title { font-size: clamp(42px, 10vw, 60px); letter-spacing: -1.5px; max-width: 520px; }
  .intro-hero__badge { font-size: 10px; letter-spacing: 1.3px; }
  .intro-hero__stats { margin-top: 32px; }
  .intro-hero__stat strong { font-size: 26px; }
  .intro-hero__portrait { width: 88%; max-width: 420px; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .intro-hero__button { transition: none; } }
