.team {
  padding: var(--spacing-lg) var(--spacing-sm);
  background: var(--light-bg);
  text-align: center;
}

.team-container {
  max-width: var(--container-width);
  margin: auto;
}

.team h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-dark);
  position: relative;
}

.team h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #00bfff);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.team-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 50px;
}

.team-card-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.team-card.show {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--shadow-dark);
}

.team-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  transition: transform 0.4s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-card h3 {
  font-size: 1.4rem;
  margin-top: 15px;
  color: #222;
}

.team-card p {
  font-size: 1rem;
  color: #777;
  margin-bottom: 15px;
}

.team-socials a {
  margin: 0 8px;
  font-size: 1.2rem;
  color: #555;
  transition: color 0.3s ease, transform 0.3s ease;
}

.team-socials a:hover {
  color: #0077b5; /* LinkedIn Blue */
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .team-card-box {
    gap: 20px;
  }

  .team-card {
    padding: 15px;
  }

  .team-image img {
    height: 220px;
  }
}
