/* Mastec Digital — team.html specific styles */

.team-hero {
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
  background: #08080f;
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(251, 0, 68, 0.14), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(251, 0, 68, 0.08), transparent 45%);
  pointer-events: none;
}

.team-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 60px;
  position: relative;
}

.team-header.section-title .label {
  border: 1px solid rgba(251, 0, 68, 0.22);
  font-size: 10px;
  letter-spacing: 3px;
  padding: 7px 22px;
}

.team-header.section-title h2 {
  text-transform: none;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
}

.team-header.section-title h2 em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--red);
  background: linear-gradient(135deg, var(--red), #ff6b8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-glass-card {
  width: 260px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-invert);
  background: #12121e;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.team-glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 0, 68, 0.4);
  box-shadow: 0 25px 50px rgba(35, 41, 51, 0.5), 0 0 24px rgba(251, 0, 68, 0.25);
}

.role-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.role-badge.role-ceo { background: var(--red); border-color: transparent; box-shadow: 0 4px 14px rgba(251, 0, 68, 0.55); }
.role-badge.role-dev { background: #0369a1; border-color: transparent; box-shadow: 0 4px 14px rgba(3, 105, 161, 0.5); }
.role-badge.role-pm  { background: #7c3aed; border-color: transparent; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.5); }
.role-badge.role-dis { background: #c2771a; border-color: transparent; box-shadow: 0 4px 14px rgba(194, 119, 26, 0.5); }

.member-photo-area {
  position: relative;
  height: 230px;
  background: linear-gradient(180deg, #2a2d3e 0%, #1e2130 45%, #12121e 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.member-photo-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.member-photo-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 0.06) 3px, rgba(0, 0, 0, 0.06) 4px);
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

.member-photo-area img {
  height: 220px;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  position: relative;
  z-index: 3;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
}

.team-glass-card:hover .member-photo-area img {
  transform: translateY(-10px) scale(1.04);
}

.floor-glow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 170px;
  height: 34px;
  background: var(--red);
  filter: blur(30px);
  opacity: 0.28;
  transform: translateX(-50%);
  transition: all 0.35s var(--ease);
}

.team-glass-card:hover .floor-glow {
  opacity: 0.48;
  width: 210px;
}

.card-body-content {
  padding: 14px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member-name {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.member-role {
  color: var(--red);
  font-weight: 600;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-accent {
  width: 32px;
  height: 2px;
  background: var(--red);
  opacity: 0.55;
  margin: 12px 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-invert-muted);
  transition: all 0.25s var(--ease);
}

.social-links a:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}

.team-carousel .carousel-clone {
  pointer-events: none;
}

.team-carousel .carousel-spacer {
  flex: 0 0 auto;
  width: max(10px, calc(50vw - 150px));
}

.team-carousel .carousel-slide {
  width: 260px;
  opacity: 0.5;
  transform: scale(0.88);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.team-carousel .carousel-slide.is-center {
  opacity: 1;
  transform: scale(1.08);
  z-index: 3;
}

.team-carousel .carousel-slide.is-center .team-glass-card {
  border-color: rgba(251, 0, 68, 0.55);
  box-shadow: 0 25px 60px rgba(251, 0, 68, 0.3), 0 0 0 1px rgba(251, 0, 68, 0.35);
}

.team-carousel {
  position: relative;
  padding-bottom: 40px;
}

.team-carousel .carousel-track {
  padding-top: 28px;
}

.team-carousel .carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 4px;
  margin-top: 0;
  pointer-events: none;
}

.team-carousel .carousel-prev,
.team-carousel .carousel-next {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.team-carousel .carousel-prev:hover,
.team-carousel .carousel-next:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(251, 0, 68, 0.4);
}

.team-carousel .carousel-dots {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .team-carousel .carousel-prev,
  .team-carousel .carousel-next {
    display: none;
  }
}

.team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 720px;
  margin: 70px auto 0;
}

.team-stats .stat-item {
  position: relative;
  flex: 1 1 130px;
  text-align: center;
  padding: 28px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(8, 8, 16, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.team-stats .stat-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(251, 0, 68, 0.4);
  box-shadow: 0 16px 36px rgba(251, 0, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.team-stats .num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.team-stats .num em {
  font-style: normal;
  color: var(--red);
}

.team-stats .lbl {
  display: block;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-invert-muted);
  margin-top: 8px;
}

@media (max-width: 600px) {
  .team-stats .stat-item {
    flex: 1 1 calc(50% - 9px);
  }
}
