
.welcome {
    height: 30vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('../assets/team-banner-2-1400x788.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #f5f5f5;
}

main{
    flex: 3;
}
.team {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 40px;
  justify-content: center;
  align-items: start;
  width: 100%;
  padding-top: 50px;
}

.member {
  background-color: #3c2415;
  color: #f5f5f5;
  border-radius: 25px;
  padding: 25px 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.member:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.member img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #8cc641;
  margin-bottom: 15px;
}

.member h3 {
  font-size: 1.3rem;
  color: #f5f5f5;
  margin: 10px 0 5px;
}

.member p {
  margin: 5px 0;
  font-size: 1rem;
}

.member .bio {
  font-size: 0.9rem;
  color: #e0e0e0;
  margin-top: 10px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.member:nth-child(1) { animation-delay: 0.1s; }
.member:nth-child(2) { animation-delay: 0.2s; }
.member:nth-child(3) { animation-delay: 0.3s; }
.member:nth-child(4) { animation-delay: 0.4s; }
.member:nth-child(5) { animation-delay: 0.5s; }
.member:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 900px) {
  .team {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .team {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .member {
    max-width: 90%;
    padding: 20px;
  }
}
