/* Background
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
} */

/* Section */
.team {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* background: radial-gradient(circle at 50% 50%, #1a1a2e, #0f0f1f); */
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.team h2 {
  font-size: 42px;
  margin-bottom: 15px;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: none;
}

.team .subtitle {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 60px;
  font-style: italic;
}

/* Grid */
.team-container {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  align-items: start;
}

/* Member Card */
.team-member {
  /* background: rgba(30, 30, 50, 0.8);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px 25px;
  width: 240px;
  background-clip: padding-box;
  position: relative;
  overflow: hidden; */
  width: 100%;
  max-width: 350px;
  position: relative;
  background: rgba(30, 30, 50, 0.8);
  border-radius: 24px;
  padding: 40px 30px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  /* opacity: 0; */
  /* transform: translateY(50px); */
}
.team-member:hover {
  transform: translateY(5px);
  scale: 0.98;
  /* transform: translateY(3px) rotateX(5deg); */
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* .team-member:before {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #ff00cc, #3333ff, #00f2ff);
  mask-composite: exclude;
  z-index: -1;
} */

.card-overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover .card-overlay {
  opacity: 1;
}

/* Image */
.img-box {
  display: flex;
  justify-content: center;
}

.team-member img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  /* border-image: linear-gradient(135deg, #ff00cc, #3333ff, #00f2ff) 1; */
  /* background: url("https://via.placeholder.com/150/2c2c2c/ffffff?text=User")
    center/cover; */
  transition: transform 0.4s ease;
}

/* Info */
.member-info {
  margin-top: 15px;
}

.member-info h3 {
  font-size: 20px;
  margin: 5px 0;
  color: #fff;
}

.member-info .role {
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
}


/* Social icons container */
.socials {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 2rem;
  opacity: 0; /* hidden initially */
  transform: translateY(15px); /* slightly below */
  transition: all 0.4s ease;
  pointer-events: none; /* prevents accidental hover when hidden */
}

/* Show when hovering over the card */
.team-member:hover .socials {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Individual icon styling */
.socials a {
  color: #ffffff;
  font-size: 2rem;
  transition: all 0.3s ease;
}

/* Neon hover glow on icons */
.socials a:hover {
  color: #00f2ff;
  text-shadow: 0 0 8px #00f2ff, 0 0 16px #ff00cc, 0 0 24px #00f2ff;
  transform: scale(1.2);
}


/* Responsive */
@media (max-width: 992px) {
  .team-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablet */
    gap: 25px;
  }
  .team-member {
    width: 280px;
    padding: 18px 12px;
  }
  .team-member img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 600px) {
  .team-container {
    grid-template-columns: 1fr; /* 1 per row on mobile */
    gap: 15px;
  }
  .team-member {
    width: 100%;
    max-width: 320px;
    padding: 12px 8px;
  }
  .team-member img {
    width: 80px;
    height: 80px;
  }
  .member-info h3 {
    font-size: 16px;
  }
  .member-info .role {
    font-size: 12px;
  }
  .socials a {
    font-size: 16px;
  }

  /* Fix heading + subtitle size for phone */
  .team h2 {
    font-size: 22px; /* smaller heading */
    line-height: 28px;
  }

  .team .subtitle {
    font-size: 14px; /* smaller subtitle */
  }
}
