
/* ======= TEAM SECTION STYLING ======= */
.team-section {
  padding: 100px 60px;
  background: linear-gradient(135deg, #0a0a2a 0%, #1a1a3a 50%, #0a0a2a 100%);
  position: relative;
  overflow: hidden;
}

.team-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.team-section .section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00f0ff, #00ff99, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.team-section .section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 4rem;
  color: #d0d0d0;
  font-weight: 300;
  line-height: 1.6;
}

/* Team Grid - 3 columns for better layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-top: 50px;
}

.team-member {
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.team-member:hover {
  transform: translateY(-10px);
}

/* Profile Picture Styling */
.profile-picture {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(135deg, #00f0ff, #00ff99, #ff00ff);
  background-clip: padding-box;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 240, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.profile-img::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #00f0ff, #00ff99, #ff00ff);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-member:hover .profile-img {
  transform: scale(1.08);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 240, 255, 0.4);
}

.team-member:hover .profile-img::before {
  opacity: 1;
}

/* Different colored borders based on position/gender */
.team-member:nth-child(1) .profile-img { border-color: #00f0ff; }
.team-member:nth-child(2) .profile-img { border-color: #00ff99; }
.team-member:nth-child(3) .profile-img { border-color: #ff00ff; }
.team-member:nth-child(4) .profile-img { border-color: #ff9900; }
.team-member:nth-child(5) .profile-img { border-color: #ff3366; }
.team-member:nth-child(6) .profile-img { border-color: #9966ff; }
.team-member:nth-child(7) .profile-img { border-color: #00ffff; }
.team-member:nth-child(8) .profile-img { border-color: #ff66cc; }
.team-member:nth-child(9) .profile-img { border-color: #66ff66; }

.member-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00f0ff;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #00f0ff, #00ff99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.member-position {
  font-size: 1rem;
  color: #d0d0d0;
  font-weight: 500;
  line-height: 1.4;
}

/* Social icons (optional) */
.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.team-member:hover .social-links {
  opacity: 1;
  transform: translateY(0);
}

.social-link {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f0ff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  background: rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 25px;
  }
}

@media (max-width: 768px) {
  .team-section {
    padding: 80px 30px;
  }
  
  .team-section .section-title {
    font-size: 2.5rem;
  }
  
  .team-section .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  
  .profile-img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .team-section {
    padding: 60px 20px;
  }
  
  .team-section .section-title {
    font-size: 2rem;
  }
  
  .team-section .section-subtitle {
    font-size: 1rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .profile-img {
    width: 110px;
    height: 110px;
  }
  
  .member-name {
    font-size: 1.2rem;
  }
  
  .member-position {
    font-size: 0.9rem;
  }
}

/* Floating animation */
.team-member {
  animation: floatMember 6s ease-in-out infinite;
}

.team-member:nth-child(2) { animation-delay: 0.5s; }
.team-member:nth-child(3) { animation-delay: 1s; }
.team-member:nth-child(4) { animation-delay: 1.5s; }
.team-member:nth-child(5) { animation-delay: 2s; }
.team-member:nth-child(6) { animation-delay: 2.5s; }
.team-member:nth-child(7) { animation-delay: 3s; }
.team-member:nth-child(8) { animation-delay: 3.5s; }
.team-member:nth-child(9) { animation-delay: 4s; }

@keyframes floatMember {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.team-member:hover {
  animation-play-state: paused;
}

/* Background glow effect */
.team-member::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  border-radius: 50%;
}

.team-member:hover::before {
  opacity: 1;
}
