/* Hero v3: big name, short bio, two buttons, studio photo. Brand: navy #0B1624, cyan #00D4FF. */

/* Arabic name in Aref Ruqaa, the same calligraphy style as the logo (self hosted, OFL licence) */
@font-face {
  font-family: "Aref Ruqaa";
  src: url("../fonts/aref-ruqaa-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}

/* Header logo */
.header-brand.has-logo { display: inline-flex; align-items: center; padding-inline: 10px; }
.brand-logo { display: block; height: 38px; width: auto; }
.brand-logo-light { display: none; }
[data-theme="light"] .brand-logo-dark { display: none; }
[data-theme="light"] .brand-logo-light { display: block; }

/* Layout */
.hero-v3 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(36px, 6vw, 84px) 0 clamp(36px, 5vw, 64px);
}

.hero-v3-copy { min-width: 0; }

.hero-v3-hello {
  margin: 0 0 6px;
  color: var(--Text-light);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}

.hero-v3-name {
  margin: 0;
  font-size: clamp(48px, 7.4vw, 96px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #c9f6ff 55%, #7fe8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[dir="ltr"] .hero-v3-name { letter-spacing: -0.035em; }
[data-theme="light"] .hero-v3-name {
  background: linear-gradient(180deg, #0B1624 0%, #12324d 60%, #0091B3 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-v3-tag {
  margin: 10px 0 0;
  color: var(--Primary);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
}
[data-theme="light"] .hero-v3-tag { color: #0091B3; }

.hero-v3-bio {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--Text-light);
  opacity: 0.86;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.9;
}

.hero-v3-cta {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-top: 28px;
  max-width: 640px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15.5px;
  text-align: center;
  line-height: 1.35;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-btn:hover { transform: translateY(-2px); }

.hero-btn-main {
  background: var(--Primary);
  color: #041018;
  box-shadow: 0 10px 30px -10px rgba(0, 212, 255, 0.6);
}
.hero-btn-main:hover { box-shadow: 0 14px 34px -10px rgba(0, 212, 255, 0.75); }

.hero-btn-alt {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--Text-light);
  background: transparent;
}
.hero-btn-alt:hover { border-color: var(--Primary); color: var(--Primary); }
[data-theme="light"] .hero-btn-alt { border-color: rgba(11, 22, 36, 0.55); }

.hero-v3-platforms { margin-top: 26px; }
.hero-v3-platforms-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--Text-muted);
}
.hero-v3-platforms ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-v3-platforms li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--Line);
  background: rgba(0, 212, 255, 0.06);
  color: var(--Text-light);
  font-size: 13.5px;
  font-weight: 600;
}

/* Photo */
.hero-v3-photo {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0B1624;
  border: 1px solid rgba(0, 212, 255, 0.22);
  box-shadow: 0 30px 80px -30px rgba(0, 212, 255, 0.35);
}
.hero-v3-photo picture,
.hero-v3-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-v3-photo img { object-fit: cover; object-position: center 20%; }
.hero-v3-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 7, 13, 0.45) 100%);
  pointer-events: none;
}

/* Numbers strip under the hero */
.hero-v3-stats { padding-top: 8px; }
.hero-v3-stats .counter-grid { margin-top: 0; }
.hero-v3-stats .stats-banner-grid { margin-top: 16px; }

/* Tablet and phone */
@media (max-width: 991px) {
  .hero-v3 {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .hero-v3-photo {
    order: -1;
    width: min(100%, 380px);
    margin-inline: auto;
    aspect-ratio: 1 / 1;
  }
  .hero-v3-copy { text-align: center; }
  .hero-v3-bio { margin-inline: auto; }
  .hero-v3-cta { margin-inline: auto; }
  .hero-v3-platforms ul { justify-content: center; }
}

@media (max-width: 560px) {
  .hero-v3-cta { grid-template-columns: 1fr; }
  .hero-btn { min-height: 54px; font-size: 15px; }
  .brand-logo { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-btn { transition: none; }
  .hero-btn:hover { transform: none; }
}

/* Nav labels: taller line box so Arabic letters are not cut */
.nav-swap { height: 1.6em; }
.nav-swap span { line-height: 1.6em; }
html[dir="rtl"] .nav-swap { height: 1.9em; font-size: 14px; }
html[dir="rtl"] .nav-swap span { line-height: 1.9em; }

/* Ruqaa name: a bit larger because the calligraphy runs smaller than Cairo */
.hero-v3-name.is-ruqaa {
  font-family: "Aref Ruqaa", "Cairo", serif;
  font-weight: 700;
  font-size: clamp(60px, 9.2vw, 124px);
  line-height: 1.3;
  letter-spacing: 0;
  padding-block: 0.04em;
}

/* Typing effect */
.hero-type { position: relative; }
.hero-type .type-ghost { visibility: hidden; }
.hero-type .type-live { position: absolute; inset: 0; }
.hero-type.is-typing .type-live::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-inline-start: 4px;
  vertical-align: -0.08em;
  background: var(--Primary);
  border-radius: 2px;
  animation: heroCaret 0.8s steps(1) infinite;
}
.hero-v3-name.is-typing .type-live::after { width: 5px; }
@keyframes heroCaret { 50% { opacity: 0; } }
@media (max-width: 991px) {
  .hero-type .type-live { left: 0; right: 0; }
}

/* The gradient sits on the typed span itself (an absolute child is not painted by the parent's text clip) */
.hero-v3-name.hero-type { background: none; color: var(--Text-light); }
.hero-v3-name.hero-type .type-live {
  background: linear-gradient(180deg, #ffffff 0%, #c9f6ff 55%, #7fe8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .hero-v3-name.hero-type .type-live {
  background: linear-gradient(180deg, #0B1624 0%, #12324d 60%, #0091B3 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Platform icons: neon tiles that float gently, each in its own brand color on hover */
.hero-v3-platforms .plat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}
.hero-v3-platforms li.plat {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 58px;
  --neon: #00D4FF;
  animation: platFloat 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.45s);
}
.plat-snapchat { --brand: #FFFC00; }
.plat-tiktok { --brand: #25F4EE; }
.plat-meta { --brand: #2D88FF; }
.plat-facebook { --brand: #1877F2; }
.plat-instagram { --brand: #E4405F; }
.plat-google { --brand: #4285F4; }
.plat-x { --brand: #FFFFFF; }
.plat-shopify { --brand: #95BF47; }
.plat-salla { --brand: #BAF3E6; }
.plat-zid { --brand: #A66CFF; }
.plat-text { --brand: #00D4FF; }

.plat-tile {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #E9FBFF;
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.14), rgba(11, 22, 36, 0.85));
  border: 1px solid rgba(0, 212, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.08) inset,
    0 0 12px rgba(0, 212, 255, 0.35),
    0 0 26px rgba(0, 212, 255, 0.12);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.plat-tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 18px var(--neon);
  opacity: 0.35;
  animation: platPulse 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.4s);
}
.plat-tile svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.85)) drop-shadow(0 0 10px rgba(0, 212, 255, 0.35));
}
.plat-letter {
  font-weight: 800;
  font-size: 15px;
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.9), 0 0 14px rgba(0, 212, 255, 0.5);
}
.plat-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--Text-muted);
  white-space: nowrap;
}
.plat:hover .plat-tile {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 0 14px var(--brand), 0 0 32px color-mix(in srgb, var(--brand) 35%, transparent);
}
.plat:hover .plat-tile svg { filter: drop-shadow(0 0 6px var(--brand)); }
.plat:hover .plat-name { color: var(--Text-light); }

@keyframes platFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes platPulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.55; }
}

[data-theme="light"] .plat-tile {
  color: #0B1624;
  background: linear-gradient(160deg, #ffffff, #e9f8fc);
  border-color: rgba(0, 145, 179, 0.45);
  box-shadow: 0 0 10px rgba(0, 145, 179, 0.25);
}
[data-theme="light"] .plat-tile svg { filter: none; }
[data-theme="light"] .plat-letter { text-shadow: none; }
[data-theme="light"] .plat-x { --brand: #0B1624; }

@media (max-width: 991px) {
  .hero-v3-platforms .plat-row { justify-content: center; }
}
@media (max-width: 420px) {
  .hero-v3-platforms li.plat { width: 50px; }
  .plat-tile { width: 46px; height: 46px; border-radius: 14px; }
  .plat-tile svg { width: 21px; height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v3-platforms li.plat, .plat-tile::after { animation: none; }
}
@media (max-width: 560px) {
  .hero-v3-platforms .plat-row { max-width: 300px; margin-inline: auto; gap: 14px 14px; }
}

.hero-v3-cv { margin-top: 14px; font-size: 14px; }
.hero-v3-cv a { color: var(--Primary); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 991px) { .hero-v3-cv { text-align: center; } }
