
body {
    background-color: black;
    color: white;
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  .page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .page-title {
    text-align: center;
    margin-top: 40px;
    font-size: 2rem;
  }
  
  .comparison-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 100px;
    padding-top: 100px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .comparison {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }
  
  .comparison .before,
  .comparison .after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .comparison .after {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 0s linear;
    background-color: #0b1a16;
    transition: clip-path 0s linear, opacity 0.3s ease;
  }
  
  .comparison input[type="range"] {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    appearance: none;
    z-index: 10;
  }
  
  .comparison input[type="range"]::-webkit-slider-thumb,
  .comparison input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: black;
    border-radius: 50%;
    cursor: pointer;
  }
  

  .comparison input[type="range"] {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  
  .comparison.revealed input[type="range"] {
    opacity: 1;
    pointer-events: auto;
  }
  
  
  @media (max-width: 700px) {

    .comparison-grid{
      gap: 20px;
      padding-top: 25px;
    }
  }

  @keyframes revealThenHide {
    0% {
      clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
      opacity: 0.5;
    }
    50% {
      clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
      opacity: 1;
    }
    100% {
      clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
      opacity: 0.5;
    }
  }
  
  .comparison .after.animate-in {
    animation: revealThenHide 2s ease-in-out forwards;
  }
  
  
  
  