/* Before After Slider Styles */
.before-after-section {
    padding: 80px 0;
    background-color: transparent;
    position: relative;
    z-index: 5;
}

.before-after-container {
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    cursor: grab;
    user-select: none;
}

.before-after-slider:active {
    cursor: grabbing;
}

.before-after-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.before-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-image {
    z-index: 1;
}

.after-image {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.before-after-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    z-index: 6;
    transform: translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    will-change: left;
    pointer-events: auto;
}

.before-after-handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
}

.before-after-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease-out;
}

.before-after-handle-circle svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.before-after-handle:hover .before-after-handle-circle {
    transform: translate(-50%, -50%) scale(1.1);
}

.before-after-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

.before-after-description {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .before-after-section {
        padding: 60px 0;
    }
    
    .before-after-container {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .before-after-slider {
        border-radius: 12px;
    }
    
    .before-after-handle-circle {
        width: 48px;
        height: 48px;
    }
    
    .before-after-handle-circle svg {
        width: 18px;
        height: 18px;
    }
    
    .before-after-label {
        font-size: 12px;
        padding: 6px 12px;
        top: 15px;
    }
    
    .before-label {
        left: 15px;
    }
    
    .after-label {
        right: 15px;
    }
    
    .before-after-description {
        font-size: 0.9rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .before-after-handle-circle {
        width: 40px;
        height: 40px;
    }
    
    .before-after-handle-circle svg {
        width: 16px;
        height: 16px;
    }
    
    .before-after-label {
        font-size: 11px;
        padding: 5px 10px;
    }
}



