/* KNOTS OF GRATITUDE 2025 - CELEBRATION STYLES */
/* Exciting animations, parallax effects, celebratory feel */

:root {
    --teal: #4A90A4;
    --pink: #E8989C;
    --cream: #FFF4E0;
    --charcoal: #2C3E50;
    --white: #FFFFFF;
    --gold: #FFD700;
    --purple: #6B5B95;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: var(--charcoal);
    overflow: hidden;
}

#presentation {
    width: 100vw;
    height: 100vh;
    position: relative;
    perspective: 1000px;
}

/* ==================== SLIDES ==================== */

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    opacity: 0;
    transform: translateZ(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.8s ease;
}

.slide.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Corner Logo on All Slides */
.corner-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: auto;
    height: 60px;
    max-width: 120px;
    opacity: 0.8;
    z-index: 100;
    animation: fadeIn 1s ease;
    object-fit: contain;
}

.slide[data-type="pre-show"] .corner-logo,
.slide[data-type="video"] .corner-logo,
.mission-slide .corner-logo {
    display: none; /* Hide on pre-show, video, and mission slides */
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==================== CONTENT CENTERING ==================== */

.content-center {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    text-align: center;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Parallax Background Layers */
.content-center::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(74, 144, 164, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(232, 152, 156, 0.05) 0%, transparent 50%);
    animation: parallaxFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes parallaxFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.gradient-bg {
    background: linear-gradient(135deg, var(--teal) 0%, var(--pink) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    animation: rotateGradient 15s linear infinite;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gradient-bg h1,
.gradient-bg h2,
.gradient-bg h3,
.gradient-bg p {
    color: white;
    position: relative;
    z-index: 2;
}

/* ==================== TYPOGRAPHY WITH ANIMATIONS ==================== */

h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: titleBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes titleBounce {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 1rem;
    animation: fadeSlideUp 0.8s ease 0.4s both;
}

h3 {
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    animation: fadeSlideUp 0.8s ease 0.3s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.8rem;
    color: var(--charcoal);
    font-weight: 400;
    margin-top: 1rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9),
                 0 1px 2px rgba(255, 255, 255, 0.8),
                 0 0 10px rgba(255, 255, 255, 0.6);
    animation: fadeSlideUp 0.8s ease 0.6s both;
}

.tagline {
    font-size: 2rem;
    font-style: italic;
    color: var(--charcoal);
    margin-top: 2rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9),
                 0 1px 2px rgba(255, 255, 255, 0.8),
                 0 0 10px rgba(255, 255, 255, 0.6);
    animation: fadeSlideUp 0.8s ease 0.8s both;
}

.message {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 2rem 0;
    animation: fadeSlideUp 0.8s ease 0.5s both;
}

.sub-message {
    font-size: 1.8rem;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9),
                 0 1px 2px rgba(255, 255, 255, 0.8),
                 0 0 10px rgba(255, 255, 255, 0.6);
    animation: fadeSlideUp 0.8s ease 0.7s both;
}

.website {
    font-size: 2.5rem;
    color: var(--teal);
    font-weight: 600;
    margin: 2rem 0;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(74, 144, 164, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(74, 144, 164, 0.6), 0 0 60px rgba(74, 144, 164, 0.3);
    }
}

.live-note {
    font-size: 1.2rem;
    color: var(--pink);
    font-style: italic;
    margin-top: 2rem;
    opacity: 0.8;
    animation: fadeSlideUp 0.8s ease 1s both;
}

/* ==================== GLOW & PULSE EFFECTS ==================== */

.glow {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(232, 152, 156, 0.5),
                     0 0 40px rgba(232, 152, 156, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(232, 152, 156, 0.8),
                     0 0 80px rgba(232, 152, 156, 0.5),
                     0 0 120px rgba(232, 152, 156, 0.3);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Audio-synced pulse animation for Welcome slide */
@keyframes audioPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255,255,255,0.5);
    }
    25% {
        transform: scale(1.04);
        text-shadow: 0 0 35px rgba(74, 144, 164, 0.7),
                     0 0 50px rgba(232, 152, 156, 0.5);
    }
    50% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255,255,255,0.5);
    }
    75% {
        transform: scale(1.04);
        text-shadow: 0 0 35px rgba(232, 152, 156, 0.7),
                     0 0 50px rgba(74, 144, 164, 0.5);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255,255,255,0.5);
    }
}

.audio-pulse h1 {
    animation: audioPulse 1.5s ease-in-out infinite !important;
}

.audio-pulse h2 {
    animation: audioPulse 1.5s ease-in-out infinite !important;
    animation-delay: 0.15s !important;
}

.audio-pulse h3 {
    animation: audioPulse 1.5s ease-in-out infinite !important;
    animation-delay: 0.3s !important;
}

.audio-pulse .message {
    animation: audioPulse 1.5s ease-in-out infinite !important;
    animation-delay: 0.45s !important;
}

.audio-pulse .sub-message {
    animation: audioPulse 1.5s ease-in-out infinite !important;
    animation-delay: 0.6s !important;
}

/* Animated logo for Welcome slide */
.gradient-bg .logo-image {
    animation: logoFloat 3s ease-in-out infinite,
               logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.5))
                drop-shadow(0 0 30px rgba(74, 144, 164, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.8))
                drop-shadow(0 0 50px rgba(74, 144, 164, 0.5))
                drop-shadow(0 0 60px rgba(232, 152, 156, 0.4));
    }
}

.audio-pulse .logo-image {
    animation: logoFloat 3s ease-in-out infinite,
               logoPulseGlow 1.5s ease-in-out infinite !important;
}

@keyframes logoPulseGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.6))
                drop-shadow(0 0 40px rgba(74, 144, 164, 0.4));
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        filter: drop-shadow(0 0 35px rgba(255,255,255,0.9))
                drop-shadow(0 0 60px rgba(74, 144, 164, 0.7))
                drop-shadow(0 0 70px rgba(232, 152, 156, 0.5));
        transform: translateY(-10px) scale(1.08) rotate(2deg);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.6))
                drop-shadow(0 0 40px rgba(232, 152, 156, 0.4));
        transform: translateY(0) scale(1) rotate(0deg);
    }
    75% {
        filter: drop-shadow(0 0 35px rgba(255,255,255,0.9))
                drop-shadow(0 0 60px rgba(232, 152, 156, 0.7))
                drop-shadow(0 0 70px rgba(74, 144, 164, 0.5));
        transform: translateY(-10px) scale(1.08) rotate(-2deg);
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.6))
                drop-shadow(0 0 40px rgba(74, 144, 164, 0.4));
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* ==================== DIVIDER ==================== */

.divider {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pink), var(--teal), var(--pink), transparent);
    margin: 2rem auto;
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==================== STAT BOX - CELEBRATION STYLE ==================== */

.stat-box {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
    color: var(--pink);
    margin-bottom: 0.5rem;
    animation: countUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    position: relative;
}

.stat:nth-child(1) { animation-delay: 0.3s; }
.stat:nth-child(2) { animation-delay: 0.5s; }
.stat:nth-child(3) { animation-delay: 0.7s; }

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stat span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ==================== INFO BOX ==================== */

.info-box {
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.1) 0%, rgba(232, 152, 156, 0.1) 100%);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid rgba(74, 144, 164, 0.2);
    animation: fadeSlideUp 0.8s ease 0.5s both;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.info-box p {
    font-size: 1.8rem;
    color: var(--teal);
}

/* ==================== BACKGROUND VIDEO ==================== */

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Initially hide the pre-show video so the starting image background shows */
/* Video will be shown via JavaScript when user clicks to start */
.slide[data-type="pre-show"] #preshow-video {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.slide[data-type="pre-show"] #preshow-video.playing {
    opacity: 1;
}

.overlay-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    padding: 2rem 4rem;
    border-radius: 20px;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    z-index: 10;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.click-to-start {
    position: absolute;
    bottom: 24%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.7), rgba(232, 152, 156, 0.7));
    padding: 1.2rem 3rem;
    border-radius: 50px;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    cursor: pointer;
    animation: startButtonPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 30px rgba(74, 144, 164, 0.4);
    transition: all 0.3s ease;
}

.click-to-start:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 40px rgba(74, 144, 164, 0.6);
}

@keyframes startButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 30px rgba(74, 144, 164, 0.4), 0 0 0 0 rgba(74, 144, 164, 0.4);
        border-color: rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 40px rgba(232, 152, 156, 0.6), 0 0 20px 5px rgba(232, 152, 156, 0.3);
        border-color: rgba(255, 255, 255, 0.7);
    }
}

.click-to-start p {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Begin the show button - bottom right, hidden until first video ends */
.preshow-skip-hint {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 15;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: none !important;
}

.preshow-skip-hint.visible {
    display: block !important;
}

.preshow-skip-hint:hover {
    background: rgba(74, 144, 164, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Click to begin slide specific styles */
[data-slide="1"].slide .content-center {
    padding: 20px 4rem 100px 4rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

[data-slide="1"].slide .logo-image {
    max-width: 180px;
    margin-bottom: 0.5rem;
}

[data-slide="1"].slide h1 {
    font-size: 3rem;
    margin: 0.3rem 0;
}

[data-slide="1"].slide h2 {
    font-size: 1.8rem;
    margin: 0.2rem 0;
}

[data-slide="1"].slide h3 {
    font-size: 1.4rem;
    margin: 0.2rem 0;
}

[data-slide="1"].slide .message {
    font-size: 1.6rem;
    margin: 0.8rem 0 0.3rem 0;
}

[data-slide="1"].slide .sub-message {
    font-size: 1.2rem;
    margin: 0.3rem 0;
}

[data-slide="1"].slide .content-center h1,
[data-slide="1"].slide .content-center h2,
[data-slide="1"].slide .content-center h3,
[data-slide="1"].slide .content-center p {
    margin: 0.3rem 0;
}

/* Click to begin - inline centered between messages */
.click-to-begin-inline {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0 1rem 0;
    transition: all 0.3s ease;
    animation: buttonPulse 2s ease-in-out infinite;
}

.click-to-begin-inline:hover {
    background: rgba(74, 144, 164, 0.6);
    transform: scale(1.05);
    animation: none;
}

@keyframes buttonPulse {
    0%, 100% {
        opacity: 0.9;
        box-shadow: 0 0 10px rgba(74, 144, 164, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(74, 144, 164, 0.5);
    }
}

.click-to-begin-inline p {
    margin: 0;
}

/* Click to begin overlay - for welcome slide (legacy) */
.click-to-begin-overlay {
    display: none;
    transition: all 0.3s ease;
    animation: subtlePulse 2s ease-in-out infinite;
}

.click-to-begin-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.click-to-begin-overlay p {
    margin: 0;
}


.click-to-begin-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* ==================== QR CODE DISPLAY (Between Videos) ==================== */

#preshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.qr-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--teal) 0%, var(--pink) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: fadeIn 0.5s ease;
}

.qr-container {
    text-align: center;
    max-width: 1200px;
    padding: 3rem;
}

.qr-container h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3),
                 0 0 30px rgba(255,255,255,0.5),
                 0 0 60px rgba(74, 144, 164, 0.4);
    animation: fadeInUp 0.8s ease, qrHeaderGlow 3s ease-in-out infinite alternate;
}

@keyframes qrHeaderGlow {
    0% {
        text-shadow: 2px 2px 8px rgba(0,0,0,0.3),
                     0 0 30px rgba(255,255,255,0.5),
                     0 0 60px rgba(74, 144, 164, 0.4);
    }
    100% {
        text-shadow: 2px 2px 8px rgba(0,0,0,0.3),
                     0 0 40px rgba(255,255,255,0.7),
                     0 0 80px rgba(74, 144, 164, 0.6),
                     0 0 100px rgba(232, 152, 156, 0.4);
    }
}

.qr-boxes {
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: flex-start;
}

.qr-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3),
                0 0 30px rgba(74, 144, 164, 0.4),
                0 0 60px rgba(232, 152, 156, 0.3);
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               qrFloat 4s ease-in-out infinite,
               qrGlow 2s ease-in-out infinite alternate;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.qr-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
                transparent 30%,
                rgba(74, 144, 164, 0.1) 50%,
                transparent 70%);
    animation: shimmer 3s linear infinite;
    pointer-events: none;
}

.qr-box:first-child {
    animation-delay: 0.2s;
}

.qr-box:last-child {
    animation-delay: 0.4s;
}

.qr-box:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4),
                0 0 50px rgba(74, 144, 164, 0.6),
                0 0 100px rgba(232, 152, 156, 0.5);
}

.qr-box img {
    width: 300px;
    height: 300px;
    display: block;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 3px solid var(--teal);
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(74, 144, 164, 0.3);
    animation: qrImagePulse 3s ease-in-out infinite;
}

@keyframes qrFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes qrGlow {
    0% {
        box-shadow: 0 10px 40px rgba(0,0,0,0.3),
                    0 0 20px rgba(74, 144, 164, 0.4),
                    0 0 40px rgba(232, 152, 156, 0.3);
    }
    100% {
        box-shadow: 0 10px 40px rgba(0,0,0,0.3),
                    0 0 40px rgba(74, 144, 164, 0.6),
                    0 0 80px rgba(232, 152, 156, 0.5);
    }
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(50%, 50%) rotate(360deg); }
}

@keyframes qrImagePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(74, 144, 164, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(74, 144, 164, 0.5),
                    0 0 20px rgba(232, 152, 156, 0.4);
    }
}

.qr-box h3 {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(74, 144, 164, 0.3),
                 0 0 20px rgba(74, 144, 164, 0.2);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.qr-box p {
    font-size: 1.3rem;
    color: var(--charcoal);
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(74, 144, 164, 0.3),
                     0 0 20px rgba(74, 144, 164, 0.2);
    }
    100% {
        text-shadow: 0 0 20px rgba(74, 144, 164, 0.5),
                     0 0 30px rgba(74, 144, 164, 0.3),
                     0 0 40px rgba(232, 152, 156, 0.2);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== PROFILE SLIDES (Stacey Wales & Karis) ==================== */

.profile-slide {
    background: linear-gradient(135deg, var(--teal) 0%, var(--pink) 100%);
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3),
                0 0 40px rgba(255,255,255,0.4);
    margin-bottom: 2rem;
    animation: zoomForward 1.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.profile-slide h1 {
    font-size: 4.5rem;
    color: white;
    margin: 1rem 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 1),
                 0 2px 4px rgba(0, 0, 0, 0.9),
                 0 0 20px rgba(0, 0, 0, 0.8),
                 2px 2px 10px rgba(0,0,0,0.7);
    animation: titleBounce 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-slide h2 {
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9),
                 0 1px 3px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 0.8s ease;
}

.profile-slide h3 {
    font-size: 2.2rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0.5rem 0 1rem 0;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
    animation: fadeInUp 0.9s ease;
}

.profile-slide .subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    margin-top: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9),
                 0 1px 2px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease;
}

/* ==================== SPEAKER PROFILE SLIDE ==================== */

.speaker-profiles {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    justify-content: center;
    align-items: flex-start;
}

.speaker-card {
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.1) 0%, rgba(232, 152, 156, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 450px;
    text-align: center;
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    border: 3px solid var(--teal);
}

.speaker-card:nth-child(2) {
    animation-delay: 0.2s;
}

.speaker-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 5px solid var(--teal);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.speaker-card h2 {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.speaker-card h3 {
    font-size: 1.5rem;
    color: var(--pink);
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-style: italic;
}

.speaker-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin: 0;
}

/* Responsive QR codes */
@media (max-width: 1200px) {
    .qr-boxes {
        gap: 2rem;
    }
    .qr-box img {
        width: 200px;
        height: 200px;
    }
    .qr-container h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .qr-boxes {
        flex-direction: column;
        gap: 2rem;
    }
    .qr-box img {
        width: 250px;
        height: 250px;
    }
}

.live-note-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0,0,0,0.7);
    padding: 1rem 2rem;
    border-radius: 10px;
    color: var(--pink);
    font-size: 1.2rem;
    font-style: italic;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* ==================== PLACEHOLDERS ==================== */

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 2rem;
    z-index: 0;
}

.video-placeholder .placeholder-note {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.6;
}

.image-placeholder,
.logo-placeholder {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border: 3px dashed #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    font-size: 1.5rem;
    color: #666;
    border-radius: 10px;
}

.logo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.logo-placeholder.large {
    width: 300px;
    height: 300px;
}

/* Logo Image */
.logo-image {
    max-width: 250px;
    height: auto;
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite, fadeSlideUp 0.8s ease both;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

.logo-image.large {
    max-width: 350px;
}

.logo-image.small {
    max-width: 150px;
    margin-bottom: 1rem;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== FINAL SLIDE - CELEBRATION ==================== */

.final-slide {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--cream) 100%);
    position: relative;
}

.final-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(232, 152, 156, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(74, 144, 164, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

/* ==================== MISSION SLIDE WITH ROTATING CHARTS ==================== */

.mission-slide {
    position: relative;
}

.rotating-charts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--charcoal) 0%, #1a252f 100%);
}

.chart-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    max-height: 85%;
    opacity: 0;
    object-fit: contain;
}

.chart-1 {
    animation: rotateChart1 20s ease-in-out infinite;
}

.chart-2 {
    animation: rotateChart2 20s ease-in-out infinite;
}

@keyframes rotateChart1 {
    0%, 48% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    49%, 50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    51%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes rotateChart2 {
    0%, 50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    51%, 98% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    99%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

.mission-content {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ==================== AWARD SLIDES - SPECIAL STYLING ==================== */

.slide[data-slide="7"] .content-center,
.slide[data-slide="8"] .content-center,
.slide[data-slide="9"] .content-center,
.slide[data-slide="10"] .content-center,
.slide[data-slide="11"] .content-center,
.slide[data-slide="12"] .content-center {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.slide[data-slide="7"] h1,
.slide[data-slide="8"] h1,
.slide[data-slide="9"] h1,
.slide[data-slide="10"] h1,
.slide[data-slide="11"] h1,
.slide[data-slide="12"] h1 {
    color: var(--pink);
    animation: awardReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes awardReveal {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

/* ==================== SPARKLE EFFECT ==================== */

.sparkle {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sparkle::before,
.sparkle::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkle::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle::after {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

/* ==================== CONFETTI PARTICLES ==================== */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall 5s linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== CONTROLS ==================== */

.controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.control-btn {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(74, 144, 164, 0.8);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0);
}

/* ==================== PROGRESS BAR ==================== */

.progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
    pointer-events: none;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--pink), var(--gold), var(--pink), var(--teal));
    background-size: 300% 100%;
    width: 0%;
    transition: width 0.5s ease;
    animation: progressGradient 3s linear infinite;
    box-shadow: 0 0 20px var(--pink);
}

@keyframes progressGradient {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

/* Slide counter removed */

/* ==================== FLOATING HEARTS ==================== */

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: heartFloat 15s ease-in-out infinite;
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==================== AWARD INTRODUCTION SLIDES ==================== */

.award-intro {
    background: radial-gradient(circle at 50% 50%, #fff4e0 0%, #ffd700 50%, #ff69b4 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    perspective: 1000px;
    overflow: hidden;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Animated particles in background */
.award-intro::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(circle, rgba(74, 144, 164, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(232, 152, 156, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50px, 50px) rotate(360deg);
    }
}

.award-frame {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 244, 224, 0.98) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    border: 12px solid transparent;
    border-image: linear-gradient(45deg,
        var(--teal) 0%,
        var(--pink) 25%,
        gold 50%,
        var(--pink) 75%,
        var(--teal) 100%) 1;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 15px 40px rgba(74, 144, 164, 0.4),
        inset 0 0 60px rgba(232, 152, 156, 0.1),
        inset 0 0 120px rgba(255, 215, 0, 0.05);
    position: relative;
    transform-style: preserve-3d;
    animation: frameEntrance3D 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes frameEntrance3D {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(-30deg) rotateY(20deg) scale(0.5) translateZ(-200px);
    }
    50% {
        transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) scale(1.1) translateZ(50px);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1) translateZ(0);
    }
}

/* Glowing animated border */
.award-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg,
        var(--teal),
        var(--pink),
        gold,
        var(--pink),
        var(--teal));
    background-size: 400% 400%;
    z-index: -1;
    filter: blur(25px);
    opacity: 0.8;
    animation: borderGlow3D 4s ease infinite, borderRotate 8s linear infinite;
}

@keyframes borderGlow3D {
    0%, 100% {
        opacity: 0.6;
        filter: blur(25px) brightness(1);
    }
    50% {
        opacity: 1;
        filter: blur(35px) brightness(1.5);
    }
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

/* Sparkle overlay */
.award-frame::after {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    animation: sparkleMove 5s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes sparkleMove {
    0%, 100% {
        top: 10%;
        left: 10%;
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.5) rotate(180deg);
    }
    50% {
        top: 80%;
        left: 80%;
        opacity: 0.8;
        transform: scale(1.5) rotate(360deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.5) rotate(540deg);
    }
}

.award-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: headerBounce3D 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
    transform-style: preserve-3d;
}

@keyframes headerBounce3D {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(-90deg) translateY(-100px) translateZ(-200px);
    }
    60% {
        transform: perspective(800px) rotateX(20deg) translateY(10px) translateZ(50px);
    }
    80% {
        transform: perspective(800px) rotateX(-10deg) translateY(-5px) translateZ(20px);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) translateY(0) translateZ(0);
    }
}

.award-category {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--teal), var(--pink), gold, var(--pink), var(--teal));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(74, 144, 164, 0.5),
        0 0 40px rgba(232, 152, 156, 0.3);
    animation: textShine 3s ease infinite, textFloat 4s ease-in-out infinite;
    position: relative;
}

@keyframes textShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.award-icon {
    font-size: 5rem;
    animation:
        iconSpin3D 3s ease-in-out infinite,
        iconBounce 2s ease-in-out infinite,
        iconGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transform-style: preserve-3d;
}

@keyframes iconSpin3D {
    0%, 100% {
        transform: perspective(600px) rotateY(0deg) rotateZ(-10deg) scale(1);
    }
    25% {
        transform: perspective(600px) rotateY(90deg) rotateZ(0deg) scale(1.2);
    }
    50% {
        transform: perspective(600px) rotateY(180deg) rotateZ(10deg) scale(1);
    }
    75% {
        transform: perspective(600px) rotateY(270deg) rotateZ(0deg) scale(1.2);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.15);
    }
}

@keyframes iconGlow {
    0%, 100% {
        filter:
            drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3))
            drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter:
            drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4))
            drop-shadow(0 0 40px rgba(255, 215, 0, 1))
            drop-shadow(0 0 60px rgba(255, 105, 180, 0.8));
    }
}

.award-criteria {
    background: linear-gradient(135deg,
        rgba(74, 144, 164, 0.15) 0%,
        rgba(232, 152, 156, 0.15) 50%,
        rgba(255, 215, 0, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 3px solid rgba(255, 215, 0, 0.3);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    animation: criteriaEntrance3D 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
    transform-style: preserve-3d;
    position: relative;
}

@keyframes criteriaEntrance3D {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(-60deg) translateY(50px) translateZ(-150px);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) translateY(0) translateZ(0);
    }
}

.award-criteria::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--teal), var(--pink), gold);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(15px);
    animation: criteriaGlow 3s ease-in-out infinite;
}

@keyframes criteriaGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.award-criteria h3 {
    font-size: 2.3rem;
    background: linear-gradient(90deg, var(--pink), var(--teal), var(--pink));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 2rem 0;
    font-weight: 700;
    text-align: center;
    animation: textShine 3s ease infinite, titleBounce 2s ease-in-out infinite;
}

@keyframes titleBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.criteria-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.criteria-list li {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--charcoal);
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
    line-height: 1.8;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.8) 0%,
        transparent 100%);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    animation: criteriaSlide3D 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.criteria-list li:hover {
    background: linear-gradient(90deg,
        rgba(74, 144, 164, 0.2) 0%,
        rgba(232, 152, 156, 0.2) 100%);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.criteria-list li:nth-child(1) { animation-delay: 0.8s; }
.criteria-list li:nth-child(2) { animation-delay: 1.0s; }
.criteria-list li:nth-child(3) { animation-delay: 1.2s; }
.criteria-list li:nth-child(4) { animation-delay: 1.4s; }

@keyframes criteriaSlide3D {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateY(-90deg) translateX(-100px) translateZ(-100px);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateY(0deg) translateX(0) translateZ(0);
    }
}

.criteria-list li::before {
    content: '⭐';
    position: absolute;
    left: 0.5rem;
    font-size: 1.8rem;
    animation: starSpin3D 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

.criteria-list li:nth-child(1)::before { animation-delay: 0s; }
.criteria-list li:nth-child(2)::before { animation-delay: 0.75s; }
.criteria-list li:nth-child(3)::before { animation-delay: 1.5s; }
.criteria-list li:nth-child(4)::before { animation-delay: 2.25s; }

@keyframes starSpin3D {
    0%, 100% {
        transform: perspective(400px) rotateY(0deg) scale(1);
        filter:
            drop-shadow(0 0 5px gold)
            drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    25% {
        transform: perspective(400px) rotateY(180deg) scale(1.3);
        filter:
            drop-shadow(0 0 10px gold)
            drop-shadow(0 0 20px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 30px rgba(255, 105, 180, 0.6));
    }
    50% {
        transform: perspective(400px) rotateY(360deg) scale(1);
        filter:
            drop-shadow(0 0 5px gold)
            drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
}

.award-prompt {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg,
        var(--teal),
        var(--pink),
        gold,
        var(--pink),
        var(--teal));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 2.5rem 0 0 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    animation:
        promptPulse3D 2s ease-in-out infinite,
        promptEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s both,
        textShine 3s ease infinite;
    transform-style: preserve-3d;
}

@keyframes promptPulse3D {
    0%, 100% {
        transform: perspective(800px) scale(1) translateZ(0);
        filter:
            drop-shadow(0 0 20px rgba(74, 144, 164, 0.5))
            drop-shadow(0 0 40px rgba(232, 152, 156, 0.3));
    }
    50% {
        transform: perspective(800px) scale(1.15) translateZ(50px);
        filter:
            drop-shadow(0 0 40px rgba(74, 144, 164, 1))
            drop-shadow(0 0 80px rgba(232, 152, 156, 0.8))
            drop-shadow(0 0 120px gold);
    }
}

@keyframes promptEntrance {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(90deg) translateY(100px) scale(0.5);
    }
    60% {
        transform: perspective(800px) rotateX(-10deg) translateY(-10px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) translateY(0) scale(1);
    }
}

/* Confetti burst animation on prompt */
.award-prompt::before,
.award-prompt::after {
    content: '🎉';
    position: absolute;
    font-size: 2rem;
    animation: confettiBurst 2s ease-in-out infinite;
}

.award-prompt::before {
    left: -3rem;
    animation-delay: 0.5s;
}

.award-prompt::after {
    right: -3rem;
    animation-delay: 1s;
}

@keyframes confettiBurst {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1.5) rotate(180deg);
    }
}

/* ==================== WINNER SLIDES ==================== */

.award-winner {
    background: radial-gradient(circle at 50% 50%,
        var(--cream) 0%,
        #ffd700 40%,
        var(--pink) 100%);
    background-size: 150% 150%;
    animation: winnerGradientShift 6s ease infinite;
    overflow: hidden;
    position: relative;
}

.award-winner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background:
        radial-gradient(circle, rgba(255, 215, 0, 0.3) 2px, transparent 2px),
        radial-gradient(circle, rgba(232, 152, 156, 0.3) 2px, transparent 2px);
    background-size: 60px 60px, 90px 90px;
    background-position: 0 0, 45px 45px;
    animation: sparkleRain 15s linear infinite;
    pointer-events: none;
}

.award-winner::after {
    content: '🎊🎉✨💫⭐';
    position: absolute;
    font-size: 3rem;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 10%;
    animation: confettiFloat 8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.4;
}

.winner-banner {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg,
        gold 0%,
        var(--pink) 25%,
        var(--teal) 50%,
        var(--pink) 75%,
        gold 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-align: center;
    animation:
        winnerBannerEntrance 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) both,
        winnerTextShine 3s ease infinite 1.2s,
        winnerBounce 2s ease-in-out infinite 2s;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.6));
    transform-style: preserve-3d;
}

.winner-banner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg,
        transparent,
        rgba(255, 215, 0, 0.5),
        transparent);
    border-radius: 20px;
    animation: winnerGlow 2s ease-in-out infinite;
    z-index: -1;
    filter: blur(20px);
}

/* Different animation delays for variety */
.winner-2 {
    animation:
        winnerBannerEntrance2 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) both,
        winnerTextShine 3s ease infinite 1.2s,
        winnerPulse 2.5s ease-in-out infinite 2s;
}

.winner-3 {
    animation:
        winnerBannerEntrance3 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) both,
        winnerTextShine 3s ease infinite 1.2s,
        winnerSway 3s ease-in-out infinite 2s;
}

.winner-4 {
    animation:
        winnerBannerEntrance 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) both,
        winnerTextShine 3s ease infinite 1.2s,
        winnerBounce 2s ease-in-out infinite 2s;
}

.winner-5 {
    animation:
        winnerBannerEntrance2 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) both,
        winnerTextShine 3s ease infinite 1.2s,
        winnerRotate 3s ease-in-out infinite 2s;
}

.winner-6 {
    animation:
        winnerBannerEntrance3 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) both,
        winnerTextShine 3s ease infinite 1.2s,
        winnerFloat 4s ease-in-out infinite 2s;
}

/* Winner slide enhancements */
.award-winner h1 {
    animation: winnerNameReveal 1s ease-out 0.5s both;
    transform-style: preserve-3d;
}

.award-winner h2 {
    animation: winnerCategoryReveal 0.8s ease-out 0.3s both;
}

/* Winner banner entrance animations */
@keyframes winnerBannerEntrance {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(-90deg) scale(0.5) translateZ(-300px);
    }
    60% {
        transform: perspective(1000px) rotateX(15deg) scale(1.15) translateZ(50px);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) scale(1) translateZ(0);
    }
}

@keyframes winnerBannerEntrance2 {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateY(-90deg) scale(0.3);
    }
    60% {
        transform: perspective(1000px) rotateY(10deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg) scale(1);
    }
}

@keyframes winnerBannerEntrance3 {
    0% {
        opacity: 0;
        transform: perspective(1000px) scale(0) rotateZ(-180deg);
    }
    70% {
        transform: perspective(1000px) scale(1.2) rotateZ(10deg);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) scale(1) rotateZ(0deg);
    }
}

/* Winner banner continuous animations */
@keyframes winnerBounce {
    0%, 100% {
        transform: perspective(1000px) translateY(0) scale(1);
    }
    50% {
        transform: perspective(1000px) translateY(-15px) scale(1.05);
    }
}

@keyframes winnerPulse {
    0%, 100% {
        transform: perspective(1000px) scale(1);
        filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.6));
    }
    50% {
        transform: perspective(1000px) scale(1.08);
        filter: drop-shadow(0 15px 50px rgba(255, 215, 0, 0.9));
    }
}

@keyframes winnerSway {
    0%, 100% {
        transform: perspective(1000px) rotateZ(-2deg);
    }
    50% {
        transform: perspective(1000px) rotateZ(2deg);
    }
}

@keyframes winnerRotate {
    0%, 100% {
        transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    }
    50% {
        transform: perspective(1000px) rotateY(5deg) rotateX(-2deg);
    }
}

@keyframes winnerFloat {
    0%, 100% {
        transform: perspective(1000px) translateY(0) translateZ(0);
    }
    33% {
        transform: perspective(1000px) translateY(-10px) translateZ(20px);
    }
    66% {
        transform: perspective(1000px) translateY(5px) translateZ(-10px);
    }
}

@keyframes winnerTextShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes winnerGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes winnerNameReveal {
    0% {
        opacity: 0;
        transform: perspective(800px) translateY(50px) rotateX(30deg) scale(0.8);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) translateY(0) rotateX(0deg) scale(1);
        filter: blur(0);
    }
}

@keyframes winnerCategoryReveal {
    0% {
        opacity: 0;
        transform: translateY(-30px);
        letter-spacing: 0.3em;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.1em;
    }
}

@keyframes winnerGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes sparkleRain {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes confettiFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0.3;
        letter-spacing: 0em;
    }
    25% {
        transform: translateY(-40px) translateX(0) scale(1.3) rotate(90deg);
        opacity: 0.7;
        letter-spacing: 2em;
    }
    50% {
        transform: translateY(-60px) translateX(0) scale(1.5) rotate(180deg);
        opacity: 0.9;
        letter-spacing: 4em;
    }
    75% {
        transform: translateY(-40px) translateX(0) scale(1.3) rotate(270deg);
        opacity: 0.7;
        letter-spacing: 2em;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1) rotate(360deg);
        opacity: 0.3;
        letter-spacing: 0em;
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .stat { font-size: 3rem; }
    .message { font-size: 2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .stat { font-size: 2rem; }
    .stat-box { flex-direction: column; gap: 1.5rem; }
    .controls { bottom: 1rem; right: 1rem; }
    .control-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* ==================== CHANDLER SLIDE ==================== */

.chandler-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chandler-content .corner-logo {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 120px;
    height: auto;
    z-index: 5;
}

.chandler-content .content-center {
    width: 100%;
    text-align: center;
    padding: 2rem;
}

/* ==================== VIDEO FIXES ==================== */

.intro-video, .mission-video {
    object-fit: contain !important;
    background: #000;
}

/* ==================== MISSION SEQUENCE ==================== */

/* 1 in 10 Animated Chart */
.one-in-ten-chart {
    text-align: center;
    padding: 60px;
}

.one-in-ten-chart .chart-title {
    font-size: 4rem;
    color: var(--teal);
    margin-bottom: 60px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.babies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 60px;
}

.baby-icon {
    width: 120px;
    height: 120px;
    background: var(--cream);
    border-radius: 50%;
    position: relative;
    opacity: 0;
    transform: scale(0);
    animation: babyPopIn 0.5s ease-out forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.baby-icon::before {
    content: '👶';
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.baby-icon:nth-child(1) { animation-delay: 0.1s; }
.baby-icon:nth-child(2) { animation-delay: 0.2s; }
.baby-icon:nth-child(3) { animation-delay: 0.3s; }
.baby-icon:nth-child(4) { animation-delay: 0.4s; }
.baby-icon:nth-child(5) { animation-delay: 0.5s; }
.baby-icon:nth-child(6) { animation-delay: 0.6s; }
.baby-icon:nth-child(7) { animation-delay: 0.7s; }
.baby-icon:nth-child(8) { animation-delay: 0.8s; }
.baby-icon:nth-child(9) { animation-delay: 0.9s; }
.baby-icon:nth-child(10) { animation-delay: 1.0s; }

.baby-icon.premature {
    background: var(--pink);
    animation: babyPopIn 0.5s ease-out forwards, prematurePulse 2s ease-in-out infinite;
    animation-delay: 1.0s, 1.5s;
}

@keyframes babyPopIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes prematurePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 15px 50px rgba(255, 105, 180, 0.6);
    }
}

.one-in-ten-chart .chart-stat {
    font-size: 3.5rem;
    color: var(--pink);
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.one-in-ten-chart .chart-subtitle {
    font-size: 1.8rem;
    color: var(--cream);
    opacity: 0.9;
}

.mission-slide .rotating-charts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    background: linear-gradient(135deg, var(--teal) 0%, var(--pink) 100%);
}

.mission-slide .chart-image {
    width: 95%;
    max-width: 1400px;
    height: 85vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    background: transparent;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 1s ease-in-out;
    opacity: 0;
    border: none;
    filter: brightness(1.3) contrast(1.5) saturate(1.4);
    image-rendering: crisp-edges;
}

.mission-slide .chart-image.active {
    opacity: 1;
}

.mission-slide .mission-content {
    position: relative;
    z-index: 4;
    background: rgba(255, 244, 224, 0.95);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}


/* ==================== CAKE CUTTING CELEBRATION SLIDE ==================== */

.celebration-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.celebration-title {
    font-size: 5rem;
    font-weight: bold;
    color: var(--white);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                 0 0 60px rgba(255, 215, 0, 0.6),
                 0 4px 10px rgba(0, 0, 0, 0.8);
    animation: celebrationPulse 2s ease-in-out infinite;
    margin-bottom: 2rem;
}

@keyframes celebrationPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                     0 0 60px rgba(255, 215, 0, 0.6),
                     0 4px 10px rgba(0, 0, 0, 0.8);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 40px rgba(255, 215, 0, 1),
                     0 0 80px rgba(255, 215, 0, 0.8),
                     0 6px 15px rgba(0, 0, 0, 0.9);
    }
}

.click-to-continue {
    font-size: 2rem;
    color: var(--white);
    background: rgba(74, 144, 164, 0.9);
    padding: 1rem 3rem;
    border-radius: 50px;
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.click-to-continue:hover {
    background: rgba(232, 152, 156, 0.9);
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* ============================================
   CHANDLER CELEBRATION SLIDE STYLES - 3D EFFECTS
   ============================================ */

.celebration-slide {
    background: linear-gradient(135deg, #1a4d5c 0%, #d67579 50%, #1a4d5c 100%);
    overflow: hidden;
    perspective: 1000px;
}

.celebration-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.celebration-title {
    font-size: 7rem;
    margin-bottom: 1rem;
    font-weight: 900;
    color: white;
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
    animation: bounce3D 1s ease, pulse3D 2s ease-in-out infinite 1s;
}

.celebration-subtitle {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 3rem;
    text-shadow:
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.6);
    animation: fadeInUp3D 1s ease 0.3s both, shimmer 3s ease-in-out infinite 1.3s;
}

.big-reveal {
    margin: 3rem 0;
    animation: zoomIn3D 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s both;
    transform-style: preserve-3d;
}

.reveal-box {
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 40px;
    padding: 4rem 6rem;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 -5px 20px rgba(0, 0, 0, 0.1),
        0 0 0 10px rgba(255, 255, 255, 0.2);
    display: inline-block;
    transform: translateZ(50px);
    animation: float3D 3s ease-in-out infinite;
    border: 5px solid rgba(255, 215, 0, 0.5);
}

.mega-number {
    font-size: 12rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--teal), var(--pink), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    text-shadow:
        5px 5px 0 rgba(0,0,0,0.2),
        10px 10px 20px rgba(0,0,0,0.3);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: numberPop 2s ease-in-out infinite;
}

.reveal-box h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-top: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.record-breaking {
    font-size: 4rem;
    font-weight: 900;
    margin: 3rem 0 2rem 0;
    color: #FFD700;
    text-shadow:
        3px 3px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        0 0 30px rgba(255, 215, 0, 1),
        0 0 60px rgba(255, 215, 0, 0.8),
        5px 5px 15px rgba(0,0,0,0.5);
    animation: glow3D 2s ease-in-out infinite, rotate3D 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.celebration-message {
    font-size: 2.2rem;
    font-weight: 600;
    color: white;
    line-height: 1.6;
    text-shadow:
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 20px rgba(255,255,255,0.3);
    animation: fadeInUp3D 1s ease 1s both;
}

/* Floating celebration icons with 3D */
.float-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    transform-style: preserve-3d;
}

.float-icon {
    position: absolute;
    font-size: 5rem;
    animation: float3DIcon infinite ease-in-out;
    animation-delay: var(--delay);
    animation-duration: var(--duration);
    text-shadow:
        3px 3px 0 rgba(0,0,0,0.2),
        5px 5px 10px rgba(0,0,0,0.3),
        0 0 20px rgba(255,255,255,0.5);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    transform-style: preserve-3d;
}

.float-icon:nth-child(1) { left: 10%; top: 20%; }
.float-icon:nth-child(2) { left: 85%; top: 15%; }
.float-icon:nth-child(3) { left: 15%; top: 70%; }
.float-icon:nth-child(4) { left: 80%; top: 65%; }
.float-icon:nth-child(5) { left: 50%; top: 10%; }
.float-icon:nth-child(6) { left: 25%; top: 45%; }
.float-icon:nth-child(7) { left: 70%; top: 35%; }
.float-icon:nth-child(8) { left: 40%; top: 80%; }

@keyframes float3DIcon {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: translateY(-40px) translateZ(30px) rotateY(15deg) rotateX(10deg);
    }
    50% {
        transform: translateY(-80px) translateZ(60px) rotateY(-15deg) rotateX(-10deg);
    }
    75% {
        transform: translateY(-40px) translateZ(30px) rotateY(10deg) rotateX(5deg);
    }
}

@keyframes zoomForward {    0% {        opacity: 0;        transform: scale(0.4);    }    30% {        opacity: 1;    }    70% {        transform: scale(1.25);    }    100% {        transform: scale(1);    }}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 215, 0, 1),
                     0 0 60px rgba(255, 215, 0, 0.8);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chandler-logo {
    max-width: 400px;
    max-height: 200px;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3D Animation Keyframes */
@keyframes bounce3D {
    0% {
        opacity: 0;
        transform: scale(0.3) translateZ(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) translateZ(50px);
    }
    70% {
        transform: scale(0.95) translateZ(30px);
    }
    100% {
        transform: scale(1) translateZ(0);
    }
}

@keyframes pulse3D {
    0%, 100% {
        transform: scale(1) translateZ(0);
    }
    50% {
        transform: scale(1.05) translateZ(20px);
    }
}

@keyframes fadeInUp3D {
    0% {
        opacity: 0;
        transform: translateY(50px) translateZ(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        text-shadow:
            2px 2px 0 #000,
            -2px -2px 0 #000,
            2px -2px 0 #000,
            -2px 2px 0 #000,
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6);
    }
    50% {
        text-shadow:
            2px 2px 0 #000,
            -2px -2px 0 #000,
            2px -2px 0 #000,
            -2px 2px 0 #000,
            0 0 40px rgba(255, 215, 0, 1),
            0 0 80px rgba(255, 215, 0, 0.8),
            0 0 120px rgba(255, 215, 0, 0.6);
    }
}

@keyframes zoomIn3D {
    0% {
        opacity: 0;
        transform: scale(0) rotateX(-90deg) translateZ(-200px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg) translateZ(0);
    }
}

@keyframes float3D {
    0%, 100% {
        transform: translateZ(50px) translateY(0);
        box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.4),
            inset 0 -5px 20px rgba(0, 0, 0, 0.1),
            0 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: translateZ(70px) translateY(-20px);
        box-shadow:
            0 50px 80px rgba(0, 0, 0, 0.5),
            inset 0 -5px 20px rgba(0, 0, 0, 0.1),
            0 0 0 10px rgba(255, 255, 255, 0.3);
    }
}

@keyframes numberPop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes glow3D {
    0%, 100% {
        text-shadow:
            3px 3px 0 #000,
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.8),
            5px 5px 15px rgba(0,0,0,0.5);
    }
    50% {
        text-shadow:
            3px 3px 0 #000,
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            0 0 50px rgba(255, 215, 0, 1),
            0 0 100px rgba(255, 215, 0, 1),
            0 0 150px rgba(255, 215, 0, 0.8),
            5px 5px 20px rgba(0,0,0,0.6);
    }
}

@keyframes rotate3D {
    0%, 100% {
        transform: perspective(1000px) rotateY(0deg);
    }
    25% {
        transform: perspective(1000px) rotateY(5deg);
    }
    75% {
        transform: perspective(1000px) rotateY(-5deg);
    }
}

/* =====================================================
   THANK YOU SLIDE EXCITING ANIMATIONS
   ===================================================== */

/* Thank You Slide Specific Styles */
[data-slide="25"] .logo-image {
    animation:
        bounce3D 1.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        pulse3D 2s ease-in-out 1.5s infinite,
        sparkle 3s ease-in-out 2s infinite;
}

[data-slide="25"] h1 {
    animation:
        zoomIn3D 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both,
        shimmer 3s ease-in-out 1.5s infinite,
        float 4s ease-in-out 2s infinite;
    font-size: 7rem !important;
}

[data-slide="25"] .message {
    animation:
        fadeInUp3D 1s ease-out 0.8s both,
        glow 2.5s ease-in-out 2s infinite;
    font-size: 2.5rem;
}

[data-slide="25"] .divider {
    animation:
        expandWidth 1.5s ease-out 1.2s both,
        rainbowGlow 3s linear 2.5s infinite;
}

[data-slide="25"] .tagline {
    animation:
        fadeInUp 1s ease-out 1.5s both,
        twinkle 2s ease-in-out 3s infinite;
    font-size: 2rem;
    font-style: italic;
}

/* Confetti Elements */
[data-slide="25"]::before,
[data-slide="25"]::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, #FFD700 2px, transparent 2px),
        radial-gradient(circle, #FF69B4 2px, transparent 2px),
        radial-gradient(circle, #4A90A4 2px, transparent 2px),
        radial-gradient(circle, #E8989C 2px, transparent 2px);
    background-size: 50px 50px, 80px 80px, 100px 100px, 130px 130px;
    background-position: 0 0, 40px 40px, 80px 80px, 120px 120px;
    animation: confettiFall 20s linear infinite;
    opacity: 0.6;
}

[data-slide="25"]::after {
    animation-duration: 25s;
    animation-delay: -5s;
}

/* Sparkles around content */
[data-slide="25"] .content-center::before {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    top: 10%;
    left: 10%;
    animation: sparkleMove1 3s ease-in-out infinite;
}

[data-slide="25"] .content-center::after {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    top: 10%;
    right: 10%;
    animation: sparkleMove2 3s ease-in-out infinite;
}

/* Animation Keyframes */
@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0.3;
    }
}

@keyframes sparkle {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 40px rgba(255, 215, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 1))
                drop-shadow(0 0 80px rgba(255, 215, 0, 0.6))
                drop-shadow(0 0 120px rgba(255, 215, 0, 0.4));
    }
}

@keyframes expandWidth {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80%;
        opacity: 1;
    }
}

@keyframes rainbowGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
    33% {
        box-shadow: 0 0 30px rgba(74, 144, 164, 0.8);
    }
    66% {
        box-shadow: 0 0 30px rgba(232, 152, 156, 0.8);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes sparkleMove1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(40px, 0) rotate(180deg) scale(1);
        opacity: 1;
    }
    75% {
        transform: translate(20px, 20px) rotate(270deg) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes sparkleMove2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translate(-20px, -20px) rotate(-90deg) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-40px, 0) rotate(-180deg) scale(1);
        opacity: 1;
    }
    75% {
        transform: translate(-20px, 20px) rotate(-270deg) scale(1.2);
        opacity: 0.8;
    }
}

/* =====================================================
   ENDING VIDEO AND FADE TO BLACK
   ===================================================== */

/* Ending video fade in */
[data-slide="26"] {
    transition: opacity 2s ease-in;
}

[data-slide="26"]:not(.active) {
    opacity: 0;
}

[data-slide="26"].active {
    opacity: 1;
}

/* Fade to black overlay */
.fade-to-black-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 2s ease-in;
}

.fade-to-black-overlay.active {
    opacity: 1;
}

/* Video overlay for celebration video */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 3rem;
    pointer-events: none;
    z-index: 100;
}

.video-overlay .click-to-continue {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    pointer-events: all;
    opacity: 0;
    transition: all 0.5s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-overlay .click-to-continue:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.video-overlay .click-to-continue p {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==================== CONFETTI CELEBRATION ==================== */

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti {
    position: absolute;
    top: -20px;
    width: 12px;
    height: 12px;
    opacity: 0.9;
    animation: confettiFall 4s ease-in-out infinite;
    border-radius: 2px;
    transform-origin: center;
}

.confetti:nth-child(odd) {
    width: 8px;
    height: 16px;
    border-radius: 50%;
}

.confetti:nth-child(even) {
    width: 14px;
    height: 8px;
}

@keyframes confettiFall {
    0% {
        top: -20px;
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateX(30px) rotate(180deg) scale(1.1);
    }
    50% {
        transform: translateX(-20px) rotate(360deg) scale(0.9);
    }
    75% {
        transform: translateX(25px) rotate(540deg) scale(1.05);
        opacity: 0.8;
    }
    100% {
        top: 100vh;
        opacity: 0;
        transform: translateX(-10px) rotate(720deg) scale(0.8);
    }
}

/* ========================================
   NAVIGATION CONTROLS
   ======================================== */

.nav-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(13, 45, 58, 0.85) 0%, rgba(26, 77, 92, 0.8) 100%);
    padding: 10px 18px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 1000;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 144, 164, 0.25);
    opacity: 0.6;
    transition: all 0.4s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeInNav 0.5s ease 1.5s forwards;
}

.nav-controls:hover {
    opacity: 1;
    background: linear-gradient(135deg, rgba(13, 45, 58, 0.95) 0%, rgba(26, 77, 92, 0.9) 100%);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 164, 0.4);
    transform: translateX(-50%) translateY(-3px);
}

@keyframes fadeInNav {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }
}

/* Hide navigation on pre-show slide */
.slide[data-section="preshow"].active ~ .nav-controls {
    opacity: 0;
    pointer-events: none;
}

/* Move nav-controls down on profile video slides to avoid blocking video scrub bar */
.slide[data-type="profile-with-video"].active ~ .nav-controls {
    bottom: -60px;
    opacity: 0.3;
}
.slide[data-type="profile-with-video"].active ~ .nav-controls:hover {
    bottom: 15px;
    opacity: 0.95;
}

/* Adjust preshow slide background to keep text above controls */
.slide[data-slide="0"] {
    background-position: center 20% !important;
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(13, 61, 74, 0.85) 0%, rgba(26, 77, 92, 0.85) 100%);
    border: 1.5px solid rgba(74, 144, 164, 0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 36px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(26, 77, 92, 0.95) 0%, rgba(74, 144, 164, 0.7) 100%);
    border-color: rgba(74, 144, 164, 0.7);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(13, 61, 74, 0.5);
}

.nav-btn:disabled:hover {
    background: rgba(13, 61, 74, 0.5);
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.nav-icon {
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.nav-section-menu {
    background: linear-gradient(135deg, rgba(13, 61, 74, 0.9) 0%, rgba(26, 77, 92, 0.9) 100%);
    border: 1.5px solid rgba(74, 144, 164, 0.5);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    min-width: 190px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A90A4' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.nav-section-menu:hover {
    background: linear-gradient(135deg, rgba(26, 77, 92, 0.95) 0%, rgba(74, 144, 164, 0.8) 100%);
    border-color: rgba(74, 144, 164, 0.7);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-section-menu:focus {
    background: linear-gradient(135deg, rgba(26, 77, 92, 0.95) 0%, rgba(74, 144, 164, 0.8) 100%);
    border-color: rgba(92, 188, 214, 0.8);
    color: white;
    box-shadow: 0 0 0 2px rgba(92, 188, 214, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-section-menu option {
    background: #0d3d4a;
    color: white;
    padding: 10px 12px;
    font-weight: 400;
}

.nav-slide-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

#current-slide-num {
    color: rgba(214, 117, 121, 0.9);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .nav-controls {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 10px;
        bottom: 20px;
        max-width: 90%;
    }

    .nav-section-menu {
        min-width: 160px;
        font-size: 13px;
    }

    .nav-slide-info {
        font-size: 12px;
        margin-left: 8px;
        padding-left: 8px;
    }
}

@media (max-width: 600px) {
    .nav-controls {
        flex-direction: column;
        gap: 8px;
        border-radius: 16px;
        padding: 12px;
    }

    .nav-center {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .nav-section-menu {
        width: 100%;
    }

    .nav-slide-info {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-left: 0;
        padding-top: 6px;
        margin-left: 0;
    }
}

/* Fullscreen mode adjustments */
.nav-controls:fullscreen {
    bottom: 20px;
}



/* Video Controls - Always visible with clean styling */
video {
    position: relative;
}

video::-webkit-media-controls {
    opacity: 1;
}

/* Exception: Hide controls on mission sequence video */
[data-slide="5"] video::-webkit-media-controls,
[data-type="mission-sequence"] video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
[data-slide="5"] video::-webkit-media-controls-panel,
[data-type="mission-sequence"] video::-webkit-media-controls-panel {
    display: none !important;
    opacity: 0 !important;
}
[data-slide="5"] video::-webkit-media-controls-enclosure,
[data-type="mission-sequence"] video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Video controls - use browser defaults for proper functionality */

/* Ensure video-play-overlay doesn't block controls when hidden */
.video-play-overlay.hidden {
    display: none !important;
    pointer-events: none !important;
}
