body {
  margin: 0;
  padding: 0;
  background: var(--color-white);
  color: var(--color-dark);
}

:root {
  --color-primary: #008c95;
  --color-dark: #333333;
  --color-gray: #5b6770;
  --color-light: #d9eeef;
  --color-white: #ffffff;
  --color-primary--orange: #ff8c42;
  --color-light--orange: #ffe8d9;
}

.dark {
  --color-primary: #31d1dd;
  --color-dark: #ffffff;
  --color-gray: #333333;
  --color-light: #494949;
  --color-white: #6f6f6f;
  --color-primary--orange: #d98753;
  --color-light--orange: #494949;
}

.dark {
  position: relative;

  .container-label {
    color: #fff;
  }
}

.dark::after {
  content: "";
  position: absolute;
  background: #333333;
  border-radius: 99px;
  width: 110%;
  height: 110%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

body {
  font-family: "Soleil", sans-serif;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slide-horizontal {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}

@keyframes slide-horizontal-reverse {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
}

@keyframes resize-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-15px) translateX(10px);
  }
  50% {
    transform: translateY(0) translateX(20px);
  }
  75% {
    transform: translateY(-10px) translateX(10px);
  }
}

/* Color classes */
.color-primary {
  fill: var(--color-primary);
}

.color-dark {
  fill: var(--color-dark);
}

.color-gray {
  fill: var(--color-gray);
}

.color-light {
  fill: var(--color-light);
}

.color-white {
  fill: var(--color-white);
}

.svg-container--orange {
  --color-primary: var(--color-primary--orange);
  --color-light: var(--color-light--orange);
}

/* Mixed color container - combines blue and orange */
.svg-container--multi .cog-small .color-primary {
  --color-primary: var(--color-primary--orange);
}
.svg-container--multi .person-right .color-primary {
  --color-primary: var(--color-primary--orange);
}
.svg-container--multi .mini-screen .color-primary {
  --color-primary: var(--color-primary--orange);
}

.svg-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 0;
}

.comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5rem;
  padding: 3rem;
  max-width: 1268px;
}

/* Staggered fade-in animation for comparison items */
.comparison-item {
  opacity: 0;
  animation: fade-in 0.8s ease-out forwards;
}

.comparison-item:nth-child(1) {
  animation-delay: 0s;
}

.comparison-item:nth-child(2) {
  animation-delay: 0.2s;
}

.comparison-item:nth-child(3) {
  animation-delay: 0.4s;
}

.comparison-item:nth-child(4) {
  animation-delay: 0.6s;
}

.comparison-item:nth-child(5) {
  animation-delay: 0.8s;
}

.comparison-item:nth-child(6) {
  animation-delay: 1s;
}

/* Speed up animations on hover */
.comparison-item:hover svg[class*="spin"],
.comparison-item:hover .cog-small,
.comparison-item:hover .cog-big {
  animation-duration: 6s !important;
}

.comparison-item:hover .person-right,
.comparison-item:hover .person-left {
  animation-duration: 3s !important;
}

.comparison-item:hover .mini-screen {
  animation-duration: 2.5s !important;
}

.comparison-item:hover .mid-screen {
  animation-duration: 3.5s !important;
}

.comparison-item:hover .big-screen {
  animation-duration: 4s !important;
}

.comparison-item:hover .bg-shape {
  animation-duration: 6s !important;
}

.container-label {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #333333;
  text-align: center;
  letter-spacing: 0.5px;
}

svg {
  /* border: 2px dotted red; */
  position: absolute;
}

.cog-small {
  width: 18.63%;
  height: 18.01%;
  inset: 10% auto auto 20%;
  z-index: 9;
  animation: spin 16s linear infinite;
  transform-origin: center;
}

.lines-details {
  width: 88.1%;
  height: 94.49%;
  inset: 5%;
  z-index: 8;
}

.person-right {
  width: 29.9%;
  height: 53.55%;
  inset: auto 10% 10% auto;
  z-index: 7;
  animation: slide-horizontal 8s ease-in-out infinite;
  transform-origin: center;
}

.person-left {
  width: 28.19%;
  height: 55.27%;
  inset: auto auto 10% 10%;
  z-index: 6;
  animation: slide-horizontal-reverse 8s ease-in-out infinite;
  transform-origin: center;
}

.mini-screen {
  width: 24.39%;
  height: 24.02%;
  inset: auto 40% 30% auto;
  z-index: 5;
  animation: resize-pulse 6s ease-in-out infinite;
  transform-origin: center;
}

.mid-screen {
  width: 41.8%;
  height: 34.31%;
  inset: auto 50% 20% auto;
  z-index: 4;
  animation: resize-pulse 8s ease-in-out infinite;
  transform-origin: center;
}

.cog-big {
  width: 45.46%;
  height: 43.99%;
  inset: 1% 10% auto auto;
  z-index: 3;
  animation: spin 24s linear infinite;
  transform-origin: center;
}

.big-screen {
  width: 96.44%;
  height: 60.66%;
  inset: auto 0% 15% auto;
  z-index: 2;
  animation: resize-pulse 10s ease-in-out infinite;
  transform-origin: center;
}

.bg-shape {
  width: 99.51%;
  height: 99.51%;
  inset: 0;
  z-index: 1;
  animation: float 16s ease-in-out infinite;
  transform-origin: center;
}
