:root {
  --bg: #0a0e1a;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7ecf5;
  --muted: #9aa7bd;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(124, 92, 255, 0.10), transparent 60%),
    var(--bg);
}

.hero {
  text-align: center;
  padding: 88px 20px 56px;
}

.hero-inner { max-width: 720px; margin: 0 auto; }

.avatar-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--bg);
  display: block;
  object-fit: cover;
}

h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(90deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tagline {
  margin-top: 6px;
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
}

.bio {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

.socials {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #9b6bff);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}

.btn:hover { transform: translateY(-2px); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.stats {
  margin-top: 36px;
  display: flex;
  gap: 48px;
  justify-content: center;
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat .num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.stat .lbl {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 64px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .cover img { transform: scale(1.05); }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

.card-head h3 { font-size: 19px; }

.card-head h3 a { color: #fff; text-decoration: none; }

.card-head h3 a:hover { color: var(--accent2); }

.meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  align-items: center;
  white-space: nowrap;
}

.meta span { display: inline-flex; align-items: center; gap: 4px; }

.lang i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.desc {
  color: var(--muted);
  font-size: 14.5px;
  margin: 10px 0 14px;
  flex: 1;
}

.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.topic {
  font-size: 12px;
  color: var(--accent2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 3px 10px;
  border-radius: 999px;
}

.links { display: flex; gap: 14px; }

.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.links a:hover { color: var(--accent2); }

footer {
  text-align: center;
  padding: 30px 20px 44px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.heart { color: #ef4444; }

@media (max-width: 640px) {
  h1 { font-size: 38px; }
  .hero { padding-top: 60px; }
  .grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
}
