:root {
  --bg: #0d0f14;
  --panel: #14171f;
  --panel-2: #1b1f29;
  --border: #262b38;
  --gold: #cda86a;
  --teal: #4fd1c5;
  --text: #e9e7e2;
  --muted: #80889c;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  overflow-x: hidden;
}

/* ambient grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(207, 168, 106, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 168, 106, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.9), transparent 75%);
  pointer-events: none;
}

/* soft glow */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 209, 197, 0.10), transparent 70%);
  pointer-events: none;
}

.card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(20, 23, 31, 0.75);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* header */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 28px;
  color: var(--gold);
  position: relative;
  box-shadow: 0 0 0 1px rgba(207, 168, 106, 0.15), 0 0 30px rgba(207, 168, 106, 0.08);
  margin-bottom: 14px;
}

.avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(79, 209, 197, 0.25);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.05); }
}

.name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.name span { color: var(--gold); }

.role {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* terminal bio block */
.terminal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

.terminal .prompt { color: var(--teal); }
.terminal .path { color: var(--gold); }
.terminal .out { color: var(--text); }

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--teal);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* links */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  padding-left: 2px;
}

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

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .15s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}

.link-item:hover {
  border-color: rgba(207, 168, 106, 0.4);
  transform: translateY(-2px);
  background: var(--panel-2);
}

.link-item .perm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  min-width: 34px;
}

.link-item .icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(207, 168, 106, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.link-item .icon svg { width: 18px; height: 18px; }

.link-item .label {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
}

.link-item .sub {
  font-size: 11.5px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.link-item .arrow {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  transition: transform .2s ease, color .2s ease;
}

.link-item:hover .arrow {
  color: var(--teal);
  transform: translateX(3px);
}

/* footer */
.footer {
  margin-top: 26px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.footer .dot { color: var(--teal); }

@media (max-width: 380px) {
  .card { padding: 24px 18px; }
  .name { font-size: 19px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .avatar::after, .cursor { animation: none; }
}