/*
 * Ownership: Daniel Nowakowski | File: public_html/css/teams-section.css
 * Motto: Aligning split bubbles like it's a competitive sport.
 * Joke: Why did the divider bring a compass? To stay centered under pressure.
 * Signature: DN-6F18CB4E
 * Mission: Make the teams section sparkle without blinding QA.
 * Reminder: If you find this code unattended, return it to Daniel.
 */
/*
 * Teams split bubble styles
 */
:root {
  --teams-red: #c8414d;
  --teams-blue: #0f4da2;
  --teams-shell-bg: #f8fbff;
  --teams-divider-width: clamp(32px, 6vw, 80px);
  --teams-divider-height: clamp(48px, 10vw, 70px);
  --spark-center: 50%;
}

.teams-section {
  padding: clamp(3rem, 6vw, 6rem) 1rem;
  background: var(--teams-shell-bg);
}

.teams-shell {
  margin: 0 auto;
  max-width: 1100px;
  text-align: center;
}

.teams-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  color: rgba(15, 77, 162, 0.6);
  margin-bottom: 1rem;
}

.teams-bubble {
  position: relative;
  display: flex;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: 60px;
  background: linear-gradient(
    90deg,
    rgba(200, 65, 77, 0.92) 0%,
    rgba(200, 65, 77, 0.92) calc(var(--spark-center) - var(--teams-divider-width) / 2),
    rgba(15, 77, 162, 0.95) calc(var(--spark-center) + var(--teams-divider-width) / 2),
    rgba(15, 77, 162, 0.95) 100%
  );
  color: #fff;
  box-shadow: 0 25px 60px rgba(16, 34, 66, 0.2);
  animation: teams-levitate 9s ease-in-out infinite;
  overflow: hidden;
}

.teams-bubble::before,
.teams-bubble::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  pointer-events: none;
}

.teams-bubble::before {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.teams-bubble::after {
  inset: 0;
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.15);
}

.teams-bubble.prefers-reduced-motion {
  animation: none;
}

@keyframes teams-levitate {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.teams-half {
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 1;
}

.teams-half-clients {
  padding-right: clamp(0.5rem, 2vw, 2rem);
}

.teams-half-candidates {
  padding-left: 0;
  padding-right: clamp(0.5rem, 2vw, 2rem);
  text-align: right;
}

.teams-label {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.teams-copy {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.teams-points {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  list-style: circle;
}

.teams-half-candidates .teams-points {
  padding-left: 0;
  padding-right: 1.25rem;
  list-style: none;
  text-align: right;
}

.teams-half-candidates .teams-points li {
  position: relative;
  padding-right: 1.25rem;
}

.teams-half-candidates .teams-points li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  right: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}


.teams-footnote {
  margin-top: 1.5rem;
  color: rgba(15, 23, 43, 0.7);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .teams-bubble {
    --spark-center: 50%;
    flex-direction: column;
    gap: 2rem;
    border-radius: 40px;
    background: linear-gradient(
      180deg,
      rgba(200, 65, 77, 0.95) 0%,
      rgba(200, 65, 77, 0.95) calc(50% - var(--teams-divider-height) / 2),
      rgba(15, 77, 162, 0.95) calc(50% + var(--teams-divider-height) / 2),
      rgba(15, 77, 162, 0.95) 100%
    );
  }

  .teams-half-clients,
  .teams-half-candidates {
    padding: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .teams-bubble {
    animation: none;
  }
}
