.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6rem;

  margin-top: 20vh;
  margin-bottom: 50vh;
}

.team-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.team-card {
  background-color: #0a0a0a;
  display: flex;
  flex-direction: column;
  min-width: 288px;
  min-height: 403px;

  border-radius: 21px;
  justify-content: center;
  align-items: center;

  position: relative;

  transition: all 0.4s ease-in-out;
}

.team-card::before{
  position: absolute;
  content: "";
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background-color: rgba(0, 0, 0, 0.007);
  border-radius: 21px;
  transition: all 0.4s ease-in-out;
  z-index: -1;
}

.team-card:hover::before{
  position: absolute;
  content: "";
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background-color: aqua;
  border-radius: 21px;
  z-index: -1;
}

.mem1{
  background: url('../img/team/PasanSilva.png');
}

.mem2{
  background: url('../img/team/HiranDalpatadu.png');
}

.mem3{
  background: url('../img/team/RovinFernando.png');
}

.mem4{
  background: url('../img/team/KanishkaArochana.png');
}

.member-photo {
  width: 100%;
  flex-grow: 1;
  position: relative;
  border-radius: 21px 21px 0 0;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}



.mini-socials {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.mini-socials a{
  filter: grayscale(100%);
  transition: filter 0.4s ease,
              transform 0.4s ease;
}

.mini-socials a:hover{
  filter: grayscale(0);
  transform: scale(110%);
}

.member-name {
  font-weight: 500;
  font-size: 18px;
  line-height: 29px;
  text-align: center;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.member-role {
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}
