
.about-team {
  background-color: black;
  padding: 100px 60px;
  
  margin: 0 auto;
  text-align: center;
}


.team-header {
  font-size: 5rem;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 60px;
  padding-left: 10px;
  text-align: left;
  background-color: black;
  
}


.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  justify-items: center;
}


.flip-card {
  background-color: transparent;
  width: 100%;
  max-width: 320px;
  min-height: 420px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
}


.flip-card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  position: relative;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  background: #064e3b;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  box-sizing: border-box;
}


.flip-card-front {
  font-size: 1.8rem;
  font-weight: 700;
}

.flip-card-back {
  transform: rotateY(180deg);
  overflow-y: auto;
  gap: 20px;
}


.flip-card-back img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 0 0 4px white;
}


.team-info {
  font-size: 1.25rem;
  line-height: 1.6;
  color: white;
  text-align: left;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 8px;
}


.team-info::-webkit-scrollbar {
  width: 6px;
}
.team-info::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

