.slider-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-before,
.image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-before {
  z-index: 1;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background-color: white;
  z-index: 2;
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.handle:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

.arrow {
  color: #667eea;
  font-size: 24px;
  z-index: 4;
  position: relative;
}

.labels {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 0 20px;
  z-index: 1;
}

.label {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.label.hiddenx {
  opacity: 0;
}

.label-before {
  margin-left: 20px;
}

.label-after {
  margin-right: 20px;
}

.instructions {
  margin-top: 25px;
  font-size: 16px;
  font-weight: 300;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .slider-wrapper {
    height: 500px;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .slider-wrapper {
    height: 400px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .handle {
    width: 50px;
    height: 50px;
  }

  .label {
    font-size: 14px;
    padding: 6px 15px;
  }

  .instructions {
    font-size: 14px;
  }
}
