.team-section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  font-family: 'Poppins',serif;
}

.team-section-heading {
  text-align: center;
  margin-bottom: 4rem;
  color: #2c3e50;
  font-size: 3.5rem;
  font-weight: 800;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.team-section-heading::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 2px;
}

/* Founder Section */
.team-section-founder-wrapper {
  margin-bottom: 6rem;
  padding: 0 2rem;
}

.team-section-founder {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 
      0 10px 20px rgba(0, 0, 0, 0.1),
      0 6px 6px rgba(0, 0, 0, 0.1),
      0 0 100px rgba(0, 0, 0, 0.1);
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.team-section-founder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
  z-index: 0;
}

.team-section-member-image {
  flex-shrink: 0;
  position: relative;
  object-fit: cover;;
  z-index: 1;;
}


.team-section-founder .team-section-member-image::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  z-index: -1;
  opacity: 0.5;
  animation: team-section-pulse 2s infinite;
}

@keyframes team-section-pulse {
  0% {
      transform: scale(1);
      opacity: 0.5;
  }
  50% {
      transform: scale(1.05);
      opacity: 0.3;
  }
  100% {
      transform: scale(1);
      opacity: 0.5;
  }
}

.team-section-member-image img {
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-section-member-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.team-section-member-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.team-section-founder .team-section-member-info h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.team-section-founder .team-section-member-info h3 {
  color: #3498db;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.team-section-founder .team-section-member-info p {
  color: #666;
  line-height: 1.8;
  font-size: 1.1rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid #3498db;
  text-align: justify;
}

/* Team Grid */
.team-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 0 1rem;
}

.team-section-grid .team-section-member {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 
      0 5px 15px rgba(0, 0, 0, 0.1),
      0 0 40px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-section-grid .team-section-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
}

.team-section-grid .team-section-member:hover {
  transform: translateY(-10px);
  box-shadow: 
      0 15px 30px rgba(0, 0, 0, 0.15),
      0 0 50px rgba(0, 0, 0, 0.08);
}

.team-section-grid .team-section-member-image {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.team-section-grid .team-section-member-image img {
  max-width: 50%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.team-section-grid .team-section-member:hover .team-section-member-image img {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.team-section-grid .team-section-member-info h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-section-grid .team-section-member-info h3 {
  color: #3498db;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-section-grid .team-section-member-info h6 {
  color: #2c3e50;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.team-section-grid .team-section-member-info p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  padding: 0 1rem;
}

.degree {
  font-size: 0.8em;
  color: gray; /* Optional: Makes it look subtle */
}


/* Responsive Design */
@media (max-width: 1200px) {
  .team-section-container {
      padding: 2rem 1rem;
  }
  
  .team-section-heading {
      font-size: 3rem;
  }
  
  .team-section-founder {
      padding: 2rem;
      gap: 3rem;
  }
  
  .team-section-member-image img {
      width: 250px;
      height: 250px;
  }

  .team-section-member-image{
    /* width: 300px;
    height: auto; */
  }
}

@media (max-width: 992px) {
  .team-section-founder {
      flex-direction: column;
      text-align: center;
      padding: 3rem 2rem;
  }
  
  .team-section-founder .team-section-member-info p {
      padding-left: 0;
      border-left: none;
      border-top: 4px solid #3498db;
      padding-top: 1.5rem;
  }
  
  .team-section-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .team-section-heading {
      font-size: 2.5rem;
  }
  
  .team-section-founder-wrapper {
      margin-bottom: 4rem;
      padding: 0 1rem;
  }
  
  .team-section-founder {
      padding: 2rem 1.5rem;
  }
  
  .team-section-member-image img {
      width: 200px;
      height: 200px;
  }
  
  .team-section-founder .team-section-member-info h2 {
      font-size: 2rem;
  }
  
  .team-section-founder .team-section-member-info h3 {
      font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .team-section-heading {
      font-size: 2rem;
  }
  
  .team-section-container {
      padding: 1.5rem 0.5rem;
  }
  
  .team-section-founder {
      padding: 1.5rem 1rem;
  }
  
  .team-section-member-image img {
      width: 150px;
      height: 150px;
  }
  
  .team-section-grid .team-section-member-image img {
      width: 240px;
      height: 140px;
  }
  
  .team-section-grid .team-section-member-info h2 {
      font-size: 1.25rem;
  }
  
  .team-section-grid .team-section-member-info p {
      padding: 0 0.5rem;
      font-size: 0.9rem;
  }
}