/* ==========================================================================
   AADC TEAM PAGE SPECIFIC STYLES (team.css)
   Academic and Administrative Development Centre (AADC)
   ========================================================================== */

/* 1. HERO OVERRIDES */
.team-hero {
  position: relative;
  height: 60vh !important;
  min-height: 450px;
  margin-top: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0 1.5rem;
}

.team-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.team-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.team-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 25, 82, 0.9) 0%, rgba(30, 94, 255, 0.75) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

.team-hero .hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  color: var(--white);
}

.team-hero .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.team-hero .pulse-dot {
  width: 10px;
  height: 10px;
  background: #00d2ff;
  border-radius: 50%;
  box-shadow: 0 0 12px #00d2ff;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 210, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
  }
}

.team-hero .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.team-hero .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--sky-blue);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

.team-hero .scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.team-hero .scroll-indicator:hover {
  color: var(--white);
  transform: translate(-50%, 3px);
}

.team-hero .scroll-indicator svg {
  width: 22px;
  height: 22px;
  animation: bounce-arrow 2.2s infinite;
}

@keyframes bounce-arrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* 2. STATS OVERRIDES */
.stats {
  padding: 4rem 1.5rem;
  background-color: var(--white);
  position: relative;
  z-index: 10;
  margin-top: -50px;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stats-card {
  padding: 2.2rem 1.8rem;
  text-align: center;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(7, 25, 82, 0.04);
}

.stats-icon {
  margin-bottom: 1rem;
}

.stats-icon svg {
  width: 44px;
  height: 44px;
  fill: var(--accent-blue);
  filter: drop-shadow(0 4px 8px var(--accent-glow));
}

.stats-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stats-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 3. LEADERSHIP SPOTLIGHT */
.spotlight-section {
  padding: 6rem 1.5rem;
  background-color: var(--ice-blue);
  position: relative;
}

.spotlight-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  align-items: center;
}

.spotlight-image-wrap {
  width: 100%;
  height: 360px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(7, 25, 82, 0.12);
  border: 1px solid var(--glass-border);
}

.spotlight-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.spotlight-card:hover .spotlight-image-wrap img {
  transform: scale(1.06);
}

.spotlight-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-meta {
  margin-bottom: 0.8rem;
}

.spotlight-category {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: var(--sky-blue);
  color: var(--primary-academic);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spotlight-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary-deep);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.spotlight-role {
  font-size: 1.15rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.spotlight-desc {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.spotlight-skills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.skill-tag {
  background-color: var(--white);
  border: 1px solid rgba(30, 94, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(7, 25, 82, 0.03);
}

/* 4. SEARCH AND FILTERS */
.directory-section {
  padding: calc(110px + 4rem) 1.5rem 6rem 1.5rem;
  background-color: var(--white);
  position: relative;
}

.search-filter-wrap {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  fill: var(--text-light);
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  border-radius: 50px;
  border: 1px solid rgba(7, 25, 82, 0.12);
  background-color: var(--white);
  font-family: var(--font-primary);
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(7, 25, 82, 0.02);
}

#search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px var(--accent-glow), inset 0 2px 4px rgba(7, 25, 82, 0.01);
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  border: 1px solid rgba(7, 25, 82, 0.12);
  background-color: var(--white);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 4px 12px rgba(7, 25, 82, 0.03);
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-academic), var(--accent-blue));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(30, 94, 255, 0.3);
}

/* 5. DIRECTORY GRID & CARDS */
.directory-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.team-card-wrap {
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.team-card-wrap.fade-out {
  opacity: 0;
  transform: scale(0.92) translateY(10px);
}

.team-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  padding: 0;
}

.team-card .team-img-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin: 0;
}

.team-card .team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.team-card:hover .team-img-wrap {
  transform: none;
  border: none;
  box-shadow: none;
}

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

.team-card-badge {
  position: static;
  display: inline-block;
  margin: 0 auto 1rem auto;
  width: fit-content;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 5;
}

/**/
@media (max-width: 768px) {
  .team-card .team-img-wrap img {
    object-position: center 20%;
  }
}
/**/
.team-card-badge.leadership {
  background: linear-gradient(135deg, var(--primary-academic), var(--accent-blue));
  color: var(--white);
}

.team-card-badge.academic {
  background-color: var(--sky-blue);
  color: var(--primary-academic);
}

.team-card-badge.industry {
  background-color: #E2F9EC;
  color: #10B981;
}

.team-card-badge.admin {
  background-color: #ECEFF1;
  color: #546E7A;
}

.team-card-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.team-card-info h3 {
  font-size: 1.25rem;
  color: var(--primary-deep);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card-info .role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 0.2rem;
}

.team-card-info .org {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.team-card-info .btn {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.88rem;
}

/* 6. PROFILE MODAL SHEET */
.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.profile-modal.active {
  opacity: 1;
  visibility: visible;
}

.profile-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 25, 82, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}

.profile-modal-container {
  position: relative;
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  z-index: 2;
  overflow-y: auto;
  box-shadow: 0 25px 55px rgba(7, 25, 82, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: none; /* Hide scrollbar for clean card feel */
}

.profile-modal-container::-webkit-scrollbar {
  display: none;
}

.profile-modal.active .profile-modal-container {
  transform: scale(1) translateY(0);
}

.profile-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 5;
}

.profile-modal-close:hover {
  color: var(--primary-deep);
  transform: rotate(90deg);
}

.profile-modal-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}

.profile-modal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-modal-img-wrap {
  width: 220px;
  height: 250px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(7, 25, 82, 0.1);
  border: 1px solid rgba(7, 25, 82, 0.08);
  margin-bottom: 1.5rem;
}

.profile-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-modal-category {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: var(--sky-blue);
  color: var(--primary-academic);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.8rem;
}

.profile-modal-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--accent-blue);
  background-color: var(--ice-blue);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  max-width: 100%;
}

.profile-modal-contact svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.profile-modal-contact span {
  word-break: break-all;
}

.profile-modal-contact:hover {
  background-color: var(--sky-blue);
}

.profile-modal-right h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--primary-deep);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.profile-modal-role {
  display: block;
  font-size: 1.15rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.profile-modal-org {
  display: block;
  font-size: 0.95rem;
  color: var(--text-gray);
  font-weight: 500;
  margin-bottom: 2rem;
}

.profile-modal-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(7, 25, 82, 0.08);
  margin-bottom: 2rem;
}

.profile-modal-bio-section {
  margin-bottom: 2rem;
}

.profile-modal-bio-section h3,
.profile-modal-skills-section h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-academic);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.profile-modal-bio-section p {
  font-size: 0.98rem;
  color: var(--text-gray);
  line-height: 1.75;
}

.profile-modal-skills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-modal-skills .skill-tag {
  background-color: var(--ice-blue);
  border-color: rgba(30, 94, 255, 0.08);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* 7. PARTICLES & WAVES */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
  animation: float-particle-sky 15s infinite linear;
}

.p1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-duration: 18s;
}

.p2 {
  width: 160px;
  height: 160px;
  bottom: 10%;
  right: 6%;
  animation-duration: 22s;
  animation-direction: reverse;
}

.p3 {
  width: 60px;
  height: 60px;
  top: 45%;
  left: 85%;
  animation-duration: 14s;
}

@keyframes float-particle-sky {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-400px) rotate(360deg);
    opacity: 0;
  }
}

/* 8. RESPONSIVE BREAKPOINTS */
@media (max-width: 1199px) {
  .spotlight-card {
    gap: 2rem;
    padding: 2rem;
  }
  .spotlight-image-wrap {
    height: 320px;
  }
}

@media (max-width: 991px) {
  .spotlight-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.8rem;
  }
  .spotlight-image-wrap {
    width: 260px;
    height: 290px;
    margin: 0 auto;
  }
  .spotlight-skills {
    justify-content: center;
  }
  .search-filter-wrap {
    padding: 1.5rem;
  }
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .team-hero {
    height: 50vh !important;
    min-height: 380px;
  }
  .stats {
    margin-top: 0;
    padding: 3rem 1.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-filter-wrap {
    margin-bottom: 2.5rem;
  }
  .directory-grid {
    grid-template-columns: 1fr;
  }
  .profile-modal-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .profile-modal-left {
    margin-bottom: 0;
  }
  .profile-modal-container {
    padding: 2.2rem;
    width: 94%;
  }
  .profile-modal-org {
    margin-bottom: 1.2rem;
  }
  .profile-modal-skills {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .search-filter-wrap {
    padding: 1rem;
    border-radius: var(--border-radius-md);
  }
  #search-input {
    font-size: 0.95rem;
  }
  .filter-buttons {
    gap: 6px;
  }
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
  .profile-modal-container {
    padding: 1.5rem;
  }
}
