/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-pink: #F8A8C8;
    --primary-hover: #F690B8;
    --secondary-lavender: #C9B6FF;
    --accent-rose: #FF6FAE;
    --accent-warm: #FFB3C6;
    --accent-gold: #FFD166;
    
    --bg-light: #FFF8FC;
    --bg-gradient-1: #FFF0F6;
    --bg-gradient-2: #F3E8FF;
    --dark-cinematic: #1A1028;
    --dark-cinematic-card: rgba(35, 20, 52, 0.65);
    
    --text-main: #3B2942;
    --text-muted: #7A6283;
    --text-light: #F7EFFC;
    --text-accent: #E63980;
    
    /* Glassmorphism System */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 16px 40px -10px rgba(186, 128, 175, 0.2),
                    0 0 1px 1px rgba(255, 255, 255, 0.8) inset;
    --glass-blur: blur(18px);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-script: 'Sacramento', cursive;
    
    /* Transitions & Radii */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-full: 999px;
    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Background Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-rose);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 0 12px var(--accent-rose);
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 111, 174, 0.4);
    background: rgba(255, 179, 198, 0.15);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

body.cursor-hover .custom-cursor {
    width: 24px;
    height: 24px;
    background: var(--secondary-lavender);
    box-shadow: 0 0 20px var(--secondary-lavender);
}

body.cursor-hover .custom-cursor-follower {
    width: 54px;
    height: 54px;
    border-color: var(--secondary-lavender);
}

@media (pointer: coarse), (max-width: 768px) {
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Container & Typography Helpers */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 100px 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-rose) 0%, #9B51E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

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

.hidden {
    display: none !important;
}

/* Glassmorphism Card Component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--transition-smooth), 
                box-shadow 0.4s var(--transition-smooth), 
                border-color 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.9);
}

/* Pill Tag */
.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(248, 168, 200, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-accent);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(248, 168, 200, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s var(--transition-bounce);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-rose) 0%, var(--primary-pink) 100%);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(255, 111, 174, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px -5px rgba(255, 111, 174, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--primary-pink);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 182, 255, 0.3);
}

.btn-unlock {
    background: linear-gradient(135deg, #9B51E0 0%, var(--accent-rose) 100%);
    color: white;
    font-size: 1.1rem;
    padding: 16px 38px;
    box-shadow: 0 12px 30px rgba(155, 81, 224, 0.35);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 25px rgba(155, 81, 224, 0.35); }
    50% { box-shadow: 0 15px 35px rgba(255, 111, 174, 0.6); }
}


/* ==========================================================================
   1. CINEMATIC LOADING SCREEN
   ========================================================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #FFF0F6 0%, #F3E8FF 50%, #FFF8FC 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 420px;
    width: 90%;
}

.glowing-orb-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glowing-orb {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-rose) 0%, var(--secondary-lavender) 70%, transparent 100%);
    filter: blur(14px);
    animation: orbPulse 2s infinite alternate ease-in-out;
}

@keyframes orbPulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0.95; }
}

.loading-heart {
    font-size: 2.5rem;
    z-index: 2;
    animation: heartBeat 1.2s infinite ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.loading-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    transition: opacity 0.4s ease;
}

.loading-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
}

.loading-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(248, 168, 200, 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-rose), var(--secondary-lavender));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* App Main Hidden till loaded */
.app-hidden {
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.app-visible {
    opacity: 1;
}


/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1050px;
    height: 60px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(186, 128, 175, 0.12);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    user-select: none;
}

.logo-heart {
    transition: transform 0.3s var(--transition-bounce);
}

.nav-logo:hover .logo-heart {
    transform: scale(1.3) rotate(10deg);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ECC71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ECC71;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}


/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
}

.hero-glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.45;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-pink);
    top: 15%;
    left: 10%;
    animation: blobMove 12s infinite alternate ease-in-out;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: var(--secondary-lavender);
    bottom: 10%;
    right: 10%;
    animation: blobMove 15s infinite alternate-reverse ease-in-out;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -50px) scale(1.15); }
}

.hero-card {
    max-width: 680px;
    width: 100%;
    text-align: center;
    padding: 56px 40px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-detail {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 32px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-rose);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseWheel 1.8s infinite ease-in-out;
}

@keyframes mouseWheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}


/* ==========================================================================
   3. PERSONALIZED INTRO SECTION
   ========================================================================== */
.intro-card {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 48px;
}

.card-icon-badge {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: inline-block;
    animation: floatIcon 3s infinite ease-in-out;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.intro-lines {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intro-line {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-line.revealed {
    opacity: 1;
    transform: translateY(0);
}

.highlight-line {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 12px;
}


/* ==========================================================================
   4. WHAT MAKES YOU SPECIAL SECTION
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.tilt-card {
    padding: 36px 28px;
    text-align: center;
    cursor: default;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card .card-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    transition: transform 0.3s var(--transition-bounce);
}

.tilt-card:hover .card-icon {
    transform: scale(1.25) translateZ(20px);
}

.tilt-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.tilt-card .card-main-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 14px;
}

.tilt-card .hover-content {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    opacity: 0.8;
    max-height: 60px;
    transition: opacity 0.3s ease;
}


/* ==========================================================================
   5. INTERACTIVE "PICK ONE" GAME SECTION
   ========================================================================== */
.pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.pick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform 0.3s var(--transition-bounce), background-color 0.3s ease;
}

.pick-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: var(--glass-bg-hover);
}

.pick-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.pick-card:hover .pick-icon {
    transform: scale(1.2);
}

.pick-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.pick-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pick-response-card {
    max-width: 600px;
    margin: 32px auto 0;
    text-align: center;
    padding: 40px 32px;
    animation: responsePop 0.5s var(--transition-bounce);
}

@keyframes responsePop {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.response-icon {
    font-size: 3.5rem;
    margin-bottom: 14px;
}

.response-text {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.3;
}


/* ==========================================================================
   6. MINI GAME - "CATCH THE HEARTS"
   ========================================================================== */
.heart-game-card {
    max-width: 750px;
    margin: 0 auto;
    padding: 44px 32px;
}

.game-instruction {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.game-scoreboard {
    margin: 24px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(248, 168, 200, 0.2);
    font-weight: 700;
    font-size: 1.1rem;
}

.score-label {
    color: var(--text-muted);
}

.score-value {
    color: var(--accent-rose);
    font-size: 1.3rem;
}

.progress-bar-container {
    width: 100%;
    max-width: 320px;
    height: 10px;
    background: rgba(248, 168, 200, 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-rose), var(--secondary-lavender));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.game-arena {
    width: 100%;
    height: 320px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px dashed rgba(248, 168, 200, 0.5);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.arena-placeholder-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    pointer-events: none;
}

/* Falling Heart Item */
.falling-heart {
    position: absolute;
    font-size: 2.2rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease;
    animation: floatHeart 0.6s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(255, 111, 174, 0.3));
}

.falling-heart:hover {
    transform: scale(1.25);
}

@keyframes floatHeart {
    0% { transform: translateY(0) rotate(-5deg); }
    100% { transform: translateY(-6px) rotate(5deg); }
}

.unlock-container {
    text-align: center;
    margin-top: 24px;
    animation: responsePop 0.5s var(--transition-bounce);
}

.unlock-burst-effect {
    font-size: 3rem;
    margin-bottom: 8px;
}

.unlock-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}


/* ==========================================================================
   7. SECRET MESSAGE SECTION
   ========================================================================== */
.secret-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 40px;
    border-color: rgba(255, 111, 174, 0.5);
}

.secret-stamp {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 111, 174, 0.12);
    color: var(--accent-rose);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.typewriter-container {
    min-height: 200px;
    margin: 28px 0;
}

.typewriter-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.7;
    color: var(--text-main);
    white-space: pre-line;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-rose);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.secret-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed rgba(248, 168, 200, 0.4);
}

.mission-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-rose);
}


/* ==========================================================================
   8. "OUR LITTLE VIBE" TIMELINE SECTION
   ========================================================================== */
.timeline-wrapper {
    position: relative;
    max-width: 760px;
    margin: 48px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-pink), var(--secondary-lavender));
    border-radius: 2px;
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
}

.timeline-badge {
    width: 56px;
    height: 56px;
    background: white;
    border: 2.5px solid var(--accent-rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-rose);
    font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(255, 111, 174, 0.25);
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    flex-grow: 1;
    margin-left: 20px;
    padding: 24px 28px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}


/* ==========================================================================
   9. PHOTO / MEMORY GALLERY
   ========================================================================== */
.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.polaroid-card {
    background: white;
    padding: 16px 16px 24px;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(186, 128, 175, 0.2);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.4s var(--transition-bounce), box-shadow 0.4s ease;
    position: relative;
}

.polaroid-card:hover {
    transform: scale(1.05) rotate(0deg) translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(186, 128, 175, 0.35);
    z-index: 10;
}

.polaroid-pin {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    z-index: 3;
}

.polaroid-image-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #FAF5FA;
}

.polaroid-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-image-frame img {
    transform: scale(1.08);
}

.polaroid-caption {
    font-family: var(--font-script);
    font-size: 1.45rem;
    text-align: center;
    color: var(--text-main);
    margin-top: 14px;
    line-height: 1.2;
}


/* ==========================================================================
   10. FLOATING MUSIC PLAYER UI
   ========================================================================== */
.floating-music-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(186, 128, 175, 0.25);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
}

.music-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-disc {
    font-size: 1.4rem;
    transition: transform 0.5s linear;
}

.music-disc.playing {
    animation: spinDisc 3s linear infinite;
}

@keyframes spinDisc {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.music-details {
    display: flex;
    flex-direction: column;
}

.track-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.track-artist {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.music-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.wave-bar {
    width: 3px;
    height: 4px;
    background: var(--accent-rose);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.music-waveform.active .wave-bar:nth-child(1) { animation: wave 0.8s infinite alternate 0.1s; }
.music-waveform.active .wave-bar:nth-child(2) { animation: wave 0.8s infinite alternate 0.3s; }
.music-waveform.active .wave-bar:nth-child(3) { animation: wave 0.8s infinite alternate 0.2s; }
.music-waveform.active .wave-bar:nth-child(4) { animation: wave 0.8s infinite alternate 0.4s; }
.music-waveform.active .wave-bar:nth-child(5) { animation: wave 0.8s infinite alternate 0.15s; }

@keyframes wave {
    0% { height: 4px; }
    100% { height: 18px; }
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.music-btn:hover {
    transform: scale(1.2);
}

.volume-slider {
    width: 60px;
    accent-color: var(--accent-rose);
    cursor: pointer;
}


/* ==========================================================================
   11. "YOU GET A QUESTION" SECTION
   ========================================================================== */
.question-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 56px 36px;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 16px 0 32px;
    color: var(--text-main);
}

.question-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-answer {
    min-width: 150px;
}

.question-response {
    margin-top: 28px;
    animation: responsePop 0.5s var(--transition-bounce);
}

.response-heart-anim {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: heartBeat 1.2s infinite ease-in-out;
}

.response-msg {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-rose);
}


/* ==========================================================================
   12. FINAL CINEMATIC SECTION
   ========================================================================== */
.final-cinematic-section {
    min-height: 100vh;
    background: linear-gradient(180deg, #1A1028 0%, #2B1B3D 50%, #120A1D 100%);
    color: var(--text-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    overflow: hidden;
}

.cinematic-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.moon-element {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: -20px 10px 0 0 #FFE082;
    filter: drop-shadow(0 0 25px rgba(255, 224, 130, 0.4));
    opacity: 0.85;
}

#fireworksCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cinematic-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
}

.cinematic-messages {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.cin-text {
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(247, 239, 252, 0.85);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.cin-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #FFB3C6 0%, #C9B6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 12px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.cin-signature {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--primary-pink);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.cinematic-messages.revealed .cin-text,
.cinematic-messages.revealed .cin-heading,
.cinematic-messages.revealed .cin-signature {
    opacity: 1;
    transform: translateY(0);
}

.cinematic-messages.revealed .text-step-1 { transition-delay: 0.2s; }
.cinematic-messages.revealed .text-step-2 { transition-delay: 1.2s; }
.cinematic-messages.revealed .text-step-3 { transition-delay: 2.2s; }
.cinematic-messages.revealed .text-step-4 { transition-delay: 3.2s; }
.cinematic-messages.revealed .text-step-5 { transition-delay: 4.5s; }


/* ==========================================================================
   13. EASTER EGG MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 16, 40, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    padding: 40px 30px;
    animation: responsePop 0.4s var(--transition-bounce);
    background: rgba(255, 255, 255, 0.9);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.modal-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-card p {
    font-size: 1.1rem;
    color: var(--accent-rose);
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-sparkles {
    font-size: 1.4rem;
}


/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
    .section-padding {
        padding: 64px 0;
    }
    
    .glass-card {
        padding: 28px 20px;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .floating-music-player {
        bottom: 14px;
        right: 14px;
        left: auto;
        padding: 6px 14px;
        gap: 8px;
        border-radius: var(--radius-full);
        box-shadow: 0 6px 20px rgba(186, 128, 175, 0.3);
    }

    .track-artist {
        display: none;
    }

    .track-title {
        font-size: 0.78rem;
        max-width: 90px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .music-disc {
        font-size: 1.1rem;
    }

    .volume-slider {
        display: none;
    }

    .music-btn {
        font-size: 0.95rem;
        padding: 2px;
    }

    .polaroid-grid {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .glass-nav {
        height: 50px;
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .status-text {
        display: none;
    }

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

    .question-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-answer {
        width: 100%;
    }

    .floating-music-player {
        bottom: 12px;
        right: 12px;
        padding: 5px 12px;
        gap: 6px;
    }

    .music-waveform {
        display: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
