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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #fff;
  background: #0f1117;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background-image: url("./bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px);
  transform: scale(1.04);
  z-index: -3;
}

.page-mask {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 35%),
    linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.88));
  z-index: -2;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.profile-card {
  width: min(560px, 100%);
  padding: 42px 36px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 28px;
  background: rgba(20, 20, 24, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: fadeUp 0.9s ease both;
}

.avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.78);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  margin-bottom: 20px;
}

.tag {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.58);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

h2 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
}

.intro {
  margin: 24px auto 0;
  max-width: 460px;
  line-height: 1.9;
  color: rgba(255,255,255,0.74);
}

.quote {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.58);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.buttons a,
.contact-links a {
  text-decoration: none;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
  transition: 0.25s ease;
}

.buttons a:hover,
.contact-links a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.24);
}

.section {
  margin-bottom: 28px;
  padding: 42px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(15, 15, 18, 0.56);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.section h3 {
  font-size: 32px;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}

.section p {
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
}

.skills {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills span,
.project-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.project-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  transition: 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.14);
}

.project-cover {
  height: 150px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

.project-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.project-card p {
  font-size: 14px;
  line-height: 1.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.contact {
  text-align: center;
}

.contact-links {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

footer {
  padding: 40px 0 60px;
  text-align: center;
  color: rgba(255,255,255,0.48);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .profile-card {
    padding: 36px 24px;
  }

  .section {
    padding: 30px 22px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 48px;
  }
}
