﻿:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --brand-green: #1db954;
    --brand-pink: #ff0055;
    --brand-blue: #2e77d0;
    --brand-purple: #8e44ad;
    --brand-yellow: #f1c40f;
    --brand-orange: #ff6437;
    --font-stack: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.story-container {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    z-index: 10;
    background: #000;
    /* Default background */
    transition: opacity 0.5s ease;
}

.slide:not(.active) {
    pointer-events: none;
    opacity: 0;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

/* Background Effects */
.background-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(142, 68, 173, 0.6), transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(29, 185, 84, 0.5), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 0, 85, 0.5), transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 100, 55, 0.4), transparent 40%);
    animation: rotateBg 10s linear infinite, pulseBg 4s ease-in-out infinite alternate;
    z-index: -1;
    filter: blur(60px);
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulseBg {
    0% {
        filter: blur(60px) brightness(1);
    }

    100% {
        filter: blur(80px) brightness(1.2);
    }
}

/* Typography */
.header-text h2 {
    font-size: clamp(1.5rem, 3vh, 2rem);
    font-weight: 700;
    color: #b3b3b3;
    margin-bottom: 1vh;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    animation: slideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
}

.header-text h1 {
    font-size: clamp(3rem, 8vh, 6rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 4vh;
    opacity: 0;
    animation: slideUpScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.5s;
}

.highlight {
    background: linear-gradient(90deg, var(--brand-green), var(--brand-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 6vh 6vw;
    border-radius: 40px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: stampIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1.0s;
}

.stat-big:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: var(--brand-green);
    box-shadow: 0 30px 60px rgba(29, 185, 84, 0.2);
    cursor: pointer;
}

.week-label {
    font-size: clamp(2rem, 4vh, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.week-number {
    font-size: clamp(8rem, 20vh, 14rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--brand-pink);
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(255, 0, 85, 0.5));
}

/* Animations included in global scope */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpScale {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes stampIn {
    0% {
        opacity: 0;
        transform: scale(3) rotate(15deg);
    }

    50% {
        opacity: 1;
        transform: scale(0.9) rotate(-5deg);
    }

    70% {
        transform: scale(1.05) rotate(-2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(-3deg);
    }
}

/* Decorative Shapes */
.decorative-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--brand-blue);
    top: 5%;
    right: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--brand-purple);
    bottom: -10%;
    left: -10%;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-40px);
    }
}

/* Shared Slide Styles */
.solid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Slide 2 Specifics - REDESIGN "Pink Pop" */
#slide-2 .solid-background {
    background-color: var(--brand-pink);
}

#slide-2 .content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
    /* Space for nav buttons */
}

.hero-header h2 {
    font-size: clamp(1.5rem, 3vh, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 2vh;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.giant-stat {
    font-size: clamp(8rem, 18vh, 14rem);
    /* Reduced slightly */
    font-weight: 900;
    color: #000;
    line-height: 0.9;
    margin: 1vh 0;
    letter-spacing: -5px;
    text-shadow: 4px 4px 0px rgba(255, 255, 255, 0.4);
}

.sub-stats-container {
    margin-top: 4vh;
    background: rgba(0, 0, 0, 0.8);
    /* More transparent */
    padding: 3vh 3vw;
    border-radius: 20px;
    color: #fff;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1vh 0;
    margin-bottom: 1vh;
}

.sub-stat-row:last-of-type {
    border-bottom: none;
}

.sub-label {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sub-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-green);
}

.tiny-note {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 1vh;
    font-style: italic;
}


/* Navigation Controls */
.nav-controls {
    position: absolute;
    width: 100%;
    /* Removed height: 0 which was causing overflow issues */
    bottom: 30px;
    /* Positioned safely above bottom edge */
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 2000;
    /* Super high z-index to be safe */
    pointer-events: none;
}

.nav-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-icon {
    width: 40px;
    height: 40px;
}

/* Slide 3 Specifics - Green Theme */
#slide-3 .solid-background.green-bg {
    background-color: var(--brand-green);
    z-index: -1;
    /* Ensure it stays behind content */
}

#slide-3 .giant-stat {
    font-size: clamp(12rem, 30vh, 25rem);
    /* Even bigger for this single number */
    color: #000;
    position: relative;
    z-index: 2;
}

#slide-3 .bottom-text {
    margin-top: 2vh;
    font-size: clamp(1.5rem, 3vh, 2.5rem);
    font-weight: 700;
    color: #000;
    /* Black text on green for consistency */
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Slide 4 Specifics - Purple Theme */
#slide-4 .solid-background.purple-bg {
    background-color: var(--brand-purple);
    z-index: -1;
}

#slide-4 .content-wrapper {
    width: 100%;
    max-width: 800px;
    /* Constrain reading width */
    z-index: 2;
}

.top-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3vh;
    margin-top: 4vh;
}

.list-item {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    width: 100%;
}

.list-info {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    color: #fff;
}

.list-rank {
    font-size: clamp(2rem, 5vh, 3rem);
    font-weight: 900;
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
}

.list-name {
    font-size: clamp(1.5rem, 3vh, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.list-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.list-bar {
    height: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform-origin: left;
    transform: scaleX(0);
    /* Start empty */
}

.list-percent {
    font-size: clamp(1.2rem, 2.5vh, 1.8rem);
    font-weight: 700;
    color: #fff;
    min-width: 3ch;
}

@keyframes expandBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.slide.active .list-bar {
    animation: expandBar 1.5s ease-out forwards;
}


/* Enhanced Slide 4 - More Creative */
#slide-4 .list-item {
    opacity: 0;
    transform: translateX(-50px);
}

.slide.active #slide-4 .list-item,
#slide-4.active .list-item {
    animation: slideInLeft 0.8s ease-out forwards;
}

#slide-4.active .list-item:nth-child(1) {
    animation-delay: 0.2s;
}

#slide-4.active .list-item:nth-child(2) {
    animation-delay: 0.5s;
}

#slide-4.active .list-item:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Gradient bars instead of solid white */
#slide-4 .list-item:nth-child(1) .list-bar {
    background: linear-gradient(90deg, var(--brand-green), var(--brand-blue));
}

#slide-4 .list-item:nth-child(2) .list-bar {
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange));
}

#slide-4 .list-item:nth-child(3) .list-bar {
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-green));
}

/* Glow effect on bars */
#slide-4 .list-bar {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.2);
}

/* Bigger rank numbers with gradient */
#slide-4 .list-rank {
    font-size: clamp(3rem, 8vh, 5rem);
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
}



/* Slide 5 - Dopamine Image Slide */
#slide-5 .gradient-background.dopamine-bg {
    background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-purple) 50%, var(--brand-blue) 100%);
    animation: gradientShift 8s ease infinite;
    background-size: 400% 400%;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#slide-5 .content-wrapper.image-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4vh;
    z-index: 2;
}

#slide-5 .pulse-text h2 {
    animation: pulseGlow 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
    }

    50% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 1), 0 0 80px rgba(255, 255, 255, 0.6);
    }
}

.image-container.glow-box {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 0 0 80px rgba(255, 0, 85, 0.2);
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.slide-image {
    max-width: 80vw;
    max-height: 50vh;
    border-radius: 15px;
    object-fit: contain;
}

/* Entrance animation for slide 5 */
#slide-5.active .image-container {
    animation: zoomIn 0.8s ease-out, floatImage 4s ease-in-out 0.8s infinite;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}



/* Slide 5 - Authentic Spotify Wrapped Style */
#slide-5 .solid-background.orange-bg {
    background-color: var(--brand-orange);
    z-index: -1;
}

#slide-5 .content-wrapper.spotify-image-slide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 8vw;
    gap: 3vh;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

.spotify-header {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.spotify-label {
    font-size: clamp(0.9rem, 1.5vh, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(0, 0, 0, 0.6);
}

.spotify-title {
    font-size: clamp(3rem, 8vh, 6rem);
    font-weight: 900;
    color: #000;
    line-height: 1;
    text-transform: none;
}

.spotify-image-frame {
    background: #000;
    padding: 0.5rem;
    border-radius: 15px;
    box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
}

.spotify-image {
    max-width: 70vw;
    max-height: 45vh;
    border-radius: 10px;
    display: block;
}



/* Centered Spotify Style */
#slide-5 .content-wrapper.spotify-image-slide.centered {
    align-items: center;
    text-align: center;
}

.spotify-header.centered {
    align-items: center;
    text-align: center;
}

.spotify-subtitle {
    font-size: clamp(1.2rem, 2.5vh, 2rem);
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1vh;
}



/* Slide 6 - Flow/Journey Style (Blue Theme) */
#slide-6 .solid-background.blue-bg {
    background-color: var(--brand-blue);
    z-index: -1;
}

#slide-6 .content-wrapper.flow-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5vh;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
}

.flow-header {
    text-align: center;
}

.flow-origin {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: clamp(0.9rem, 1.5vh, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2vh;
}

.flow-title {
    font-size: clamp(2rem, 5vh, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.flow-destinations {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    width: 100%;
}

.flow-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2vh 3vw;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.flow-card.highlight {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--brand-green);
    box-shadow: 0 0 30px rgba(29, 185, 84, 0.3);
}

.flow-card.return {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.flow-percent {
    font-size: clamp(3rem, 8vh, 5rem);
    font-weight: 900;
    color: #fff;
    min-width: 20%;
}

.flow-arrow {
    font-size: clamp(2rem, 5vh, 3rem);
    color: rgba(255, 255, 255, 0.6);
}

.flow-name {
    font-size: clamp(1.5rem, 3vh, 2.5rem);
    font-weight: 700;
    color: #fff;
    text-align: right;
    min-width: 40%;
}



/* Fix highlight card text contrast */
.flow-card.highlight .flow-percent,
.flow-card.highlight .flow-arrow,
.flow-card.highlight .flow-name {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}



/* Slide 6 - Journey/Path Style (No Blur) */
#slide-6 .content-wrapper.journey-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5vh;
    z-index: 2;
}

.journey-step {
    text-align: center;
}

.journey-label {
    font-size: clamp(0.8rem, 1.5vh, 1rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.journey-place {
    font-size: clamp(2rem, 5vh, 4rem);
    font-weight: 900;
    color: #fff;
}

.journey-step.via .journey-place {
    color: var(--brand-green);
}

.journey-connector {
    font-size: clamp(1.5rem, 3vh, 2rem);
    color: rgba(255, 255, 255, 0.4);
    margin: 0.5vh 0;
}

.journey-destinations {
    display: flex;
    gap: 2vw;
    margin-top: 2vh;
    flex-wrap: wrap;
    justify-content: center;
}

.destination-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2vh 3vw;
    border-radius: 20px;
    min-width: 140px;
}

.destination-card.top {
    background: linear-gradient(135deg, #1db954, #1ed760);
}

.destination-card.mid {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.destination-card.low {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.dest-percent {
    font-size: clamp(2rem, 5vh, 3.5rem);
    font-weight: 900;
    color: #fff;
}

.dest-name {
    font-size: clamp(1rem, 2vh, 1.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* Slide 6 - BIGGER & BOLDER Spotify Style */
#slide-6 .content-wrapper.journey-slide {
    gap: 3vh;
    /* Increased gap */
}

/* Make Från/Via labels cleaner */
.journey-label {
    font-size: clamp(1rem, 2vh, 1.2rem) !important;
    letter-spacing: 4px !important;
    opacity: 0.8 !important;
    margin-bottom: 0.5vh;
}

/* Make places HUGE */
.journey-place {
    font-size: clamp(3rem, 10vh, 6rem) !important;
    line-height: 0.9;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

/* Arrows bigger */
.journey-connector {
    font-size: clamp(2rem, 5vh, 3rem) !important;
    opacity: 0.6;
}

/* Cards need to be massive pop-out elements */
.journey-destinations {
    gap: 2vw !important;
    width: 100%;
    max-width: 1200px;
}

.destination-card {
    padding: 3vh 2vw !important;
    border-radius: 30px !important;
    flex: 1;
    /* Make them grow to fill space */
    min-width: 200px !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.destination-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

/* Percentages massively scaled up like typical Wrapped stats */
.dest-percent {
    font-size: clamp(4rem, 12vh, 8rem) !important;
    line-height: 0.8;
    margin-bottom: 1vh;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.dest-name {
    font-size: clamp(1.2rem, 2.5vh, 2rem) !important;
    letter-spacing: 2px !important;
    opacity: 1 !important;
}

/* Add specific entrance animations for impact */
#slide-6 .journey-step.start {
    opacity: 0;
    animation: slideDown 0.6s ease-out forwards 0.2s;
}

#slide-6 .journey-connector:nth-of-type(1) {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards 0.6s;
}

#slide-6 .journey-step.via {
    opacity: 0;
    animation: slideDown 0.6s ease-out forwards 0.8s;
}

#slide-6 .journey-connector:nth-of-type(2) {
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards 1.2s;
}

#slide-6 .destination-card {
    opacity: 0;
    transform: translateY(50px);
}

#slide-6.active .destination-card:nth-child(1) {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.4s;
}

#slide-6.active .destination-card:nth-child(2) {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.6s;
}

#slide-6.active .destination-card:nth-child(3) {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.8s;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.6;
    }
}



/* Slide 7 Specifics - Pink Theme & Animations */
#slide-7 .solid-background.pink-bg {
    background-color: var(--brand-pink);
    z-index: -1;
}

#slide-7 .journey-step.via .journey-place {
    color: var(--brand-yellow);
    /* Yellow text on pink for contrast */
}

/* Specific delays for Slide 7 cards */
#slide-7.active .destination-card:nth-child(1) {
    animation-delay: 1.4s;
}

#slide-7.active .destination-card:nth-child(2) {
    animation-delay: 1.6s;
}

#slide-7.active .destination-card:nth-child(3) {
    animation-delay: 1.8s;
}

/* Custom colors for Slide 7 cards to pop against Pink */
#slide-7 .destination-card.top {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    /* Gold/Orange */
}

#slide-7 .destination-card.mid {
    background: linear-gradient(135deg, #00C9FF, #92FE9D);
    /* Blue/Green */
}

#slide-7 .destination-card.low {
    background: linear-gradient(135deg, #141E30, #243B55);
    /* Dark Blue */
}



/* Slide 8 Specifics - Purple Flow Theme */
#slide-8 .solid-background.purple-flow-bg {
    background-color: var(--brand-purple);
    z-index: -1;
}

#slide-8 .journey-step.via .journey-place {
    color: var(--brand-green);
    /* Green text on purple for classic Spotify combo */
}

/* Specific delays for Slide 8 cards */
#slide-8.active .destination-card:nth-child(1) {
    animation-delay: 1.4s;
}

#slide-8.active .destination-card:nth-child(2) {
    animation-delay: 1.6s;
}

#slide-8.active .destination-card:nth-child(3) {
    animation-delay: 1.8s;
}

/* Custom colors for Slide 8 cards */
#slide-8 .destination-card.top {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    /* Red/Orange to pop on Purple */
}

#slide-8 .destination-card.mid {
    background: linear-gradient(135deg, #FDC830, #F37335);
    /* Yellow/Orange */
}

#slide-8 .destination-card.low {
    background: linear-gradient(135deg, #232526, #414345);
    /* Black/Grey */
}



/* Slide 9 - Interaction Stats (Dark & Neon) */
#slide-9 .solid-background.dark-stat-bg {
    background: radial-gradient(circle at center, #2b2b2b 0%, #000000 100%);
    z-index: -1;
}

#slide-9 .content-wrapper.interaction-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4vh;
    height: 100%;
    z-index: 2;
    text-align: center;
}

#slide-9 .intro-text h2 {
    font-size: clamp(2rem, 5vh, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    max-width: 800px;
    opacity: 0;
    animation: fadeSlideDown 0.8s ease-out forwards 0.2s;
}

.stat-image-container {
    position: relative;
    margin: 2vh 0;
    opacity: 0;
    animation: zoomInRotate 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s;
}

.bra-image {
    max-width: 60vw;
    max-height: 40vh;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.2);
    border: 4px solid #fff;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.bra-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.floating-stat-badge {
    position: absolute;
    bottom: -10%;
    right: -5%;
    background: var(--brand-green);
    color: #000;
    padding: 2vh 3vw;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(150px, 20vw, 250px);
    height: clamp(150px, 20vw, 250px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: rotate(5deg);
    animation: pulseBadge 2s infinite ease-in-out;
    border: 5px solid #fff;
}

.stat-number {
    font-size: clamp(3rem, 8vh, 5rem);
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.8rem, 1.5vh, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#slide-9 .sub-text p {
    font-size: clamp(1.2rem, 2.5vh, 2rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards 1.2s;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomInRotate {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: rotate(5deg) scale(1);
    }

    50% {
        transform: rotate(5deg) scale(1.05);
    }
}


/* Slide 9 Refinements */
.centered-stat-header {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
}

.centered-stat-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sub-header {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-image-container-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex: 1;
    width: 100%;
    position: relative;
    padding: 1rem 5%;
    z-index: 2;
}

.bra-image-large {
    max-height: 50vh;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
}

.bra-image-large:hover {
    transform: rotate(0deg) scale(1.02);
}

.stat-badge-side {
    background: #fff;
    color: #000;
    padding: 1.5rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: pulseBadge 3s infinite ease-in-out;
    flex-shrink: 0;
    text-align: center;
}

.stat-badge-side .stat-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #d63384, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-badge-side .stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* =========================================
   Slide 10 REVISED - Clean & Responsive
   ========================================= */
#slide-10 .content-wrapper {
    display: flex;
}

/* Restoring Slide 9 Pink Background */
#slide-9 .solid-background.pink-bg {
    background-color: var(--brand-pink);
    z-index: -1;
}

/* =========================================
   Slide 10 - WARNING RED THEME (Negative Result)
   ========================================= */

/* Main Container - Bold Warning Red */
.negative-wrapped {
    background: linear-gradient(135deg, #FF0000 0%, #8B0000 100%);
    /* Brightest Warning Red */
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 2rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* ... (Background accents kept same) ... */

/* Stat Badge - MASSIVE & CENTERED ON IMAGE CORNER */
.wrapped-stat-badge {
    position: absolute;
    top: -30px;
    left: -30px;
    bottom: auto;
    width: clamp(140px, 22vh, 200px);
    /* MASSIVE */
    height: clamp(140px, 22vh, 200px);
    background: #000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transform: rotate(-15deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 6px solid #fff;
    /* Thicker white border */
    z-index: 30;
    /* Highest priority */
}

.wrapped-stat-badge .stat-value {
    font-size: clamp(3.5rem, 6vh, 5rem);
    /* HUGE TEXT */
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 4px 0 #333;
}

.wrapped-stat-badge .stat-label {
    font-size: clamp(0.8rem, 1.2vh, 1rem);
    text-transform: uppercase;
    font-weight: 700;
    opacity: 1;
    letter-spacing: 1px;
}

/* Background Accents (Darker shades) */
/* Background Accents REMOVED per user request */
.negative-wrapped::before {
    display: none;
}


.negative-wrapped::after {
    display: none;
}

.wrapped-header {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 10;
    margin-bottom: 2vh;
    flex-shrink: 0;
}

.wrapped-label {
    font-size: clamp(0.9rem, 1.5vh, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fef08a;
    /* Yellow for contrast on red */
    font-family: 'Outfit', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
}

.wrapped-title {
    font-size: clamp(4rem, 10vh, 10rem);
    /* INCREASED */
    font-weight: 900;
    line-height: 1;
    color: #fff;
    margin: 0;
    text-transform: none;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Main Content Area */
.wrapped-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    position: relative;
    z-index: 5;
    min-height: 0;
}

/* Image Frame */
.wrapped-image-frame {
    position: relative;
    width: clamp(350px, 85vw, 800px);
    /* INCREASED */
    height: auto;
    aspect-ratio: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
    margin: 1vh 0;
}

.wrapped-image-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.wrapped-image {
    width: 100%;
    height: auto;
    max-height: 42vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 6px solid #fff;
    /* White border for contrast */
    filter: contrast(110%);
}

/* The Integrated Note */
.wrapped-note.floating-sticker {
    position: absolute;
    bottom: -20px;
    right: -15px;
    top: auto;
    background: #fef08a;
    /* Yellow */
    color: #000;
    padding: 8px 15px;
    transform: rotate(-3deg);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    box-shadow: 4px 4px 0px #000;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    animation: floatNote 3s ease-in-out infinite;
}

.note-icon {
    font-size: 1.2em;
}

@keyframes floatNote {

    0%,
    100% {
        transform: rotate(-3deg) translateY(0);
    }

    50% {
        transform: rotate(-3deg) translateY(-5px);
    }
}

/* Stat Badge - BIGGER & BOLDER */
.wrapped-stat-badge {
    position: absolute;
    top: -25px;
    left: -25px;
    bottom: auto;
    width: clamp(110px, 18vh, 150px);
    /* BIGGER */
    height: clamp(110px, 18vh, 150px);
    background: #000;
    /* Black badge on red for max contrast */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    transform: rotate(-8deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 5px solid #fff;
    z-index: 20;
}

.wrapped-stat-badge .stat-value {
    font-size: clamp(2.5rem, 5vh, 3.5rem);
    /* BIGGER */
    font-weight: 900;
    line-height: 1;
}

.wrapped-stat-badge .stat-label {
    font-size: clamp(0.7rem, 1vh, 0.9rem);
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.9;
}

/* Footer Text */
.wrapped-footer-text {
    position: relative;
    bottom: auto;
    text-align: center;
    width: 100%;
    margin-top: 4vh;
    flex-shrink: 0;
    z-index: 10;
}

.wrapped-footer-text h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* INCREASED */
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.wrapped-footer-text p {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    /* INCREASED */
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 3vh;
}

/* =========================================
   Slide 10 REBUILT - User Requested Redesign
   ========================================= */

#slide-10 {
    background: linear-gradient(135deg, #FF0000 0%, #8B0000 100%);
    /* Full Red Gradient */
    display: flex;
    justify-content: center;
    align-items: center;
}

#slide-10 .result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Safer layout */
    gap: 2vh;
    /* Use gap instead of space-between */
    height: 100%;
    width: 100%;
    max-width: 1400px;
    padding: 2vh 5vw;
    z-index: 10;
}

#slide-10 .result-header {
    text-align: center;
    margin-bottom: 2vh;
}

#slide-10 .result-header h2 {
    font-size: clamp(1.5rem, 3vh, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fef08a;
    /* Yellow contrast */
    margin-bottom: 0.5vh;
}

#slide-10 .result-header h1 {
    font-size: clamp(4rem, 12vh, 10rem);
    /* Reduced min/max slightly for safety */
    font-weight: 900;
    line-height: 0.9;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin: 0;
}

#slide-10 .result-subtitle {
    font-size: clamp(2rem, 4vh, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-top: 2vh;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

#slide-10 .result-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    min-height: 0;
    /* Enable scrolling/shrinking if needed */
    width: 100%;
}

#slide-10 .result-img {
    max-height: 40vh;
    /* Scaled back to ensure text fits */
    max-width: 90vw;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

#slide-10 .result-img:hover {
    transform: rotate(0deg) scale(1.02);
}

#slide-10 .result-badge {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%) rotate(10deg);
    background: #000;
    color: #fff;
    border: 6px solid #fff;
    border-radius: 50%;
    width: clamp(200px, 30vh, 300px);
    /* MASSIVE BADGE */
    height: clamp(200px, 30vh, 300px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 20;
    animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(-50%) rotate(10deg);
    }

    50% {
        transform: translateY(-55%) rotate(8deg);
    }
}

#slide-10 .result-badge .val {
    font-size: clamp(6rem, 12vh, 10rem);
    font-weight: 900;
    line-height: 0.9;
}

#slide-10 .result-badge .label {
    font-size: clamp(1rem, 2vh, 1.5rem);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

#slide-10 .result-footer {
    text-align: center;
    margin-top: 2vh;
}

#slide-10 .result-footer h3 {
    font-size: clamp(2rem, 4vh, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem;
}

#slide-10 .result-footer p {
    font-size: clamp(1.2rem, 2.5vh, 2rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Fix for Slide 9 Text */
#slide-9 .sub-text p {
    font-size: clamp(2rem, 4vh, 3rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}