/* Team Page Styles */

/* Hero Section */
.team-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.team-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/team-hero.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.team-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.7));
  z-index: 0;
}

.team-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.team-hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
}

.team-hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* Reveal Text Animation */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  animation: revealText 1s forwards;
}

.reveal-text:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Team Introduction */
.team-intro {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.team-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 30px 20px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 1.25rem;
  color: var(--dark-color);
  font-weight: 500;
}

/* Leadership Team */
.leadership-team {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.leadership-card {
  perspective: 1000px;
  height: 400px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.leadership-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-front {
  background-color: var(--bg-color);
}

.card-back {
  background-color: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leadership-image {
  height: 300px;
  overflow: hidden;
}

.leadership-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.leadership-card:hover .leadership-image img {
  transform: scale(1.1);
}

.leadership-info {
  padding: 20px;
  text-align: center;
}

.leadership-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.leadership-info p {
  color: var(--primary-color);
  font-weight: 500;
}

.card-back h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--white);
}

.card-back p {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 20px;
}

.leadership-bio {
  margin-bottom: 20px;
}

.leadership-bio p {
  line-height: 1.6;
}

.leadership-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
}

.leadership-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.leadership-contact a:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* Department Teams */
.department-teams {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.departments-tabs {
  margin-top: 50px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 10px;
}

.tab-btn {
  padding: 12px 25px;
  background-color: var(--bg-secondary);
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: var(--gray);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: var(--white);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.department-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  align-items: center;
}

.department-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 300px;
}

.department-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.department-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 15px;
}

.department-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-full);
}

.department-info p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-light);
}

.department-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.department-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.department-highlights li i {
  color: var(--primary-color);
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.member-image {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.member-social {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.team-member:hover .member-social {
  transform: translateY(0);
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--white);
  border-radius: 50%;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.member-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.member-info {
  padding: 20px;
  text-align: center;
}

.member-info h4 {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.member-info p {
  color: var(--primary-color);
  font-weight: 500;
}

/* Support Staff */
.support-staff {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.staff-carousel {
  position: relative;
  margin-top: 50px;
  padding: 0 50px;
}

.staff-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 20px 0;
}

.staff-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.staff-card {
  min-width: 300px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-10px);
}

.staff-image {
  height: 200px;
  overflow: hidden;
}

.staff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.staff-card:hover .staff-image img {
  transform: scale(1.1);
}

.staff-info {
  padding: 20px;
  text-align: center;
}

.staff-info h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.staff-info p {
  color: var(--text-light);
  line-height: 1.6;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: none;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Join Our Team */
.join-team {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.join-team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.join-team-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.join-team-text p {
  margin-bottom: 30px;
  line-height: 1.7;
  color: var(--text-light);
}

.join-benefits {
  margin-bottom: 30px;
}

.join-benefits li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.join-benefits li i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.image-collage {
  position: relative;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.collage-img {
  position: absolute;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.5s ease;
}

.img1 {
  width: 60%;
  height: 60%;
  top: 0;
  left: 0;
  z-index: 3;
}

.img2 {
  width: 50%;
  height: 50%;
  top: 10%;
  right: 0;
  z-index: 2;
}

.img3 {
  width: 70%;
  height: 50%;
  bottom: 0;
  right: 10%;
  z-index: 1;
}

.join-team-image:hover .img1 {
  transform: translate(-10px, -10px);
}

.join-team-image:hover .img2 {
  transform: translate(10px, -10px);
}

.join-team-image:hover .img3 {
  transform: translate(10px, 10px);
}

.collage-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 4;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.join-team-image:hover .collage-overlay {
  opacity: 1;
}

/* Team Testimonials */
.team-testimonials {
  padding: 80px 0;
  background-color: var(--bg-secondary);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  padding: 30px;
  position: relative;
}

.testimonial-quote i {
  color: var(--primary-color);
  font-size: 2rem;
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 20px;
}

.testimonial-quote p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  padding-top: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.testimonial-author p {
  color: var(--primary-color);
  font-weight: 500;
  margin: 0;
  padding: 0;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .team-hero-content h1 {
    font-size: 3rem;
  }

  .leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 992px) {
  .team-hero {
    height: 400px;
  }

  .team-hero-content h1 {
    font-size: 2.5rem;
  }

  .department-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .join-team-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .team-hero {
    height: 350px;
  }

  .team-hero-content h1 {
    font-size: 2rem;
  }

  .team-stats {
    flex-direction: column;
  }

  .stat-item {
    margin: 10px 0;
  }

  .department-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .team-hero {
    height: 300px;
  }

  .team-hero-content h1 {
    font-size: 1.75rem;
  }

  .team-hero-content p {
    font-size: 1rem;
  }

  .tabs-nav {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }
}

/* Animation for Stats Counter */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number.animate {
  animation: countUp 1s forwards;
}
