/* AtAflex Solutions Team Section CSS */

.ataflex-team-section {
  padding: 120px 20px;
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'Saans Regular', sans-serif;
  color: #fff;
  position: relative;
  z-index: 10;
}

.ataflex-team-header {
  text-align: center;
  margin-bottom: 80px;
}

.ataflex-team-header h2 {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #E8611E, #2E1473);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.ataflex-team-header p {
  font-size: 1.25rem;
  color: #a0aab2;
  max-width: 600px;
  margin: 0 auto;
}

/* Co-Founders Layout */
.ataflex-founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.ataflex-founder-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ataflex-founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #E8611E, #2E1473);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ataflex-founder-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(232, 97, 30, 0.3);
}

.ataflex-founder-card:hover::before {
  opacity: 1;
}

.ataflex-founder-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  background-color: #111213;
}

.ataflex-founder-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ataflex-founder-role {
  font-size: 1.1rem;
  color: #E8611E;
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ataflex-founder-bio {
  color: #a0aab2;
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

.ataflex-social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ataflex-social-link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

.ataflex-social-link:hover {
  background: #E8611E;
  color: #fff;
}

/* Team Grid (6 cols, 4 rows) */
.ataflex-team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.ataflex-team-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ataflex-team-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: rgba(46, 20, 115, 0.5);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ataflex-team-initials {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
  background-color: #111213;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ataflex-team-card:hover .ataflex-team-initials {
  transform: scale(1.05);
  border-color: rgba(232, 97, 30, 0.5);
}

.ataflex-team-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ataflex-team-role {
  font-size: 0.85rem;
  color: #8c97a1;
  margin-bottom: 20px;
}

.ataflex-team-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ataflex-team-icon {
  color: #a0aab2;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ataflex-team-icon:hover {
  color: #E8611E;
  transform: scale(1.1);
}

.ataflex-team-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 1200px) {
  .ataflex-team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .ataflex-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .ataflex-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ataflex-founders-grid {
    grid-template-columns: 1fr;
  }
}