:root {
  --bg-start: #bff5ff;
  --bg-end: #6f77ff;
  --card: #f7f7f7;
  --text: #1c1c1e;
  --muted: #5c5c66;
  --accent: #3b46d6;
  --accent-hover: #2a34b0;
  --line: rgba(0, 0, 0, 0.15);
  --shadow: rgba(0, 0, 0, 0.3);
  --project-bg: #ffffff;
  --project-hover: #eef0ff;
  --footer: #1c1c1e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-start: #1a2340;
    --bg-end: #0b0d1a;
    --card: #171923;
    --text: #ececf1;
    --muted: #a0a3b1;
    --accent: #8f97ff;
    --accent-hover: #b3b9ff;
    --line: rgba(255, 255, 255, 0.15);
    --shadow: rgba(0, 0, 0, 0.6);
    --project-bg: #20232f;
    --project-hover: #2a2e40;
    --footer: #c9cbd6;
  }
}

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

html {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 5rem 1rem 1.5rem;
  background: var(--bg-end);
  background: radial-gradient(circle, var(--bg-start) 0%, var(--bg-end) 82%);
  background-attachment: fixed;
}

.card {
  position: relative;
  width: 100%;
  max-width: 26rem;
  padding: 4.5rem 2rem 2rem;
  text-align: center;
  line-height: 1.6;
  background-color: var(--card);
  border-radius: 6px;
  box-shadow:
    inset 0 -3em 3em rgba(0, 0, 0, 0.06),
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0.3em 0.3em 1em var(--shadow);
}

.avatar {
  position: absolute;
  top: -60px;
  left: 50%;
  margin-left: -60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--card);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0.3em 0.3em 1em var(--shadow);
}

h1 {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.muted {
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.social::before,
.social::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social a {
  display: inline-flex;
  color: var(--text);
  transition: color 0.15s ease, transform 0.15s ease;
}

.social a:hover,
.social a:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
}

.projects h2 {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.project {
  display: block;
  padding: 1rem 1.25rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: var(--project-bg);
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.project:hover,
.project:focus-visible {
  background: var(--project-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-name {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--accent);
}

.project-desc {
  display: block;
  margin-top: 0.15rem;
}

.project-url {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

footer {
  font-size: 0.85rem;
  text-align: center;
  color: var(--footer);
}

footer a {
  color: inherit;
  text-decoration-color: var(--accent);
}

footer a:hover {
  color: var(--accent);
}

@media (max-width: 420px) {
  .card {
    padding-inline: 1.25rem;
  }
}
