/* ========================================
   TEAM SECTION
   ======================================== */

#team {
  position: relative;
  padding: 88px 0;
  background: #FFFFFF;
  overflow: hidden;
}

/* Wave Divider */
.wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
}

.wave-bottom {
  bottom: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Eyebrow */
.team-eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaaaaa;
  text-align: center;
  margin-bottom: 16px;
}

/* Title */
.team-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Shimmer Text Animation */
.team-title.shimmer-text {
  background: linear-gradient(
    90deg,
    #1A1A2E 0%,
    #1A1A2E 40%,
    #F4762A 50%,
    #1A1A2E 60%,
    #1A1A2E 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

/* Description */
.team-description {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #1a1a1a;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

/* Team Grid - 4 Columns */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 0;
}

/* Team Card */
.team-card {
  background: #fafafa;
  border: 0.5px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

/* Team Icon Wrapper */
.team-icon-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-icon-wrapper img.team-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* First card icon */
.team-card:nth-child(1) .team-icon-wrapper {
  background: #FBF0F4;
}

.team-card:nth-child(1) .team-icon {
  color: #C03D6A;
  stroke: #C03D6A;
}

/* Second card icon */
.team-card:nth-child(2) .team-icon-wrapper {
  background: #FDF0EA;
}

.team-card:nth-child(2) .team-icon {
  color: #E8823A;
  stroke: #E8823A;
}

/* Third card icon */
.team-card:nth-child(3) .team-icon-wrapper {
  background: #EEF2FA;
}

.team-card:nth-child(3) .team-icon {
  color: #2E5BAE;
  stroke: #2E5BAE;
}

/* Fourth card icon - repeat first color */
.team-card:nth-child(4) .team-icon-wrapper {
  background: #FBF0F4;
}

.team-card:nth-child(4) .team-icon {
  color: #C03D6A;
  stroke: #C03D6A;
}

.team-icon {
  transition: all 0.4s ease;
}

.team-card:hover .team-icon-wrapper {
  transform: scale(1.08) rotate(-3deg);
}

.team-card:hover .team-icon {
  transform: scale(1.1);
}

.team-card:hover .team-icon-wrapper img.team-icon {
  transform: scale(1.15) rotate(3deg);
}

/* Team Role */
.team-role {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 12px;
}

/* Team Expertise */
.team-expertise {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6B7280;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  #team {
    padding: 110px 0;
  }
  
  .team-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 20px;
  }
  
  .team-description {
    font-size: 16px;
    margin-bottom: 56px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
  }
  
  .team-icon-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .team-icon {
    width: 40px;
    height: 40px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  #team {
    padding: 72px 0;
  }
  
  .team-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 16px;
  }
  
  .team-description {
    font-size: 15px;
    margin-bottom: 48px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 0;
  }
  
  .team-icon-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .team-icon {
    width: 40px;
    height: 40px;
  }
  
  .team-role {
    font-size: 1rem;
  }
  
  .team-expertise {
    font-size: 0.875rem;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .team-icon-wrapper {
    width: 110px;
    height: 110px;
  }
  
  .team-icon {
    width: 44px;
    height: 44px;
  }
}
