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

html {
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
}

body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #fff;
}

section {
  padding: 10rem 0;
}

.heading {
  text-transform: uppercase;
  font-size: 3.5rem;
  letter-spacing: 3px;
  margin-right: -3px;
  margin-bottom: 5rem;
  text-align: center;
  color: white;
  position: relative;
}

.heading::after {
  content: '';
  width: 10rem;
  height: 0.8rem;
  background-color: #45e19f;
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2rem;
}
.team-container {
  background-image: url('../../images/mosque_star_bg.png');
  background-size: cover;
  background-position: bottom;
  min-height: 100vh;
}
.card-wrapper {
  display: flex;
  align-items: center;
  align-content: center;
  flex-direction: column;
}

.card {
  width: 32rem;
  padding-bottom: 1rem;
  background-color: #ebeef8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  box-shadow: 0.5rem 0.5rem 3 rem rgba(0, 0, 0, 0.2);
}

.card .card-bg {
  width: 100%;
  height: 26rem;
  object-fit: cover;
  background-image: linear-gradient(90deg, rgb(43, 77, 130), rgb(40, 144, 172));
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 78%, 0% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0% 100%);
}

.profile-img {
  width: 15rem;
  height: 15rem;
  object-fit: cover;
  border-radius: 50%;
  margin-top: -11rem;
  z-index: 999;
  border: 1rem solid #ebeef8;
}

.card h1 {
  font-size: 2.5rem;
  color: #333;
  margin: 1.5rem 0;
}

.role {
  color: #777;
  font-size: 1.5rem;
  font-weight: 300;
}

.about {
  font-size: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  text-align: center;
  color: #333;
}

.card .btn {
  padding: 1rem 2.5rem;
  background-color: #445ae3;
  border-radius: 2rem;
  margin: 1rem 0;
  text-transform: uppercase;
  color: #eee;
  font-size: 1.4rem;
}

.card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0.5rem 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.card .btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.social-media {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  padding: 2rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-media i {
  font-size: 3rem;
  transition: color 0.5s;
}

.fa-facebook-square {
  color: #3b5999;
}

.fa-twitter-square {
  color: #55acee;
}

.fa-instagram {
  color: #e6683c;
}

.fa-linkedin {
  color: #0e76a8;
}

.fa-portrait {
  color: black;
}
.fa-at {
  color: black;
}

.fa-facebook-square:hover,
.fa-twitter-square:hover,
.fa-instagram:hover,
.fa-linkedin:hover,
.fa-at:hover,
.fa-portrait:hover {
  color: #45e19f;
}

@media screen and (min-width: 700px) {
  .card-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .card {
    margin: 2rem;
    transition: transform 0.5s;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .card:nth-child(1) {
    animation: fadeIn 0.5s 0.25s backwards;
  }
  .card:nth-child(2) {
    animation: fadeIn 0.5s 0.5s backwards;
  }
  .card:nth-child(3) {
    animation: fadeIn 0.5s 0.75s backwards;
  }
  .card:nth-child(4) {
    animation: fadeIn 0.5s 1s backwards;
  }
  .card:nth-child(5) {
    animation: fadeIn 0.5s 1.25s backwards;
  }
  .card:nth-child(6) {
    animation: fadeIn 0.5s 1.5s backwards;
  }
  .card:nth-child(7) {
    animation: fadeIn 0.5s 1.75s backwards;
  }
  .card:nth-child(8) {
    animation: fadeIn 0.5s 2s backwards;
  }
  .card:nth-child(9) {
    animation: fadeIn 0.5s 2.25s backwards;
  }
  .card:nth-child(10) {
    animation: fadeIn 0.5s 2.5s backwards;
  }
  .card:nth-child(11) {
    animation: fadeIn 0.5s 2.75s backwards;
  }
  .card:nth-child(12) {
    animation: fadeIn 0.5s 3s backwards;
  }
  .card:nth-child(13) {
    animation: fadeIn 0.5s 3.25s backwards;
  }
  .card:nth-child(14) {
    animation: fadeIn 0.5s 3.5s backwards;
  }
  .card:nth-child(15) {
    animation: fadeIn 0.5s 3.75s backwards;
  }
  .card:nth-child(16) {
    animation: fadeIn 0.5s 4s backwards;
  }
  .card:hover {
    transform: scale(1.05);
  }
}
