:root {
  --page: #f3f2ef;
  --surface: #fff;
  --text: #191919;
  --muted: #5e5e5e;
  --line: #d9d9d9;
  --accent: #0a66c2;
  --accent-contrast: #fff;
  --soft: #e8f1fa;
}

.profile-layout {
  width: min(100%, 54rem);
  margin-inline: auto;
}

.profile-card {
  overflow: hidden;
}

.profile-cover {
  height: clamp(7rem, 22vw, 11rem);
  background:
    #0b3970 url("../header-network.svg") center 48% / cover no-repeat;
}

.profile-intro {
  padding: 0 1.5rem 1.6rem;
}

.profile-avatar {
  display: block;
  width: 7rem;
  height: 7rem;
  margin-top: -3.5rem;
  object-fit: cover;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: #dbe8f5;
}

.profile-intro h1 {
  margin: 0.55rem 0 0.1rem;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.profile-subtitle,
.profile-location {
  margin: 0.3rem 0;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.profile-section {
  margin-top: 1rem;
  padding: 1.35rem 1.5rem;
}

.profile-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.35;
}

.profile-section p:last-child {
  margin-bottom: 0;
}

.profile-referral {
  border-left: 4px solid var(--accent);
}

.skills-section {
  overflow: hidden;
}

.skills-cloud {
  position: relative;
  display: flex;
  min-height: 8rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1.1rem;
  padding: 1rem 0.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid #c9dced;
  border-radius: 999px;
  background: var(--soft);
  color: #174b79;
  font-size: 1rem;
  font-weight: 650;
}

.skill-tag:nth-child(odd) { transform: rotate(-4deg) translateY(-0.4rem); }
.skill-tag:nth-child(even) { transform: rotate(3deg) translateY(0.45rem); }

@media (max-width: 540px) {
  .profile-intro,
  .profile-section { padding-inline: 1rem; }
  .profile-avatar { width: 6rem; height: 6rem; margin-top: -3rem; }
}
