:root {
  --bg: #0b1020;
  --bg-soft: #121933;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: #b7c0e0;
  --primary: #7c9cff;
  --primary-2: #68e0cf;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(104, 224, 207, 0.16), transparent 24%),
    radial-gradient(circle at top left, rgba(124, 156, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #0a0f1f 0%, #0d1327 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 88px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.16);
  border: 1px solid rgba(124, 156, 255, 0.35);
  color: #dbe4ff;
  font-size: 14px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  margin: 0 0 20px;
}

.subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.tags span,
.meta-list span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dfe6ff;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #06101a;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-card,
.about-card,
.project-card,
.contact-card,
.footer {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #081120;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 18px;
}

.hero-card h2,
.about-card h3,
.project-card h3,
.contact-card h2 {
  margin-top: 0;
}

.section {
  padding: 30px 0 18px;
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.about-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card,
.project-card,
.contact-card,
.footer {
  padding: 24px;
}

.project-cover {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 156, 255, 0.22), rgba(104, 224, 207, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #f5f7ff;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.project-card p {
  color: var(--muted);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.contact-card {
  margin-top: 12px;
}

.contact-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.contact-list a {
  color: #d9e6ff;
  text-decoration: none;
}

.footer {
  margin: 32px auto 40px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .hero-inner,
  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .project-card,
  .about-card,
  .contact-card,
  .footer,
  .hero-card {
    border-radius: 18px;
  }

  .btn {
    width: 100%;
  }
}
