/*
  Pro links — visual language aligned with mshahzebraza.com
  Dot grid + edge lines borrowed from the portfolio cover / panel system
*/

:root {
  color-scheme: dark;

  --bg: #09090b;              /* zinc-950 */
  --fg: #fafafa;              /* zinc-50 */
  --muted: #a1a1aa;           /* zinc-400 */
  --muted-2: #71717a;         /* zinc-500 */
  --surface: #18181b;         /* zinc-900 */
  --surface-hover: #27272a;   /* zinc-800 */
  --border: rgba(255, 255, 255, 0.12);
  --edge: rgba(255, 255, 255, 0.08);
  --ring: rgba(255, 255, 255, 0.22);
  --pattern: rgba(255, 255, 255, 0.045);

  --font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 0.875rem;
  --max: 28rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--bg);
  color: var(--fg);
  position: relative;
  overflow-x: hidden;
}

/* Portfolio-style depth: soft wash + 10px dot grid + faint diagonal hatch */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -18%, rgba(255, 255, 255, 0.07), transparent 60%),
    radial-gradient(circle at 1px 1px, var(--pattern) 1px, transparent 0),
    repeating-linear-gradient(
      315deg,
      rgba(255, 255, 255, 0.028) 0,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 0,
      transparent 50%
    );
  background-size:
    auto,
    10px 10px,
    10px 10px;
  background-position: center, center, center;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 30%, rgba(9, 9, 11, 0.72) 100%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
}

.panel {
  border: 1px solid var(--edge);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.35);
}

.identity {
  text-align: center;
  padding: 2rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--edge);
  position: relative;
}

.identity::before,
.identity::after {
  content: "";
  position: absolute;
  left: -100vw;
  width: 200vw;
  height: 1px;
  background: var(--edge);
  pointer-events: none;
}

.identity::before {
  top: 0;
}

.identity::after {
  bottom: -1px;
}

.avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  margin: 0 auto 1.25rem;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--border),
    0 0 0 4px var(--bg),
    0 0 0 5px var(--edge);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  color: #86efac; /* green-300 — quiet but readable on zinc */
  background: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.28);
  font-weight: 500;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 0.625rem;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.bio {
  margin: 0 auto;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bio-role {
  color: var(--muted);
}

.bio-stack {
  color: var(--muted-2);
  font-size: 0.8125rem;
}

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

.link {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.75rem;
  padding: 0.875rem 1rem 0.875rem 0.875rem;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--edge);
  border-radius: 0;
  transition: background-color 160ms ease;
  animation: rise 480ms ease both;
}

.link:last-child {
  border-bottom: 0;
}

.link:nth-child(1) { animation-delay: 40ms; }
.link:nth-child(2) { animation-delay: 80ms; }
.link:nth-child(3) { animation-delay: 120ms; }
.link:nth-child(4) { animation-delay: 160ms; }
.link:nth-child(5) { animation-delay: 200ms; }
.link:nth-child(6) { animation-delay: 240ms; }

.link:hover {
  background: color-mix(in oklab, var(--surface-hover) 55%, transparent);
}

.link:active {
  background: color-mix(in oklab, var(--surface-hover) 75%, transparent);
}

.link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}

.link-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--fg);
}

.link-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.link-copy {
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-align: left;
  min-width: 0;
}

.link-label {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.link-caption {
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.35;
}

.link-arrow {
  color: var(--muted-2);
  font-size: 0.875rem;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.link:hover .link-arrow {
  color: var(--muted);
  transform: translate(1px, -1px);
}

.link:hover .link-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .link,
  .link-arrow {
    transition: none;
    animation: none;
  }
}
