/* ===================== TEAM HOME COMPONENT STYLES ===================== */
.team {
  position: relative;
  background: #000;
  color: #e9e9e9;
  padding: clamp(80px, 10vw, 140px) 16px clamp(60px, 8vw, 110px);
  text-align: center;
  font-family: 'Outfit', sans-serif;
  
  /* Background Image Setup */
  background-image: url("/assets/teambg.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

/* Dark overlay for contrast */
.team::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, #000 100%);
  z-index: 1;
}

.team__head {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

.team__title {
  margin: 0 0 clamp(10px, 2vw, 20px);
  font-weight: 300; 
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #fff, #777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team__tag {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  letter-spacing: 1px;
  font-size: clamp(14px, 1.5vw, 16px);
}

/* --- VIEWPORT & TRACK --- */
.team__viewport {
  position: relative;
  z-index: 2;
  height: clamp(400px, 70vh, 650px);
  max-width: 1200px;
  margin: 0 auto;
  cursor: grab;
  touch-action: pan-y; 
  user-select: none;
  perspective: 1500px;
  
  /* 🔥 Reduced by 20% (from 320px to 256px) */
  --step: 256px; 
}
.team__viewport:active { cursor: grabbing; }

.team__track {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
}

.team__card {
  position: absolute;
  top: 50%; left: 50%;
  height: 100%;
  aspect-ratio: 3 / 4;
  
  /* 🔥 Width reduced by 20% (90vw -> 72vw | 480px -> 384px) */
  max-width: min(72vw, 384px); 
  
  transition: opacity 0.5s ease; 
  will-change: transform, opacity;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
}

.team__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.9);
  pointer-events: none; 
}

/* --- META SECTION --- */
.team__meta {
  position: relative;
  z-index: 10;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#memberName {
  font-size: clamp(1.8rem, 3vw, 2.5rem); 
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 40%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#memberRole {
  font-size: 0.8rem; 
  color: rgba(255, 255, 255, 0.5); 
  text-transform: uppercase;
  letter-spacing: 4px; 
  font-weight: 300;
  margin-bottom: 30px;
}

.team__viewmore {
  display: inline-block;
  padding: 14px 40px; 
  font-size: 0.8rem;  
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: all 0.4s ease;
}

.team__viewmore:hover {
  background: #fff; color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* --- MOBILE STACKED LAYOUT --- */
@media (max-width: 768px) {
  .team__viewport { 
    height: 500px; 
    /* 🔥 Reduced by 20% (from 180px to 144px) */
    --step: 144px; 
  }
  .team__card { border-radius: 20px; }
  
  .team__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  #memberName { font-size: 1.8rem; text-align: center; }
  #memberRole { font-size: 0.75rem; letter-spacing: 3px; text-align: center; }
}