/* ============================================
   VALENTINE WRAPPED 2026 - STYLES
   Spotify Wrapped-inspired with Pink Theme
   PREMIUM EDITION ✨
   ============================================ */

/* CSS Variables */
:root {
    --pink-hot: #FF6B9D;
    --pink-deep: #C44569;
    --pink-soft: #FFB8D0;
    --pink-light: #FFE4EC;
    --pink-neon: #FF1493;
    --purple-dark: #2D1F3D;
    --purple-deep: #1A1025;
    --purple-vibrant: #8B5CF6;
    --coral: #FF8E72;
    --peach: #FFAA85;
    --gold: #FFD700;
    --white: #FFFFFF;
    --white-soft: rgba(255, 255, 255, 0.9);
    --green-wa: #25D366;
    --blue-call: #5B7FFF;
    --teal-silly: #2DD4BF;

    /* Enhanced Gradients */
    --gradient-intro: linear-gradient(135deg, #1A1025 0%, #2D1F3D 30%, #C44569 70%, #FF6B9D 100%);
    --gradient-stats: linear-gradient(135deg, #FF6B9D 0%, #FF8E72 50%, #FFD700 100%);
    --gradient-dates: linear-gradient(135deg, #8B5CF6 0%, #C44569 50%, #FF6B9D 100%);
    --gradient-avg-hours: linear-gradient(135deg, #FF6B9D 0%, #C44569 40%, #8B5CF6 100%);
    --gradient-wa: linear-gradient(135deg, #075E54 0%, #128C7E 30%, #25D366 70%, #DCF8C6 100%);
    --gradient-calls: linear-gradient(135deg, #1A1025 0%, #3B2F5B 30%, #5B7FFF 70%, #A78BFA 100%);
    --gradient-sillytavern: linear-gradient(135deg, #0F172A 0%, #1E293B 30%, #2DD4BF 70%, #5EEAD4 100%);
    --gradient-notes: linear-gradient(135deg, #C44569 0%, #FF6B9D 30%, #FFB8D0 70%, #FFE4EC 100%);
    --gradient-seasons: linear-gradient(135deg, #0F0A1A 0%, #1A1025 30%, #4C1D95 60%, #7C3AED 100%);
    --gradient-moment1: linear-gradient(135deg, #1A1025 0%, #8B5CF6 50%, #C44569 100%);
    --gradient-moment2: linear-gradient(135deg, #FF6B9D 0%, #FF1493 50%, #C44569 100%);
    --gradient-moment3: linear-gradient(135deg, #C44569 0%, #8B5CF6 50%, #1A1025 100%);
    --gradient-memories: linear-gradient(135deg, #0F0A1A 0%, #1A1025 30%, #2D1F3D 60%, #C44569 100%);
    --gradient-closing: linear-gradient(135deg, #FF6B9D 0%, #FF1493 30%, #C44569 60%, #2D1F3D 100%);
    --gradient-form: linear-gradient(135deg, #0F0A1A 0%, #1A1025 50%, #2D1F3D 100%);

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--purple-deep);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section Styles */
.section {
    position: fixed;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.particles-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
        transform: translateY(80vh) rotate(45deg) scale(1);
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* ============================================
   ANIMATED BACKGROUND BLOBS
   ============================================ */
.blob-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--pink-hot);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--purple-vibrant);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--coral);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes blobFloat {

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

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* ============================================
   INPUT FORM SECTION
   ============================================ */
#input-section {
    background: var(--gradient-form);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.form-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 45px 35px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 107, 157, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: formEntry 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.heart-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.5));
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.5));
    }

    15% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.8));
    }

    30% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.5));
    }

    45% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(255, 107, 157, 0.7));
    }
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--pink-hot), var(--pink-soft), var(--white));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 40px rgba(255, 107, 157, 0.3);
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.form-header p {
    color: var(--white-soft);
    font-size: 1.1rem;
    opacity: 0.7;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 26px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--pink-soft);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-smooth);
    margin-bottom: 12px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.form-group input:last-child,
.form-group textarea:last-child {
    margin-bottom: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pink-hot);
    background: rgba(255, 107, 157, 0.08);
    box-shadow:
        0 0 0 4px rgba(255, 107, 157, 0.1),
        0 0 30px rgba(255, 107, 157, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Photo Upload Grid */
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.photo-upload-item {
    aspect-ratio: 1;
}

.photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition-bounce);
    overflow: hidden;
    position: relative;
}

.photo-label:hover {
    border-color: var(--pink-hot);
    background: rgba(255, 107, 157, 0.08);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.2);
}

.photo-label.has-photo {
    border-style: solid;
    border-color: var(--pink-hot);
    box-shadow: 0 0 25px rgba(255, 107, 157, 0.3);
}

.photo-label img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plus-icon {
    font-size: 32px;
    color: var(--pink-soft);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.photo-label:hover .plus-icon {
    opacity: 1;
    transform: scale(1.1);
}

.photo-text {
    font-size: 0.7rem;
    color: var(--white-soft);
    opacity: 0.4;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.photo-label.has-photo .plus-icon,
.photo-label.has-photo .photo-text {
    display: none;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 20px 35px;
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-neon), var(--pink-deep));
    background-size: 200% 200%;
    border: none;
    border-radius: 18px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-elastic);
    margin-top: 15px;
    box-shadow:
        0 15px 40px rgba(255, 107, 157, 0.4),
        0 0 60px rgba(255, 20, 147, 0.2);
    animation: gradientShift 3s ease infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes gradientShift {

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

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

.generate-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(255, 107, 157, 0.5),
        0 0 80px rgba(255, 20, 147, 0.4);
}

.generate-btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.generate-btn:hover .btn-icon {
    transform: translateX(8px);
}

/* ============================================
   WRAPPED SLIDES SECTION
   ============================================ */
#wrapped-section {
    background: var(--purple-deep);
}

/* Progress Bar - Stories Style */
.progress-container {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 4px;
    display: flex;
    gap: 6px;
    z-index: 100;
}

.progress-segment {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--white);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-segment.completed .progress-fill {
    width: 100%;
}

.progress-segment.active .progress-fill {
    width: 100%;
    animation: progressGrow 5s linear forwards;
}

@keyframes progressGrow {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Legacy progress bar (fallback) */
.progress-bar {
    height: 100%;
    background: var(--white);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Slides Container */
.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 30px 60px;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.95);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Slide Enter Animations */
.slide.slide-in-right {
    animation: slideInRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide.slide-in-left {
    animation: slideInLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Slide Exit Animations */
.slide.slide-out-left {
    animation: slideOutLeft 0.5s ease forwards;
}

.slide.slide-out-right {
    animation: slideOutRight 0.5s ease forwards;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.92);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px) scale(0.92);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50px) scale(0.95);
        filter: blur(5px);
    }
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
        filter: blur(5px);
    }
}

.slide-content {
    text-align: center;
    max-width: 650px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Slide Backgrounds */
.slide-intro {
    background: var(--gradient-intro);
}

.slide-stats {
    background: var(--gradient-stats);
}

.slide-avg-hours {
    background: var(--gradient-avg-hours);
}

.slide-dates {
    background: var(--gradient-dates);
}

.slide-wa-chats {
    background: var(--gradient-wa);
}

.slide-calls {
    background: var(--gradient-calls);
}

.slide-sillytavern {
    background: var(--gradient-sillytavern);
}

.slide-notes {
    background: var(--gradient-notes);
}

.slide-moment {
    background: var(--gradient-moment1);
}

.slide-moment-2 {
    background: var(--gradient-moment2);
}

.slide-moment-3 {
    background: var(--gradient-moment3);
}

.slide-memories {
    background: var(--gradient-memories);
}

.slide-seasons {
    background: var(--gradient-seasons);
}

.slide-closing {
    background: var(--gradient-closing);
}

/* Slide Decorations */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   SLIDE EMOJI (for new stat slides)
   ============================================ */
.slide-emoji {
    font-size: 70px;
    margin-bottom: 20px;
    opacity: 0;
    animation: floatGlow 3s ease-in-out infinite, fadeSlideUp 0.6s ease-out forwards;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.3));
}

/* ============================================
   COMMENTARY STYLE (witty text on slides)
   ============================================ */
.slide-commentary {
    font-size: 1.05rem;
    font-style: italic;
    opacity: 0;
    margin-top: 25px;
    padding: 16px 26px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    line-height: 1.6;
    animation: fadeSlideUp 0.6s ease-out 0.7s forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

/* ============================================
   SLIDE SPECIFIC STYLES - ENHANCED
   ============================================ */

/* Intro Slide */
.intro-sparkle {
    font-size: 80px;
    animation: floatGlow 3s ease-in-out infinite;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.8));
    }
}

.intro-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
    line-height: 1.2;
    overflow: hidden;
}

.intro-title .text-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-90deg);
    filter: blur(5px);
}

.slide.active .intro-title .text-reveal:nth-child(1) {
    animation: textReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
}

.slide.active .intro-title .text-reveal:nth-child(2) {
    animation: textReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s forwards;
}

.slide.active .intro-title .text-reveal:nth-child(3) {
    animation: textReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s forwards;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(100%) rotateX(-90deg);
        filter: blur(5px);
    }

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

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
        filter: blur(10px);
    }

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

.intro-year {
    font-size: 7rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink-soft), var(--white), var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    animation: titleReveal 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, shimmer 3s linear infinite;
    animation-delay: 0.4s, 0s;
    opacity: 0;
    text-shadow: none;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.3));
}

.intro-subtitle {
    font-size: 1.3rem;
    opacity: 0;
    margin-bottom: 45px;
    animation: titleReveal 1s ease-out forwards;
    animation-delay: 0.6s;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.intro-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    opacity: 0;
    animation: titleReveal 1s ease-out forwards;
    animation-delay: 0.8s;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 40px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.heart-divider {
    font-size: 2rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 107, 157, 0.8));
}

.tap-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards, pulse 2s ease-in-out infinite;
    animation-delay: 1.5s, 2.5s;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

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

    to {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }
}

/* Stats Slides - Enhanced */
.stat-label {
    font-size: 1.4rem;
    opacity: 0;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeSlideUp 0.6s ease-out forwards;
}

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

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

.big-number {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: numberReveal 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
}

@keyframes numberReveal {
    from {
        opacity: 0;
        transform: scale(0.3);
        filter: blur(20px);
    }

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

.stat-unit {
    font-size: 2.2rem;
    font-weight: 700;
    opacity: 0;
    margin-bottom: 35px;
    animation: fadeSlideUp 0.6s ease-out 0.4s forwards;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.stat-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 40px;
    border-radius: 25px;
    margin-top: 25px;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease-out 0.6s forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.stat-name {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.stat-divider {
    font-size: 2rem;
    opacity: 0.3;
}

.fun-comparison {
    font-size: 1.2rem;
    opacity: 0;
    margin-top: 35px;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    line-height: 1.6;
    animation: fadeSlideUp 0.6s ease-out 0.5s forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   MINI NOTES SLIDE
   ============================================ */
.notes-envelope {
    font-size: 90px;
    margin-bottom: 15px;
    opacity: 0;
    animation: envelopeIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.5));
}

@keyframes envelopeIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-20deg);
    }

    60% {
        transform: scale(1.15) rotate(5deg);
    }

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

.notes-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    opacity: 0;
    margin-bottom: 30px;
    animation: fadeSlideUp 0.6s ease-out 0.2s forwards;
    color: rgba(255, 255, 255, 0.85);
}

.notes-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 35px 30px;
    max-width: 420px;
    margin: 0 auto;
    opacity: 0;
    animation: cardFlipIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s forwards;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(255, 107, 157, 0.15);
    position: relative;
    overflow: hidden;
}

.notes-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 60%);
    animation: cardShine 4s ease-in-out infinite;
}

@keyframes cardShine {

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

    50% {
        transform: translateX(100%) rotate(0deg);
    }
}

@keyframes cardFlipIn {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateY(-30deg) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: perspective(600px) rotateY(0deg) scale(1);
    }
}

.notes-text {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--white);
    position: relative;
    z-index: 1;
    font-style: italic;
}

.notes-from {
    font-size: 1rem;
    opacity: 0;
    margin-top: 25px;
    animation: fadeSlideUp 0.6s ease-out 0.7s forwards;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

/* ============================================
   SILLYTAVERN SLIDE
   ============================================ */
.slide-sillytavern::before {
    background:
        radial-gradient(circle at 30% 70%, rgba(45, 212, 191, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(94, 234, 212, 0.15) 0%, transparent 50%);
}

/* ============================================
   SEASONS SONG SLIDE
   ============================================ */
.seasons-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0;
    animation: floatGlow 3s ease-in-out infinite, fadeSlideUp 0.6s ease-out forwards;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.5));
}

.seasons-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    margin-bottom: 25px;
    animation: fadeSlideUp 0.6s ease-out 0.2s forwards;
    color: rgba(255, 255, 255, 0.7);
}

.seasons-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 8px;
    opacity: 0;
    animation: titleReveal 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s forwards;
    background: linear-gradient(135deg, var(--white), var(--pink-soft), var(--purple-vibrant));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s forwards, shimmer 4s linear infinite;
}

.seasons-artist {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0;
    margin-bottom: 35px;
    animation: fadeSlideUp 0.6s ease-out 0.6s forwards;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Audio Visualizer */
.seasons-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 60px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease-out 0.8s forwards;
}

.viz-bar {
    width: 8px;
    background: linear-gradient(180deg, var(--purple-vibrant), var(--pink-hot));
    border-radius: 4px;
    animation: vizPulse 1.2s ease-in-out infinite;
}

.viz-bar:nth-child(1) {
    height: 20px;
    animation-delay: 0s;
}

.viz-bar:nth-child(2) {
    height: 35px;
    animation-delay: 0.1s;
}

.viz-bar:nth-child(3) {
    height: 50px;
    animation-delay: 0.2s;
}

.viz-bar:nth-child(4) {
    height: 30px;
    animation-delay: 0.3s;
}

.viz-bar:nth-child(5) {
    height: 55px;
    animation-delay: 0.15s;
}

.viz-bar:nth-child(6) {
    height: 25px;
    animation-delay: 0.25s;
}

.viz-bar:nth-child(7) {
    height: 45px;
    animation-delay: 0.05s;
}

.viz-bar:nth-child(8) {
    height: 35px;
    animation-delay: 0.35s;
}

.viz-bar:nth-child(9) {
    height: 20px;
    animation-delay: 0.2s;
}

@keyframes vizPulse {

    0%,
    100% {
        transform: scaleY(0.4);
        opacity: 0.6;
    }

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

.seasons-lyric {
    font-size: 1.15rem;
    font-style: italic;
    opacity: 0;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px 28px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 18px;
    line-height: 1.7;
    animation: fadeSlideUp 0.6s ease-out 1s forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

/* Moment Slides - Enhanced */
.moment-number {
    font-size: 7rem;
    font-weight: 900;
    opacity: 0;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: momentNumberIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes momentNumberIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(2);
    }

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

.moment-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    opacity: 0;
    margin-bottom: 30px;
    animation: fadeSlideUp 0.6s ease-out 0.2s forwards;
    color: rgba(255, 255, 255, 0.7);
}

.moment-text {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.5;
    max-width: 550px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.4s forwards;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.moment-text::before,
.moment-text::after {
    content: '"';
    font-size: 4rem;
    opacity: 0.2;
    position: absolute;
}

.moment-text::before {
    top: -20px;
    left: -30px;
}

.moment-text::after {
    bottom: -40px;
    right: -30px;
}

.moment-decoration {
    font-size: 60px;
    margin-top: 45px;
    opacity: 0;
    animation: floatGlow 3s ease-in-out infinite, fadeSlideUp 0.6s ease-out 0.6s forwards;
}

/* Memory Slideshow - Enhanced */
.memory-label {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 35px;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease-out forwards;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.memory-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    perspective: 1000px;
}

.memory-frame {
    width: 170px;
    height: 170px;
    border-radius: 24px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 107, 157, 0.2);
    transition: var(--transition-elastic);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px) rotateY(20deg);
}

.memory-frame:nth-child(1) {
    animation: memoryIn 0.8s ease-out 0.2s forwards;
}

.memory-frame:nth-child(2) {
    animation: memoryIn 0.8s ease-out 0.4s forwards;
    transform: translateY(30px) rotateY(0deg);
}

.memory-frame:nth-child(3) {
    animation: memoryIn 0.8s ease-out 0.6s forwards;
    transform: translateY(30px) rotateY(-20deg);
}

@keyframes memoryIn {
    from {
        opacity: 0;
        transform: translateY(30px) rotateY(var(--rotate, 20deg)) scale(0.8);
    }

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

.memory-frame:hover {
    transform: scale(1.1) rotate(-3deg) translateY(-10px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 107, 157, 0.4);
    border-color: var(--pink-hot);
}

.memory-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.memory-frame:hover img {
    transform: scale(1.1);
}

.memory-frame.placeholder::after {
    content: '📷';
    font-size: 50px;
    opacity: 0.4;
}

.memory-caption {
    font-size: 1.2rem;
    opacity: 0;
    margin-top: 40px;
    animation: fadeSlideUp 0.6s ease-out 0.8s forwards;
    letter-spacing: 1px;
}

/* Closing Slide - Enhanced */
.closing-hearts {
    font-size: 90px;
    margin-bottom: 35px;
    animation: heartbeat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255, 107, 157, 0.6));
}

.closing-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    overflow: hidden;
}

.closing-title .text-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-90deg);
    filter: blur(5px);
}

.slide.active .closing-title .text-reveal:nth-child(1) {
    animation: textReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards;
}

.slide.active .closing-title .text-reveal:nth-child(2) {
    animation: textReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s forwards;
}

.slide.active .closing-title .text-reveal:nth-child(3) {
    animation: textReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.7s forwards;
}

.closing-years {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--white), var(--pink-soft), var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    opacity: 0;
    animation: titleReveal 1s ease-out 0.2s forwards, shimmer 4s linear infinite;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.closing-message {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease-out 0.4s forwards;
}

.closing-year {
    font-size: 1rem;
    opacity: 0;
    margin-bottom: 45px;
    animation: fadeSlideUp 0.6s ease-out 0.5s forwards;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.restart-btn {
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-elastic);
    opacity: 0;
    animation: fadeSlideUp 0.6s ease-out 0.7s forwards;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.restart-btn:hover {
    background: var(--white);
    color: var(--pink-deep);
    transform: scale(1.08);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
}

/* Navigation Hint */
.nav-hint {
    position: fixed;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 35px;
    font-size: 0.8rem;
    opacity: 0.4;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 50;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 600px) {
    .form-container {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .form-header h1 {
        font-size: 2rem;
    }

    .heart-icon {
        font-size: 50px;
    }

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

    .intro-year {
        font-size: 4.5rem;
    }

    .intro-names {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 8px;
        padding: 18px 30px;
    }

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

    .stat-unit {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .stat-breakdown {
        flex-direction: column;
        gap: 18px;
        padding: 20px 30px;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .moment-number {
        font-size: 5rem;
    }

    .moment-text {
        font-size: 1.6rem;
    }

    .moment-text::before,
    .moment-text::after {
        font-size: 2.5rem;
    }

    .memory-frame {
        width: 110px;
        height: 110px;
        border-radius: 18px;
    }

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

    .closing-years {
        font-size: 3rem;
    }

    .nav-hint {
        display: none;
    }

    .blob {
        display: none;
    }

    /* New slide responsive */
    .slide-emoji {
        font-size: 50px;
    }

    .notes-envelope {
        font-size: 60px;
    }

    .notes-card {
        padding: 25px 20px;
    }

    .notes-text {
        font-size: 1.15rem;
    }

    .seasons-title {
        font-size: 2.8rem;
    }

    .seasons-icon {
        font-size: 55px;
    }

    .slide-commentary {
        font-size: 0.9rem;
        padding: 12px 18px;
    }

    .viz-bar {
        width: 5px;
    }

    .seasons-lyric {
        font-size: 1rem;
        padding: 15px 20px;
    }
}

@media (min-width: 768px) {
    .memory-frame {
        width: 200px;
        height: 200px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

/* Glow text utility */
.glow-text {
    text-shadow:
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 60px currentColor;
}

/* Pulse animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}