:root {
    --bg-color: #121212;
    --accent-pink: #FF0090;
    --accent-yellow: #FFFF00;
    --accent-green: #00FF00;
    --accent-purple: #9D00FF;
    --text-white: #FFFFFF;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Oswald', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.slide-container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    position: relative;
    background: linear-gradient(135deg, #2a0845 0%, #6441a5 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
}

/* Background Shapes */
.background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Increased blur for smoother gradients */
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 40vw;
    /* Responsive width */
    height: 40vw;
    background: var(--accent-pink);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 50vw;
    height: 50vw;
    background: var(--accent-green);
    bottom: -15%;
    right: -15%;
    animation-delay: -3s;
}

.shape-3 {
    width: 30vw;
    height: 30vw;
    background: var(--accent-yellow);
    top: 30%;
    left: 70%;
    animation-delay: -5s;
}

/* Content */
.content {
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vh;
    /* Responsive gap */
}

.header-pill {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 3rem;
    /* Larger padding */
    border-radius: 50px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    /* Fluid font size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-50px);
    opacity: 0;
    animation: slideDown 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
}

.main-title-container {
    perspective: 1000px;
}

.main-title {
    font-family: var(--font-display);
    /* Fluid typography: 15% of viewport width on mobile, somewhat less on very wide screens but still huge */
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.9;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    text-shadow: 4px 4px 0px var(--accent-pink);
    transform: scale(0.5);
    opacity: 0;
    animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.5s;
}

.word-1 {
    color: var(--accent-yellow);
    transform: rotate(-5deg);
}

.word-2 {
    color: var(--text-white);
    font-size: 1.2em;
    transform: rotate(2deg);
    /* -webkit-text-stroke: 2px var(--bg-color); */
}

/* Dopamine Elements */
.dopamine-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    font-size: clamp(3rem, 5vw, 6rem);
    /* Responsive star size */
    color: var(--accent-yellow);
    animation: pulse 1s infinite alternate;
}

.star-1 {
    top: 15%;
    right: 15%;
    transform: rotate(15deg);
    animation-delay: 0.1s;
}

.star-2 {
    bottom: 20%;
    left: 10%;
    color: var(--accent-pink);
    font-size: clamp(4rem, 7vw, 8rem);
    transform: rotate(-10deg);
    animation-delay: 0.5s;
}

.spiral {
    position: absolute;
    bottom: 10%;
    right: 10%;
    font-size: clamp(5rem, 10vw, 15rem);
    opacity: 0.5;
    animation: spin 4s linear infinite;
}

/* Animations */
@keyframes float {

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

    50% {
        transform: translate(30px, -30px);
    }
}

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

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

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

    100% {
        transform: scale(1.2) rotate(10deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Slide Logic */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.95);
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

/* Slide 2 Specifics */
.stat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 15rem);
    color: var(--accent-green);
    text-shadow: 4px 4px 0px var(--accent-purple);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-white);
    letter-spacing: 4px;
}

.top-label,
.bottom-label {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    opacity: 0.8;
}

.circle-1 {
    width: 30vw;
    height: 30vw;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    position: absolute;
    top: 10%;
    left: 10%;
    animation: pulse 2s infinite;
}

.star-3 {
    font-size: 5rem;
    position: absolute;
    bottom: 20%;
    right: 20%;
    animation: spin 3s infinite linear;
}

/* Animation Delays & Keyframes */
.slide-down-delay {
    animation: slideDown 0.8s forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.fade-in-up-delay {
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.count-up {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: scale(0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Media Queries */
@media (max-width: 768px) {
    .slide-container {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
    }

    .main-title {
        font-size: 15vw;
        /* Ensure readable on mobile */
    }
}

/* Navigation Buttons */
.nav-buttons {
    position: absolute;
    bottom: 2rem;
    display: flex;
    gap: 2rem;
    z-index: 100;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5px;
    /* Visual toggle fix for arrow alignment */
}

.nav-btn:hover {
    background: white;
    color: var(--bg-color);
    transform: scale(1.1);
}

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

/* Slide 3 (Positive/Spotify Theme) */
.slide-positive {
    background-color: #1ed760;
    /* Spotify Green (slightly brighter for web) */
    color: #000000;
}

.slide-positive .top-label {
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #000;
    opacity: 1;
}

.slide-positive .time-val {
    font-family: var(--font-primary);
    /* Switch to Inter for geometric look */
    font-size: clamp(10rem, 30vw, 25rem);
    font-weight: 900;
    letter-spacing: -15px;
    /* Very tight spacing */
    color: #000;
    line-height: 0.8;
}

.slide-positive .time-unit {
    font-family: var(--font-primary);
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0px;
    transform: rotate(0deg);
    /* Normal orientation */
    font-size: clamp(2rem, 5vw, 4rem);
}

.big-blob {
    position: absolute;
    width: 80vw;
    height: 80vw;
    background: #000;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: scalePulse 6s infinite ease-in-out;
}

@keyframes scalePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Slide 4 (Orange Theme) */
.slide-orange {
    background-color: #ff5500;
    color: #ffffff;
}

.slide-orange .stat-number {
    color: #fff;
    text-shadow: 4px 4px 0px #000;
    font-family: var(--font-primary);
    font-weight: 900;
    letter-spacing: -5px;
}

.slide-orange .stat-label {
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
}

.journey-path {
    position: absolute;
    width: 60vw;
    height: 40vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    opacity: 0.3;
    z-index: -1;
}

.journey-path path {
    animation: drawPath 2s ease-out forwards;
    animation-delay: 0.5s;
}

.star-4 {
    position: absolute;
    top: 20%;
    left: 20%;
    font-size: 5rem;
    color: #fff;
    animation: pulse 1.5s infinite alternate;
}

/* Slide 5 (Blue Theme) */
.slide-blue {
    background-color: #2E54FF;
    color: #ffffff;
}

/* Shared Header Style for New Slides */
.slide-blue .top-label,
.slide-purple .top-label,
.slide-yellow .top-label {
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: clamp(2rem, 5vw, 4rem);
    /* Significantly larger */
    opacity: 1;
}

.shortcut-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.shortcut-text {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
}

.uturn-path {
    position: absolute;
    width: 50vw;
    height: 50vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    z-index: -1;
}

.uturn-path path {
    animation: drawPath 2s ease-in-out forwards;
    animation-delay: 0.5s;
}



/* Slide 6 (Purple Theme) */
.slide-purple {
    background-color: #8C19FF;
    color: #ffffff;
}

.shortcut-path {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.arrow {
    color: rgba(255, 255, 255, 0.5);
}

.missed-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.missed-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.missed-items {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.missed-item {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    text-decoration-color: #ff5500;
    /* Orange strike-through for contrast */
}

.skip-path {
    position: absolute;
    width: 60vw;
    height: 30vw;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    z-index: -1;
}

.skip-path path {
    animation: drawPath 2s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Slide 7 (Yellow Theme) */
.slide-yellow {
    background-color: #FFFF00;
    /* Vibrant Yellow */
    color: #000000;
}

.slide-yellow .missed-item {
    color: rgba(0, 0, 0, 0.5);
    /* Dark transparent text for contrast on yellow */
}

.slide-yellow .arrow {
    color: rgba(0, 0, 0, 0.5);
}

/* Slide 8 (Pink Theme) */
.slide-pink {
    background-color: #FF0090;
    /* Hot Pink */
    color: #ffffff;
}

.slide-pink .top-label {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
}

.moon {
    position: absolute;
    top: 15%;
    right: 15%;
    font-size: clamp(6rem, 15vw, 10rem);
    color: #FFFF00;
    animation: simpleFloat 4s ease-in-out infinite;
    transform: rotate(-15deg);
}

.star-5 {
    position: absolute;
    bottom: 20%;
    left: 10%;
    font-size: 4rem;
    color: #fff;
    animation: pulse 2s infinite alternate;
}

.star-6 {
    position: absolute;
    top: 30%;
    left: 20%;
    font-size: 3rem;
    color: #FFFF00;
    animation: spin 5s linear infinite;
}

/* Dark Theme Navigation Buttons (for light slides) */
.slide-container.dark-controls .nav-btn {
    border-color: #000000;
    color: #000000;
    background: transparent;
    /* Clean look */
    border-width: 2px;
    /* Thicker border for visibility */
}

.slide-container.dark-controls .nav-btn:hover {
    background: #000;
    color: #FFFF00;
    /* Yellow text on hover for cool effect */
}

.shortcut-path-long {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    /* Slightly smaller for longer text */
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.zigzag-path {
    position: absolute;
    width: 60vw;
    height: 60vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    z-index: -1;
}

.zigzag-path path {
    animation: drawPath 2.5s ease-in-out forwards;
    animation-delay: 0.5s;
}

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

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

@keyframes simpleFloat {

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

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}