/* Reset styles */
body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Full-Screen Slider */
.slider {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.slider h1 {
    text-align: left;
    font-weight: bold;
    font-size: clamp(2rem, 10vw, 10rem);
    font-style: italic;
}

.slider h1 span {
    text-align: left;
    font-weight: bold;
    font-size: clamp(2rem, 10vw, 10rem);
    color: #2aace2;
}

.slider h1 a {
    text-align: left;
    font-weight: bold;
    font-size: clamp(2rem, 10vw, 10rem);
    color: #2aace2;
    text-decoration: none;
}

.slider h1 a:hover {
    cursor: pointer;
}

/* Slide container */
.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

/* Individual slide */
.slide {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Full-screen images */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 15s infinite alternate;
}

/* Text Overlay and Animations */
.content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 2s forwards;
    z-index: 5;
    pointer-events: none;
    /* Prevent interference with slider */
    user-select: none;
}

/* Slide-specific Text Animations */
.slide-1 .content-overlay {
    animation: fadeIn 2s forwards, slideUp 1s forwards;
    background: rgba(0, 0, 0, 0.5);
}

.slide-2 .content-overlay {
    animation: fadeIn 2s forwards, slideLeft 1s forwards;
    background: rgba(0, 0, 0, 0.5);
}

.slide-3 .content-overlay {
    animation: fadeIn 2s forwards, slideRight 1s forwards;
    background: rgba(0, 0, 0, 0.5);
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 50%);
    }

    to {
        transform: translate(-50%, -50%);
    }
}

@keyframes slideLeft {
    from {
        transform: translate(-50%, 50%) translateX(100%);
    }

    to {
        transform: translate(-50%, -50%) translateX(0);
    }
}

@keyframes slideRight {
    from {
        transform: translate(-50%, 50%) translateX(-100%);
    }

    to {
        transform: translate(-50%, -50%) translateX(0);
    }
}

/* Flying Text Animation */
.animated-text {
    opacity: 0;
    transform: translateX(-100%);
    animation: textFlyIn 1.5s forwards;
}

@keyframes textFlyIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animated-text:nth-child(1) {
    animation-delay: 0.5s;
}

.animated-text:nth-child(2) {
    animation-delay: 1s;
}

.animated-text:nth-child(3) {
    animation-delay: 1.5s;
}

/* Navigation buttons */
.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: clamp(16px, 4vw, 36px);
    border: none;
    padding: clamp(8px, 2vw, 15px);
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 20%;
}

.slider button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Image Compare Container */
.img-compare-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 2;
}

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

/* Top Image (will be clipped) */
.img-compare-container .img-top {
    clip-path: inset(0 0 0 0%);
    /* Starts with 0% visibility */
    transition: clip-path 0s ease;
    /* Instant update without smooth transition */
}

.img-compare-container .slider-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: white;
    z-index: 10;
    pointer-events: none;
    /* transition: opacity 0.3s ease; */
}

.img-compare-container:hover .slider-bar {
    opacity: 1;
    /* Show on hover */
}




/* Prevent text selection during hover */
.dragging,
.dragging * {
    user-select: none;
}


.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

.slider-cursor-particles {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 1000;
    transition: transform 0.05s linear;
    mix-blend-mode: difference;
    /* optional for cool effect */
}


.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 10%;
    opacity: 1;
    pointer-events: none;
    will-change: transform, opacity;
    transition: opacity 0.5s ease-out;
}



@media (max-width: 768px) {

  /* The slider wrapper itself becomes shorter */
  .slider,
  .slide,
  .slides {
      height: 40vh;         /* or 70vh / 75vh – what feels right */
  }

  /* Keep dot‑nav & arrows clear of screen‑bottom keyboard bars */
  .slider-dots { bottom: 10px; }
  .prev, .next { top: calc(50% - 30px); }

  /* Optional: slow down zoom to reduce motion on small screens */
  .slide img { animation-duration: 25s; }

}