:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #E7002A;
    /* Mio Redish */
    --story-font: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--story-font);
    background-color: #000;
    color: var(--text-color);
    overflow: hidden;
    /* Prevent scrolling */
    height: 100vh;
    width: 100vw;
}

.story-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* Removed max-width for desktop full-screen */
    margin: 0 auto;
    background-color: var(--bg-color);
    box-shadow: none;
    /* No shadow needed for full screen */
    overflow: hidden;
}

/* Progress Bars */
.progress-container {
    position: absolute;
    top: 20px;
    /* More spacing for desktop */
    left: 0;
    width: 100%;
    height: 6px;
    /* Thicker for desktop */
    display: flex;
    gap: 8px;
    /* More gap */
    padding: 0 24px;
    z-index: 100;
}

.progress-bar {
    flex: 1;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #fff;
    transition: width 0.1s linear;
}



/* Slides */
.slides {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.content-centered {
    width: 100%;
    max-width: 1200px;
    /* Much wider content area */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography & Elements */
h1 {
    font-size: 5rem;
    /* Big impact for desktop */
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

p {
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 800px;
    /* Readability measure */
}

.big-number {
    font-size: 12rem;
    /* Massive number */
    font-weight: 900;
    margin: 2rem 0;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 40px;
    /* More spacing */
    height: 400px;
    /* Taller graph */
    margin: 4rem 0;
    width: 100%;
    max-width: 800px;
}

.bar {
    width: 80px;
    /* Wider bars */
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    position: relative;
}

.bar.highlight {
    background-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.label {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    white-space: nowrap;
    font-weight: bold;
}

.archetype-image {
    font-size: 12rem;
    /* Huge emoji */
    margin-bottom: 2rem;
}


.product-showcase {
    display: flex;
    flex-direction: row;
    /* Horizontal layout for desktop */
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    /* Stack content inside card */
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    transform: scale(1);
    flex: 1;
    /* Distribute space */
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.product-card .emoji {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
}

.product-card p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.8;
}

.replay-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 20px 48px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 4rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.replay-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

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


/* Graph Animations */
.graph-container .bar {
    transform-origin: bottom;
    transform: scaleY(0);
    opacity: 0;
}

.slide.active .graph-container .bar {
    animation: growBar 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide.active .graph-container .bar:nth-child(1) {
    animation-delay: 0.2s;
}

.slide.active .graph-container .bar:nth-child(2) {
    animation-delay: 0.3s;
}

.slide.active .graph-container .bar:nth-child(3) {
    animation-delay: 0.4s;
}

.slide.active .graph-container .bar:nth-child(4) {
    animation-delay: 0.5s;
}

.slide.active .graph-container .bar:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes growBar {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Confetti */
.confetti {
    position: absolute;
    width: 15px;
    /* Bigger confetti */
    height: 15px;
    background-color: #f00;
    opacity: 0;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Animations using Keyframes */
@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

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

@keyframes fadeUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

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

@keyframes scaleIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

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

/* Utility classes for animation */
.animate-pop-in {
    opacity: 0;
    /* Hidden by default until JS adds 'play' */
    animation-fill-mode: forwards;
}

.animate-fade-up {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-scale-in {
    opacity: 0;
    animation-fill-mode: forwards;
}

/* When slide is active, trigger animations */
.slide.active .animate-pop-in {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.slide.active .animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.slide.active .animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

/* Stagger delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-1000 {
    animation-delay: 1.0s;
}


/* Navigation Areas (invisible) */
.nav-area {
    position: absolute;
    top: 50px;
    /* Below progress bars */
    bottom: 0;
    width: 25%;
    /* Less wide on desktop to facilitate mouse movement in center */
    z-index: 50;
    background: transparent;
    cursor: pointer;
}

.nav-area.left:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
}

.nav-area.right:hover {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.05), transparent);
}

.left {
    left: 0;
}

.right {
    right: 0;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    /* Solid High Contrast Colors */
    background-color: #ffffff;
    border: 3px solid #000000;
    color: #000000;

    padding: 0.8rem 1.2rem;
    /* Reduced size */
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;

    /* Robust Shadow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

    transition: all 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-55%) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    background-color: #f0f0f0;
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.nav-btn-prev {
    left: 40px;
}

.nav-btn-next {
    right: 40px;
}

.btn-text {
    font-size: 0.9rem;
    /* Smaller text */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ensure icons are black */
.nav-btn svg {
    width: 20px;
    /* Smaller icon */
    height: 20px;
    stroke: #000000;
    stroke-width: 3;
}

/* Hide text on smaller screens if needed */
@media (max-width: 768px) {
    .btn-text {
        display: none;
    }

    .nav-btn {
        padding: 1rem;
        border-radius: 50%;
    }
}