/* Enhanced Team Styles */
.team .team-card {
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team .team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team .team-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.team .team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.team .team-content {
  padding: 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team .team-content h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.team .team-content .role {
  font-size: 16px;
  color: var(--accent-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  display: block;
}

.team .team-content .email {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.team .team-content .email i {
  color: var(--accent-color);
}

.team .social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
}

.team .social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 18px;
}

.team .social a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team .team-image {
    height: 220px;
  }
  
  .team .team-content {
    padding: 20px;
  }
  
  .team .team-content h4 {
    font-size: 20px;
  }
  
  .team .social a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Loading animation */
.team-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.team-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 95, 34, 0.1);
  border-left: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}