/* ================= TEAM SECTION ================= */
.team-section {
  padding: 60px 0;
}

.team-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.team-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.team-section p {
  color: var(--gray);
}

/* ================= TEAM CAROUSEL ================= */
.team-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 20px;
}

.team-carousel::-webkit-scrollbar {
  display: none; 
}

.team-card {
  flex: 0 0 340px;              
  min-height: 460px;       
  background: linear-gradient(135deg, #2c3e50, #bdc3c7);
  color: #fff;
  border-radius: 18px;
  padding: 40px 20px;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.team-card img {
  width: 180px;     
  height: 180px;
  object-fit: cover;    
  border-radius: 50%;
  margin-bottom: 25px;
  border: 5px solid #fff; 
}

.team-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
}

.team-card p {
  font-size: 1.05rem;
  opacity: 0.95;
  color: #f0f0f0;
}

#joinBtn {
  display: none;
}

.profile-dropdown {
  display: none;
}

.profile-dropdown.show {
  display: block;
}


/* ================= MOTTO SECTION ================= */
.motto-section {
  background: linear-gradient(135deg, #1a1a1a, #2c3e50);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.motto-heading {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #f9f9f9;
}

.motto-subtext {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.fade-in-top {
  animation: fadeInTop 0.8s ease forwards;
}
@keyframes fadeInTop {
  from { transform: translateY(-50%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.zoom-in {
  animation: zoomIn 0.8s ease forwards;
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================= TEAM HERO TEXT SWAP ================= */
#team-heading, 
#team-paragraph {
  transition: all 0.6s ease;
  opacity: 1;
}

.slide-left {
  animation: slideLeft 0.8s ease forwards;
}
.slide-right {
  animation: slideRight 0.8s ease forwards;
}
.slide-up {
  animation: slideUp 0.8s ease forwards;
}
.slide-down {
  animation: slideDown 0.8s ease forwards;
}
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.zoom-in {
  animation: zoomIn 0.8s ease forwards;
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.rating {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
  color: gold; 
  font-weight: bold;
  letter-spacing: 2px;
}
/* ================= MOBILE RESPONSIVE (≤480px) ================= */
@media (max-width: 480px) {
  .team-section {
    padding: 25px 0;
  }

  .team-section h2 {
    font-size: 1.2rem;
  }

  .team-section p {
    font-size: 0.8rem;
  }

  .team-carousel {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px;
  }

  .team-card {
    width: 85%;  
    min-height: auto;
    padding: 15px;
    border-radius: 12px;
  }

  .team-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 12px;
    border: 3px solid #fff;
  }

  .team-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .team-card p {
    font-size: 0.8rem;
  }

  .rating {
    font-size: 0.9rem;
    margin-top: 5px;
  }
  .motto-section {
    padding: 50px 15px;
  }

  .motto-heading {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .motto-subtext {
    font-size: 0.9rem;
    max-width: 90%;
  }

}

/* ================= SMALL TABLETS (≤768px) ================= */
@media (max-width: 768px) {
  .team-carousel {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    padding: 15px;
  }

  .team-card {
    flex: 0 0 240px;
    min-height: 360px;
    padding: 20px;
  }

  .team-card img {
    width: 120px;
    height: 120px;
  }

  .team-card h3 {
    font-size: 1.1rem;
  }

  .team-card p {
    font-size: 0.9rem;
  }

  .motto-heading {
    font-size: 2.2rem;
  }

  .motto-subtext {
    font-size: 1rem;
    max-width: 80%;
  }

}



/* ================= LARGE TABLETS / LAPTOPS (≤992px) ================= */
@media (max-width: 992px) {
  .team-card {
    flex: 0 0 280px;
    min-height: 400px;
    padding: 25px;
  }

  .team-card img {
    width: 140px;
    height: 140px;
  }

  .team-card h3 {
    font-size: 1.2rem;
  }

  .team-card p {
    font-size: 0.95rem;
  }

    .motto-heading {
    font-size: 2.6rem;
  }

  .motto-subtext {
    font-size: 1.1rem;
  }

}

/* ================= DESKTOPS (≥1200px) ================= */
@media (min-width: 1200px) {
  .team-card {
    flex: 0 0 340px;
    min-height: 460px;
    padding: 40px 20px;
  }

  .team-card img {
    width: 180px;
    height: 180px;
  }

  .team-card h3 {
    font-size: 1.4rem;
  }

  .team-card p {
    font-size: 1.05rem;
  }
  .motto-heading {
    font-size: 3.5rem;
  }

  .motto-subtext {
    font-size: 1.3rem;
  }

}

