.team {
  margin-bottom: 30px;
  perspective: 1000px;
}

.team .thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.team:hover .thumbnail {
  transform: translateY(-10px) scale(1.05) rotateX(2deg);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
}

.team .team-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team:hover .team-img {
  transform: scale(1.1);
  opacity: 0.9;
}

.team .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  padding: 20px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.team:hover .caption {
  transform: translateY(0);
}

.team .caption h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.team .caption p {
  font-size: 0.9rem;
  margin: 10px 0;
}
