:root {
  --primary-color: #0f172a;
  --text-color: #e2e8f0;
  --text-light: #72afc2;
  --secondary-color: #1e293b;
}

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

body {
  font-family: system-ui, sans-serif;
  background: var(--primary-color);
  color: var(--text-color);
  padding-bottom: 1.5rem;
}

.header {
  background-color: var(--secondary-color);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.header > nav > ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.header > nav > ul,
.header a {
  text-decoration: none;
  color: var(--text-color);
}

.component {
  color: var(--text-color);
  font-size: 1rem;
}

.component span {
  color: var(--text-light);
  font-weight: bold;
}

.card-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.profile-card {
  background: var(--secondary-color);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  width: 90%;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease;
  border: 1px solid #334155;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.profile-avatar {
  margin-bottom: 1rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #475569;
}

.profile-header {
  margin-bottom: 1rem;
  text-align: start;
  width: 90%;
  margin-inline: auto;
}

.user-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
}

.user-time {
  font-size: 0.9rem;
  color: #94a3b8;
}

.user-bio {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  width: 90%;
  margin-inline: auto;
  text-align: left;
}

.social-links ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.social-links img {
  width: 28px;
  height: 28px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  filter: brightness(0.9);
}

.social-links a:hover img {
  opacity: 0.7;
  transform: scale(1.1);
}

.profile-section {
  background-color: var(--primary-color);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 400px;
}

.profile-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border-color: #475569;
}

.profile-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1rem;
  text-align: start;
}

.profile-section .list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.list li {
  margin-bottom: 0.3rem;
  width: fit-content;
}

.list li::marker {
  color: #64748b;
}

a:focus {
  outline: 2px solid #818cf8;
  border-radius: 5px;
}

.hobbies-and-dislike-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .profile-card {
    width: 70%;
    display: flex;
    gap: 1rem;
  }

  .header {
    flex-direction: row;
    justify-content: space-around;
  }

  .component {
    font-size: 1.2rem;
  }

  .profile-header {
    margin-inline: 0;
  }

  .hobbies-and-dislike-section > * {
    flex: 1;
  }

  .social-links ul {
    justify-content: start;
  }

  .user-bio {
    line-height: 160%;
    margin-inline: 0;
  }

  .left {
    text-align: start;
    padding-inline: 10px;
  }
}

@media (min-width: 1024px) {
  body {
    height: 100vh;
  }

  .component {
    font-size: 1.5rem;
  }

  .header > nav > ul {
    gap: 3rem;
  }

  .header nav a:hover {
    text-decoration: underline;
    color: var(--text-light);
  }

  .card-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 82vh;
  }

  .hobbies-and-dislike-section {
    flex-direction: row;
  }
}
