/* Before/After Slider Styles */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #f8f9fa 50%, #fff 50%);
}

.comparison-item {
    position: relative;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.before-section,
.after-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow-y: auto;
    cursor: default;
}

.before-section {
    background: #f8f9fa;
    z-index: 1;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.after-section {
    background: linear-gradient(135deg, #ffffff, #fcfcfc);
    clip-path: inset(0 0 0 50%);
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #1a73e8;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 3;
}

.slider-handle::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 115, 232, 0.2), rgba(26, 115, 232, 0.8), rgba(26, 115, 232, 0.2));
}

.slider-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-handle:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.text-content {
    font-size: 16px;
    line-height: 1.6;
    color: #202124;
    pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .comparison-slider {
        height: 300px;
        margin: 1rem auto;
    }

    .before-section,
    .after-section {
        padding: 1.5rem;
    }

    .text-content {
        font-size: 14px;
    }

    .slider-handle::after {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}