/* Modern Team Cards */
.team {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
  padding: 120px 20px 60px;
}

.team h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe, #00b894);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.team-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.team-section-title {
  color: #888;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 32px 0 16px;
  position: relative;
  display: inline-block;
}
.team-section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6c5ce7, transparent);
  border-radius: 2px;
}

.team-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
}

.team-cards div.team-member {
  position: relative;
  width: 300px;
  height: 84px;
  font-size: 2em;
  text-align: center;
  transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  overflow: hidden;
}
.team-cards div.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,92,231,0.2), transparent);
  opacity: 0;
  transition: opacity 400ms;
}

.team-cards div.team-member:hover {
  transform: translateY(-6px);
  border-color: rgba(108,92,231,0.25);
  box-shadow: 0 12px 40px rgba(108,92,231,0.12), 0 0 0 1px rgba(108,92,231,0.08);
}
.team-cards div.team-member:hover::before {
  opacity: 1;
}

.team-cards span {
  border-radius: 50%;
  position: absolute;
  height: 14px;
  width: 14px;
  top: 58px;
  right: 18px;
  border: 2.5px solid #0a0a0f;
  z-index: 2;
  transition: transform 200ms;
}
.team-cards div.team-member:hover span {
  transform: scale(1.15);
}

.team-cards span.online {
  background-color: #00b894;
  box-shadow: 0 0 8px rgba(0,184,148,0.4);
}
.team-cards span.dnd {
  background-color: #ff6b6b;
  box-shadow: 0 0 8px rgba(255,107,107,0.4);
}
.team-cards span.idle {
  background-color: #fdcb6e;
  box-shadow: 0 0 8px rgba(253,203,110,0.4);
}
.team-cards span.offline {
  background-color: #636e72;
}

.team-cards h5 {
  position: absolute;
  left: 22px;
  top: 18px;
  text-align: left;
  font-size: 0.55em;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: -0.2px;
}

.team-cards h6 {
  position: absolute;
  left: 22px;
  top: 46px;
  text-align: left;
  font-size: 0.36em;
  font-weight: 500;
  color: #777;
}

.team-cards img {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(108,92,231,0.25);
  transition: all 300ms;
  object-fit: cover;
}
.team-cards div.team-member:hover img {
  border-color: rgba(108,92,231,0.5);
  box-shadow: 0 0 16px rgba(108,92,231,0.2);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .team {
    padding: 100px 16px 40px;
  }
  .team h1, .team h2.page-title {
    font-size: 1.8rem;
  }
  .team-subtitle {
    font-size: 0.88rem;
    margin-bottom: 24px !important;
  }
  .team-section-title {
    font-size: 0.72rem;
    margin: 24px 0 12px;
  }
  .team-cards {
    gap: 12px;
    width: 100%;
    padding: 0 4px;
  }
  .team-cards div.team-member {
    width: 100%;
    max-width: 100%;
    height: 78px;
  }
  .team-cards div.team-member:hover {
    transform: translateY(-3px);
  }
  .team-cards h5 {
    font-size: 0.5em;
    left: 16px;
  }
  .team-cards h6 {
    font-size: 0.33em;
    left: 16px;
  }
  .team-cards img {
    width: 46px;
    height: 46px;
    top: 16px;
    right: 12px;
  }
  .team-cards span {
    height: 12px;
    width: 12px;
    top: 52px;
    right: 14px;
  }
}

@media (max-width: 400px) {
  .team {
    padding: 90px 10px 30px;
  }
  .team h1, .team h2.page-title {
    font-size: 1.5rem;
  }
  .team-cards div.team-member {
    height: 72px;
    border-radius: 14px;
  }
  .team-cards h5 {
    font-size: 0.45em;
    left: 14px;
    top: 16px;
  }
  .team-cards h6 {
    font-size: 0.3em;
    left: 14px;
    top: 40px;
  }
  .team-cards img {
    width: 40px;
    height: 40px;
    top: 16px;
    right: 10px;
  }
  .team-cards span {
    height: 10px;
    width: 10px;
    top: 46px;
    right: 12px;
  }
}