/* ================= PAGE ================= */
.team-page {
  padding: 140px 32px 100px;
  text-align: center;
  position: relative;
}

.team-page::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(88,101,242,0.15), transparent 70%);
  filter: blur(120px);
  z-index: 0;
}


/* ================= HERO ================= */
.team-hero {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.team-hero h1 {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 18px;

  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-hero p {
  font-size: 18px;
  opacity: 0.65;
  line-height: 1.7;
}


/* ================= GRID ================= */
.team-grid {
  margin: 100px auto 0;
  max-width: 1100px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;

  position: relative;
  z-index: 1;
}


/* ================= CARD ================= */
.team-card {
  position: relative;
  padding: 44px 28px 36px;
  border-radius: 28px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );

  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);

  transition: all 0.35s ease;
  overflow: hidden;
}

/* glow border effect */
.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: 0.4s;
}

.team-card:hover::after {
  opacity: 1;
}

/* hover */
.team-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.15);
}


/* ================= AVATAR ================= */
.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;

  border: 3px solid rgba(255,255,255,0.2);

  box-shadow:
    0 0 0 6px rgba(255,255,255,0.03),
    0 0 25px rgba(255,255,255,0.08);

  transition: 0.35s;
}

.team-card:hover img {
  transform: scale(1.1);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.04),
    0 0 35px rgba(88,101,242,0.4);
}


/* ================= NAME ================= */
.team-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
}

.team-card h3 a {
  color: #fff;
  text-decoration: none;
  transition: 0.25s;
}

.team-card h3 a:hover {
  color: #5865f2;
  text-shadow: 0 0 12px rgba(88,101,242,0.6);
}


/* ================= ROLE ================= */
.role {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 6px;
  padding: 8px 20px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;

  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* shimmer effect */
.role::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  opacity: 0;
  transition: 0.4s;
}

.team-card:hover .role::after {
  opacity: 1;
}

.role i {
  margin-right: 6px;
  font-size: 14px;
}


/* ================= ROLE COLORS ================= */
.team-card.owner .role {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.team-card.admin .role {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.team-card.mod .role {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.team-card.dev .role {
  background: rgba(88, 101, 242, 0.2);
  color: #5865f2;
}


/* ================= TOP GLOW ================= */
.team-card.owner::before,
.team-card.admin::before,
.team-card.mod::before,
.team-card.dev::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: 0.4s;
}

.team-card.owner:hover::before {
  opacity: 1;
  background: radial-gradient(circle at top, rgba(241,196,15,0.3), transparent 60%);
}

.team-card.admin:hover::before {
  opacity: 1;
  background: radial-gradient(circle at top, rgba(231,76,60,0.3), transparent 60%);
}

.team-card.mod:hover::before {
  opacity: 1;
  background: radial-gradient(circle at top, rgba(52,152,219,0.3), transparent 60%);
}

.team-card.dev:hover::before {
  opacity: 1;
  background: radial-gradient(circle at top, rgba(88,101,242,0.3), transparent 60%);
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .team-hero h1 {
    font-size: 38px;
  }

  .team-grid {
    gap: 26px;
  }
}
