.journey_flow {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 40px max(5vw, 60px);
    overflow-y: visible;
    overflow-x: hidden;
}

.journey_scene {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 100vh;
}

.journey_scene:first-child {
    scroll-snap-align: none;
    min-height: auto;
}

.journey_scene.reverse {
    flex-direction: row-reverse;
}

.journey_scene.visible {
    opacity: 1;
    transform: translateY(0);
}

.journey_scene.fading-out {
    opacity: 0;
    transform: translateY(-60px);
}

.scene_text {
    max-width: 480px;
}

.scene_text h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.scene_text p {
    color: var(--text-secondary);
}

.scene_video {
    flex: 1.2;
    min-width: 300px;
    position: relative;
    padding: 2.5%;
}

.scene_video video {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.scene_video:hover video {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* CTA */
.journey_cta {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 1200px) {
    .journey_scene {
        flex-direction: column !important;
    }

    .journey_scene.reverse {
        flex-direction: column !important;
    }

    .scene_text h2 {
        font-size: 1.75rem;
    }

    .scene_text p {
        font-size: 1rem;
    }

    .scene_video {
        padding: 0;
        min-width: 0;
        width: 80%;
    }

    /* On mobile, usually it's best to disable complex hover effects
       to keep the design clean and predictable. */
    .scene_video:hover video {
        transform: scale(1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    }
}


/* Responsive */
@media (max-width: 992px) {
    .journey_scene {
        flex-direction: column !important;
    }

    .journey_scene.reverse {
        flex-direction: column !important;
    }

    .scene_text h2 {
        font-size: 1.75rem;
    }

    .scene_text p {
        font-size: 1rem;
    }

    .scene_video {
        padding: 0;
        min-width: 0;
        width: 100%;
    }

    /* On mobile, usually it's best to disable complex hover effects
       to keep the design clean and predictable. */
    .scene_video:hover video {
        transform: scale(1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    }
}

@media (max-width: 576px) {
    .scene_text h2 {
        font-size: 1.5rem;
    }

    .scene_text p {
        font-size: 0.95rem;
    }

    .journey_flow {
        gap: 50px;
        padding: 40px 10px;
    }
}

/* Speech Bubbles Styles */
.speech-bubbles-container {
    position: relative;
    height: 175px;
    overflow: visible;
    max-width: 540px;

    /* Center horizontally */
    margin: 0 auto;
    left: 0;
    right: 0;
}

.speech-bubble {
    position: absolute;
    padding: 14px 24px;
    border-radius: 24px;
    font-size: calc(0.8 * var(--bs-body-font-size));
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 280px;
    overflow: visible;
}

.speech-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.speech-content {
    position: relative;
    display: inline-block;
}

.speech-tail {
    position: absolute;
    width: 20px;
    height: 20px;
    background: inherit;
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
    transform-origin: top left;
}

/* Bubble 1 - Left aligned with gradient background */
.speech-bubble-1 {
    left: 10%;
    top: 20px;
    background: linear-gradient(135deg, #22196d 75%, #3a2a9e 100%);
    color: white;
    transform: rotate(-2deg);
}

.speech-bubble-1 .speech-tail {
    bottom: -14px;
    left: -3px;
    transform: rotate(78deg);
    background: var(--brand-gradient);
    border-right: 2px solid #22196d;
    border-bottom: 2px solid #22196d;
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

/* Bubble 2 - Right aligned with border style */
.speech-bubble-2 {
    right: 15%;
    top: 60px;
    background: white;
    color: #22196d;
    border: 2px solid #22196d;
    transform: rotate(3deg);
    z-index: 11;
}

.speech-bubble-2 .speech-tail {
    bottom: -16px;
    right: -24px;
    left: auto;
    transform: rotate(14deg);
    background: white;
    border-right: 2px solid #22196d;
    border-bottom: 2px solid #22196d;
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

/* Bubble 3 - Left aligned with gradient background */
.speech-bubble-3 {
    left: 20%;
    top: 100px;
    background: linear-gradient(135deg, #3a2a9e 75%, #22196d 100%);
    color: white;
    transform: rotate(1deg);
    z-index: 12;
}

.speech-bubble-3 .speech-tail {
    bottom: -16px;
    right: 100px;
    left: auto;
    transform: rotate(60deg);
    background: #3a2a9e;
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

/* Responsive adjustments for speech bubbles */
@media (max-width: 992px) {
    .speech-bubbles-container {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .speech-bubbles-container {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .speech-bubbles-container {
        display: none !important;
    }
}