:root {
  color-scheme: dark;
  --page: #061517;
  --page-glow: #0a2f31;
  --surface: rgba(10, 29, 31, 0.84);
  --surface-solid: #0b1e20;
  --surface-muted: #10282a;
  --text: #f4fbf9;
  --muted: #9bb2b2;
  --line: rgba(224, 247, 243, 0.1);
  --teal: #3cc2bd;
  --teal-deep: #8ae1da;
  --orange: #ff8126;
  --orange-bright: #ffab65;
  --shadow: 0 36px 100px rgba(0, 0, 0, 0.44);
  --focus: #6de1db;
  --display: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  --body: "Avenir Next", "SF Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, var(--page-glow), transparent 28rem),
    radial-gradient(circle at 88% 85%, color-mix(in srgb, var(--orange) 12%, transparent), transparent 24rem),
    var(--page);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 240ms ease, color 240ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #073f43;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient-code {
  position: fixed;
  z-index: -1;
  color: var(--teal);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
  opacity: 0.11;
  user-select: none;
}

.code-one {
  inset-block-start: 9%;
  inset-inline-end: 4%;
  font-size: clamp(5rem, 11vw, 10rem);
  transform: rotate(8deg);
}

.code-two {
  inset-block-end: 10%;
  inset-inline-start: 2%;
  color: var(--orange);
  font-size: clamp(3rem, 7vw, 7rem);
  transform: rotate(-7deg);
}

.code-three {
  inset-block-start: 38%;
  inset-inline-start: 5%;
  font-size: 2rem;
  letter-spacing: 0.25em;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 28px 0 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin-bottom: 20px;
}

.brand {
  display: block;
  width: 210px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand img {
  object-fit: cover;
  object-position: center 52%;
}

.controls {
  display: flex;
  gap: 9px;
}

.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(7, 35, 37, 0.06);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.control-button:hover {
  border-color: color-mix(in srgb, var(--teal) 48%, var(--line));
  transform: translateY(-2px);
}

.control-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  min-height: 690px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.identity-panel {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  isolation: isolate;
}

.cover-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  filter: saturate(0.94) contrast(1.03);
}

.cover-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 24, 26, 0.1) 0%, rgba(4, 20, 22, 0.3) 38%, rgba(4, 18, 20, 0.97) 100%),
    linear-gradient(90deg, rgba(3, 20, 22, 0.15), transparent 60%);
}

.cover-tag {
  position: absolute;
  inset-block-start: 32px;
  inset-inline-start: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(3, 18, 20, 0.28);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.identity-content {
  position: absolute;
  inset-inline: 36px;
  inset-block-end: 36px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  color: #f7fffd;
}

.portrait-frame {
  position: relative;
  flex: 0 0 144px;
  width: 144px;
  height: 144px;
  padding: 5px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 23px;
  object-fit: cover;
}

.portrait-corner {
  position: absolute;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-color: var(--orange);
  border-style: solid;
  pointer-events: none;
}

.corner-top {
  inset-block-start: -5px;
  inset-inline-start: -5px;
  border-width: 3px 0 0 3px;
  border-start-start-radius: 12px;
}

.corner-bottom {
  inset-inline-end: -5px;
  inset-block-end: -5px;
  border-width: 0 3px 3px 0;
  border-end-end-radius: 12px;
}

.online-dot {
  position: absolute;
  inset-inline-end: -2px;
  inset-block-start: 18px;
  width: 16px;
  height: 16px;
  border: 3px solid #092326;
  border-radius: 50%;
  background: #4ee3ac;
  box-shadow: 0 0 0 5px rgba(78, 227, 172, 0.14);
}

.identity-copy {
  min-width: 0;
  padding-block-end: 2px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--orange-bright);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.identity-copy h1 {
  max-width: 420px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 3vw, 4.8rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.intro {
  max-width: 430px;
  margin: 16px 0 15px;
  color: rgba(241, 255, 252, 0.76);
  font-size: 0.98rem;
  line-height: 1.65;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 255, 253, 0.9);
  font-size: 0.78rem;
  font-weight: 650;
}

.status-pulse {
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ee3ac;
  box-shadow: 0 0 0 5px rgba(78, 227, 172, 0.12);
}

.links-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px;
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
}

.links-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-kicker {
  color: var(--teal);
}

.links-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.terminal-mark {
  color: var(--orange);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 2.1rem;
  font-weight: 800;
  animation: blink 1.15s steps(2, jump-none) infinite;
}

@keyframes blink {
  50% { opacity: 0.1; }
}

.join-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 15px 16px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(120deg, #e85f08, #ff8126 58%, #ff9c4c);
  box-shadow: 0 16px 34px rgba(232, 95, 8, 0.25);
  text-decoration: none;
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.join-card::before {
  position: absolute;
  inset-block: -35%;
  inset-inline-start: -42%;
  z-index: 2;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg);
  animation: cta-sheen 4s ease-in-out infinite;
}

.join-card::after {
  position: absolute;
  inset: auto -14px -34px auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.05), 0 0 0 48px rgba(255, 255, 255, 0.04);
  content: "";
}

.join-card:hover {
  box-shadow: 0 20px 42px rgba(232, 95, 8, 0.34);
  transform: translateY(-3px);
}

@keyframes cta-sheen {
  0%, 52% {
    inset-inline-start: -42%;
    opacity: 0;
  }

  62% {
    opacity: 1;
  }

  82%, 100% {
    inset-inline-start: 122%;
    opacity: 0;
  }
}

.join-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.13);
}

.join-icon svg,
.arrow svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.join-copy,
.social-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.join-copy strong {
  font-size: 1rem;
  line-height: 1.25;
}

.join-copy small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
}

.arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

[dir="rtl"] .arrow,
[dir="rtl"] .link-arrow {
  transform: scaleX(-1);
}

.social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.social-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-muted);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.social-link[hidden] {
  display: none;
}

.social-link:hover {
  border-color: color-mix(in srgb, var(--brand-color, var(--teal)) 46%, var(--line));
  background: color-mix(in srgb, var(--brand-color, var(--teal)) 7%, var(--surface-solid));
  transform: translateY(-2px);
}

.social-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--brand-color, var(--teal));
  background: color-mix(in srgb, var(--brand-color, var(--teal)) 10%, var(--surface-solid));
  font-weight: 800;
}

.social-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .fill-dot,
.social-icon .play-fill {
  fill: currentColor;
  stroke: none;
}

.letter-icon {
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
}

.linkedin-icon {
  font-size: 0.95rem;
  letter-spacing: -0.07em;
}

.social-copy strong {
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  color: var(--muted);
  font-size: 0.92rem;
}

.instagram { --brand-color: #d83b8c; }
.tiktok { --brand-color: var(--text); }
.youtube { --brand-color: #e63737; }
.facebook { --brand-color: #1877f2; }
.linkedin { --brand-color: #0a66c2; }
.email { --brand-color: var(--teal); }
.whatsapp {
  --brand-color: #1cab61;
  grid-column: 1 / -1;
}

footer {
  padding: 17px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

[dir="rtl"] .identity-copy h1,
[dir="rtl"] .links-heading h2 {
  letter-spacing: -0.02em;
}

[dir="rtl"] body {
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}
[dir="rtl"] {
  --display: "Cairo", Tahoma, Arial, sans-serif !important;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .section-kicker {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .social-copy small {
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
}

@media (max-width: 980px) {
  .profile-card {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-inline: auto;
  }

  .identity-panel {
    min-height: 570px;
  }

  .links-panel {
    padding: 34px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 520px);
    padding-top: 12px;
  }

  .topbar {
    min-height: 54px;
    margin-bottom: 10px;
  }

  .brand {
    width: 148px;
    height: 40px;
  }

  .control-button {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 0.78rem;
  }

  .profile-card {
    border-radius: 24px;
  }

  .identity-panel {
    min-height: 550px;
  }

  .cover-art img {
    object-position: 50% 44%;
  }

  .cover-tag {
    inset-block-start: 22px;
    inset-inline-start: 22px;
  }

  .identity-content {
    inset-inline: 22px;
    inset-block-end: 26px;
    display: block;
  }

  .portrait-frame {
    width: 112px;
    height: 112px;
    margin-bottom: 20px;
    border-radius: 23px;
  }

  .portrait-frame img {
    border-radius: 18px;
  }

  .identity-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .intro {
    max-width: 94%;
    margin-block: 13px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .links-panel {
    padding: 28px 18px 20px;
  }

  .links-heading {
    padding-inline: 4px;
    margin-bottom: 18px;
  }

  .social-list {
    grid-template-columns: 1fr;
  }

  .social-link {
    min-height: 68px;
  }

  .whatsapp {
    grid-column: auto;
  }

  footer {
    padding-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
