/* Team Section */
.team { position: relative; min-height: 100vh; background: linear-gradient(135deg, #111111, var(--color-black)); contain: paint; isolation: isolate; }
.team .section-container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 var(--spacing-lg); height: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; box-sizing: border-box; }
.team .team-header { text-align: center; position: sticky; top: 0; left: 0; right: 0; padding-top: 120px; background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgba(255,255,255,0.12); z-index: 20; }
.team .team-header .section-container { height: auto; }
.team .section-header {width: 100%; max-width: 800px; }
.team .section-title { font-size: 3.5rem; color: var(--color-white); text-shadow: 0 0 20px rgba(246,191,0,0.3); margin-bottom: 0; }
.team .section-subtitle { font-size: 1.2rem; color: var(--color-gray); margin-top: var(--spacing-sm); }
/* Match projects header design */
.team .team-header .section-title { margin-bottom: var(--spacing-sm); font-family: var(--font-english); }
.team .team-header .section-subtitle { letter-spacing: 0.2em; }

.team__content { width: 100%; max-width: 1360px; text-align: center; position: relative; }

/* Removed media embed styles (moved to contact.css) */

.team__description { margin-top: var(--spacing-xl); margin-bottom: var(--spacing-xl); }
.team__description p { font-size: 1.2rem; color: var(--color-gray); line-height: 1.8; }
.team__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); margin-top: var(--spacing-xl); }
.stat { text-align: center; }
.stat__number { font-family: var(--font-english); font-size: 3rem; font-weight: 700; color: var(--color-accent); margin-bottom: var(--spacing-xs); }
.stat__label { font-family: var(--font-english); font-size: 0.9rem; color: var(--color-gray); letter-spacing: 0.1em; text-transform: uppercase; }

/* Team Members Grid */
.team__members {
  --team-gap: 24px;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--team-gap);
  margin-top: 60px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.team__members::-webkit-scrollbar { display: none; }

/* Card width for 2-up (desktop) */
.team-member-card { flex: 0 0 calc((100% - var(--team-gap)) / 2); scroll-snap-align: start; }

/* Glass Card Style */
.team-member-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.team-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(246, 191, 0, 0.1) 0%, 
    transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.team-member-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(246, 191, 0, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  border-color: rgba(246, 191, 0, 0.3);
}

.team-member-card:hover::before {
  opacity: 1;
}

/* Member Image */
.member-image-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 25px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(246, 191, 0, 0.3);
  box-shadow: 0 0 30px rgba(246, 191, 0, 0.2);
}

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

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

/* Member Info */
.member-info {
  text-align: center;
}

.member-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.member-title {
  font-size: 0.95rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Projects */
.member-projects {
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 8px;
}

.project-items {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Skills */
.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.skill-tag {
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(246, 191, 0, 0.2), rgba(246, 191, 0, 0.1));
  border: 1px solid rgba(246, 191, 0, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-white);
  transition: all 0.3s;
}

.skill-tag:hover {
  background: linear-gradient(135deg, rgba(246, 191, 0, 0.3), rgba(246, 191, 0, 0.2));
  border-color: var(--color-accent);
  transform: scale(1.05);
}

/* Bio */
.member-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  min-height: 60px;
  text-align: left;
}

/* Social Links */
.member-social {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
}

.social-link:hover {
  background: linear-gradient(135deg, rgba(246, 191, 0, 0.2), rgba(246, 191, 0, 0.1));
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(246, 191, 0, 0.3);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Slider navigation */
.team__nav { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); pointer-events: none; }
.team__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.35); color: var(--color-white); cursor: pointer; pointer-events: auto; display: flex; align-items: center; justify-content: center; transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.team__arrow:hover { background: rgba(246,191,0,0.2); border-color: var(--color-accent); transform: translateY(-50%) scale(1.05); }
.team__arrow--prev { left: 8px; }
.team__arrow--next { right: 8px; }

/* Pagination dots */
.team__dots { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 16px; }
.team__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.35); transition: transform 0.2s, background 0.2s, border-color 0.2s; cursor: pointer; }
.team__dot:hover { transform: scale(1.15); border-color: var(--color-accent); }
.team__dot.is-active { background: var(--color-accent); border-color: var(--color-accent); transform: scale(1.2); }

/* Responsive Design */
@media (max-width: 1024px) {
  .team .section-title { font-size: 3rem; }
  .section-container { padding: 0 var(--spacing-md); }
  
  .team__members {
    gap: 20px;
  }
  .team-member-card { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 768px) {
  .team .section-title { font-size: 2.5rem; }
  .team .section-subtitle { font-size: 1rem; }
  .section-container { padding: 120px var(--spacing-sm) 0; }
  .team__stats { grid-template-columns: 1fr; gap: var(--spacing-md); }
  .team-member-card {
    padding: 25px;
  }
  
  .member-name {
    font-size: 1.3rem;
  }
  .team-member-card { flex: 0 0 100%; }
}
@media (max-width: 480px) {
  .team .section-title { font-size: 2rem; }
  .team .section-subtitle { font-size: 0.9rem; }
  .team-member-card {
    padding: 20px;
  }
  
  .member-image-container {
    width: 100px;
    height: 100px;
  }
  
  .member-bio {
    font-size: 0.9rem;
  }
} 