/* ---------- Team (با تیم آشنا شید) ---------- */

.team {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px 120px;
  --accent-2: #6ee7a8;
}

.team__head {
  text-align: start;
  margin-bottom: 40px;
  max-width: 640px;
}

.team__title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.team__desc {
  color: color-mix(in srgb, var(--accent) 55%, var(--text-muted));
  font-size: 0.95rem;
  line-height: 1.9;
  margin: 0;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 20px;
}

.team-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.team-card__visual {
  position: relative;
  height: 170px;
  border-bottom: 1px solid var(--border);
  background-color: #0e1414;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.08), transparent 60%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.05);
}


.team-card__role-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid;
  background: rgba(13, 13, 13, 0.65);
  direction: ltr;
}

.team-card:nth-child(odd) .team-card__role-tag {
  color: var(--accent);
  border-color: var(--accent);
}
.team-card:nth-child(even) .team-card__role-tag {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

/* فرزاد ابراهیمی (کارت دوم) هم آبی باشه، نه سبز */
.team-card:nth-child(2) .team-card__role-tag {
  color: var(--accent);
  border-color: var(--accent);
}

.team-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.team-card__role {
  font-size: 0.82rem;
  margin: 0;
}
.team-card:nth-child(odd) .team-card__role { color: var(--accent); }
.team-card:nth-child(even) .team-card__role { color: var(--accent-2); }
.team-card:nth-child(2) .team-card__role { color: var(--accent); }

.team-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 18px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.team-card__links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.team-card__links a {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.team-card__links a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

@media (max-width: 720px) {
  .team { padding: 20px 18px 80px; }
  .team__grid { grid-template-columns: 1fr; max-width: 380px; }
}
