/**
 * Team Section Component
 * Encapsulated styles for the expert team section
 * Uses BEM naming convention: .team-expert__element--modifier
 */

/* Container */
.team-expert {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.team-expert__container {
  max-width: var(--maxW, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left Content */
.team-expert__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.team-expert__title {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.team-expert__highlight {
  color: var(--teal, #2DD4BF);
  display: block;
}

.team-expert__description {
  color: var(--muted, #94A3B8);
  font-size: 18px;
  line-height: 1.6;
  max-width: 500px;
  margin: 0;
}

/* Testimonial Card */
.team-expert__card {
  background: rgba(30, 41, 59, 0.7); /* Slate-800 with opacity */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  margin-top: 24px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-expert__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(45, 212, 191, 0.3);
}

.team-expert__quote-icon {
  margin-bottom: 24px;
}

.team-expert__quote-text {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 32px;
}

.team-expert__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-expert__author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal, #2DD4BF);
}

.team-expert__author-info h4 {
  color: #fff;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.team-expert__author-info span {
  color: var(--muted, #94A3B8);
  font-size: 14px;
}

/* Right Visuals (Team Grid) */
.team-expert__visuals {
  position: relative;
  height: 600px;
  width: 100%;
}

.team-expert__member {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.team-expert__member:hover {
  transform: scale(1.1);
  z-index: 10;
  border-color: var(--teal, #2DD4BF);
}

.team-expert__member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Positioning of members to match the scattered layout */
.team-expert__member--1 {
  width: 120px;
  height: 120px;
  top: 0;
  right: 20%;
}

.team-expert__member--2 {
  width: 90px;
  height: 90px;
  top: 15%;
  right: 0;
}

.team-expert__member--3 {
  width: 100px;
  height: 100px;
  top: 35%;
  right: 35%;
}

.team-expert__member--4 {
  width: 80px;
  height: 80px;
  top: 40%;
  right: 10%;
}

.team-expert__member--5 {
  width: 110px;
  height: 110px;
  bottom: 25%;
  right: 45%;
}

.team-expert__member--6 {
  width: 95px;
  height: 95px;
  bottom: 15%;
  right: 15%;
}

.team-expert__member--7 {
  width: 130px;
  height: 130px;
  bottom: 0;
  right: 0;
}

/* Responsive */
@media (max-width: 968px) {
  .team-expert__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-expert__title {
    font-size: 36px;
  }

  .team-expert__visuals {
    height: 400px; /* Reduced height for mobile */
    margin-top: 40px;
  }

  /* Adjust scattered positions for mobile/single column */
  .team-expert__member--1 { right: 50%; left: auto; transform: translateX(50%); }
  .team-expert__member--2 { right: 10%; }
  .team-expert__member--3 { right: 70%; }
  .team-expert__member--4 { right: 20%; }
  .team-expert__member--5 { right: 60%; }
  .team-expert__member--6 { right: 30%; }
  .team-expert__member--7 { right: 0; }
}

@media (max-width: 480px) {
  .team-expert__title {
    font-size: 32px;
  }
  
  .team-expert__visuals {
    height: 300px;
  }
  
  .team-expert__member {
    transform: scale(0.8); /* Smaller bubbles on very small screens */
  }
}
