/* Hero Styles */
.hero {
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Upload Container */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    border: 2px dashed var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-normal);
    position: relative;
}

.upload-container.dragover {
    background: var(--primary-color);
    color: white;
    border-style: solid;
}

.upload-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.upload-container.dragover .upload-icon {
    color: white;
    transform: translateY(-10px);
}

.upload-limits {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Loading State */
.loading-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* Result State */
.result-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 10;
}

.before-after-preview {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-md);
    background: repeating-conic-gradient(#E2E8F0 0% 25%, #F8FAFC 0% 50%) 50% / 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.result-placeholder {
    width: 150px;
    height: 150px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    /* Example cutout mock shape */
}

/* Slider Section */
.demo-section h2 {
    margin-bottom: 0.5rem;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-wrapper img {
    display: block;
    width: 800px;
    height: 450px;
    object-fit: cover;
    pointer-events: none;
}

.after-img {
    width: 50%;
    /* controlled by JS */
    z-index: 2;
    border-right: 2px solid white;
}

/* The "masked-img" to demo removed bg - pure CSS demo using mix-blend-mode or filter if needed, 
   but for now it's just a duplicate with white bg to simulate before/after for demo. 
   Actually, we can apply a filter to show contrast. */
.masked-img {
    filter: contrast(1.2) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 60%);
    /* Mock effect */
}

.slider-control {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 4;
    cursor: ew-resize;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
}

.slider-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn svg {
    width: 16px;
    height: 16px;
}

/* Features grid */
.feature-box {
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-normal);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-box h3 {
    margin-bottom: 0.5rem;
}

/* Pricing simple rules */
.pricing-card {
    transition: transform var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.features-list li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Steps */
.step-card {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.step-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-color);
}