/* TEAM HERO */
.team-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.team-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.team-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-hero p {
  color: #cbd5f5;
  max-width: 600px;
  margin: auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* TEAM SECTION */
.team-section {
  padding: 80px 20px;
  background: var(--color-bg-soft);
}

.team-container {
  max-width: 800px;
  /* Reduced from 1000px to keep cards compact */
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  /* Reduced from 300px */
  gap: 30px;
  /* Reduced gap */
  justify-content: center;
}

.team-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 0;
  text-align: center;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.2);
}

.team-img-wrapper {
  /* height: 300px;  Removed fixed height */
  aspect-ratio: 3 / 4;
  /* Portrait ratio prevents zooming */
  width: 100%;
  overflow: hidden;
  position: relative;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* Slightly down from top to catch eyes/hair */
  transition: transform 0.5s ease;
}

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

.team-content {
  padding: 30px;
}

.team-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.team-role {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: block;
}

.team-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}


/* VALUES */
.team-values {
  background: #ffffff;
  padding: 100px 20px;
  text-align: center;
}

.team-values h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 60px;
}

.values-grid {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.value-card {
  background: var(--color-bg-soft);
  padding: 40px 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.value-card:hover {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  border-color: var(--border-color);
}

.value-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.value-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.1rem;
}

/* CTA */
.team-cta {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.team-cta h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.team-cta .cta-btn {
  display: inline-block;
  background: #ffffff;
  color: #1e3a8a;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.team-cta .cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}