:root {
  --ink: #f2f6ff;
  --muted: #9fb2d6;
  --blue: #60a5fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(37, 99, 235, 0.45), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(124, 58, 237, 0.35), transparent 70%),
    linear-gradient(180deg, #050b2e, #070e3a 60%, #0a0a35);
  background-attachment: fixed;
}

.card {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.avatar {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 26px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 200deg, #22d3ee, #3b82f6, #8b5cf6, #3b82f6, #22d3ee);
  box-shadow: 0 0 36px rgba(99, 102, 241, 0.55), 0 0 80px rgba(34, 211, 238, 0.25);
}

.avatar img,
.avatar .initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #070e3a;
}

/* Initials sit behind the photo and show only if the photo is missing. */
.avatar img { position: relative; z-index: 1; }
.avatar .initials {
  position: absolute;
  inset: 4px;
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  color: #7dd3fc;
}

h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.headline {
  margin: 0 auto;
  max-width: 340px;
  font-size: 16px;
  line-height: 1.45;
  color: #d4def5;
}

.headline i { color: #7dd3fc; font-style: normal; margin: 0 4px; }

.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
  font-size: 14px;
  color: var(--blue);
}

.location svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bio {
  margin: 0 auto 30px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.links { display: grid; gap: 16px; }

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(100deg, var(--c1), var(--c2));
  border: 1.5px solid var(--edge);
  box-shadow:
    0 0 18px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 22px rgba(255, 255, 255, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.link span { flex: 1; text-align: center; }

.link svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Chevron on the right edge */
.link::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  margin: 0 8px 0 4px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: rotate(45deg);
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow:
    0 0 28px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 22px rgba(255, 255, 255, 0.08);
  outline: none;
}

.link.li     { --c1: #0b3fb8; --c2: #0a2a86; --edge: #3b8eff; --glow: rgba(59, 142, 255, 0.5); }
.link.resume { --c1: #5b21b6; --c2: #3b1a85; --edge: #8b5cf6; --glow: rgba(139, 92, 246, 0.45); }
.link.gh     { --c1: #2f3e57; --c2: #1c2638; --edge: #5f7898; --glow: rgba(95, 120, 152, 0.35); }
.link.cal    { --c1: #0f766e; --c2: #0e7490; --edge: #2dd4bf; --glow: rgba(45, 212, 191, 0.45); }
.link.mail   { --c1: #6d28d9; --c2: #a21caf; --edge: #d946ef; --glow: rgba(217, 70, 239, 0.5); }

.email-note {
  margin: 28px 0 0;
  font-size: 15px;
  color: #b8c7e6;
}

footer {
  margin-top: 10px;
  font-size: 12px;
  color: #6f82aa;
}

@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
  .link:hover, .link:focus-visible { transform: none; }
}
