:root {
  --bg: #07020f;
  --neon: #b14cff;
  --neon-2: #e07bff;
  --neon-soft: rgba(177, 76, 255, 0.35);
  --text: #f3e9ff;
  --muted: #b9a5d6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: "Tajawal", system-ui, sans-serif;
  background: radial-gradient(ellipse at 50% 120%, #1a0638 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
  overflow-x: hidden;
}

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.nebula {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(140, 40, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(220, 80, 255, 0.14), transparent 45%),
    radial-gradient(circle at 60% 10%, rgba(80, 40, 200, 0.15), transparent 40%);
  filter: blur(30px);
  animation: drift 30s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: translate(4%, -3%) rotate(6deg) scale(1.05); }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 40px 26px 28px;
  border-radius: 28px;
  background: rgba(16, 6, 34, 0.55);
  border: 1px solid rgba(177, 76, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 40px rgba(177, 76, 255, 0.25),
    inset 0 0 30px rgba(177, 76, 255, 0.08);
  text-align: center;
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
}

.avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
}

.avatar {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Reem Kufi Fun", sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #7a2bd6, #2a0a55 70%);
  box-shadow: 0 0 24px var(--neon), 0 0 60px var(--neon-soft), inset 0 0 18px rgba(255,255,255,0.15);
  text-shadow: 0 0 12px var(--neon-2);
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(224, 123, 255, 0.55);
  animation: spin 10s linear infinite;
}

.orbit span {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 20px var(--neon-2);
}

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

.name {
  font-family: "Reem Kufi Fun", sans-serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow:
    0 0 6px #fff,
    0 0 14px var(--neon-2),
    0 0 28px var(--neon),
    0 0 52px var(--neon);
  animation: flicker 5s infinite;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.6; }
}

.tagline {
  margin: 6px 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link {
  --d: 0s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(60, 20, 110, 0.55), rgba(25, 8, 50, 0.55));
  border: 1px solid rgba(177, 76, 255, 0.45);
  box-shadow: 0 0 10px rgba(177, 76, 255, 0.18);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--d);
}

.link:nth-child(1) { --d: .15s; }
.link:nth-child(2) { --d: .25s; }
.link:nth-child(3) { --d: .35s; }
.link:nth-child(4) { --d: .45s; }
.link:nth-child(5) { --d: .55s; }
.link:nth-child(6) { --d: .65s; }

.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform .7s;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--neon-2);
  box-shadow: 0 0 16px var(--neon), 0 0 40px var(--neon-soft);
  background: linear-gradient(135deg, rgba(110, 35, 190, 0.7), rgba(45, 12, 90, 0.7));
  outline: none;
}

.link:hover::before { transform: translateX(-120%); }

.link.featured {
  border-color: var(--neon-2);
  box-shadow: 0 0 14px var(--neon), inset 0 0 14px rgba(224, 123, 255, 0.15);
}

.icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(177, 76, 255, 0.18);
  border: 1px solid rgba(224, 123, 255, 0.4);
  color: var(--neon-2);
  filter: drop-shadow(0 0 6px var(--neon));
}

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

.label { flex: 1; text-align: right; }
.label small { color: var(--muted); font-size: 13px; }

.arrow {
  color: var(--neon-2);
  opacity: .6;
  transition: transform .25s, opacity .25s;
}

.link:hover .arrow { transform: translateX(-5px); opacity: 1; }

.foot {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  opacity: .7;
}

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