/* Team Card — Premium Design */
.team-card {
  background: rgba(22, 33, 62, 0.7);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(230, 126, 34, 0.08);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.05);
}

.team-card:hover .team-card__photo-overlay {
  opacity: 1;
}

.team-card:hover .team-card__accent-line {
  width: 60px;
}

/* Photo area */
.team-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(26, 26, 46, 0.8);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.85) 0%,
    rgba(15, 15, 15, 0.2) 50%,
    transparent 100%
  );
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

/* Avatar fallback area */
.team-card__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
  position: relative;
}

.team-card__avatar svg,
.team-card__avatar .team-card__avatar-inner {
  width: 64px;
  height: 64px;
  color: rgba(212, 168, 67, 0.5);
}

.team-card__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.6) 0%,
    transparent 60%
  );
}

/* Card body */
.team-card__body {
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  position: relative;
}

.team-card__accent-line {
  display: block;
  width: 30px;
  height: 2px;
  margin: 0 auto 0.75rem;
  background: linear-gradient(90deg, #e67e22, #d4a843);
  transition: width 0.4s ease;
  border-radius: 1px;
}

.team-card__name {
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.team-card__title {
  font-size: 0.8rem;
  color: #e67e22;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Contact info */
.team-card__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.team-card__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: rgba(224, 224, 224, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-card__contact a:hover {
  color: #e67e22;
}

.team-card__contact a svg {
  flex-shrink: 0;
}

/* Social links */
.team-card__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 168, 67, 0.1);
}

.team-card__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.5);
  color: rgba(224, 224, 224, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
}

.team-card__social a:hover {
  background: rgba(230, 126, 34, 0.15);
  color: #e67e22;
  transform: translateY(-2px);
}

.team-card__social a svg {
  width: 14px;
  height: 14px;
}
