/* ============================================================
   team.css — Team Section
   ============================================================ */

#team {
  background-color: var(--surface-container-lowest);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* ── Team Card ───────────────────────────────────────────── */
.team-card {
  cursor: default;
}

.team-card-photo {
  aspect-ratio: 1 / 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  background: var(--surface-container-high);
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 3px solid var(--primary-container);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

html.light .team-card-photo {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: var(--primary-container);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  transition: filter 0.55s ease, transform 0.55s ease;
}

.team-card:hover .team-card-photo img {
  filter: grayscale(0%);
  transform: scale(1.08);
}

.team-card:hover .team-card-photo {
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  transform: translateY(-4px);
}

.team-card-photo .team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover .team-card-photo .team-overlay {
  opacity: 1;
}

/* LinkedIn hover badge */
.team-linkedin {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--secondary-container) 100%);
  border-radius: 50%;
  border: 3px solid var(--surface-container-lowest);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 10;
}

html.light .team-linkedin {
  background: linear-gradient(135deg, var(--primary-container) 0%, #4da6ff 100%);
  border-color: #fff;
}

.team-card:hover .team-linkedin {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.team-linkedin .material-symbols-outlined {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}

html.light .team-linkedin .material-symbols-outlined {
  color: #fff;
}

.team-card-info { text-align: center; }

.team-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.team-card-name a {
  color: inherit;
  text-decoration: none;
}

.team-card-name a:hover {
  color: var(--secondary-container);
}

html.light .team-card-name a:hover {
  color: var(--primary-container);
}

.team-card-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--secondary-container);
}

html.light .team-card-role {
  color: var(--primary-container);
}
