/* ============================================
   TEAM PAGE STYLES
   ============================================ */

/* -- TEAM HERO SECTION -- */
.team-hero {
  padding: 120px 48px 80px;
  text-align: center;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.05) 0%, rgba(200, 16, 46, 0.02) 100%);
}

.team-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.team-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin: 16px 0 24px;
  color: #ffffff;
}

.team-hero-title em {
  font-style: normal;
  color: var(--red);
}

.team-hero-desc {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* -- TEAM SECTION -- */
.team-section {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
}

.team-section:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.team-section-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.team-section-header .section-h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 13px;
  color: #cccccc;
  margin: 0;
}

/* -- TEAM GRID -- */
.team-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 30px;
}

.founders-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 900px;
  margin: 0 auto 50px;
}

.members-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .founders-grid {
    grid-template-columns: 1fr;
  }
  
  .members-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .founders-grid,
  .members-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* -- TEAM MEMBER CARD -- */
.team-member-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(200, 16, 46, 0.2);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-member-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(200, 16, 46, 0.4);
  transform: translateY(-4px);
}

/* -- MEMBER FRAME (Image Area) -- */
.member-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.1) 0%, rgba(200, 16, 46, 0.05) 100%);
}

.member-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

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

.team-member-card:hover .member-image {
  transform: scale(1.05);
}

/* -- MEMBER BADGE -- */
.member-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 20;
}

.founder-badge {
  background: linear-gradient(135deg, var(--red), #ff1a47);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
  position: absolute;
  top: -6px;
  right: 0;
  z-index: 20;
}

/* -- MEMBER CONTENT -- */
.member-content {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 1px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.team-member-card:hover .member-name {
  color: var(--red);
}

.member-title {
  font-size: 9px;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 600;
}

.member-bio {
  font-size: 11px;
  line-height: 1.5;
  color: #d4d4d4;
  margin: 0 0 5px;
}

.member-description {
  font-size: 16px;
  line-height: 1.5;
  color: #a0a0a0;
  margin: 0 0 8px;
  flex-grow: 1;
}

/* -- MEMBER LINKS -- */
.member-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.member-link {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  border-bottom: 1px solid rgba(200, 16, 46, 0.4);
  padding-bottom: 1px;
  transition: all 0.3s ease;
}

.member-link:hover {
  border-color: var(--red);
  color: #ffffff;
}

/* -- DESCRIPTION CONTAINER WITH SEE MORE -- */
.description-container {
  position: relative;
  overflow: visible;
  margin: 0 0 8px;
}

.description-container .member-description {
  display: none;
  margin: 0 0 6px;
  transition: all 0.4s ease;
}

.description-container.expanded .member-description {
  display: block;
}

.see-more-btn {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.see-more-btn:hover {
  color: #ffffff;
}

/* -- FOUNDER CARD SPECIAL STYLING -- */
.founder-card {
  max-width: 400px;
  margin: 0 auto;
}

.founder-card .member-frame {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: 0 12px 36px rgba(200, 16, 46, 0.15);
  overflow: hidden;
}

.founder-card:hover .member-frame {
  box-shadow: 0 16px 48px rgba(200, 16, 46, 0.25);
}

.founder-card .member-content {
  padding: 16px 14px;
}

.founder-card .member-name {
  font-size: 17px;
}

.founder-card .member-description {
  font-size: 13px;
  color: #b0b0b0;
}

/* -- COMING SOON CONTAINER -- */
.coming-soon-container {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(200, 16, 46, 0.04) 100%);
  border: 1px solid var(--border);
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  margin: 40px auto 0;
}

.coming-soon-header {
  margin-bottom: 24px;
}

.coming-soon-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff;
}

.coming-soon-header p {
  font-size: 12px;
  color: #cccccc;
  margin: 0;
  line-height: 1.5;
}

/* -- TEAM CTA SECTION -- */
.team-cta {
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.1) 0%, rgba(200, 16, 46, 0.05) 100%);
  border-top: 1px solid var(--border);
}

.team-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.team-cta-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
}

.team-cta-content p {
  font-size: 13px;
  color: #cccccc;
  margin: 0 0 20px;
}

/* -- REVEAL ANIMATION -- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-1.active {
  animation-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-2.active {
  animation-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-3.active {
  animation-delay: 0.3s;
}

/* -- MODAL STYLES -- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: #0a0a0a;
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 12px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.modal-container.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-content {
  position: relative;
  padding: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(200, 16, 46, 0.2);
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  color: #ffffff;
}

.modal-close:hover {
  background: rgba(200, 16, 46, 0.4);
  border-color: var(--red);
}

.modal-close i {
  width: 18px;
  height: 18px;
}

.modal-header {
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.15) 0%, rgba(200, 16, 46, 0.05) 100%);
}

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

.modal-body {
  padding: 32px;
}

.modal-member-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 8px;
  line-height: 1.1;
}

.modal-member-title {
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.modal-description-section {
  margin-bottom: 24px;
}

.modal-member-description {
  font-size: 11px;
  line-height: 1.7;
  color: #b0b0b0;
  margin: 0;
}

.modal-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(200, 16, 46, 0.2);
}

.modal-link {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-link:hover {
  color: #ffffff;
}

.modal-member-links:empty {
  display: none;
}

/* -- RESPONSIVE MODAL -- */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header {
    height: 350px;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-member-name {
    font-size: 28px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
  }
}
/* -- FOUNDERS GRID: 2 columns on large screens -- */
.founders-grid {
  grid-template-columns: repeat(2, minmax(280px, 400px));
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

@media (max-width: 768px) {
  .founders-grid {
    grid-template-columns: 1fr;
  }
}

/* -- SEE MORE BUTTON -- */
.see-more-btn {
  background: none;
  border: none;
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  transition: color 0.3s ease;
  display: inline; /* bio ke saath same line mein */
  vertical-align: baseline;
}
.see-more-btn:hover {
  color: #ffffff;
}

/* ── TEAM PAGE BLUE THEME OVERRIDES ── */
body.theme-blue .team-member-card {
  border-color: rgba(26, 107, 204, 0.2);
}
body.theme-blue .team-member-card:hover {
  border-color: rgba(26, 107, 204, 0.4);
}
body.theme-blue .member-badge,
body.theme-blue .founder-badge {
  background: #1a6bcc;
}
body.theme-blue .coming-soon-container {
  background: linear-gradient(135deg, rgba(26,107,204,0.08) 0%, rgba(26,107,204,0.04) 100%);
}
body.theme-blue .team-cta {
  background: linear-gradient(135deg, rgba(26,107,204,0.1) 0%, rgba(26,107,204,0.05) 100%);
}
body.theme-blue .team-hero {
  background: linear-gradient(135deg, rgba(26,107,204,0.05) 0%, rgba(26,107,204,0.02) 100%);
}
body.theme-blue .modal-container {
  border-color: rgba(26,107,204,0.3);
}
body.theme-blue .modal-close {
  background: rgba(26,107,204,0.2);
  border-color: rgba(26,107,204,0.4);
}
body.theme-blue .modal-close:hover {
  background: rgba(26,107,204,0.4);
  border-color: #1a6bcc;
}
body.theme-blue .modal-links {
  border-top-color: rgba(26,107,204,0.2);
}