/* =========================================
   BYALL AUTOMATION — ENGINEERING & DEPLOYMENT TEAM
   engineering-deployment-team.css
   ========================================= */

/* ── TEAM SECTION ── */

.team-section {
  position: relative;
  padding: 150px 25px 100px;
  overflow: hidden;
  background: #020b1a;
}

/* Koyu gradient — en alt katman */
.team-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left,    rgba(26,159,224,.20), transparent 45%),
    radial-gradient(ellipse at bottom right, rgba(245,197,24,.12), transparent 45%),
    linear-gradient(145deg,
      rgba(0,0,0,.88)    0%,
      rgba(2,11,26,.85)  45%,
      rgba(11,31,51,.82) 100%
    );
  z-index: 0;
  pointer-events: none;
}

/* Arka plan resmi — gradient üstünde, hafif görünür */
.team-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/about/byallautomation.png') center/cover no-repeat;
  opacity: .08;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: luminosity;
}

/* Grid overlay */
.team-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  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) 20%,
    rgba(0,0,0,.5) 80%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,.5) 20%,
    rgba(0,0,0,.5) 80%,
    transparent 100%
  );
}

.team-container {
  max-width: 1350px;
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

/* ── HEADER ── */

.team-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 90px;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.team-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  color: #ffffff;
  margin-top: 24px;
  letter-spacing: -2px;
  text-shadow: 0 4px 28px rgba(0,0,0,.5);
}

.team-title em {
  font-style: normal;
  background: linear-gradient(105deg, #ffffff 0%, #7dd4f8 40%, #1a9fe0 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-divider {
  width: 120px;
  height: 3px;
  border-radius: 999px;
  margin: 30px auto;
  background: linear-gradient(to right, #1a9fe0, #f5c518);
}

.team-description {
  color: rgba(255,255,255,.75);
  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,.08);
  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);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.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;
}

/* Subtle glow on hover */
.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(26,159,224,.10), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-mid, .3s) ease;
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: rgba(26,159,224,.40);
  box-shadow: 0 32px 64px rgba(0,0,0,.40),
              0 0 0 1px rgba(26,159,224,.15),
              inset 0 1px 0 rgba(255,255,255,.10);
  background: rgba(255,255,255,.07);
}

.team-card:hover::before { opacity: 1; }
.team-card:hover::after  { opacity: 1; }

/* ── TEAM PHOTO ── */

.team-photo {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(26,159,224,.25);
  box-shadow: 0 0 24px rgba(26,159,224,.18),
              0 12px 32px rgba(0,0,0,.35);
  background: #0f172a;
  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;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card:hover .team-photo {
  transform: scale(1.08);
  border-color: rgba(26,159,224,.55);
  box-shadow: 0 0 32px rgba(26,159,224,.28),
              0 16px 40px rgba(0,0,0,.40);
}

/* ── 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,.28);
  color: #f5c518;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: background var(--t-mid, .3s), border-color var(--t-mid, .3s);
}

.team-card:hover .team-position {
  background: rgba(245,197,24,.16);
  border-color: rgba(245,197,24,.45);
}

.team-text {
  color: rgba(255,255,255,.68);
  font-size: 14.5px;
  line-height: 1.80;
  margin-top: 22px;
  font-weight: 300;
}

/* ── EXTENDED TEAM ── */

.team-extra {
  margin-top: 80px;
  text-align: center;
  padding: 48px 40px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.team-extra-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.team-extra-avatars img,
.team-count {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #020b1a;
  margin-left: -14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.team-extra-avatars img:first-child {
  margin-left: 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 18px rgba(26,159,224,.35);
}

.team-extra p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,.65);
  font-size: 16px;
  line-height: 1.80;
  font-weight: 300;
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-section {
    padding: 120px 18px 72px;
  }

  .team-header {
    margin-bottom: 56px;
  }

  .team-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .team-description {
    font-size: 15px;
    line-height: 1.68;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .team-card {
    padding: 32px 24px;
    border-radius: 22px;
  }

  .team-photo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .team-role { font-size: 18px; }
  .team-text { font-size: 14px; }

  .team-extra {
    margin-top: 48px;
    padding: 32px 24px;
    border-radius: 22px;
  }

  .team-extra-avatars img,
  .team-count {
    width: 46px;
    height: 46px;
  }

  .team-extra p { font-size: 14px; }
}

@media (max-width: 480px) {
  .team-title { font-size: 26px; }
  .team-badge { font-size: 9px; letter-spacing: 2px; padding: 8px 18px; }
}