* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #fff;
}

.card-container {
  width: 95%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px auto;
  padding: 3px;
  background-color: #A2C5AC;
  border-bottom: 10px solid #7F6A93;
  border-radius: 10px;
  box-shadow: 5px 5px 8px #ccc;
}

.profile-img {
  width: 40%;
  max-height: 160px;
  object-fit: cover;
  object-position: 0 -20px;
  padding: 10px;
}

.about-text {
  width: 60%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  line-height: 1;
}
.about-text h3 {
  font-size: 1em;
}
.about-text h4 {
  font-size: 0.9em;
}
.about-text p {
  font-size: 0.8em;
}

.social-links {
  display: flex;
  justify-content: center;
}
.social-links > li {
  list-style: none;
  padding: 0 8px;
  display: flex;
}
.social-links > li > a {
  text-decoration: none;
}
.social-links > li > a > img {
  width: 25px;
  transition: transform 0.2s ease;
}
.social-links > li > a > img:hover {
  transform: scale(1.2);
}

@media only screen and (min-width: 420px) {
  .card-container {
    width: 420px;
    padding: 15px;
  }
  .profile-img {
    width: 150px;
    max-height: 180px;
    object-fit: cover;
    object-position: 0 -20px;
    padding: 5px;
  }
  .about-text {
    width: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
    line-height: 1.2;
  }
  .about-text h3 {
    font-size: 1.2em;
  }
  .about-text h4 {
    font-size: 1.1em;
  }
  .about-text p {
    font-size: 1em;
  }
}