*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Geist Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #eceae3;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ===== Card Shell ===== */
.profile-card {
  background-color: #18181b;
  border-radius: 20px;
  padding: 32px 24px 24px;
  width: 100%;
  max-width: 320px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 2px 4px -1px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px -6px rgba(0, 0, 0, 0.14),
    0 4px 8px -2px rgba(0, 0, 0, 0.06);
}

/* ===== Avatar ===== */
.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2e2e32;
  display: block;
}

/* ===== Text Block ===== */
.card-text {
  text-align: center;
  margin-bottom: 24px;
}

.profile-name {
  font-family: "Geist Sans", sans-serif;
  font-size: clamp(1.125rem, 4vw, 1.375rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.profile-bio {
  font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
  font-style: italic;
  font-weight: 400;
  color: #71717a;
  line-height: 1.65;
  padding: 0 8px;
}

/* ===== Divider ===== */
.divider {
  height: 1px;
  background-color: #27272a;
  margin-bottom: 24px;
}

/* ===== SocialL Row ===== */
.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #27272a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-icon-btn:hover {
  background-color: #3f3f46;
  color: #f4f4f5;
  transform: translateY(-2px);
}

/* ===== CTA Buttons ===== */
.cta-row {
  display: flex;
  gap: 8px;
}

.btn-cta {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  font-family: "Geist Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-add-friend {
  background-color: transparent;
  border: 1.5px solid #3f3f46;
  color: #71717a;
}

.btn-add-friend:hover {
  border-color: #71717a;
  color: #e4e4e7;
  transform: translateY(-1px);
}

.btn-contact {
  background-color: #fafafa;
  border: 1.5px solid #fafafa;
  color: #18181b;
}

.btn-contact:hover {
  background-color: #e4e4e7;
  border-color: #e4e4e7;
  transform: translateY(-1px);
}

/* ===== Breakpoints ===== */
@media (min-width: 576px) {
  .profile-card {
    padding: 40px 32px 32px;
    max-width: 340px;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }
}

@media (min-width: 768px) {
  .profile-card {
    max-width: 360px;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.btn-cta:focus-visible,
.social-icon-btn:focus-visible {
  outline: 2px solid #a1a1aa;
  outline-offset: 3px;
}
