@font-face {
  font-family: "Noto Sans Arabic";
  src: url("assets/arabic-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("assets/arabic-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --wine: #791f1b;
  --wine-dark: #621612;
  --ink: #251917;
  --muted: #685953;
  --line: #eaded8;
  --paper: #fffdfb;
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 36px 16px;
  color: var(--ink);
  background:
    radial-gradient(circle, #8d494329 1px, transparent 1.35px) center top / 24px 24px,
    radial-gradient(ellipse at 50% 0%, #f0dfd6 0%, #f8f2ed 47%, #faf7f4 85%);
}

.panel {
  position: relative;
  width: min(100%, 490px);
  padding: 24px 28px 23px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 28px 85px #45211715, 0 3px 13px #45211707;
}

.topbar { display: flex; justify-content: space-between; align-items: center; }
.logo { display: block; width: 99px; height: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share, .social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--wine);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.share[hidden] { display: none; }
.share:hover, .social a:hover { background: #f9efeb; border-color: #d9bcb3; }
.share .icon { width: 19px; height: 19px; }

.intro { margin: 15px 0 27px; text-align: center; }
.portrait {
  width: 122px;
  height: 122px;
  margin: 0 auto 13px;
  padding: 5px;
  border: 1px solid #d7b4a9;
  border-radius: 50%;
  background: #f9efea;
}
.portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; }
h1 { margin: 0; font-size: clamp(29px, 8vw, 40px); line-height: 1.5; }
h1 span { color: var(--wine); }
.intro p { margin: 1px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.links { display: grid; gap: 10px; }
.link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 75px;
  padding: 10px 13px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.link:hover { background: #fcf4f0; border-color: #d9bcb3; transform: translateY(-2px); }
.tile {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f7eae6;
  color: var(--wine);
}
.tile-whatsapp { background: #eaf5ed; color: #256843; }
.link-copy { display: grid; gap: 2px; }
.link strong { font-size: 16px; line-height: 1.5; }
.link small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.arrow { width: 18px; height: 18px; transform: scaleX(-1); color: var(--wine); }
.link-primary {
  color: #fff;
  background: var(--wine);
  border-color: var(--wine);
  box-shadow: 0 7px 16px #791f1b24;
}
.link-primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.link-primary small { color: #f9e9e3; }
.link-primary .tile { color: #fff; background: #ffffff24; }
.link-primary .arrow { color: #fff; }

.social { display: flex; justify-content: center; margin-top: 21px; }
.social a { color: var(--ink); }
.social .icon { width: 20px; height: 20px; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.notice {
  position: absolute;
  inset-inline: 16px;
  bottom: 12px;
  width: fit-content;
  margin: auto;
  padding: 7px 13px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  pointer-events: none;
}
.notice:empty { padding: 0; }

@media (max-width: 480px) {
  body { padding: 20px 13px; }
  .panel { padding: 18px 16px 18px; border-radius: 25px; }
  .intro { margin-top: 19px; margin-bottom: 23px; }
  .portrait { width: 113px; height: 113px; }
}

@media (max-width: 360px) {
  .link { gap: 8px; padding-inline: 9px; }
  .link strong { font-size: 14px; }
  .link small { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Ahmed's animated edition */
body {
  overflow-x: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle, #8d494329 1px, transparent 1.35px) center top / 24px 24px,
    linear-gradient(155deg, #f3e4dd, #fcf8f4 52%, #f1dfd6);
}
.sky { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; filter: blur(55px); opacity: .2; background: #a83d32; animation: drift 11s ease-in-out infinite alternate; }
.glow-one { right: -200px; top: 0; }
.glow-two { left: -210px; bottom: -100px; animation-delay: -5s; }
.meteor {
  position: absolute;
  top: -140px;
  width: 3px;
  height: 145px;
  border-radius: 100px;
  background: linear-gradient(to bottom, transparent, #a44a3d 65%, #791f1b);
  box-shadow: 0 12px 20px #791f1b33;
  transform-origin: bottom center;
  animation: shooting 5.5s linear infinite;
}
.meteor::after { content: ""; position: absolute; bottom: -2px; left: -2px; width: 7px; height: 7px; background: #791f1b; border-radius: 50%; box-shadow: 0 0 13px #9e3b2e; }
.meteor-one { right: 8%; animation-delay: -1s; }
.meteor-two { right: 65%; height: 105px; animation-delay: -3.4s; animation-duration: 6.5s; opacity: .65; }
.meteor-three { right: -40%; animation-delay: -4.1s; animation-duration: 7s; }
.panel { z-index: 0; background: #fffdfbf5; box-shadow: 0 24px 75px #67271b20; border-color: #e6d2c8; }
.panel::before {
  content: "";
  position: absolute;
  top: 90px;
  left: 8%;
  right: 8%;
  height: 135px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse, #efdad1 0%, transparent 68%);
  animation: halo 5s ease-in-out infinite alternate;
}
.controls { display: flex; gap: 8px; align-items: center; }
.motion-control { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--wine); cursor: pointer; }
.motion-control[hidden] { display: none; }
.pause-symbol { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.motion-control[aria-pressed="true"] .pause-symbol { width: 0; height: 0; border: 6px solid transparent; border-right: 0; border-left: 9px solid currentColor; margin-left: 3px; }
.share { width: 38px; height: 38px; }
.intro { margin-top: 24px; margin-bottom: 25px; }
.portrait { position: relative; width: 140px; height: 140px; padding: 6px; border: 0; background: #f4e3dc; box-shadow: 0 9px 25px #791f1b20; animation: float 5s ease-in-out infinite; isolation: isolate; }
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #791f1b 0deg, #d3977d 35deg, #f4e3dc 95deg, #f4e3dc 180deg, #a5503e 235deg, #f4e3dc 290deg, #791f1b 360deg);
  animation: orbit 7s linear infinite;
  z-index: -1;
}
.portrait-crop { width: 100%; height: 100%; overflow: hidden; border-radius: 50%; border: 3px solid #fffdfb; background: #790b12; }
.portrait img { width: 102%; height: 106%; max-width: none; border-radius: 0; object-fit: cover; transform: translate(1%, -4%); }
h1 { font-size: clamp(30px, 8vw, 38px); letter-spacing: -.6px; }
.intro p { font-size: 13px; margin-top: 6px; }
.link { min-height: 79px; }
.link-primary { position: relative; overflow: hidden; }
.link-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  width: 32px;
  background: linear-gradient(90deg, transparent, #ffffff24, transparent);
  transform: skewX(-20deg);
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
.link:nth-child(1) { animation: enter .6s ease both; }
.link:nth-child(2) { animation: enter .6s .1s ease both; }
.link:nth-child(3) { animation: enter .6s .2s ease both; }
.social { gap: 13px; margin-top: 24px; }
.social a { width: 47px; height: 47px; background: #faf3ef; color: var(--wine); }
.social a:hover { transform: translateY(-3px); }
@keyframes shooting {
  0% { transform: translate(0, -80px) rotate(35deg); opacity: 0; }
  8% { opacity: .8; }
  48% { opacity: .8; }
  65%, 100% { transform: translate(-65vw, 110vh) rotate(35deg); opacity: 0; }
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes halo { from { opacity: .55; transform: scale(.9); } to { opacity: 1; transform: scale(1.1); } }
@keyframes drift { to { transform: translate(45px, -80px); } }
@keyframes shimmer { 0%, 64% { left: -40%; } 92%, 100% { left: 140%; } }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@media (max-width: 480px) {
  body { padding: 23px 14px; }
  .panel { padding: 20px 17px 23px; }
  .intro { margin-top: 26px; }
  .portrait { width: 139px; height: 139px; }
  .meteor-one { right: -9%; }
  .meteor-three { right: -80%; }
}
@media (max-width: 360px) {
  body { padding-inline: 10px; }
  .panel { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .meteor { display: none; }
}

.intro { position: relative; isolation: isolate; overflow: hidden; padding-top: 7px; }
.intro::before {
  content: "";
  position: absolute;
  top: 12px;
  right: -110px;
  width: 110px;
  height: 3px;
  border-radius: 10px;
  background: linear-gradient(to left, transparent, #a34938 70%, #791f1b);
  box-shadow: -6px 0 12px #9e3b2e55;
  pointer-events: none;
  z-index: -1;
  animation: hero-comet 5s 1s ease-in infinite;
}
@keyframes hero-comet {
  0% { transform: translate(0, 0) rotate(-30deg); opacity: 0; }
  12% { opacity: .7; }
  48% { transform: translate(-490px, 180px) rotate(-30deg); opacity: .7; }
  55%, 100% { transform: translate(-530px, 200px) rotate(-30deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .intro::before { display: none; }
}
