/* ── hero.css — Hero section: unified group flanking layout matching site grid ── */
#hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  z-index: 5;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hero-content {
  position: relative;
  width: 100%;
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  pointer-events: none;
}

.hero-col {
  pointer-events: all;
}

.hero-left {
  flex: 0 1 400px;
  max-width: 400px;
  width: 100%;
}

.hero-right {
  flex: 0 1 440px;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-role,
.hero-name {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.3;
  transform: translateY(-16px);
}

h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  transform: translateY(-16px);
}

h1 em {
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
}

.hero-last {
  font-size: 1em;
  font-weight: 700;
  color: var(--muted);
  display: inline-block;
}

.hero-dot {
  color: var(--ink);
  font-weight: 700;
}

/* ── EN/FR weight hierarchy: Anes = bold, Abdelkader = light ── */
body.lang-en h1 em,
body.lang-fr h1 em {
  font-weight: 600;
  color: var(--muted);
}

body.lang-en .hero-last,
body.lang-fr .hero-last {
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-primary {
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 99px;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  transition: background .2s, transform .15s;
}

.btn-primary:hover {
  background: #0e2b2e;
  transform: translateY(-1px);
}

/* Dual swimming border beam with Frosted Glass (beam strictly restricted to outer 1.5px border) */
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 99px;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 4px 18px rgba(7, 25, 27, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.15), inset 0 1px 1px #fff;
}

/* Border Beam: Only along the outer 1.5px perimeter via composite masking */
.btn-ghost .btn-beam {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  padding: 1.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.btn-ghost .btn-beam::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -50%;
  width: 200%;
  height: 400%;
  background: conic-gradient(from 0deg, transparent 15%, var(--accent) 30%, transparent 45%, transparent 65%, var(--accent) 80%, transparent 95%);
  animation: swimBeams 4s linear infinite;
  filter: blur(0.5px);
  will-change: transform;
}

@keyframes swimBeams {
  to {
    transform: rotate(360deg);
  }
}

/* Right column: Bio, Stats, Tags, Socials */
.hero-bio {
  font-size: 14px;
  line-height: 1.68;
  color: #555;
  margin-bottom: 20px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 5px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-chip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all .2s ease;
}

.tag-chip:hover {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.hero-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 50%;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}

.social-link svg {
  width: 17px;
  height: 17px;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.16), inset 0 1px 1px #fff;
  transform: translateY(-2px);
}

/* ── Foreign languages (English & French) Montserrat typography ── */
body.lang-en h1,
body.lang-fr h1,
body.lang-en .hero-name,
body.lang-fr .hero-name {
  font-family: var(--font-foreign);
  letter-spacing: -0.02em;
}

/* ── Arabic typography adjustments (using Thmanyah exclusively) ── */
body.lang-ar {
  font-family: var(--pf-text-face);
}


/* Arabic bio/stats column: keep on right side, align items to right */
body.lang-ar .hero-right {
  align-items: flex-end;
  text-align: right;
}

body.lang-ar .hero-stats {
  flex-direction: row;
}

body.lang-ar .stat-item {
  align-items: flex-end;
}

body.lang-ar .hero-tags {
  justify-content: flex-end;
  flex-direction: row;
}

body.lang-ar .hero-socials {
  flex-direction: row;
}

body.lang-ar .hero-role,
body.lang-ar .hero-name,
body.lang-ar h1,
body.lang-ar .hero-bio,
body.lang-ar .stat-label,
body.lang-ar .tag-chip,
body.lang-ar .nav-links a,
body.lang-ar .btn-primary,
body.lang-ar .btn-ghost span {
  font-family: var(--pf-text-face);
  letter-spacing: 0;
}

/* Arabic hero role: elegant role title */
body.lang-ar .hero-role,
body.lang-ar .hero-name {
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.3;
  margin-bottom: 14px;
  margin-left: 60px;
  transform: translateY(-16px);
}

/* Arabic h1 refined typography & hierarchy with OpenType swash/stylistic alternates */
body.lang-ar h1 {
  font-family: var(--pf-text-face);
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  margin-bottom: 28px;
  margin-right: 148px;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
  transform: translateY(-16px);
  /* OpenType: Swash + Stylistic Alternates + Contextual Alternates */
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "ss01" 1;
  font-variant-alternates: swash(1) stylistic(1);
}

body.lang-ar h1 em {
  font-family: var(--pf-text-face);
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "ss01" 1;
  font-variant-alternates: swash(1) stylistic(1);
}

body.lang-ar .hero-last {
  font-family: var(--pf-text-face);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--muted);
  display: inline-block;
  direction: rtl;
  unicode-bidi: isolate;
  letter-spacing: 0;
  margin-top: 2px;
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "ss01" 1;
  font-variant-alternates: swash(1) stylistic(1);
}

body.lang-ar .hero-dot {
  display: inline-block;
  color: var(--ink);
  font-weight: 700;
}

body.lang-ar .hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

body.lang-ar .btn-ghost svg {
  transform: scaleX(-1);
}

body.lang-ar .hero-bio {
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
  line-height: 1.76;
  font-size: 0.92rem;
  letter-spacing: 0;
}

body.lang-ar .stat-label {
  letter-spacing: 0;
}

/* Lang-switch fade transition */
body.lang-switching #hero-content,
body.lang-switching .nav-links {
  opacity: 0;
  transition: opacity 0.18s ease;
}

#hero-content,
.nav-links {
  transition: opacity 0.18s ease;
}

/* ── Dark Mode Hero Overrides (Formal High-Contrast Luxury) ── */
body.dark h1 {
  color: #ffffff;
}

body.dark h1 em {
  color: rgba(255, 255, 255, 0.68);
}

body.dark .hero-last {
  color: rgba(255, 255, 255, 0.45);
}

body.dark .hero-dot {
  color: #10b981;
}

body.dark .btn-primary {
  background: #ffffff;
  color: #030504;
  font-weight: 600;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 255, 255, 0.15);
}

body.dark .btn-primary:hover {
  background: #e6ede9;
  color: #030504;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 255, 255, 0.22);
}

body.dark .btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

body.dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 255, 165, 0.45);
  transform: translateY(-1px);
}

body.dark .btn-ghost .btn-beam::before {
  background: conic-gradient(from 0deg, transparent 15%, #00ffa5 30%, transparent 45%, transparent 65%, #00ffa5 80%, transparent 95%);
  opacity: 0.85;
}

body.dark .hero-bio {
  color: #a6b6b0;
}

body.dark .stat-num {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
}

body.dark .stat-label {
  color: #70827b;
}

body.dark .tag-chip {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2ede8;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark .tag-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(0, 255, 165, 0.4);
  box-shadow: 0 4px 16px rgba(0, 255, 165, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body.dark .social-link {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.dark .social-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #00ffa5;
  border-color: rgba(0, 255, 165, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 165, 0.25);
}

/* ── Proportional Adaptive Scaling for Intermediate Screens (Keeps Hero Cohesive as One Group) ── */
@media (max-width: 1240px) {
  #hero-content {
    padding: 0 24px;
  }

  .hero-left {
    flex: 0 1 350px;
    max-width: 350px;
  }

  .hero-right {
    flex: 0 1 340px;
    max-width: 340px;
  }

  h1 {
    font-size: clamp(34px, 4vw, 52px);
  }

  .hero-bio {
    font-size: 14px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 26px;
  }
}

@media (max-width: 1060px) {
  .hero-left {
    flex: 0 1 300px;
    max-width: 300px;
  }

  .hero-right {
    flex: 0 1 290px;
    max-width: 290px;
  }

  h1 {
    font-size: clamp(28px, 3.6vw, 42px);
  }

  .hero-bio {
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-stats {
    gap: 14px;
  }

  .stat-num {
    font-size: 22px;
  }

  .stat-label {
    font-size: 10.5px;
  }
}