/* Main section styling */
.compare-section {
    padding: 0rem 0rem;
    background-color: #f3f4f6;
}

.compare-section .container {
    /* max-width: 80rem; */
    margin: 0 auto;
}

.compare-section h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

/* .compare-section .flex-center {
    display: flex;
    justify-content: center;
} */

.compare-section .compare-wrapper {
    padding: 0rem;
    border: 0px solid #e5e5e5;
    border-radius: 1.5rem;
    /* background-color: #f5f5f5; */
}

/* Compare container - FULL WIDTH */
.compare-container {
    width: 100%;
    height: 650px;
    overflow: hidden;
    position: relative;
    cursor: col-resize;
}

/* Slider line - ALWAYS VISIBLE */
.slider-line {
    height: 100%;
    width: 2px;
    position: absolute;
    top: 0;
    left: 50%;
    margin: auto;
    z-index: 30;
    background: linear-gradient(to bottom, transparent 5%, #6366f1 50%, transparent 95%);
    transform: translateX(-50%);
    /* Make it always visible with a subtle glow */
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    /* Ensure it's always rendered */
    opacity: 1;
    visibility: visible;
}

/* Gradient masks */
.mask-gradient-left {
    mask-image: radial-gradient(100px at left, white, transparent);
    -webkit-mask-image: radial-gradient(100px at left, white, transparent);
}

.mask-gradient-left-small {
    mask-image: radial-gradient(50px at left, white, transparent);
    -webkit-mask-image: radial-gradient(50px at left, white, transparent);
}

/* Gradient elements - ADJUSTED FOR MUCH LARGER SIZE */
.gradient-indigo {
    width: 16rem;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: linear-gradient(to right, #818cf8, transparent);
    z-index: 20;
    opacity: 0.5;
}

.gradient-cyan {
    width: 4rem;
    height: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: linear-gradient(to right, #22d3ee, transparent);
    z-index: 10;
    opacity: 1;
}

/* Sparkles container - ADJUSTED FOR MUCH LARGER SIZE */
#sparkles-container {
    width: 4rem;
    height: 75%;
    position: absolute;
    top: 50%;
    right: -4rem;
    transform: translateY(-50%);
    mask-image: radial-gradient(100px at left, white, transparent);
    -webkit-mask-image: radial-gradient(100px at left, white, transparent);
}

#sparkles-canvas {
    width: 100%;
    height: 100%;
}

/* Handlebar - ADJUSTED FOR MUCH LARGER SIZE */
.handlebar {
    height: 2rem;
    width: 2rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    position: absolute;
    top: 50%;
    right: -1rem;
    transform: translateY(-50%);
    z-index: 30;
   
    justify-content: center;
    box-shadow: 0px -1px 0px 0px rgba(255, 255, 255, 0.25);
}

.handlebar svg {
    height: 1.5rem;
    width: 1.5rem;
    color: #000000;
}

/* Image containers */
.image-overflow {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 20;
    pointer-events: none;
}

.first-image-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    border-radius: 1rem;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    overflow: hidden;
}

.first-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    border-radius: 1rem;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    object-fit: cover;
    object-position: left top;
}

.second-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 19;
    border-radius: 1rem;
    width: 100%;
    height: 100%;
    user-select: none;
    object-fit: cover;
    object-position: left top;
}

/* Responsive design - FULL WIDTH */
@media (max-width: 1024px) {
    .compare-container {
        width: 100%;
        height: 550px;
    }
    
    .compare-section {
        padding: 4rem 1rem;
    }
}

@media (max-width: 768px) {
    .compare-container {
        width: 100%;
        height: 500px;
    }
    
    .compare-section {
        padding: 4rem 1rem;
    }
}

@media (max-width: 640px) {
    .compare-container {
        width: 100%;
        height: 400px;
    }
    
    .compare-section {
        padding: 3rem 1rem;
    }
    
    .compare-section h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (max-width: 480px) {
    .compare-container {
        width: 100%;
        height: 350px;
    }
    
    .compare-section {
        padding: 2rem 0.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .compare-section {
        background-color: #fff;
    }
    
    .compare-section .compare-wrapper {
        background-color: #fff;
        border-color: #374151;
    }
}
