/* ========== Team Page Styles ========== */

/* --- Leadership Section --- */
.team-leadership {
  padding: var(--section-padding) 0;
}

.team-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.team-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gray-900);
  margin: 12px 0 16px;
}

.team-section-header p {
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Leader Card --- */
.leader-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: center;
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.leader-image {
  position: relative;
}

.leader-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.leader-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a0a2e 0%, #16082a 50%, #0d0618 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.leader-placeholder svg {
  width: 80px;
  height: 80px;
  color: rgba(255, 255, 255, 0.2);
}

.leader-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.leader-info {
  position: relative;
}

.leader-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.leader-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.leader-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--primary-600);
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid var(--primary-300);
}

.leader-bio {
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
}

.leader-contact {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.leader-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.leader-link:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
  background: var(--primary-50);
}

.leader-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Supervisors Section --- */
.team-supervisors {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, var(--gray-50), white);
}

.supervisors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* --- Team Card (Supervisors) --- */
.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(147, 51, 234, 0.12);
}

.team-card-image {
  position: relative;
  overflow: hidden;
}

.team-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a0a2e 0%, #16082a 50%, #0d0618 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-placeholder svg {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.2);
}

.team-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  display: flex;
  justify-content: flex-end;
}

.team-role-badge {
  padding: 4px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.team-card-body {
  padding: 24px;
}

.team-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.team-role {
  color: var(--primary-600);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.team-bio {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-card-stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.team-stat {
  text-align: center;
  flex: 1;
}

.team-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-600);
}

.team-stat span {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Team Members Section --- */
.team-members {
  padding: var(--section-padding) 0;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* --- Member Card --- */
.member-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(147, 51, 234, 0.1);
  border-color: var(--primary-200);
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  position: relative;
}

.member-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a0a2e, var(--primary-800));
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-placeholder svg {
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.3);
}

.member-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.member-card p {
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* --- Team Values Section --- */
.team-values {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, #1a0a2e 0%, #16082a 50%, #0d0618 100%);
  position: relative;
  overflow: hidden;
}

.team-values::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.team-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.team-value {
  text-align: center;
  padding: 32px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  transition: transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}

.team-value:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.team-value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.team-value h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.team-value p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .leader-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px;
  }

  .leader-placeholder {
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .leader-photo {
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
  }

  .leader-info {
    text-align: center;
  }

  .leader-quote {
    padding-left: 0;
    border-left: none;
    border-top: 3px solid var(--primary-300);
    padding-top: 16px;
  }

  .leader-contact {
    justify-content: center;
  }

  .supervisors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  .team-section-header {
    margin-bottom: 32px;
  }

  .team-section-header h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .leader-card {
    padding: 24px;
    gap: 28px;
  }

  .leader-placeholder {
    max-width: 240px;
    aspect-ratio: 1 / 1;
  }

  .leader-photo {
    max-width: 280px;
    aspect-ratio: 3 / 4;
  }

  .leader-info h3 {
    font-size: 1.5rem;
  }

  .leader-quote {
    font-size: 1.05rem;
  }

  .leader-bio {
    font-size: 0.9rem;
  }

  .leader-contact {
    gap: 10px;
  }

  .leader-link {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .supervisors-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .member-card {
    padding: 24px 16px;
  }

  .member-avatar {
    width: 80px;
    height: 80px;
  }

  .team-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .team-value {
    padding: 24px 16px;
  }

  .team-value-icon {
    font-size: 2rem;
  }

  .team-value h4 {
    font-size: 0.95rem;
  }

  .team-value p {
    font-size: 0.82rem;
  }
}

/* --- Responsive: Small Mobile --- */
@media (max-width: 480px) {
  .leader-card {
    padding: 20px;
    gap: 24px;
  }

  .leader-placeholder {
    max-width: 180px;
  }

  .leader-badge {
    font-size: 0.7rem;
    padding: 5px 16px;
  }

  .leader-info h3 {
    font-size: 1.3rem;
  }

  .leader-contact {
    flex-direction: column;
    align-items: center;
  }

  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .member-card {
    padding: 20px 12px;
  }

  .member-avatar {
    width: 64px;
    height: 64px;
  }

  .member-card h4 {
    font-size: 0.9rem;
  }

  .member-card p {
    font-size: 0.78rem;
  }

  .team-values-grid {
    grid-template-columns: 1fr;
  }

  .team-card-body {
    padding: 20px 16px;
  }

  .team-card-body h3 {
    font-size: 1.1rem;
  }

  .team-card-stats {
    gap: 8px;
  }

  .team-stat strong {
    font-size: 0.95rem;
  }

  .team-stat span {
    font-size: 0.68rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .team-card:hover,
  .member-card:hover,
  .team-value:hover {
    transform: none;
  }
}