:root {
  --team-bg: var(--background-secondary);
  --team-text: var(--text-primary);
  --team-heading: var(--heading-primary);
  --team-subtitle: var(--aqua);
  --team-border: var(--go-blue);
}

body {
  background-color: var(--background-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
}

.team-section {
  background-color: var(--team-bg);
  padding: 2rem 0;
  text-align: center;
}

.team-section h2 {
  color: var(--team-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.team-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.team-member {
  background-color: var(--background-primary);
  border: 2px solid var(--team-border);
  border-radius: 8px;
  padding: 1rem;
  width: 20%;
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  border: 2px solid var(--fuchsia);
}

.team-photo {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-member h3 {
  color: var(--team-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0.5rem 0;
}

.team-member h4 {
  color: var(--team-subtitle);
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0.5rem 0;
  font-size: 1rem;
}

.team-member p {
  color: var(--team-text);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 30px;
  height: 30px;
  padding: 0.25rem 0.25rem;
  text-decoration: none;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.social-icon img {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  transform: scale(1.1);
  background: var(--fuchsia);
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .team-member {
    width: 45%;
  }
  
  @media (max-width: 480px) {
    .team-member {
      width: 83%;
    }
  }
}
