/* ==========================================================================
   Hamza Ammar — social links
   Brand: Coral Red #C41949 · Golden Yellow #FF6049 · Ink #131313
   Primary gradient: 55deg, #C41949 -> #FF6049
   Type: Cairo (Arabic, per brand book) · Poppins (Latin stand-in for
         Geomanist / Novus — see README to swap in the licensed fonts)
   ========================================================================== */

:root {
  /* Brand */
  --coral: #c41949;
  --golden: #ff6049;
  --ink: #131313;
  --grad: linear-gradient(55deg, var(--coral) 0%, var(--golden) 100%);

  /* Surface */
  --bg: #0d0d0e;
  --bg-2: #131313;
  --card: rgba(255, 255, 255, .045);
  --card-hover: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);

  /* Text */
  --fg: #f5f4f3;
  --fg-2: rgba(245, 244, 243, .62);
  --fg-3: rgba(245, 244, 243, .40);

  /* Metrics */
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 30rem;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-latin: "Geomanist", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "29LT Bukra", "Cairo", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--font-arabic); }

/* Ambient brand glow ------------------------------------------------------ */
.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aura::before,
.aura::after {
  content: "";
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .30;
}
.aura::before {
  background: radial-gradient(circle, var(--coral) 0%, transparent 68%);
  top: -22rem;
  inset-inline-start: -18rem;
}
.aura::after {
  background: radial-gradient(circle, var(--golden) 0%, transparent 68%);
  bottom: -26rem;
  inset-inline-end: -20rem;
  opacity: .22;
}
.aura .watermark {
  position: absolute;
  inset-inline-end: -7rem;
  bottom: 3rem;
  width: 21rem;
  opacity: .014;
  transform: rotate(-12deg);
}

/* Layout ------------------------------------------------------------------ */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(1.1rem, 4vw, 1.75rem) clamp(1.1rem, 5vw, 1.5rem) 3rem;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* Language switch --------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: clamp(1.5rem, 6vw, 2.5rem);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: .34rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--fg-2);
  text-decoration: none;
  transition: color .25s var(--ease), background .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lang-switch a:hover { color: var(--fg); }
.lang-switch a[aria-current="true"] {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(196, 25, 73, .65);
}
.lang-switch a:focus-visible { outline: 2px solid var(--golden); outline-offset: 2px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--fg-2);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { color: var(--fg); border-color: var(--line-strong); background: var(--card-hover); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:focus-visible { outline: 2px solid var(--golden); outline-offset: 2px; }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }

/* Header ------------------------------------------------------------------ */
.profile {
  text-align: center;
  margin-bottom: clamp(1.75rem, 7vw, 2.5rem);
}

.avatar {
  position: relative;
  width: 7.25rem;
  height: 7.25rem;
  margin: 0 auto 1.35rem;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(196, 25, 73, .55);
}
.avatar::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}
.avatar img { width: 60%; height: 60%; object-fit: contain; }

.wordmark { height: 2.6rem; width: auto; margin: 0 auto .75rem; display: block; }

.name {
  margin: 0 0 .45rem;
  font-size: clamp(1.6rem, 6.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}
html[lang="ar"] .name { letter-spacing: 0; }

.role {
  margin: 0 auto .55rem;
  max-width: 26rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--fg-2);
}
.role .line { display: block; }
.role .line + .line { color: var(--fg-3); }

.bio {
  margin: 0 auto;
  max-width: 25rem;
  font-size: .875rem;
  color: var(--fg-3);
}

/* Link list --------------------------------------------------------------- */
.links {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .82rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.link > * { position: relative; }
.link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--card-hover);
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .9);
}
.link:hover::before { opacity: .07; }
.link:active { transform: translateY(0) scale(.995); }
.link:focus-visible { outline: 2px solid var(--golden); outline-offset: 3px; }

.link .badge {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.link:hover .badge { background: var(--grad); border-color: transparent; }
.link .badge svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

.link .text { flex: 1 1 auto; min-width: 0; }
.link .label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
}
.link .handle {
  display: block;
  font-size: .78rem;
  color: var(--fg-3);
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="ar"] .link .handle { text-align: right; }

.link .chev {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--fg-3);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
html[dir="rtl"] .link .chev { transform: scaleX(-1); }
.link:hover .chev { color: var(--fg); transform: translateX(3px); }
html[dir="rtl"] .link:hover .chev { transform: scaleX(-1) translateX(3px); }

/* Featured link (gradient) */
.link.featured {
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 18px 40px -22px rgba(196, 25, 73, .95);
}
.link.featured::before { display: none; }
.link.featured .badge { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .25); }
.link.featured .handle { color: rgba(255, 255, 255, .72); }
.link.featured .chev { color: rgba(255, 255, 255, .8); }
.link.featured:hover { box-shadow: 0 22px 48px -20px rgba(196, 25, 73, 1); }

/* Section heading --------------------------------------------------------- */
.section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .9rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
html[lang="ar"] .section-title { letter-spacing: 0; }
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--to, right), var(--line), transparent);
}
html[dir="rtl"] .section-title::after { --to: left; }

/* Footer ------------------------------------------------------------------ */
.foot {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
  font-size: .78rem;
  color: var(--fg-3);
}
.foot a { color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--fg); border-color: var(--line-strong); }
.foot .rule {
  width: 3rem;
  height: 2px;
  margin: 0 auto 1.25rem;
  border-radius: 2px;
  background: var(--grad);
  opacity: .8;
}

/* Toast ------------------------------------------------------------------- */
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast span {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, .92);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .82rem;
  font-weight: 500;
}

/* Bilingual visibility ---------------------------------------------------- */
html[lang="ar"] .en { display: none !important; }
html[lang="en"] .ar { display: none !important; }

/* Entrance ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .65s var(--ease) forwards;
    animation-delay: var(--d, 0ms);
  }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Private contact card (/c/…)
   ========================================================================== */

.private-note {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.5rem;
  padding: .65rem .9rem;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-size: .76rem;
  color: var(--fg-3);
  background: rgba(255, 255, 255, .02);
}
.private-note svg { flex: 0 0 auto; width: 1rem; height: 1rem; }

.phone-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 1rem;
  margin-bottom: .75rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.phone-card:hover { border-color: var(--line-strong); background: var(--card-hover); }

.phone-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .85rem;
}
.phone-flag {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}
.phone-meta { min-width: 0; }
.phone-country {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
html[lang="ar"] .phone-country { letter-spacing: 0; }
.phone-number {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
html[dir="rtl"] .phone-number { text-align: right; }

.phone-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--fg-2);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill svg { width: .95rem; height: .95rem; flex: 0 0 auto; }
.pill:hover { color: var(--fg); border-color: var(--line-strong); background: var(--card-hover); }
.pill:active { transform: scale(.97); }
.pill:focus-visible { outline: 2px solid var(--golden); outline-offset: 2px; }
.pill.call { background: var(--grad); border-color: transparent; color: #fff; }
.pill.call:hover { color: #fff; filter: brightness(1.08); }
.pill.wa:hover { color: #25d366; border-color: rgba(37, 211, 102, .45); }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .95rem 1rem;
  margin: 1.25rem 0 .7rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 40px -22px rgba(196, 25, 73, .95);
  transition: transform .25s var(--ease), filter .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.cta:active { transform: translateY(0) scale(.99); }
.cta:focus-visible { outline: 2px solid var(--golden); outline-offset: 3px; }
.cta svg { width: 1.15rem; height: 1.15rem; }

.cta.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-2);
  box-shadow: none;
  font-weight: 600;
}
.cta.ghost:hover { color: var(--fg); border-color: var(--line-strong); filter: none; }

@media (max-width: 380px) {
  .phone-actions { grid-template-columns: 1fr 1fr; }
  .phone-actions .pill.copy { grid-column: 1 / -1; }
}
