@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Rajdhani:wght@400;500;600&display=swap');

/* ── Variables ── */
:root {
  --bg:          #07070f;
  --bg-noise:    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  --surface:     rgba(255 255 255 / 0.04);
  --surface-h:   rgba(255 255 255 / 0.08);
  --border:      rgba(255 255 255 / 0.07);
  --border-h:    rgba(255 255 255 / 0.18);
  --text:        #e2e2f0;
  --muted:       rgba(226 226 240 / 0.45);
  --accent:      #7c3aed;
  --ring-a:      #7c3aed;
  --ring-b:      #3b82f6;
  --ring-c:      #ec4899;
}

[data-theme="light"] {
  --bg:        #f2f2fa;
  --surface:   rgba(255 255 255 / 0.75);
  --surface-h: rgba(255 255 255 / 1);
  --border:    rgba(0 0 0 / 0.08);
  --border-h:  rgba(0 0 0 / 0.2);
  --text:      #18182e;
  --muted:     rgba(24 24 46 / 0.45);
  --accent:    #6d28d9;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Body ── */
body {
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem 2.5rem;
  transition: background-color .35s, color .35s;
  overflow-x: hidden;
}

/* grid overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255 255 255 / .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255 255 255 / .025) 1px, transparent 1px);
  background-size: 48px 48px;
}
[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0 0 0 / .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0 0 0 / .04) 1px, transparent 1px);
}

/* radial glows */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 15% 60%, rgba(124 58 237 / .1) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 25%, rgba(59 130 246 / .08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(236 72 153 / .06) 0%, transparent 60%);
}

/* ── Toggle ── */
.toggle {
  position: fixed; top: 1rem; right: 1rem; z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .35rem .85rem;
  cursor: pointer;
  display: flex; align-items: center; gap: .4rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: .82rem; font-weight: 500;
  color: var(--muted);
  backdrop-filter: blur(12px);
  transition: border-color .2s, color .2s, background .35s;
}
.toggle:hover { border-color: var(--border-h); color: var(--text); }

/* ── Container ── */
.wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.75rem;
  animation: rise .65s cubic-bezier(.22,1,.36,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Profile ── */
.profile { display: flex; flex-direction: column; align-items: center; gap: .85rem; }

.avatar-shell {
  position: relative; width: 100px; height: 100px;
}
.avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, var(--ring-a), var(--ring-b), var(--ring-c), var(--ring-a));
  animation: spin 5s linear infinite;
}
.avatar-ring::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--bg);
  transition: background .35s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block;
}

.name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: .06em;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bio {
  font-size: .85rem; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}

/* ── Links ── */
.links { width: 100%; display: flex; flex-direction: column; gap: .65rem; }

.link {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 600;
  letter-spacing: .04em;
  backdrop-filter: blur(12px);
  transition: transform .22s, border-color .22s, background .22s, box-shadow .22s;
  position: relative; overflow: hidden;
}
.link::before {
  content: ''; position: absolute; inset: 0;
  background: var(--c, #7c3aed); opacity: 0;
  transition: opacity .22s;
}
.link:hover { transform: translateY(-2px); border-color: var(--c, #7c3aed); background: var(--surface-h); }
.link:hover::before { opacity: .07; }
.link:hover { box-shadow: 0 10px 32px -8px var(--g, rgba(124,58,237,.35)); }
.link:active { transform: translateY(0); }

.link svg { width: 22px; height: 22px; flex-shrink: 0; position: relative; z-index: 1; transition: transform .22s; }
.link:hover svg { transform: scale(1.12); }

.link-label { flex: 1; position: relative; z-index: 1; }

.link-arrow {
  position: relative; z-index: 1;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .22s, transform .22s;
  color: var(--c, #7c3aed);
  font-size: .9rem;
}
.link:hover .link-arrow { opacity: 1; transform: translateX(0); }

/* staggered entry */
.link { animation: rise .65s cubic-bezier(.22,1,.36,1) both; }
.link:nth-child(1) { animation-delay: .08s; }
.link:nth-child(2) { animation-delay: .14s; }
.link:nth-child(3) { animation-delay: .20s; }
.link:nth-child(4) { animation-delay: .26s; }
.link:nth-child(5) { animation-delay: .32s; }
.link:nth-child(6) { animation-delay: .38s; }
.link:nth-child(7) { animation-delay: .44s; }

/* ── Footer ── */
footer {
  position: relative; z-index: 1;
  font-size: .72rem; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
  margin-top: .25rem;
}
