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

:root {
  --bg: #3a3a3a;
  --card-bg: #4a4a4a;
  --border: #5e5e5e;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --radius: 20px;
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  --link-hover-bg: rgba(255,255,255,0.07);
}

[data-theme="light"] {
  --bg: #eef1f5;
  --card-bg: #ffffff;
  --border: #dde2ea;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  --link-hover-bg: #eff6ff;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

/* ── Avatar photo circle ── */
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Name & title ── */
.name {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1rem;
}

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

.link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  transition: color 0.18s ease;
}

.link:hover {
  background: var(--link-hover-bg);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.link:hover svg {
  color: var(--accent-hover);
}

/* ── Theme toggle ── */
.theme-toggle {
  position: fixed;
  top: 1.1rem;
  right: 1.25rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, color 0.18s;
  width: 36px;
  height: 36px;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── Footer ── */
.footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  body {
    padding: 1rem;
    justify-content: flex-start;
    padding-top: 3rem;
  }

  .card {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .avatar {
    width: 84px;
    height: 84px;
  }

  .name {
    font-size: 1.35rem;
  }

  .link {
    font-size: 0.82rem;
    padding: 0.65rem 0.9rem;
  }
}
