.team__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  place-items: center;
}

.team__member {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  background: var(--slate-300);
}

.team__member-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 1rem;
}

.team__member-details h3{
  margin: 0;
  font-size: var(--h5);
}
.team__member-details h4{
  margin: 0;
  font-size: var(--h6);
}
.team__member-details p{
  font-size: clamp(0.567rem, 0.4vw + 0.65rem, 1rem);
  text-align: left;
  padding: 0 1rem;
  margin: 0;
}

.team__member-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.team__member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: grayscale(10%);
}

.team__member:hover .team__member-img img {
  filter: grayscale(0%);
  transform: scale(1.03);
}


.team__member-social-ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.team__member-socials-btn {
  background: var(--clr-1);
  padding: 0.5rem;
  transition: var(--transition);
  border-radius: 20px;
}


.team__member-socials-btn a {
  color: var(--clr-white);
}

.team__member-socials-btn:hover {
  transform: translateY(-5px);
}

.team-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:var(--gradient);
  color: var(--slate-50);
  cursor: pointer;
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--clr-3);
  width: fit-content; 
  padding: 0.3rem 1rem;
  font-size: 0.6rem;
}
.team-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227,63,241,0.5), 0 6px 0 var(--clr-3);
}

 






.full-text,
.less-btn {
  display: none;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


.modal-overlay.active {
   display: flex; 
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  width: 100%;
  max-width: 350px;
  height: 90vh;
  border-radius: 25px;
  padding: 1rem;
  position: relative;
}


.slide-up {
  animation: modalSlide 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}


.modal-img-container {
   text-align: center; 
   margin-bottom: 0.5rem; 
}
.modal-img-container img {
  width: 150px; 
  height: 150px;
  border-radius: 50%; 
  object-fit: cover;
  border: 5px solid #fff; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.modal-details{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal-details h3 { 
  color: #1a1a1a; 
  font-size: var(--h5);
  text-align: center; 
}
.modal-details h4 { 
  font-size: var(--h6);
  color: #666; 
  text-align: center;
}
.modal-body p { 
  color: #333; 
  font-size: 0.7rem;
}







@media (min-width: 640px) {
  .team__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .team__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .team__member-social-ul {
    top: -12%;
  }

  .modal-content{
    max-width: 600px;
  }

  .modal-body p{
    font-size: var(--p);
    text-align: justify;
  }

}


@media (min-width: 1280px) {
  .team__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
