/* =========================================
   BYALL AUTOMATION — ENGINEERING & DEPLOYMENT TEAM
   engineering-deployment-team.css
   ========================================= */

/* ── TEAM SECTION ── */

.team-section {
  background:
    radial-gradient(ellipse at top left, rgba(26,159,224,.18), transparent 40%),
    radial-gradient(ellipse at bottom right, rgba(245,197,24,.12), transparent 40%),
    linear-gradient(145deg, #000000 0%, #020b1a 55%, #0b1f33 100%);
  padding: 150px 25px 100px;
  overflow: hidden;
  position: relative;
}

/* Subtle grid overlay */
.team-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,159,224,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,159,224,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,.5) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,.5) 70%, transparent 100%);
}

.team-container {
  max-width: 1350px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */

.team-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 90px;
}

.team-badge {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  background: rgba(26,159,224,.10);
  border: 1px solid rgba(26,159,224,.30);
  color: #1a9fe0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.team-title {
  font-family: var(--font-display);
 font-size: clamp(minimum, ideal, maximum);
  line-height: 1.04;
  font-weight: 800;
  color: #ffffff;
  margin-top: 24px;
  letter-spacing: -2px;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.team-divider {
  width: 120px;
  height: 3px;
  border-radius: 999px;
  margin: 30px auto;
  background: linear-gradient(to right, #1a9fe0, #f5c518);
}

.team-description {
  color: #c8d5e4;
  font-size: 18px;
  line-height: 1.82;
  max-width: 780px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── TEAM GRID ── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* ── TEAM CARD ── */

.team-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 28px;
  padding: 44px 30px;
  text-align: center;
  transition: transform var(--t-mid, .3s) cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color var(--t-mid, .3s) ease,
              box-shadow var(--t-mid, .3s) ease,
              background var(--t-mid, .3s) ease;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a9fe0, #f5c518);
  opacity: 0;
  transition: opacity var(--t-mid, .3s) ease;
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: rgba(26,159,224,.40);
  box-shadow: 0 24px 52px rgba(26,159,224,.14),
              inset 0 1px 0 rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
}

.team-card:hover::before { opacity: 1; }

/* ── TEAM PHOTO ── */

.team-photo {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(26,159,224,.22);
  box-shadow: 0 0 18px rgba(26,159,224,.14),
              0 10px 30px rgba(0,0,0,.28);
  background: #0f172a;
  transition: transform var(--t-mid, .3s) cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color var(--t-mid, .3s) ease;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card:hover .team-photo {
  transform: scale(1.06);
  border-color: rgba(26,159,224,.50);
}

/* ── TEAM ROLE & POSITION ── */

.team-role {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.team-position {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(245,197,24,.10);
  border: 1px solid rgba(245,197,24,.25);
  color: #f5c518;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.team-text {
  color: #c8d5e4;
  font-size: 14.5px;
  line-height: 1.80;
  margin-top: 22px;
  font-weight: 300;
}

/* ── TEAM EXTRA (avatars + copy) ── */

.team-extra {
  margin-top: 72px;
  text-align: center;
}

.team-extra-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.team-extra-avatars img,
.team-count {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #020b1a;
  margin-left: -12px;
  object-fit: cover;
  flex-shrink: 0;
}

.team-count {
  background: linear-gradient(135deg, #1a9fe0, #1a6fc4);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26,159,224,.30);
}

.team-extra p {
  max-width: 760px;
  margin: 0 auto;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.80;
  font-weight: 300;
}

