/* ==========================================================================
   Our Team Landing Page CSS (Exact Elements Style Only)
   ========================================================================== */

/* CSS Variables & Tokens */
:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f5;
  --bg-dark-section: #0a0a0c;
  
  --text-main: #09090b;
  --text-muted: #71717a;
  --text-inverse: #ffffff;
  
  /* Yellow Accent Palette */
  --accent-yellow: #facc15;
  --accent-yellow-hover: #eab308;
  --accent-yellow-dark: #ca8a04;
  
  --glass-bg: rgba(14, 14, 18, 0.65);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(20px) saturate(180%);
  
  --card-radius: 28px;
  --inner-radius: 20px;
  
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-yellow: 0 10px 25px rgba(250, 204, 21, 0.4);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
}

/* Reset & Global Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Main Page Wrapper */
.team-page-wrapper {
  width: 100%;
}

/* Top Hero Section */
.team-hero-section {
  background-color: var(--bg-primary);
  padding: 60px 24px 40px;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Category Badge Tag */
.section-tag {
  background: var(--accent-yellow);
  color: #000000;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: inline-block;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.25);
}

/* Main Heading */
.main-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

/* Subtitle */
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 36px;
}

.desktop-only {
  display: inline;
}

/* Filter Tabs */
.filter-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.filter-tab {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
}

.filter-tab.active {
  background: var(--accent-yellow);
  color: #000000;
  font-weight: 800;
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.45);
}

/* Card Grid Wrapper */
.cards-split-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 60px;
  background-color: var(--bg-primary);
}

.cards-container {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grid Layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* Team Card */
.team-card {
  position: relative;
  height: 580px;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), opacity 0.4s ease;
  background-color: #121216;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Extra cards animated hide/show */
.team-card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.95);
}

.team-card.fade-in {
  animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Card Image Wrapper & Zoom */
.card-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-img {
  transform: scale(1.06);
}

/* Glassmorphic Overlay Card */
.glass-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--inner-radius);
  padding: 22px 20px 18px;
  z-index: 5;
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.team-card:hover .glass-overlay {
  border-color: rgba(250, 204, 21, 0.5);
}

/* Member Info Text */
.member-info {
  margin-bottom: 14px;
}

.member-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.member-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.member-bio {
  font-size: 0.83rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.42;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent-yellow);
  color: #000000;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

/* See All Button */
.action-footer {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-see-all {
  background: var(--accent-yellow);
  color: #000000;
  border: none;
  padding: 15px 34px;
  border-radius: 40px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-yellow);
  transition: all var(--transition-normal);
}

.btn-see-all:hover {
  background: var(--accent-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(250, 204, 21, 0.55);
}

.btn-see-all .icon-arrow {
  font-size: 0.88rem;
  transition: transform var(--transition-fast);
}

.btn-see-all:hover .icon-arrow {
  transform: translateX(4px);
}

/* Detail Modal Dialog */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: #ffffff;
  border-radius: 28px;
  max-width: 820px;
  width: 100%;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .modal-card {
  background: #141419;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-close-btn:hover {
  background: var(--accent-yellow);
  color: #000000;
  transform: rotate(90deg);
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  height: 100%;
  flex: 1;
  min-height: 0;
}

.modal-image-col {
  height: 420px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-col img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-body-col {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  min-height: 0;
}

.modal-tag {
  color: var(--accent-yellow-dark);
  background: rgba(250, 204, 21, 0.15);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
  width: fit-content;
}

.modal-body-col h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-role {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
}

.modal-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
}

[data-theme="dark"] .modal-divider {
  background: rgba(255, 255, 255, 0.1);
}

.modal-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.9;
  margin-bottom: 24px;
}

.modal-skills h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

[data-theme="dark"] .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-modal-contact {
  text-decoration: none;
  background: var(--accent-yellow);
  color: #000000;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.3);
}

.btn-modal-contact:hover {
  background: var(--accent-yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.45);
}

.modal-socials {
  display: flex;
  gap: 8px;
}

.modal-socials .social-icon {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

.modal-socials .social-icon:hover {
  background: var(--accent-yellow);
  color: #000000;
}

[data-theme="dark"] .modal-socials .social-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 1300px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .main-title {
    font-size: 2.75rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .desktop-only {
    display: none;
  }
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .modal-card {
    max-height: 85vh;
  }
  .modal-content-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .modal-image-col {
    height: 220px;
    flex-shrink: 0;
  }
  .modal-body-col {
    padding: 20px;
    justify-content: flex-start;
  }
  .modal-close-btn {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
    z-index: 9999 !important;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.8rem;
  }
  .team-hero-section {
    padding: 40px 16px 20px;
  }
  .modal-image-col {
    height: 180px;
  }
}
