/* Animations for team page (ensure cards become visible) */
@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-20px); opacity: 0.6; }
}

/* Accessibility: show cards immediately if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .team-card {
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
}
/* LEADERSHIP SECTION */
.leadership-section {
  background: #f8fafc;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Reuse floating background like Story section */
.leadership-section .floating-elements {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.leadership-section .floating-circle {
  position: absolute;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.leadership-section .floating-circle:nth-child(1) {
  width: 100px; height: 100px;
  top: 15%; left: 10%;
  animation-delay: 0s;
}
.leadership-section .floating-circle:nth-child(2) {
  width: 140px; height: 140px;
  bottom: 20%; right: 15%;
  animation-delay: 2s;
}
.leadership-section .floating-circle:nth-child(3) {
  width: 80px; height: 80px;
  top: 60%; left: 25%;
  animation-delay: 4s;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1; /* keep above floating bg */
}

.team-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.team-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.9) contrast(1.05);
}

.team-card:hover img { transform: scale(1.05); }

.img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(185, 198, 255, 0.5), rgba(255, 198, 198, 0.5));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}

.team-card:hover .img-overlay { opacity: 0.7; }

.overlay-icon {
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.team-content {
  padding: 1.5rem;
  text-align: center;
}

.team-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.team-content p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .team-img { height: 220px; }
  .team-content h3 { font-size: 1.1rem; }
  .team-content p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .team-img { height: 200px; }
  .team-content h3 { font-size: 1rem; }
  .team-content p { font-size: 0.85rem; }
}

/* Staggered animations for Leadership cards */
.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }
.team-card:nth-child(6) { animation-delay: 0.6s; }
.team-card:nth-child(7) { animation-delay: 0.7s; }
.team-card:nth-child(8) { animation-delay: 0.8s; }
/* === TEAM PAGE HERO === */
.team-hero {
  position: relative;
  padding: 7rem 0 5rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: url('../images/hero/hero2.jpg') center/cover no-repeat;
  overflow: hidden;
}

.team-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25));
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* Floating background for hero */
.team-hero .floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.team-hero .floating-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.team-hero .floating-circle:nth-child(1) { width: 120px; height: 120px; top: 18%; left: 8%; animation-delay: 0s; }
.team-hero .floating-circle:nth-child(2) { width: 160px; height: 160px; bottom: 18%; right: 12%; animation-delay: 2s; }
.team-hero .floating-circle:nth-child(3) { width: 90px;  height: 90px;  top: 60%; left: 28%; animation-delay: 4s; }

.team-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.team-hero__content.reveal {
  transform: translateY(0);
  opacity: 1;
}

.team-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #cfe3ff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
}

.team-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin: 1rem 0 .75rem;
  line-height: 1.1;
  text-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.team-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  max-width: 720px;
  margin: 0 auto 1.6rem;
}

.team-hero .hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.team-hero .btn.outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.team-hero .btn.outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

@media (max-width: 600px) {
  .team-hero {
    padding: 6rem 0 3.5rem;
    min-height: 50vh;
  }
  .team-hero .hero-actions {
    flex-direction: column;
  }
}

/* === TEAM CARD ENHANCEMENTS (name, role, socials) === */
.team-content .member-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 0.25rem;
}

.team-content .member-role {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary, #0d6efd);
  margin: 0 0 0.5rem;
}

.team-content .member-bio {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: #475569;
}

/* Social icons */
.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.team-socials .soc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.team-socials .soc i {
  font-size: 1rem;
}

.team-socials .soc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,110,253,0.18);
}

/* Platform accents */
.team-socials .soc-linkedin:hover {
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
}

.team-socials .soc-facebook:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.team-socials .soc-twitter:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.team-socials .soc-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  border-color: #d6249f;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .team-hero__content {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}