/* Teams Page Specific Styles */

/* Team Member Cards */
.team-member-card {
  background: var(--light-bg);
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  border-top: 4px solid var(--primary-color);
}

.team-member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(142, 167, 13, 0.2);
}

/* Leadership Card Special Styling */
.leadership-card {
  border-top: 6px solid var(--primary-color);
  background: linear-gradient(135deg, var(--light-bg) 0%, rgba(142, 167, 13, 0.05) 100%);
}

.leadership-card .member-info {
  padding: 2.5rem;
}

.leadership-card .member-name {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.leadership-card .member-position {
  font-size: 1.1rem;
  font-weight: 700;
}

.member-image-container {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.leadership-card .member-image-container {
  height: 400px;
}

.member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(142, 167, 13, 0.9), rgba(0, 210, 226, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-icon:hover {
  background: white;
  color: var(--primary-color);
  transform: scale(1.1);
}

.member-info {
  padding: 2rem;
  text-align: center;
}

.member-name {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.member-position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

.member-brief {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.biography-btn {
  padding: 10px 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.biography-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(142, 167, 13, 0.3);
}

/* Team Statistics Cards */
.team-stat-card {
  background: var(--light-bg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 0;
  border-left: 4px solid var(--primary-color);
  height: 100%;
}

.team-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(142, 167, 13, 0.2);
}

.team-stat-card .stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
}

.team-stat-card .stat-icon i {
  font-size: 1.5rem;
  color: white;
}

.team-stat-card .stat-number {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-stat-card .stat-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.team-stat-card .stat-desc {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Team Sections */
.leadership-section {
  padding: 4rem 0;
  background: var(--light-bg);
}

.core-team-section {
  padding: 4rem 0;
  background: var(--gray-bg);
}

.support-team-section {
  padding: 4rem 0;
  background: var(--light-bg);
}

.team-values-section {
  padding: 4rem 0;
  background: var(--gray-bg);
}

/* Value Cards */
.value-card {
  background: var(--light-bg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 0;
  height: 100%;
  border-top: 4px solid var(--secondary-color);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 210, 226, 0.2);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border-radius: 0;
}

.value-icon i {
  font-size: 1.5rem;
  color: white;
}

.value-card h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.value-card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Modal Styles */
.modal-content {
  border-radius: 0;
  border: 2px solid var(--primary-color);
}

.modal-header {
  background: var(--primary-color);
  color: white;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-title {
  font-weight: 600;
  font-family: "Orbitron", monospace;
}

.modal-body {
  padding: 2rem;
}

.biography-content img {
  border: 3px solid var(--primary-color);
  border-radius: 0;
}

.biography-content h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.biography-content h6 {
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.3rem;
  display: inline-block;
}

.biography-content ul {
  margin-left: 1rem;
}

.biography-content ul li {
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

.social-links-modal .btn {
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 2rem;
}

/* Team Collaboration Effects */
.related-highlight {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 20px rgba(0, 210, 226, 0.3) !important;
}

/* Section Headers */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .member-info {
    padding: 1.5rem;
  }

  .leadership-card .member-info {
    padding: 2rem;
  }

  .member-name {
    font-size: 1.1rem;
  }

  .leadership-card .member-name {
    font-size: 1.3rem;
  }

  .member-position {
    font-size: 0.85rem;
  }

  .leadership-card .member-position {
    font-size: 1rem;
  }

  .social-icons {
    gap: 0.5rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .team-stat-card .stat-number {
    font-size: 2rem;
  }

  .value-card {
    margin-bottom: 2rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .biography-content .row {
    flex-direction: column;
  }

  .biography-content .col-md-4,
  .biography-content .col-md-8 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .leadership-card .member-image-container {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .member-image-container {
    height: 250px;
  }

  .leadership-card .member-image-container {
    height: 280px;
  }

  .team-stat-card .stat-number {
    font-size: 1.8rem;
  }

  .social-links-modal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .social-links-modal .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.member-image.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Focus States for Accessibility */
.biography-btn:focus,
.social-icon:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Team Search Functionality */
.team-search-container {
  margin-bottom: 3rem;
}

.team-search-input {
  border: 2px solid var(--primary-color);
  border-radius: 0;
  padding: 12px 20px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
}

.team-search-input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(142, 167, 13, 0.3);
}

/* Print Styles */
@media print {
  .team-member-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .member-overlay,
  .social-icons,
  .biography-btn {
    display: none;
  }

  .modal {
    display: none;
  }

  .leadership-card,
  .team-member-card {
    margin-bottom: 2rem;
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  border-radius: 0;
  border-left: 4px solid var(--primary-color);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Team Hierarchy Visual Indicators */
.leadership-section .team-member-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  z-index: -1;
  border-radius: 0;
}

.core-team-section .team-member-card {
  border-top-color: var(--secondary-color);
}

.support-team-section .team-member-card {
  border-top-color: #28a745;
}

/* Hover Effects for Team Sections */
.leadership-section:hover .team-member-card:not(:hover) {
  opacity: 0.7;
  transform: scale(0.98);
}

.core-team-section:hover .team-member-card:not(:hover),
.support-team-section:hover .team-member-card:not(:hover) {
  opacity: 0.8;
  transform: scale(0.99);
}

/* Team Member Card States */
.team-member-card.active {
  border-top-width: 6px;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(142, 167, 13, 0.3);
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

