/* =========================================================
   MEET THE TEAM - Technogenesis REDESIGN
   Uses existing Force Fest tokens (--ff-cyan, --ff-purple,
   --ff-bg, --ff-text, etc.) from forcefest-modern.css.
   Mirrors the visual language of the Event Cards, Timeline
   and About section: dark glass surfaces, thin cyan/purple
   borders, soft glows, Sora + Oxanium/Tektur typography.
   ========================================================= */

.ff-team {
  position: relative;
  padding: clamp(60px, 8vw, 120px) clamp(16px, 4vw, 80px)
    clamp(80px, 9vw, 140px);
  background: var(--ff-bg, #070710);
  overflow: hidden;
  isolation: isolate;
} /* Faint circuit grid, same treatment as About section */
.ff-team-bg {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 30%,
    transparent 78%
  );
  z-index: -1;
  pointer-events: none;
} /* Soft glow blobs - cyan left, purple right, mirrors footer palette */
.ff-team-glow-a {
  position: absolute;
  left: -140px;
  top: 10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.ff-team-glow-b {
  position: absolute;
  right: -160px;
  bottom: -10%;
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(155, 48, 255, 0.14),
    transparent 70%
  );
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
} /* Minimal floating particles - a handful of static dots that pulse gently */
.ff-team-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ff-cyan, #00e5ff);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: ffTeamPulse 4.5s ease-in-out infinite;
}
.ff-team-particle.p2 {
  background: var(--ff-purple, #9b30ff);
  box-shadow: 0 0 8px rgba(155, 48, 255, 0.8);
  animation-delay: 1.1s;
}
.ff-team-particle.p3 {
  animation-delay: 2.3s;
}
.ff-team-particle.p4 {
  background: var(--ff-purple, #9b30ff);
  box-shadow: 0 0 8px rgba(155, 48, 255, 0.8);
  animation-delay: 3.1s;
}
@keyframes ffTeamPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.6);
  }
} /* ─── Grid ──────────────────────────────────────────── */
.ff-team-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(20px, 2.6vw, 30px);
  max-width: 1240px;
  margin: 0 auto;
}

.ff-team-card {
  position: relative;
  flex: 0 1 250px;
  display: flex;
  flex-direction: column;
  border-radius: var(--ff-radius-lg, 20px);
  background: linear-gradient(
    180deg,
    var(--ff-bg-2, #0d0d1a) 0%,
    rgba(9, 9, 22, 0.98) 100%
  );
  border: 1px solid var(--ff-border-dim, rgba(255, 255, 255, 0.08));
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ff-team-card[data-span="wide"],
#meettheteam .card[data-span="wide"] {
  flex-basis: min(100%, 540px);
  width: min(100%, 540px);
}
.ff-team-card:hover,
.ff-team-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--ff-border, rgba(0, 229, 255, 0.18));
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.08),
    0 22px 44px -18px rgba(0, 229, 255, 0.28),
    0 10px 30px rgba(0, 0, 0, 0.55);
} /* Animated top-edge glow bar, same motif as Event Cards */
.ff-team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ff-cyan, #00e5ff) 30%,
    var(--ff-purple, #9b30ff) 70%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 4;
}
.ff-team-card:hover::before,
.ff-team-card:focus-within::before {
  opacity: 1;
} /* Corner accent marker, matching Event Card language */
.ff-team-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-right: 1px solid var(--ff-border, rgba(0, 229, 255, 0.35));
  border-bottom: 1px solid var(--ff-border, rgba(0, 229, 255, 0.35));
  border-radius: 0 0 var(--ff-radius-lg, 20px) 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 4;
}
.ff-team-card:hover::after,
.ff-team-card:focus-within::after {
  opacity: 1;
} /* ─── Photo ─────────────────────────────────────────── */
.ff-team-photo-wrap {
  position: relative;
  margin: 18px 18px 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--ff-radius, 12px);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: #07101a;
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
.ff-team-card:hover .ff-team-photo-wrap,
.ff-team-card:focus-within .ff-team-photo-wrap {
  border-color: rgba(0, 229, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.12),
    0 0 26px rgba(0, 229, 255, 0.22);
}
.ff-team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.92) saturate(1.05);
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.6s ease;
}
.ff-team-card:hover .ff-team-photo-wrap img,
.ff-team-card:focus-within .ff-team-photo-wrap img {
  transform: scale(1.045);
  filter: brightness(1) saturate(1.15);
} /* Thin scan-line overlay, subtle - echoes event card texture */
.ff-team-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
} /* ─── Body ──────────────────────────────────────────── */
.ff-team-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}
.ff-team-name {
  font-family: var(--p3-font-d, "Tektur", sans-serif);
  font-size: 1.02rem;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}
.ff-team-card:hover .ff-team-name,
.ff-team-card:focus-within .ff-team-name {
  color: var(--ff-cyan, #00e5ff);
}
.ff-team-role {
  font-family: "Sora", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ff-text-dim, #8ba5b5);
  margin: 0;
} /* Leadership roles get a small purple tint to add hierarchy without changing size */
.ff-team-card[data-tier="lead"] .ff-team-role {
  color: #c79bff;
}
.ff-team-socials {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ff-border-dim, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ff-team-social-link {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: var(--ff-text-dim, #8ba5b5);
  background: rgba(255, 255, 255, 0.02);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}
.ff-team-social-link svg {
  width: 14px;
  height: 14px;
}
.ff-team-social-link:hover,
.ff-team-social-link:focus-visible {
  color: var(--ff-cyan, #00e5ff);
  border-color: rgba(0, 229, 255, 0.6);
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
} /* ─── Responsive ────────────────────────────────────── */
@media (max-width: 980px) {
  .ff-team-card {
    flex-basis: 220px;
  }
}
@media (max-width: 640px) {
  .ff-team-grid {
    gap: 18px;
  }
  .ff-team-card {
    flex-basis: 44%;
  }
  .ff-team-name {
    font-size: 0.96rem;
  }
}
@media (max-width: 420px) {
  .ff-team-card {
    flex-basis: 100%;
    max-width: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-team-card,
  .ff-team-photo-wrap,
  .ff-team-photo-wrap img,
  .ff-team-name,
  .ff-team-social-link,
  .ff-team-particle {
    transition: none !important;
    animation: none !important;
  }
} /* =========================================================
   TEAM CONTACT CTA + BLUE INTERACTION POLISH
   ========================================================= */
.ff-team-contact-btn {
  position: relative;
  width: 100%;
  min-height: 38px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--ff-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.035);
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.ff-team-contact-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(0, 229, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.ff-team-contact-btn span,
.ff-team-contact-btn svg {
  position: relative;
  z-index: 1;
}
.ff-team-contact-btn svg {
  transition: transform 0.35s ease;
}
.ff-team-contact-btn:hover,
.ff-team-contact-btn:focus-visible {
  color: #00f2ff;
  border-color: rgba(0, 229, 255, 0.82);
  background: rgba(0, 229, 255, 0.11);
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.22),
    inset 0 0 16px rgba(0, 229, 255, 0.04);
  transform: translateY(-2px);
}
.ff-team-contact-btn:hover::before,
.ff-team-contact-btn:focus-visible::before {
  transform: translateX(120%);
}
.ff-team-contact-btn:hover svg,
.ff-team-contact-btn:focus-visible svg {
  transform: translateX(4px);
} /* Stronger cyan/blue hover language for the entire team member card. */
.ff-team-card {
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ff-team-card:hover,
.ff-team-card:focus-within {
  border-color: rgba(0, 229, 255, 0.62);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.16),
    0 0 28px rgba(0, 229, 255, 0.2),
    0 22px 44px -18px rgba(0, 229, 255, 0.34),
    0 10px 30px rgba(0, 0, 0, 0.55);
}
.ff-team-card:hover::before,
.ff-team-card:focus-within::before {
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #00e5ff 24%,
    #55f5ff 50%,
    #00e5ff 76%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: ffTeamBlueSweep 1.7s linear infinite;
}
@keyframes ffTeamBlueSweep {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.ff-team-card:hover .ff-team-photo-wrap,
.ff-team-card:focus-within .ff-team-photo-wrap {
  border-color: rgba(0, 229, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.16),
    0 0 30px rgba(0, 229, 255, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .ff-team-card:hover::before,
  .ff-team-card:focus-within::before {
    animation: none !important;
  }
}
