:root {
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-color: #333;
  --accent-color: #4f46e5;
  --border-radius: 16px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

article[data-testid="test-profile-card"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

figure {
  margin: 0;
}

img[data-testid="test-user-avatar"] {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

header {
  margin-top: 1rem;
  text-align: center;
}

h2[data-testid="test-user-name"] {
  font-size: 2rem;
  text-align: center;
  margin: 0.5rem 0 0;
}

p[data-testid="test-user-bio"] {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.5rem;
}

nav[data-testid="test-user-social-links"] {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-block: 2rem;
}

nav a {
  color: var(--accent-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: #1d1b8e;
  outline: none;
}

section {
  width: 100%;
  margin-top: 1.5rem;
}

section h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  font-size: 1rem;
}

ul {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.5rem;
}

@media (min-width: 700px) {
  article[data-testid="test-profile-card"] {
    flex-direction: row;
    align-items: flex-start;
    max-width: 700px;
    gap: 2rem;
  }

  .profile-info {
    flex: 1;
  }

  header,
  p {
    text-align: left;
  }
}
