/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: 'Montserrat', 'Inter', sans-serif;
    background: #121212;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

/* ===== SLIDES ===== */
.slide {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    overflow-y: auto;
}

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

.slide-content {
    max-width: 560px;
    width: 100%;
    padding: 60px 32px;
    text-align: center;
}

/* ===== GRADIENTS ===== */
[data-bg="gradient-green"] {
    background: linear-gradient(160deg, #1DB954 0%, #0d7a36 40%, #121212 100%);
}

[data-bg="gradient-dark"] {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

[data-bg="gradient-purple"] {
    background: linear-gradient(160deg, #5b21b6 0%, #7c3aed 30%, #2e1065 100%);
}

[data-bg="gradient-teal"] {
    background: linear-gradient(160deg, #0d9488 0%, #115e59 40%, #121212 100%);
}

[data-bg="gradient-red"] {
    background: linear-gradient(160deg, #dc2626 0%, #991b1b 40%, #1a0a0a 100%);
}

[data-bg="gradient-orange"] {
    background: linear-gradient(160deg, #ea580c 0%, #c2410c 40%, #1a1207 100%);
}

[data-bg="gradient-dark-2"] {
    background: linear-gradient(160deg, #1e1e3f 0%, #121228 50%, #0a0a1a 100%);
}

[data-bg="gradient-green-dark"] {
    background: linear-gradient(160deg, #064e3b 0%, #065f46 30%, #121212 100%);
}

[data-bg="gradient-blue"] {
    background: linear-gradient(160deg, #1e40af 0%, #1d4ed8 30%, #0c1a3d 100%);
}

[data-bg="gradient-ice"] {
    background: linear-gradient(160deg, #0c4a6e 0%, #075985 30%, #0a1628 100%);
}

[data-bg="gradient-finale"] {
    background: linear-gradient(160deg, #1DB954 0%, #1a8a43 20%, #5b21b6 60%, #1e1e3f 100%);
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.slide.active .fade-up {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .fade-up.delay-1 {
    transition-delay: 0.1s;
}

.slide.active .fade-up.delay-2 {
    transition-delay: 0.2s;
}

.slide.active .fade-up.delay-3 {
    transition-delay: 0.3s;
}

.slide.active .fade-up.delay-4 {
    transition-delay: 0.4s;
}

/* Reset animations when slide is not active */
.slide:not(.active) .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

/* ===== INTRO SLIDE ===== */
.intro-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.intro-logo {
    margin-bottom: 32px;
}

.store-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.store-icon.small {
    width: 48px;
    height: 48px;
}

@keyframes float {

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

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

.intro-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.intro-subtitle {
    font-size: 1.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.intro-period {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.scroll-hint {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.arrow-down {
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    50% {
        transform: translateY(6px);
    }
}

/* ===== LABELS & TYPOGRAPHY ===== */
.slide-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.big-number {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.big-number-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 28px;
}

.insight-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.slide-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 16px;
}

.slide-desc strong {
    color: #fff;
    font-weight: 600;
}

.slide-desc em {
    color: #1DB954;
    font-style: normal;
    font-weight: 500;
}

/* ===== STATUS PILLS ===== */
.status-pill {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.status-pill.green {
    background: rgba(29, 185, 84, 0.2);
    border: 1px solid rgba(29, 185, 84, 0.4);
    color: #1DB954;
}

.status-pill.red {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* ===== WEEK TIMELINE ===== */
.week-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 32px auto;
    max-width: 600px;
}

.week-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(29, 185, 84, 0.15);
    border: 2px solid rgba(29, 185, 84, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.week-dot.active {
    background: rgba(29, 185, 84, 0.25);
    border-color: #1DB954;
    box-shadow: 0 0 12px rgba(29, 185, 84, 0.4);
}

.week-dot span {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1DB954;
    letter-spacing: 0.02em;
}

.week-line {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #1DB954, rgba(29, 185, 84, 0.4));
    flex-shrink: 0;
}

/* ===== DIVIDER ===== */
.divider-line {
    width: 48px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 20px auto;
}

/* ===== MINI BAR CHART ===== */
.mini-bar-chart {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    height: 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.mini-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #1DB954, #1ed760);
    border-radius: 8px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-bar-fill.secondary {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.25));
}

.mini-bar-label {
    position: relative;
    z-index: 2;
    padding-left: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.mini-bar-value {
    position: relative;
    z-index: 2;
    margin-left: auto;
    padding-right: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
}

/* ===== DONUT CHART ===== */
.donut-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 20px auto;
}

.donut {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-fill {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.donut-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-number {
    font-size: 2.8rem;
    font-weight: 900;
}

/* ===== FLOW VISUAL ===== */
.insight-visual {
    margin-top: 32px;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.flow-step {
    padding: 10px 18px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.flow-step.done {
    background: rgba(29, 185, 84, 0.25);
    border: 1px solid rgba(29, 185, 84, 0.5);
    color: #1DB954;
}

.flow-step.blocked {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.flow-connector {
    width: 32px;
    height: 3px;
    flex-shrink: 0;
}

.flow-connector.done {
    background: #1DB954;
}

.flow-connector.blocked {
    background: #ef4444;
    background: repeating-linear-gradient(90deg,
            #ef4444 0px,
            #ef4444 6px,
            transparent 6px,
            transparent 10px);
}

/* ===== BARRIER CARDS ===== */
.barrier-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.barrier-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    backdrop-filter: blur(8px);
}

.barrier-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.barrier-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.barrier-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

/* ===== RECOMMENDATION CARDS ===== */
.rec-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rec-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    backdrop-filter: blur(8px);
    position: relative;
}

.rec-number {
    font-size: 2.4rem;
    font-weight: 900;
    color: rgba(29, 185, 84, 0.3);
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.rec-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1DB954;
}

.rec-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.rec-card p strong {
    color: #fff;
}

.rec-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(29, 185, 84, 0.15);
    border: 1px solid rgba(29, 185, 84, 0.3);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1DB954;
    letter-spacing: 0.05em;
}

/* ===== CAMPAIGN ===== */
.campaign-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.campaign-before,
.campaign-after {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: left;
    width: 100%;
    backdrop-filter: blur(8px);
}

.campaign-label {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.campaign-before .campaign-label {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.campaign-after .campaign-label {
    background: rgba(29, 185, 84, 0.2);
    color: #1DB954;
}

.campaign-before p,
.campaign-after p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.campaign-before p strong,
.campaign-after p strong {
    color: #fff;
}

.campaign-arrow-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== WEATHER ===== */
.weather-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 8px;
}

.weather-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-day {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    min-width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.temp-bar {
    flex: 1;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.temp-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--temp, 50%);
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    border-radius: 8px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.temp-bar.cold::before {
    background: linear-gradient(90deg, #818cf8, #6366f1, #4f46e5);
}

.temp-value {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.weather-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    min-width: 60px;
    flex-shrink: 0;
}

/* ===== OUTRO ===== */
.outro-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.outro-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
}

.outro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    margin-bottom: 32px;
}

.outro-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 12px;
    backdrop-filter: blur(8px);
}

.outro-stat.highlight {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.outro-stat-number {
    display: block;
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.outro-stat.highlight .outro-stat-number {
    color: #ef4444;
}

.outro-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.outro-cta {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-style: italic;
}

.outro-logo {
    margin-top: 32px;
    opacity: 0.5;
}

/* ===== LAYOUT VARIATIONS (Spotify Wrapped-style) ===== */

/* Hero layout: centered with oversized number */
.layout-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.layout-hero .big-number.hero-number {
    font-size: 8rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
}

/* Left-aligned layout */
.layout-left {
    text-align: left !important;
}

.layout-left .slide-label {
    text-align: left;
}

.layout-left .divider-line {
    margin-left: 0;
}

.layout-left .big-number {
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dramatic layout: big emoji accent */
.layout-dramatic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.dramatic-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: pulse-emoji 2s ease-in-out infinite;
}

@keyframes pulse-emoji {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* Image card layout (Spotify Wrapped photo style) */
.layout-image-card {
    max-width: 720px;
}

.layout-image-card .slide-label {
    font-size: 1.15rem;
    letter-spacing: 0.25em;
    margin-bottom: 24px;
}

.layout-image-card .slide-desc {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-top: 20px;
}

.wrapped-image-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.wrapped-image {
    width: 100%;
    height: auto;
    display: block;
}

.wrapped-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.wrapped-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

.wrapped-image-caption .insight-title {
    font-size: 3.2rem;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Slide-specific accent decorations */
.slide[data-bg="gradient-purple"]::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.slide[data-bg="gradient-red"]::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.slide[data-bg="gradient-green-dark"]::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(29, 185, 84, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

/* ===== PROGRESS DOTS ===== */
.progress-dots {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #1DB954;
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(29, 185, 84, 0.5);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
    .slide-content {
        padding: 48px 20px;
    }

    .intro-title {
        font-size: 2.4rem;
    }

    .big-number {
        font-size: 3.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .insight-title {
        font-size: 2rem;
    }

    .outro-title {
        font-size: 2.2rem;
    }

    .outro-stat-number {
        font-size: 1.4rem;
    }

    .weather-day {
        min-width: 85px;
        font-size: 0.65rem;
    }

    .weather-note {
        display: none;
    }

    .flow-step {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .flow-connector {
        width: 20px;
    }

    .layout-hero .big-number.hero-number {
        font-size: 5rem;
    }

    .dramatic-emoji {
        font-size: 3rem;
    }

    .wrapped-image-caption .insight-title {
        font-size: 2.4rem;
    }

    .layout-image-card .slide-desc {
        font-size: 1.2rem;
    }


}

@media (min-width: 768px) {
    .big-number {
        font-size: 6rem;
    }

    .intro-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .outro-stats {
        gap: 20px;
    }
}