/* LUXURY TEAM SECTION */

.team-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 100%, rgba(10, 25, 47, 0.4) 0%, transparent 70%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 2rem;
  perspective: 1000px;
}

.team-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.team-card:hover {
  transform: translateY(-10px) translateZ(20px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 201, 75, 0.1);
}

.team-card:hover::before {
  opacity: 1;
}

/* Internal contents */
.team-card>* {
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(20%) contrast(110%);
}

.team-card:hover img {
  transform: scale(1.08) translateZ(30px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 201, 75, 0.3);
  filter: grayscale(0%) contrast(100%);
}

.team-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.team-card .role {
  font-size: 0.85rem;
  color: #ffc94b;
  /* Gold accent */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: block;
}

.team-card p:not(.role) {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.team-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.team-card ul li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.team-card ul li::before {
  content: '✦';
  color: #ffc94b;
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

/* Team Contact Icons */
.team-contact {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.team-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.team-email svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.team-email:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Click Animation Class */
.team-card.clicked {
  animation: pulse-card 0.6s ease-out;
}

@keyframes pulse-card {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.97);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}