/* =============================================
   VOLTRA SERVICES — OurTeam.css  (Full Rebuild)
   10-member grid, mobile-first, hamburger nav
   ============================================= */

.team-page { background-color: #080808; }
.team-page .page-bg { display: none; }

/* Main — mobile default (56px bar) */
.team-main {
  position: relative;
  z-index: 1;
  padding-top: calc(56px + 28px);
  padding-bottom: 72px;
  min-height: 100vh;
}

/* ── PAGE HEADER ── */
.team-header { text-align: center; padding: 0 16px 36px; }

.team-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  color: #e5e7eb;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px; padding: 5px 16px; margin-bottom: 20px;
}
.team-eyebrow-icon { font-size: 0.9rem; }

.team-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 7vw, 5.2rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.01em; line-height: 1.08; margin-bottom: 14px;
}
.team-title-blue {
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.team-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 20px;
}
.team-divider {
  width: 44px; height: 3px;
  background: linear-gradient(90deg, #1a8cff, #5ab4ff);
  border-radius: 2px; margin: 0 auto;
}

/* ── CARDS GRID — mobile: 1 col ── */
.team-cards-section { padding: 0 16px; max-width: 1280px; margin: 0 auto; }

.team-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ── Base card ── */
.team-card {
  background: #0f1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 18px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), border-color 0.25s, box-shadow 0.25s;
  animation: teamCardIn 0.5s ease both;
}
.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74,158,255,0.35);
  box-shadow: 0 14px 36px rgba(26,140,255,0.12);
}

.team-card[data-index="0"] { animation-delay: 0.03s; }
.team-card[data-index="1"] { animation-delay: 0.06s; }
.team-card[data-index="2"] { animation-delay: 0.09s; }
.team-card[data-index="3"] { animation-delay: 0.12s; }
.team-card[data-index="4"] { animation-delay: 0.15s; }
.team-card[data-index="5"] { animation-delay: 0.18s; }
.team-card[data-index="6"] { animation-delay: 0.21s; }
.team-card[data-index="7"] { animation-delay: 0.24s; }
.team-card[data-index="8"] { animation-delay: 0.27s; }
.team-card[data-index="9"] { animation-delay: 0.30s; }

@keyframes teamCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Avatar ── */
.team-avatar-wrap {
  position: relative;
  width: 120px; height: 120px;
  margin-bottom: 18px; flex-shrink: 0;
}

.avatar-bg {
  position: absolute; inset: 0; border-radius: 50%;
}

/* Solid backgrounds */
.avatar-bg--yellow      { background: #f5d000; }
.avatar-bg--dark        { background: #2a2a2a; }

/* Ring borders */
.avatar-bg--teal-ring   { background: #0a1a2a; border: 2px solid rgba(20,184,166,0.5); box-shadow: 0 0 0 4px rgba(20,184,166,0.1); }
.avatar-bg--gold-ring   { background: #0a1a2a; border: 2px solid rgba(202,138,4,0.5);  box-shadow: 0 0 0 4px rgba(202,138,4,0.1); }
.avatar-bg--blue-ring   { background: #0a1a2e; border: 2px solid rgba(59,130,246,0.5);  box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.avatar-bg--pink-ring   { background: #1a0820; border: 2px solid rgba(244,114,182,0.5); box-shadow: 0 0 0 4px rgba(244,114,182,0.1); }
.avatar-bg--green-ring  { background: #041410; border: 2px solid rgba(52,211,153,0.5);  box-shadow: 0 0 0 4px rgba(52,211,153,0.1); }
.avatar-bg--orange-ring { background: #180900; border: 2px solid rgba(251,146,60,0.5);  box-shadow: 0 0 0 4px rgba(251,146,60,0.1); }
.avatar-bg--purple-ring { background: #120a2a; border: 2px solid rgba(167,139,250,0.5); box-shadow: 0 0 0 4px rgba(167,139,250,0.1); }

/* Photo */
.avatar-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; object-position: center top;
  display: block; z-index: 2;
}

/* Fallback silhouette */
.avatar-placeholder {
  position: absolute; inset: 0; border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  background: #0d1a2e; z-index: 2;
}

/* Badge */
.avatar-badge {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; z-index: 3;
  border: 2px solid #0f1117;
}

.badge--blue   { background: #1d4ed8; }
.badge--purple { background: #7c3aed; }
.badge--pink   { background: #be185d; }
.badge--teal   { background: #0d9488; }
.badge--gold   { background: #b45309; }
.badge--green  { background: #059669; }
.badge--orange { background: #ea580c; }

/* Member info */
.member-name {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 5px; line-height: 1.2;
}
.member-role {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem; font-weight: 600; line-height: 1.35; margin: 0 0 12px;
}
.role--blue   { color: #60a5fa; }
.role--purple { color: #a78bfa; }
.role--pink   { color: #f472b6; }
.role--teal   { color: #2dd4bf; }
.role--gold   { color: #fbbf24; }
.role--green  { color: #34d399; }
.role--orange { color: #fb923c; }

.member-bio {
  font-family: 'Barlow', sans-serif;
  font-size: 0.76rem; color: rgba(255,255,255,0.5); line-height: 1.65; margin: 0; flex: 1;
}

/* ── BOTTOM BANNER ── */
.team-banner { max-width: 900px; margin: 36px auto 0; padding: 0 16px; }

.team-banner-inner {
  display: flex; flex-direction: column; gap: 16px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 22px 20px;
}
.banner-left { display: flex; align-items: center; gap: 16px; }
.banner-star-wrap {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(26,140,255,0.15);
  border: 1.5px solid rgba(26,140,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #4a9eff; flex-shrink: 0;
}
.banner-line1 { font-family: 'Barlow', sans-serif; font-size: 0.95rem; font-weight: 700; color: #fff; margin: 0; }
.banner-line2 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 800; color: #4a9eff; margin: 0; }
.banner-divider-v { width: 100%; height: 1px; background: rgba(255,255,255,0.1); }
.banner-right-text { font-family: 'Barlow', sans-serif; font-size: 0.84rem; color: rgba(255,255,255,0.6); line-height: 1.65; margin: 0; }

/* ================================================
   RESPONSIVE — scale up from mobile
   ================================================ */

/* 480px — 2 columns */
@media (min-width: 480px) {
  .team-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-cards-section { padding: 0 20px; }
  .team-banner { padding: 0 20px; }
}

/* 700px — banner row */
@media (min-width: 700px) {
  .team-banner-inner { flex-direction: row; align-items: center; gap: 0; padding: 24px 28px; }
  .banner-left { padding-right: 24px; }
  .banner-divider-v { width: 1px; height: 48px; margin: 0 24px; }
  .banner-right-text { flex: 1; }
}

/* 768px — 3 columns */
@media (min-width: 768px) {
  .team-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .team-cards-section { padding: 0 24px; }
}

/* 900px — desktop nav + 4 columns */
@media (min-width: 900px) {
  .team-main { padding-top: calc(68px + 52px); }
  .team-cards { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .team-cards-section { padding: 0 32px; }
  .team-header { padding: 0 32px 48px; }
  .team-banner { padding: 0 32px; }
}

/* 1200px — 5 columns */
@media (min-width: 1200px) {
  .team-cards { grid-template-columns: repeat(5, 1fr); }
}

/* ================================================
   HAMBURGER BUTTON
   ================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-shrink: 0; z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   MOBILE NAVBAR  <=680px
   ================================================ */
@media (max-width: 680px) {
  .nav-hamburger { display: flex; }

  .navbar {
    top: 0 !important; left: 0 !important; right: 0 !important;
    transform: none !important; width: 100% !important; border-radius: 0 !important;
  }
  .nav-inner {
    border-radius: 0 !important; width: 100% !important;
    padding: 0 18px !important; height: 56px !important;
    display: flex !important; align-items: center !important;
    justify-content: space-between !important; position: relative !important;
  }
  .nav-links {
    display: none !important;
    position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,14,38,0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(26,140,255,0.3);
    border-bottom: 1px solid rgba(26,140,255,0.3);
    padding: 8px 0 12px; gap: 0; height: auto; z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .nav-links.is-open {
    display: flex !important;
    animation: teamNavSlide 0.22s ease both;
  }
  @keyframes teamNavSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links li { width: 100%; }
  .nav-link {
    display: block !important; width: 100% !important;
    padding: 14px 24px !important; font-size: 0.92rem !important;
    border-radius: 0 !important; text-align: left !important;
    letter-spacing: 0.05em !important;
    color: rgba(255,255,255,0.75) !important;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s;
  }
  .nav-link:hover { background: rgba(26,140,255,0.1) !important; color: #fff !important; }
  .nav-link.active {
    border-left: 3px solid #1a8cff !important;
    color: #fff !important;
    background: rgba(26,140,255,0.1) !important;
    padding-left: 21px !important;
  }
  .nav-link.active::after { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .team-card { animation: none; }
  .team-card:hover { transform: none; }
}