/* styles/sections/team.css */

.team {
  padding: 6rem 0;
  background-color: #0d0d0d;
  position: relative;
  overflow: hidden; /* Penting untuk menampung efek aura */
}

/* Dekorasi gradien latar belakang */
.team::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 164, 97, 0.04), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.team .container {
  position: relative;
  z-index: 1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  justify-content: center; /* Pusatkan kartu jika tidak memenuhi grid */
}

/* --- Kartu Tim --- */
.team-card {
  position: relative; /* Diperlukan untuk pseudo-elements */
  background-color: #101010; /* Latar belakang hitam polos (sedikit off-black) */
  border-radius: 12px;
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  overflow: visible; /* PERBAIKAN: Izinkan efek animasi terlihat di luar kartu */
}

.team-card::before,
.team-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  z-index: -1;
  animation: glitter-emanate 4s linear infinite;
}

/* Buat lapisan kedua dengan delay berbeda untuk efek yang lebih acak */
.team-card::after {
  animation-delay: -1s;
}

/* Keyframes untuk animasi menguar */
@keyframes glitter-emanate {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 5px rgba(201, 164, 97, 0.7),
                0 0 10px rgba(201, 164, 97, 0.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15); /* Mengembang keluar */
    box-shadow: 0 0 20px rgba(201, 164, 97, 0),
                0 0 30px rgba(201, 164, 97, 0); /* Memudar habis */
    opacity: 0;
  }
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 3px solid var(--brand-gold); /* Bingkai foto */
  box-shadow: 0 0 15px rgba(201, 164, 97, 0.4);
  background-color: #333; /* Placeholder background */
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h3 {
  font-size: 1.75rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.team-card p {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 400;
  line-height: 1.5;
}


/* --- Efek Aura Emas Beranimasi --- */



/* -- Aturan Responsif -- */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr; /* Satu kolom di mobile */
    max-width: 350px; /* Batasi lebar kartu */
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .team {
    padding: 4rem 0;
  }
  .team-card {
    min-height: 350px;
    padding: 2rem 1rem;
  }
  .team-photo {
    width: 120px;
    height: 120px;
  }
  .team-card h3 {
    font-size: 1.5rem;
  }
}