/* ============================================================
   IT Realms — team.css
   Page-specific styles for team.html
   ============================================================ */
  /* ── Team Page Styles ── */
  .team-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
  }
  .team-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(38,204,202,0.08) 0%, transparent 70%);
    pointer-events: none;
  }
  .team-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .team-hero-breadcrumb a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
  }
  .team-hero-breadcrumb a:hover { color: #26ccca; }
  .team-hero-breadcrumb span { color: rgba(255,255,255,0.25); }
  .team-hero-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #26ccca;
    background: rgba(38,204,202,0.1);
    border: 1px solid rgba(38,204,202,0.25);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
  }
  .team-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .team-hero h1 em {
    font-style: normal;
    color: #26ccca;
  }
  .team-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 48px;
  }
  .team-hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
  }
  .team-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .team-hero-stat-num {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #26ccca;
    line-height: 1;
  }
  .team-hero-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  /* ── Filter Tabs ── */
  .team-section {
    padding: 80px 0 100px;
    background: #f6faff;
    position: relative;
    overflow: hidden;
  }
  .team-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 80% 20%, rgba(38,204,202,0.07) 0%, transparent 65%),
      radial-gradient(ellipse 45% 40% at 15% 80%, rgba(255,230,37,0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
  }
  .team-section > * { position: relative; z-index: 1; }
  .team-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
  }
  .team-filter-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
  }
  .team-filter-btn:hover {
    border-color: #26ccca;
    color: #26ccca;
  }
  .team-filter-btn.active {
    background: #26ccca;
    border-color: #26ccca;
    color: #ffffff;
    font-weight: 600;
  }

  /* ── Team Grid ── */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
  @media (max-width: 1100px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 768px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  }
  @media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
  }

  /* ── Team Card ── */
  .team-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
  }
  .team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #26ccca, rgba(38,204,202,0.3));
    opacity: 0;
    transition: opacity 0.25s;
  }
  .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(38,204,202,0.12);
  }
  .team-card:hover::before { opacity: 1; }

  .team-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #26ccca 0%, #1aa8a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(38,204,202,0.3);
    letter-spacing: 0.05em;
  }
  .team-card-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .team-card-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #26ccca;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.4;
  }
  .team-card-dept {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
  }
  .dept-leadership { background: rgba(38,204,202,0.1); color: #1aa8a6; }
  .dept-engineering { background: rgba(79,70,229,0.08); color: #4f46e5; }
  .dept-operations { background: rgba(245,158,11,0.1); color: #d97706; }
  .dept-bizdev { background: rgba(16,185,129,0.1); color: #059669; }

  .team-card-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
  }
  .team-card-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
  }
  .team-card-linkedin svg {
    width: 16px;
    height: 16px;
  }

  /* Hidden card state for filtering */
  .team-card.hidden {
    display: none;
  }

  /* ── Team CTA ── */
  .team-cta {
    background: #f0f4f8;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .team-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(38,204,202,0.07) 0%, transparent 70%);
    pointer-events: none;
  }
  .team-cta-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #26ccca;
    margin-bottom: 20px;
  }
  .team-cta h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #0d1b2e;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
  }
  .team-cta p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(13,27,46,0.55);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
  }
  .team-cta-btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    background: #26ccca;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.2s;
    text-transform: uppercase;
  }
  .team-cta-btn:hover {
    background: #1fb8b6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(38,204,202,0.3);
  }

  @media (max-width: 768px) {
    .team-hero { padding: 120px 0 60px; }
    .team-hero-stats { gap: 28px; }
    .team-section { padding: 60px 0 80px; }
    .team-filter-bar { gap: 6px; }
    .team-filter-btn { padding: 7px 14px; font-size: 0.8rem; }
    .team-cta { padding: 60px 0; }
  }

/* ============================================================
   Team Card Zoom+Reveal Hover
   ============================================================ */
.team-card {
  overflow: hidden;
}
.team-card-avatar {
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
}
.team-card:hover .team-card-avatar {
  transform: scale(1.4) rotate(-12deg);
}
.team-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(135deg, rgba(38,204,202,0.9) 0%, rgba(10,32,70,0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 12px 12px 0 0;
  z-index: 5;
}
.team-card:hover .team-card-overlay { opacity: 1; }
.team-card-overlay-name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: translateY(10px) scale(0.7);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.32s cubic-bezier(0.34,1.4,0.64,1);
}
.team-card-overlay-role {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(10px) scale(0.7);
  opacity: 0;
  transition: opacity 0.3s ease 0.05s, transform 0.32s cubic-bezier(0.34,1.4,0.64,1) 0.05s;
}
.team-card:hover .team-card-overlay-name,
.team-card:hover .team-card-overlay-role {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* ============================================================
   RESPONSIVE — Mobile fill-ins
   ============================================================ */
@media (max-width: 580px) {
  .team-section { padding: 56px 0; }
  .team-grid { gap: 16px; }
  .team-card { padding: 24px 16px; }
  .team-hero-stats { flex-wrap: wrap; gap: 16px; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .team-filter-bar { gap: 6px; }
  .team-filter-btn { padding: 6px 12px; font-size: 0.72rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   TEAM HERO — background photo
   ============================================================ */
.team-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  z-index: 0;
}
.team-hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,6,18,0.90) 0%,
    rgba(15,52,96,0.75) 60%,
    rgba(6,6,18,0.65) 100%
  );
  z-index: 1;
}
.team-hero .ui-container {
  position: relative;
  z-index: 2;
}
