/* Our Team Cards */
.card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}
.card-container {
  cursor: pointer;
}
.card-container:hover .default-overlay {
  opacity: 0;
}
.card-container:hover .hover-overlay {
  display: block !important;
}


/* Page Details */
.team-member-card {
  position: relative;
  width: 90%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.member-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
  color: white;
  box-sizing: border-box;
  height: 110px; /* Fixed height for info section */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Social icon animation on hover */
.social-icon {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #0a66c2;
  border-radius: 50%;
  bottom: -50px; /* Initial position below the card */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icon a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
}

/* Hover state - bring icon up with overshoot */
.team-member-card:hover .social-icon {
  animation-name: socialIconOvershoot;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
}

/* After hover state - drop icon away */
.team-member-card:not(:hover) .social-icon {
  animation-name: socialIconDrop;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

@keyframes socialIconOvershoot {
  0% {
    bottom: -50px;
    animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1.5); /* Fast acceleration with overshoot */
  }
  40% { /* Reduced from 70% to make first part faster */
    bottom: 110px; /* Overshoot the final position */
    animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1); /* Smoother deceleration */
  }
  55% { /* Changed from 70% to make the bounce back faster */
    bottom: 85px; /* Slightly undershoot back */
    animation-timing-function: ease-out; /* Gentle finish */
  }
  65% { /* Added an additional keyframe to speed up final settling */
    bottom: 95px; /* Final resting position */
  }
  100% {
    bottom: 95px; /* Final resting position */
  }
}

@keyframes socialIconDrop {
  0% {
    bottom: 95px;
    animation-timing-function: cubic-bezier(0.6, -0.28, 0.74, 0.05); /* Easing with initial hesitation then fast drop */
  }
  60% {
    bottom: -20px; /* Slightly overshoot downward */
    animation-timing-function: cubic-bezier(0.17, 0.84, 0.44, 1);
  }
  100% {
    bottom: -50px; /* Final position below card */
  }
}

.social-icon:hover {
  background-color: #004182;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-text {
  text-indent: 2em;
  line-height: 1.8;
}

/* Support Section - Copied from main-page.css */
.support-container {
  margin-top: 25px;
  margin-bottom: 25px;
}

.support-section {
  padding: 25px;
  margin-bottom: 25px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 40%, #e7e7e7 100%);
  border-radius: 10px;
}

.discord-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #5865F2;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  text-decoration: none;
}

.discord-button:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(88, 101, 242, 0.3);
}

.discord-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.discord-icon path {
  fill: white;
}

.divider {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: #b2b3b4;
}

.divider-text {
  margin: 0 15px;
  font-weight: 700;
  color: #6c757d;
}

.contact-link {
  color: #5865F2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #4752c4;
  text-decoration: underline;
}

/* Footer Styles - Copied from main-page.css */
.footer p {
  font-size: 14px;
  white-space: nowrap;
  margin-bottom: 0;
}

.footer .text-hl {
  font-size: 14px;
}

.footer .list-inline-item a {
  font-size: 14px;
}

/* Mobile adjustments - Ensure we have the same media queries as main-page.css */
@media (max-width: 768px) {
  .team-member-card {
    width: 95%;
    height: 350px;
  }
  
  /* About page text scaling */
  .about-text {
    font-size: 1.1rem !important;
    line-height: 1.6;
  }
  
  .container h1 {
    font-size: 2rem !important;
  }
  
  /* Footer responsive styles */
  .footer .row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer .col-md-6 {
    width: auto !important;
    flex: 0 0 auto !important;
    max-width: none !important;
    margin-bottom: 0 !important;
    padding: 0 5px !important;
  }
  
  .footer p {
    font-size: 11px;
    white-space: nowrap;
    margin-bottom: 0;
  }
  
  .footer .text-hl {
    font-size: 11px;
  }
  
  .footer .list-inline-item a {
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .team-member-card {
    width: 90%;
    height: 300px;
  }
  
  .member-info {
    height: 90px;
  }
  
  .member-info h5 {
    font-size: 1rem;
  }
  
  .member-info h6 {
    font-size: 0.8rem;
  }
  
  .team-member-card:hover .social-icon {
    bottom: 75px;
  }
  
  /* About page text scaling */
  .about-text {
    font-size: 1rem !important;
    line-height: 1.5;
    text-indent: 1.5em;
    padding: 0 20px 0 20px;
  }
  
  .container h1 {
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Update animation keyframes for mobile */
  @keyframes socialIconOvershoot {
    0% {
      bottom: -50px;
      animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1.5);
    }
    40% {
      bottom: 90px; /* Reduced overshoot for mobile */
      animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);
    }
    55% {
      bottom: 65px; /* Adjusted undershoot for mobile */
      animation-timing-function: ease-out;
    }
    65% {
      bottom: 75px; /* Final position matches the hover value */
    }
    100% {
      bottom: 75px;
    }
  }
  
  @keyframes socialIconDrop {
    0% {
      bottom: 75px; /* Match final position from overshoot */
      animation-timing-function: cubic-bezier(0.6, -0.28, 0.74, 0.05);
    }
    60% {
      bottom: -20px;
      animation-timing-function: cubic-bezier(0.17, 0.84, 0.44, 1);
    }
    100% {
      bottom: -50px;
    }
  }
}

@media (max-width: 480px) {
  .team-member-card {
    height: 280px;
  }
  
  /* About page text scaling */
  .about-text {
    font-size: 0.95rem !important;
    line-height: 1.4;
    text-indent: 1.2em;
  }
  
  .container h1 {
    font-size: 1.6rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  /* Support section font scaling */
  .support-container {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  .support-section {
    padding: 15px !important;
    margin-bottom: 15px !important;
  }
  .support-section h2 {
    font-size: 22px !important;
    margin-bottom: 15px !important;
  }
  .support-section p {
    font-size: 14px !important;
  }
  .support-section .lead {
    font-size: 14px !important;
    margin-bottom: 15px !important;
  }
  .support-section .divider-text {
    font-size: 14px !important;
  }
  .discord-button {
    font-size: 14px !important;
  }
}

@media (max-width: 390px) {
  /* About page text scaling */
  .about-text {
    font-size: 0.9rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .container h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.7rem !important;
  }
  
  /* Support section font scaling */
  .support-container {
    margin-top: 1.2rem !important;
    margin-bottom: 1.2rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  .support-section {
    padding: 15px !important;
    margin-bottom: 8px !important;
  }
  .support-section h2 {
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }
  .support-section p {
    font-size: 13px !important;
  }
  .support-section .lead {
    font-size: 13px !important;
    margin-bottom: 12px !important;
  }
  .support-section .divider-text {
    font-size: 13px !important;
  }
  .discord-button {
    font-size: 13px !important;
    padding: 10px 20px !important;
  }
}

@media (max-width: 360px) {
  .team-member-card {
    height: 250px;
  }
  
  .member-info {
    height: 80px;
  }
  
  .member-info h5 {
    font-size: 0.9rem;
  }
  
  .member-info h6 {
    font-size: 0.75rem;
  }
  
  .team-member-card:hover .social-icon {
    bottom: 65px;
  }
  
  /* About page text scaling */
  .about-text {
    font-size: 0.85rem !important;
    line-height: 1.3;
    text-indent: 1em;
    margin-bottom: 0.7rem !important;
  }
  
  .container h1 {
    font-size: 1.4rem !important;
    margin-bottom: 0.6rem !important;
  }
  
  /* Support section font scaling */
  .support-container {
    margin-top: 0.8rem !important;
    margin-bottom: 0.8rem !important;
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }
  .support-section {
    padding: 12px !important;
    margin-bottom: 8px !important;
  }
  .support-section h2 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }
  .support-section p {
    font-size: 12px !important;
  }
  .support-section .lead {
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }
  .support-section .divider-text {
    font-size: 12px !important;
  }
  .discord-button {
    font-size: 12px !important;
    padding: 8px 16px !important;
  }
  .discord-icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
  }
  
  /* Update animation keyframes for smaller mobile */
  @keyframes socialIconOvershoot {
    0% {
      bottom: -50px;
      animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1.5);
    }
    40% {
      bottom: 80px; /* Further reduced overshoot for smaller screens */
      animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);
    }
    55% {
      bottom: 55px; /* Adjusted undershoot for smaller screens */
      animation-timing-function: ease-out;
    }
    65% {
      bottom: 65px; /* Final position matches the hover value */
    }
    100% {
      bottom: 65px;
    }
  }
  
  @keyframes socialIconDrop {
    0% {
      bottom: 65px; /* Match final position from overshoot */
      animation-timing-function: cubic-bezier(0.6, -0.28, 0.74, 0.05);
    }
    60% {
      bottom: -20px;
      animation-timing-function: cubic-bezier(0.17, 0.84, 0.44, 1);
    }
    100% {
      bottom: -50px;
    }
  }
}

@media (max-width: 280px) {
  /* About page text scaling */
  .about-text {
    font-size: 0.8rem !important;
    line-height: 1.2;
    margin-bottom: 0.6rem !important;
  }
  
  .container h1 {
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Adjust social icon positioning for smallest screens */
  .member-info {
    height: 75px;
  }
  
  .team-member-card:hover .social-icon {
    bottom: 60px;
  }
  
  /* Update animation keyframes for smallest screens */
  @keyframes socialIconOvershoot {
    0% {
      bottom: -50px;
      animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1.5);
    }
    40% {
      bottom: 70px; /* Reduced overshoot for smallest screens */
      animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);
    }
    55% {
      bottom: 50px; /* Adjusted undershoot for smallest screens */
      animation-timing-function: ease-out;
    }
    65% {
      bottom: 60px; /* Final position matches the hover value */
    }
    100% {
      bottom: 60px;
    }
  }
  
  @keyframes socialIconDrop {
    0% {
      bottom: 60px; /* Match final position from overshoot */
      animation-timing-function: cubic-bezier(0.6, -0.28, 0.74, 0.05);
    }
    60% {
      bottom: -20px;
      animation-timing-function: cubic-bezier(0.17, 0.84, 0.44, 1);
    }
    100% {
      bottom: -50px;
    }
  }
  
  /* Support section font scaling */
  .support-container {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }
  .support-section {
    padding: 8px !important;
    margin-bottom: 8px !important;
  }
  .support-section h2 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }
  .support-section p {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }
  .support-section .lead {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }
  .support-section .divider {
    margin: 10px 0 !important;
  }
  .support-section .divider-text {
    font-size: 11px !important;
    margin: 0 8px !important;
  }
  .discord-button {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
  .discord-icon {
    width: 18px !important;
    height: 18px !important;
    margin-right: 6px !important;
  }
}