:root {
  --bg: #0f1117;
  --bg-card: #161a23;
  --border: #232838;
  --text: #e6e8ef;
  --muted: #9ba3b4;
  --accent: #7c9cff;
  --accent-2: #5ef2c1;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124,156,255,0.15), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(94,242,193,0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

.card {
  width: 100%;
  max-width: 880px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}
.logo span {
  color: var(--accent-2);
  margin: 0 4px;
}

.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--accent); }

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 14px 0 36px;
}
.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f1117;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.hero__text h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  line-height: 1.1;
}
.role {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 600;
}
.tagline {
  margin: 0;
  color: var(--muted);
}

.tags {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(94, 242, 193, 0.08);
  border: 1px solid rgba(94, 242, 193, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

.block { margin: 28px 0; }
.block h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 14px;
}
.block p { margin: 0; line-height: 1.6; color: #d3d7e3; }

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.projects li {
  background: #1b2030;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.projects li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.projects h3 { margin: 0 0 6px; font-size: 1.05rem; }
.projects p { font-size: 0.92rem; color: var(--muted); }

.contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 24px;
}
.contacts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.contacts li > span:first-child {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contacts a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contacts a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.foot {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 560px) {
  .card { padding: 24px 20px; }
  .hero { flex-direction: column; text-align: center; }
  .card__head { flex-direction: column; align-items: flex-start; }
}
