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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/home_bg.jpg') center/cover no-repeat;
  z-index: -2;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.theme-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.8rem 0;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(200, 220, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 50;
}

.nav-inner {
  width: 88%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  transform: scale(1.12);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.about-main {
  width: 60%;
  max-width: 800px;
  margin: 6rem auto 3rem;
  flex: 1;
}

.profile-section {
  text-align: center;
  margin-bottom: 3rem;
}

.avatar-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.5),
    rgba(200,220,255,0.3)
  );
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.08)
  );
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.15),
    inset 0 1px 1px rgba(255,255,255,0.3),
    inset 0 -1px 1px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease forwards;
  overflow: hidden;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }

.about-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.about-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.1)
  );
  border-color: rgba(255,255,255,0.35);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.2),
    0 0 20px rgba(255,255,255,0.08),
    inset 0 1px 1px rgba(255,255,255,0.35);
}

.about-card:hover::before {
  opacity: 1;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-left: 0.6rem;
  position: relative;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.2em;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.9),
    rgba(200,220,255,0.6)
  );
  border-radius: 2px;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hobby-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.hobby-item:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

.hobby-icon {
  font-size: 1.8rem;
}

.hobby-name {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-footer {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 0;
}

#dynamic-signature {
  margin-bottom: 0.5rem;
  transition: opacity 0.8s ease;
}

.visit-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(200, 220, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: 0.25s ease;
}

.visit-badge:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
  .about-main {
    width: 90%;
    margin-top: 5rem;
  }

  .hobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-list {
    justify-content: center;
  }

  .about-card {
    padding: 1.4rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hobby-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .hobby-item {
    padding: 0.8rem;
  }

  .skill-tags {
    justify-content: center;
  }
}
