.app2 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero2 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp2 0.8s ease-out forwards;
}

.container2 {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-content2 {
    flex: 1;
}

.hero-content2 h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content2 p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
}

.hero-image2 {
    flex: 1;
    min-width: 300px;
}

/* Before/After Slider Styles */
.container12 {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}


.slider-container2 {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    cursor: grab;
    user-select: none;
}

.slider-container2:active {
    cursor: grabbing;
}

.image-container2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-container2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}
/* 
. -image2 {
    z-index: 1;
} */

.after-image2 {
    z-index: 2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

/* Image Labels */
.image-label2 {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    /* backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.before-label2 {
    left: 20px;
}

.after-label2 {
    right: 20px;
}

/* Slider Handle */
.slider-handle2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: grab;
}

.slider-handle2:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle2:active {
    cursor: grabbing;
}

.handle-button2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    position: relative;
    overflow: hidden;
}

.handle-button2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
}

.arrow-left2,
.arrow-right2 {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
}

.arrow-left2 {
    border-right: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    left: 18px;
}

.arrow-right2 {
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    right: 18px;
}

/* Slider Line */
.slider-line2 {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    z-index: 9;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container2 {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-content2 {
        text-align: center;
    }

    .hero-content2 h1 {
        font-size: 2.5rem;
    }

    .hero-content2 p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .slider-container2 {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .app2 {
        padding: 1rem;
    }

    .container2 {
        gap: 1.5rem;
    }

    .hero-content2 h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content2 p {
        font-size: 1rem;
    }

    .slider-container2 {
        height: 300px;
    }

    .handle-button2 {
        width: 50px;
        height: 50px;
    }

    .arrow-left2 {
        border-right: 6px solid white;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        left: 16px;
    }

    .arrow-right2 {
        border-left: 6px solid white;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        right: 16px;
    }

    .image-label2 {
        top: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .before-label2 {
        left: 15px;
    }

    .after-label2 {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content2 h1 {
        font-size: 1.8rem;
    }

    .slider-container2 {
        height: 250px;
    }

    .handle-button2 {
        width: 45px;
        height: 45px;
    }

    .arrow-left2 {
        left: 14px;
    }

    .arrow-right2 {
        right: 14px;
    }
}

/* Reveal Animation */
@keyframes revealUp2 {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions */

.slider-handle2:hover .handle-button2 {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* Focus states for accessibility */
.slider-handle2:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
}