/* Interactive Team Section CSS */

.team-showcase {
  width: 100%;
  margin: 60px 0;
  padding: 0;
  background: #fff;
}

.team-showcase-title {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.team-showcase-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e4405f;
  margin-bottom: 15px;
}

.team-showcase-title p {
  font-size: 1.1rem;
  color: #666;
}

.team-display {
  position: relative;
  margin-bottom: 60px;
  min-height: 600px;
}

.main-member-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: white;
}

.main-member-image img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position:top;
  display: none;
  transition: opacity 0.5s ease;
  background: white;
}

.main-member-image img.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.main-member-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.member-details {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  max-width: 600px;
  padding: 40px;
  z-index: 2;
}

.member-details h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.member-details h3.active {
  opacity: 1;
  transform: translateY(0);
}

.member-details .role {
  font-size: 1.1rem;
  color: #e4405f;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.1s;
}

.member-details .role.active {
  opacity: 1;
  transform: translateY(0);
}

.member-details .description {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.2s;
}

.member-details .description.active {
  opacity: 1;
  transform: translateY(0);
}

.member-social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.3s;
}

.member-social-links.active {
  opacity: 1;
  transform: translateY(0);
}

.member-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  transition: all 0.3s ease;
  text-decoration: none;
}

.member-social-links a.company-logo-link {
  width: auto;
  height: 45px;
  padding: 5px 15px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.member-social-links a.company-logo-link img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.member-social-links a:hover {
  background: #e4405f;
  color: white;
  transform: translateY(-3px);
}

.member-social-links a.company-logo-link:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
  transform: translateY(-3px);
}

.team-selector {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.team-member-circle {
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.circle-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 auto 15px;
}

.circle-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  background: white;
}

.team-member-circle:hover .circle-image {
  transform: scale(1.05);
}

.team-member-circle:hover .circle-image img {
  filter: grayscale(50%);
}

.team-member-circle.active .circle-image {
  border-color: #e4405f;
  box-shadow: 0 5px 20px rgba(228, 64, 95, 0.3);
}

.team-member-circle.active .circle-image img {
  filter: grayscale(0%);
}

.circle-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin-bottom: 5px;
}

.circle-role {
  font-size: 0.85rem;
  color: #999;
  transition: all 0.3s ease;
}

.team-member-circle.active .circle-name {
  color: #e4405f;
}

.team-member-circle.active .circle-role {
  color: #e4405f;
}

/* Responsive Design */
@media (max-width: 968px) {
  .main-member-image::after {
    background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(255, 255, 255, 0.85) 80%, rgba(255, 255, 255, 0.95) 100%);
  }

  .member-details {
    position: static;
    transform: none;
    max-width: 100%;
    padding: 30px 20px;
    background: white;
  }

  .main-member-image img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .team-showcase-title h2 {
    font-size: 2rem;
  }

  .main-member-image img {
    height: 350px;
  }

  .member-details h3 {
    font-size: 1.75rem;
  }

  .circle-image {
    width: 120px;
    height: 120px;
  }

  .team-selector {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .team-showcase {
    padding: 30px 15px;
  }

  .team-showcase-title h2 {
    font-size: 1.75rem;
  }

  .main-member-image img {
    height: 300px;
  }

  .member-details h3 {
    font-size: 1.5rem;
  }

  .circle-image {
    width: 100px;
    height: 100px;
  }

  .circle-name {
    font-size: 0.9rem;
  }

  .circle-role {
    font-size: 0.75rem;
  }

  .team-selector {
    gap: 15px;
  }
}
