* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
}

/* BACKGROUND */
.bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg,#60a5fa,#a5b4fc,#7dd3fc,#60a5fa);
  background-size: 300% 300%;
  animation: bgMove 16s linear infinite;
  z-index: -1;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.profile-card {
  width: 100%;
  max-width: 1200px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.35);
  text-align: center;
}

.avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #e0e7ff;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: 30px;
}

h2 {
  margin: 10px 0 18px;
  font-size: 18px;
  color: #1e40af;
}

.summary {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 18px;
}

.nav-card {
  min-height: 72px;
  padding: 22px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg,#ffffff,#eef2ff);
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 26px rgba(0,0,0,0.18);
  transition: transform .2s ease;
}

.nav-card:hover {
  transform: translateY(-4px);
}

/* ===== MOBILE ===== */
@media (max-width: 520px) {
  .profile-card {
    padding: 32px 22px;
    border-radius: 26px;
  }

  h1 { font-size: 24px; }
  h2 { font-size: 16px; }

  .summary {
    font-size: 15px;
    line-height: 1.7;
  }

  .nav-card {
    min-height: 64px;
    font-size: 15px;
  }
}
