/* Ensure the page clears the fixed navbar */
.team-page-wrapper {
  margin-top: 100px;
  min-height: 80vh;
}

.center-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.space-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-main, #f8fafc);
  letter-spacing: -1px;
}

.tech-subheading {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: var(--accent-primary, #3b82f6);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Slideshow Jumbotron --- */
.jumbotron-container {
  max-width: 900px;
  margin: 0 auto 60px auto;
  position: relative;
  background: var(--bg-card, #111c33);
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.slideshow-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/9;
}

.mySlides {
  display: none;
  width: 100%;
  height: 100%;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  transition: 0.3s ease;
  user-select: none;
  backdrop-filter: blur(5px);
}

.next { right: 10px; }
.prev { left: 10px; }

.prev:hover, .next:hover {
  background: var(--accent-primary, #3b82f6);
}

.slide-indicators {
  text-align: center;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slide-line {
  cursor: pointer;
  height: 4px;
  width: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.slide-line.active, .slide-line:hover {
  background-color: var(--accent-primary, #3b82f6);
  width: 45px;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* --- Custom Year Toggle Switch --- */
.year-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.toggle-track {
  position: relative;
  display: flex;
  background: var(--bg-deep, #050b14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 5px;
  width: 300px;
}

.toggle-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--accent-primary, #3b82f6);
  border-radius: 25px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  z-index: 1;
}

.toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 0;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
}

.toggle-btn.active {
  color: #fff;
}

/* Move the slider when 2024 is clicked */
.toggle-track.shifted .toggle-slider {
  transform: translateX(100%);
}

/* --- Roster Grid --- */
.roster-grid {
  display: none; /* Hidden by default */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  /* (Removed the animation from here) */
}

.roster-grid.active-roster {
  display: grid;
  animation: fadeIn 0.4s ease forwards; /* Moved the animation here! */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Cyber-Badges --- */
.cyber-badge {
  background: var(--bg-card, #111c33);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.cyber-badge:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-primary, #3b82f6);
}

.badge-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1.1;
  overflow: hidden;
  background: var(--bg-deep, #050b14);
}

.badge-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(10%) contrast(110%);
}

.cyber-badge:hover .badge-img img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(100%);
}

/* Hidden LinkedIn Overlay */
.badge-overlay {
  position: absolute;
  bottom: -50px; /* Hidden below */
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(11, 25, 44, 0.9), transparent);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: bottom 0.3s ease;
}

.cyber-badge:hover .badge-overlay {
  bottom: 0; /* Slides up on hover */
}

.social-btn {
  background: #0a66c2; /* LinkedIn Blue */
  color: #fff;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-btn:hover {
  background: #004182;
  transform: scale(1.1);
}

.badge-info {
  padding: 20px 15px;
  text-align: center;
  border-top: 2px solid rgba(59, 130, 246, 0.2);
  transition: border-color 0.3s ease;
}

.cyber-badge:hover .badge-info {
  border-top-color: var(--accent-primary, #3b82f6);
}

.badge-info h3 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.2rem;
  color: var(--text-main, #fff);
  margin-bottom: 4px;
}

.role {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Optional Highlight for Webmasters/Tech */
.cyber-badge.highlight .badge-info {
  border-top-color: var(--accent-primary, #3b82f6);
}
.cyber-badge.highlight .role {
  color: var(--accent-primary, #3b82f6);
}

/* Media Queries */
@media (max-width: 900px) {
  .jumbotron-container {
    max-width: 95%; 
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .roster-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 0 10px;
  }

  .badge-info {
    padding: 12px 8px;
  }

  .badge-info h3 {
    font-size: 0.9rem;
  }

  .role {
    font-size: 0.7rem;
  }

  .jumbotron-container {
    max-width: 100%;
    margin-bottom: 40px;
  }
}

/* Temporarily disabled LinkedIn badges */
.badge-overlay {
    display: none !important;
}
