/* ================= PORTFOLIO SECTION STYLES ================= */

/* Add portfolio section, cards, grids here */ 

/* ================= TEAM/LEADERSHIP SECTION STYLES (moved from style.css) ================= */

/* Leadership Section Styles */
.leadership-section {
  background: linear-gradient(135deg, #004d40 0%, #00695c 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.leadership-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0,77,64,0.2) 0%, rgba(0,77,64,0.8) 100%);
  z-index: 1;
}

.leadership-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1570px;
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
}

.section-title {
  color: white;
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  max-width: 1570px;
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
}

.leadership-grid {
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0;
  will-change: transform;
}

/* Update team member styles for carousel */
.team-member {
  flex: 0 0 280px;
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-frame {
  width: 350px;
  height: 350px;
  padding: 0;
  margin: 0 auto 20px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  overflow: visible;
}

.member-frame img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 0;
  filter: none;
  transition: transform 0.3s ease;
}

.team-member:hover .member-frame img {
  filter: none;
  transform: translate(-50%, -50%) scale(1.05);
}

.member-info {
  color: white;
  margin-top: 20px;
}

.member-info h3 {
  font-size: 24px;
  margin: 0 0 5px;
  font-weight: 600;
}

.member-info p {
  font-size: 16px;
  margin: 0 0 15px;
  opacity: 0.9;
}

.linkedin-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.linkedin-link:hover {
  transform: scale(1.1);
}

.linkedin-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 1200px) {
  .leadership-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  .member-frame {
    width: 240px;
    height: 280px;
  }
}

/* ================= TEAM/LEADERSHIP ADVANCED EFFECTS ================= */
.team-filter-bar {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.team-filter-btn {
  background: #e0f7fa;
  color: #009688;
  border: none;
  border-radius: 2rem;
  padding: 0.5rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.team-filter-btn.active, .team-filter-btn:hover {
  background: #009688;
  color: #fff;
}

.team-member {
  perspective: 1200px;
  position: relative;
  min-width: 260px;
  max-width: 320px;
  height: 340px;
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 0 0.7rem;
  cursor: pointer;
}
.team-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.7s cubic-bezier(.34,1.56,.64,1);
  transform-style: preserve-3d;
}
.team-member.flipped .team-card-inner {
  transform: rotateY(180deg);
}
.team-card-front, .team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(20,184,166,0.10), 0 1.5px 8px rgba(24,28,42,0.06);
  background: linear-gradient(135deg, #fff 60%, #e0f7fa 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
}
.team-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #e0f7fa 60%, #fff 100%);
  color: #004d40;
  text-align: center;
  font-size: 1.05rem;
  padding: 2rem 1.2rem;
}
.team-card-front .member-frame {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(20,184,166,0.13);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card-front .member-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: filter 0.3s;
  filter: none;
}
.team-card-front .member-info {
  text-align: center;
}
.team-card-front .member-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #004d40;
  margin-bottom: 0.3rem;
}
.team-card-front .member-info p {
  font-size: 1.05rem;
  color: #009688;
  margin-bottom: 0.7rem;
}
.linkedin-link {
  display: inline-block;
  margin-top: 0.5rem;
  transition: transform 0.2s;
}
.linkedin-link:hover, .linkedin-link:focus {
  transform: scale(1.18);
}
.linkedin-icon {
  width: 28px;
  height: 28px;
}

/* Popup Modal */
.team-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s;
}
.team-modal.active {
  display: flex;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.team-modal-content {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(20,184,166,0.18), 0 3px 12px rgba(24,28,42,0.10);
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 90vw;
  text-align: center;
  position: relative;
  animation: cardFadeIn 0.5s;
}
.team-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #009688;
  cursor: pointer;
  transition: color 0.2s;
}
.team-modal-close:hover { color: #e53935; }

@media (max-width: 900px) {
  .team-member {
    min-width: 180px;
    max-width: 220px;
    height: 260px;
  }
  .team-card-front .member-frame {
    width: 80px;
    height: 80px;
  }
}

/* ================= TEAM/LEADERSHIP STATIC GRID ================= */
.team-static-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
  margin: 2.5rem auto 0 auto;
  max-width: 1200px;
  justify-items: center;
}
.team-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(20,184,166,0.10), 0 1.5px 8px rgba(24,28,42,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 1.2rem 1rem;
  width: 100%;
  max-width: 260px;
  min-width: 180px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.team-card:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 8px 32px rgba(20,184,166,0.18), 0 3px 12px rgba(24,28,42,0.10);
}
.team-photo {
  width: 170px;
  height: 170px;
  background: #fff;
  border: 8px solid #fff;
  box-sizing: content-box;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  filter: none;
}
@media (max-width: 700px) {
  .team-photo {
    width: 110px;
    height: 110px;
    border-width: 6px;
  }
}
.team-info {
  text-align: center;
  width: 100%;
}
.team-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #004d40;
  margin-bottom: 0.2rem;
}
.team-info p {
  font-size: 0.98rem;
  color: #009688;
  margin-bottom: 0.7rem;
}
.linkedin-link {
  display: inline-block;
  position: absolute;
  bottom: 1.1rem;
  right: 1.1rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px #14b8a633;
  padding: 0.2rem;
  transition: transform 0.2s;
}
.linkedin-link:hover, .linkedin-link:focus {
  transform: scale(1.15);
}
.linkedin-icon {
  width: 28px;
  height: 28px;
}
@media (max-width: 1000px) {
  .team-static-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 600px) {
  .team-static-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .team-card {
    max-width: 95vw;
  }
}

/* ================= TEAM/LEADERSHIP STATIC GRID (ENHANCED) ================= */
.team-static-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin: 2.5rem auto 0 auto;
  max-width: 1400px;
  justify-items: center;
}
.team-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(20,184,166,0.13), 0 3px 12px rgba(24,28,42,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1.5rem 1.7rem 1.5rem;
  width: 100%;
  max-width: 320px;
  min-width: 220px;
  min-height: 380px;
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s;
}
.team-card:hover {
  transform: scale(1.045) translateY(-8px);
  box-shadow: 0 16px 48px rgba(20,184,166,0.18), 0 6px 24px rgba(24,28,42,0.13);
}
.team-photo {
  width: 170px;
  height: 170px;
  background: #fff;
  border: 8px solid #fff;
  box-sizing: content-box;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  filter: none;
}
@media (max-width: 700px) {
  .team-photo {
    width: 110px;
    height: 110px;
    border-width: 6px;
  }
}
.team-info {
  text-align: center;
  width: 100%;
  margin-top: 0.2rem;
}
.team-info h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: #004d40;
  margin-bottom: 0.18rem;
} 

/* --- Enhanced Team Card Icon Row --- */
.team-card-icons {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.1rem;
  margin-bottom: 0.2rem;
  z-index: 2;
}
.team-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 2px 8px #14b8a622;
  color: #009688;
  font-size: 1.45rem;
  transition: background 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  animation: iconFadeIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
.team-card-icon.linkedin { color: #0a66c2; }
.team-card-icon.video { color: #e53935; }
.team-card-icon.email { color: #009688; }

.team-card-icon:hover, .team-card-icon:focus {
  background: #009688;
  color: #fff;
  transform: scale(1.18) translateY(-2px);
  box-shadow: 0 4px 16px #00968833;
}

.team-card:hover .team-card-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation-delay: 0.2s;
}

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

/* --- Card Animation --- */
.team-card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  animation: cardFadeIn 0.8s forwards;
  animation-delay: 0.1s;
}
.team-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Icon SVGs --- */
.team-card-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .team-card-icons {
    gap: 0.7rem;
  }
  .team-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
} 