/* Team Card Styles */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.team-card img {
  object-fit: cover;
  object-position: center;
}

/* Hero Section */
.hero-section {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Focus Styles for Accessibility */
.team-card a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .team-card img {
    height: 200px;
  }

  .hero-section {
    min-height: 250px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }
}

/* Animation for Team Cards */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.team-card {
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: calc(0.1s * var(--index));
}

/* Ensure cards load sequentially */
.team-card:nth-child(1) { --index: 1; }
.team-card:nth-child(2) { --index: 2; }
.team-card:nth-child(3) { --index: 3; }
.team-card:nth-child(4) { --index: 4; }