/* ==============================
   Section 1 - Screenshot Spread
===============================*/
.storytelling {
    background: linear-gradient(180deg, #f3f7ff 0%, #6698f5 50%, #7a82f0 100%);
}

.spread-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 80px 20px;
}

.gallery {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

.phone {
    position: absolute;
    width: 280px;
    height: 550px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: scale(0.8);
    background: #fff;
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.showcase-title {
    font-size: clamp(1.3rem, 2.5vw, 2.2rem);
    font-weight: 600;
    margin: 0 0 10px;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 400;
    margin-top: 80px;
    max-width: 600px;
    line-height: 1.6;
    color: #ffffff;
}

/* ==============================
   Section 2 - Story Scroll
===============================*/
.story-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 100vh;
    align-items: start;
    padding: 60px 20px;
}

/* Sticky image with ambient glow */
.story-image {
    padding-top: 50px;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 420px;
    z-index: 1;
}

.story-image::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.6s ease, background 0.6s ease;
    z-index: 0;
}

/* Glow Variants */
.story-image.glow-0::before {
    background: radial-gradient(circle, rgba(150, 150, 150, 0.25) 0%, transparent 75%);
    opacity: 1;
}

.story-image.glow-1::before {
    background: radial-gradient(circle, rgba(52, 152, 219, 0.25) 0%, transparent 75%);
    opacity: 1;
}

.story-image.glow-2::before {
    background: radial-gradient(circle, rgba(46, 204, 113, 0.25) 0%, transparent 75%);
    opacity: 1;
}

.story-image.glow-3::before {
    background: radial-gradient(circle, rgba(155, 89, 182, 0.25) 0%, transparent 75%);
    opacity: 1;
}

.story-image.glow-4::before {
    background: radial-gradient(circle, rgba(230, 126, 34, 0.25) 0%, transparent 75%);
    opacity: 1;
}

.story-image.glow-5::before {
    background: radial-gradient(circle, rgba(231, 76, 60, 0.25) 0%, transparent 75%);
    opacity: 1;
}

.story-image img {
    position: absolute;
    max-height: 80vh;
    width: auto;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    border-radius: 20px;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.story-image img.active {
    opacity: 1;
    transform: scale(1.02);
}

.story-content-left,
.story-content-right {
    padding: 80px 40px;
}

.step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.step h2 {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    margin-bottom: 15px;
    background: linear-gradient(135deg, #333, #777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step p {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    line-height: 1.7;
    color: #555;
    max-width: 480px;
}

/* ==============================
   Responsive Adjustments
===============================*/
@media (max-width: 1200px) {
    .story-wrapper {
        grid-template-columns: 1fr auto;
        gap: 40px;
    }

    .story-image {
        width: 320px;
    }
}

@media (max-width: 1024px) {
    .story-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .story-image {
        order: -1;
        position: relative;
        top: auto;
        height: auto;
        width: 100%;
        margin-bottom: 40px;
    }

    .story-image img {
        max-height: 60vh;
        max-width: 260px;
        position: relative;
    }

    .story-content-left,
    .story-content-right {
        padding: 40px 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .gallery {
        height: 60vh;
    }

    .phone {
        width: 200px;
        height: 400px;
    }

    .story-content-left,
    .story-content-right {
        padding: 20px;
    }

    .showcase-subtitle {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .gallery {
        height: 50vh;
    }

    .phone {
        width: 160px;
        height: 320px;
    }

    .story-image img {
        max-width: 200px;
    }

    .step {
        min-height: auto;
        padding: 40px 0;
    }
}