/* Container styles */
.comparison-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  --position: 50%;
}

/* Image container */
.image-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-before {
  width: var(--position);
  z-index: 2;
  clip-path: polygon(0 0, var(--position) 0, var(--position) 100%, 0 100%);
}

/* Slider styles */
.slider-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  opacity: 0;
  z-index: 5;
  cursor: ew-resize;
}

.slider-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: white;
  left: var(--position);
  top: 0;
  z-index: 3;
  pointer-events: none;
}

.slider-button {
  position: absolute;
  left: var(--position);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 2px solid white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(1.05);
}

.slider-button:before,
.slider-button:after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-top: 3px solid white;
  border-right: 3px solid white;
  top: 50%;
  margin-top: -7.5px;
}

.slider-button:before {
  left: 5px;
  transform: rotate(-135deg);
}

.slider-button:after {
  right: 5px;
  transform: rotate(45deg);
}

.slider-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* Labels */
.labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.label {
  padding: 5px 10px;
  background: #4985d4;
  color: white;
  border-radius: 0px;
  font-weight: bold;
}

.label-3d {
  margin-right: auto;
}

.label-real {
  margin-left: auto;
}

/* Section styling */
.comparison-section {
  padding: 40px 20px;
  text-align: center;
}

.comparison-description {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #555;
}

@media (max-width: 575px) {
  
  
  .comparison-section .section-title {
   
    padding-bottom: 10px;

  }

  .comparison-section {
  padding: 60px 0px;
  text-align: center;
}
  .labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 1rem;
  }
}
