/* Team Page Styles */

.team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Team Header */
.team-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInDown 0.6s ease-out;
}

.team-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-subtitle {
  font-size: 1.2rem;
  color: #aaa;
  margin: 0;
  line-height: 1.6;
}

/* Team Members Grid */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Team Member Card */
.team-member-card {
  background: rgba(30, 30, 46, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(10px);
  position: relative;
}

.team-member-card:hover {
  transform: translateY(-15px);
  border-color: #6366f1;
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
  background: rgba(30, 30, 46, 0.9);
}

/* Card Image Container */
.card-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-member-card:hover .card-image img {
  transform: scale(1.08);
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(99, 102, 241, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.team-member-card:hover .card-overlay {
  opacity: 1;
}

/* View Details Button */
.view-details-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: all 0.4s ease;
}

.team-member-card:hover .view-details-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.view-details-btn:hover {
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  transform: translateX(-50%) translateY(-2px);
}

/* Card Content */
.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.member-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.member-role {
  font-size: 0.95rem;
  color: #6366f1;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.member-study {
  font-size: 0.85rem;
  color: #999;
  margin: 0 0 10px 0;
  font-style: italic;
}

.member-interest {
  font-size: 0.95rem;
  color: #ddd;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

/* Member Stats */
.member-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.stat {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}

.team-member-card:hover .stat {
  background: rgba(99, 102, 241, 0.4);
  border-color: #6366f1;
}

/* Key Takeaway Section */
.key-takeaway {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.key-takeaway h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quote-attribution {
  font-size: 1.05rem;
  color: #999;
  margin: 0 0 20px 0;
}

.quote-attribution strong {
  color: #6366f1;
}

.quote-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ddd;
  margin: 0;
  font-style: italic;
  text-align: center;
}

/* Member Modal */
.member-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.member-modal.open {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: rgba(30, 30, 46, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #6366f1;
}

.modal-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}

.modal-role {
  font-size: 1rem;
  color: #6366f1;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.modal-study {
  font-size: 0.9rem;
  color: #999;
  margin: 0;
  font-style: italic;
}

/* Modal Body */
.modal-body {
  margin-top: 20px;
}

.modal-section {
  margin-bottom: 25px;
}

.modal-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6366f1;
  margin: 0 0 12px 0;
}

.modal-section p {
  color: #ddd;
  line-height: 1.6;
  margin: 0;
}

.specialties-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.specialties-list span {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Screenshots Section */
.screenshots-section {
  margin-top: 80px;
  margin-bottom: 80px;
}

.screenshots-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.screenshots-subtitle {
  font-size: 1.1rem;
  color: #999;
  text-align: center;
  margin: 0 0 50px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

/* Screenshot Card */
.screenshot-card {
  margin: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.screenshot-card:hover {
  transform: translateY(-10px);
}

.screenshot-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(30, 30, 46, 0.5);
  transition: all 0.4s ease;
}

.screenshot-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  border-radius: 12px;
}

.screenshot-card:hover .screenshot-image img {
  transform: scale(1.05);
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

.screenshot-label {
  background: rgba(99, 102, 241, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

/* Screenshot Caption */
.screenshot-card figcaption {
  text-align: center;
  margin-top: 15px;
  font-size: 1rem;
  color: #ddd;
  font-weight: 500;
  line-height: 1.4;
}

.screenshot-card:hover figcaption {
  color: #6366f1;
  transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-container {
    padding: 40px 15px;
  }

  .team-header h1 {
    font-size: 2.5rem;
  }

  .team-subtitle {
    font-size: 1rem;
  }

  .team-members-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .card-image {
    height: 250px;
  }

  .key-takeaway {
    padding: 30px 20px;
  }

  .quote-text {
    font-size: 1rem;
  }

  .screenshots-section h2 {
    font-size: 2rem;
  }

  .screenshots-subtitle {
    font-size: 1rem;
  }

  .screenshots-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .modal-info h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .team-container {
    padding: 30px 10px;
  }

  .team-header h1 {
    font-size: 1.8rem;
  }

  .team-subtitle {
    font-size: 0.9rem;
  }

  .team-members-grid {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 20px;
  }

  .member-name {
    font-size: 1.3rem;
  }

  .screenshots-section h2 {
    font-size: 1.8rem;
  }

  .screenshots-subtitle {
    font-size: 0.9rem;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .screenshot-card figcaption {
    font-size: 0.9rem;
  }

  .key-takeaway {
    padding: 20px 15px;
  }

  .quote-text {
    font-size: 0.9rem;
  }

  .modal-content {
    padding: 20px;
    max-height: 100vh;
  }

  .view-details-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}
