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

body {
  min-height: 100vh;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #fff;
  overflow-x: hidden;
  background: linear-gradient(135deg, #111827, #1d4ed8, #7c3aed);
  background-size: 300% 300%;
  animation: bgMove 12s ease infinite;
}

@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.45;
  animation: float 8s ease-in-out infinite;
}

.bubble-1 {
  width: 180px;
  height: 180px;
  left: 8%;
  top: 15%;
  background: #22d3ee;
}

.bubble-2 {
  width: 260px;
  height: 260px;
  right: 10%;
  top: 20%;
  background: #a855f7;
  animation-delay: 1.5s;
}

.bubble-3 {
  width: 140px;
  height: 140px;
  left: 20%;
  bottom: 12%;
  background: #38bdf8;
  animation-delay: 3s;
}

.bubble-4 {
  width: 220px;
  height: 220px;
  right: 18%;
  bottom: 10%;
  background: #f472b6;
  animation-delay: 4.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-35px) scale(1.08);
  }
}

.container {
  width: 92%;
  max-width: 1100px;
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 50px 0;
}

.profile-card {
  width: 100%;
  padding: 48px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  animation: cardIn 1s ease forwards;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
  }

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

.avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #22d3ee, #a855f7, #f472b6, #22d3ee);
  box-shadow: 0 0 35px rgba(34, 211, 238, 0.75);
  animation: rotateGlow 6s linear infinite;
}

.avatar span {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}

@keyframes rotateGlow {
  to {
    transform: rotate(360deg);
  }
}

.hello {
  color: #bae6fd;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 12px;
}

h2 {
  min-height: 34px;
  color: #67e8f9;
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 22px;
}

.description {
  max-width: 720px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

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

.info-card {
  padding: 26px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.icon {
  display: block;
  font-size: 34px;
  margin-bottom: 14px;
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.info-card p,
.info-card a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  line-height: 1.7;
}

.info-card a:hover {
  color: #67e8f9;
  text-decoration: underline;
}

.actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.primary {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.45);
}

.secondary {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.35);
}

body.light-mode {
  background: linear-gradient(135deg, #0f766e, #2563eb, #9333ea);
  background-size: 300% 300%;
}

body.light-mode .profile-card {
  box-shadow: 0 30px 90px rgba(34, 211, 238, 0.35);
}

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

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

  .description {
    font-size: 16px;
  }
}
