/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — QUIET LUXURY ROMANTIC THEME
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Colors — Quiet Luxury Romantic Palette */
    --bg-primary: #faf7f2;
    --bg-secondary: #f5f0e6;
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-glass: rgba(255, 253, 250, 0.6);
    --pink: #d4688e;
    --pink-light: #eab8d1;
    --pink-soft: #fdf2f7;
    --rose: #c9546d;
    --rose-light: #e8a0b4;
    --coral: #e07a5f;
    --peach: #f2cc8f;
    --lavender: #b39cd0;
    --lavender-light: #d5cce8;
    --purple: #7b68a8;
    --gold: #d4af37;
    --gold-warm: #c9a227;
    --gold-light: #e8d48b;
    --champagne: #d9d2cc;
    --ivory: #f5f0e6;
    --espresso: #2c1810;
    --mint: #55efc4;
    --sky: #74b9ff;
    --text-primary: #2c1810;
    --text-secondary: rgba(44, 24, 16, 0.6);
    --text-muted: rgba(44, 24, 16, 0.35);
    --border: rgba(212, 175, 55, 0.12);
    --border-hover: rgba(212, 175, 55, 0.3);

    /* Typography — Luxury Font Stack */
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-script: 'Great Vibes', cursive;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Effects — Softer, More Elegant */
    --glow-pink: 0 0 40px rgba(212, 104, 142, 0.08);
    --glow-lavender: 0 0 40px rgba(179, 156, 208, 0.08);
    --glow-gold: 0 0 30px rgba(212, 175, 55, 0.1);
    --shadow-card: 0 4px 24px rgba(44, 24, 16, 0.04), 0 1px 3px rgba(44, 24, 16, 0.03);
    --shadow-card-hover: 0 12px 40px rgba(44, 24, 16, 0.06), 0 0 0 1px rgba(212, 175, 55, 0.08);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--champagne) var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
}

/* Subtle paper grain texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Custom scrollbar — elegant champagne */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--champagne); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   PARTICLES BACKGROUND
   ═══════════════════════════════════════════════════════════ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 20%, rgba(183, 110, 121, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(139, 90, 110, 0.06) 0%, transparent 35%),
        linear-gradient(160deg, #1a1118 0%, #2d1b2e 20%, #3a2233 40%, #2e1f2a 60%, #241a22 80%, #1a1118 100%);
    color: #f5e6d8;
}

/* Scattered hearts background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        /* Golden sparkle dots */
        radial-gradient(circle at 10% 15%, rgba(212,175,55,0.4) 2px, transparent 3px),
        radial-gradient(circle at 25% 8%, rgba(212,175,55,0.25) 1.5px, transparent 2.5px),
        radial-gradient(circle at 45% 22%, rgba(212,175,55,0.3) 1px, transparent 2px),
        radial-gradient(circle at 65% 12%, rgba(212,175,55,0.35) 2px, transparent 3px),
        radial-gradient(circle at 85% 18%, rgba(212,175,55,0.2) 1.5px, transparent 2.5px),
        radial-gradient(circle at 15% 45%, rgba(233,30,99,0.15) 1.5px, transparent 2.5px),
        radial-gradient(circle at 35% 55%, rgba(212,175,55,0.2) 1px, transparent 2px),
        radial-gradient(circle at 55% 42%, rgba(183,110,121,0.2) 2px, transparent 3px),
        radial-gradient(circle at 75% 50%, rgba(212,175,55,0.25) 1.5px, transparent 2.5px),
        radial-gradient(circle at 90% 38%, rgba(233,30,99,0.12) 1px, transparent 2px),
        radial-gradient(circle at 8% 72%, rgba(212,175,55,0.3) 2px, transparent 3px),
        radial-gradient(circle at 30% 85%, rgba(212,175,55,0.2) 1.5px, transparent 2.5px),
        radial-gradient(circle at 50% 70%, rgba(183,110,121,0.15) 1px, transparent 2px),
        radial-gradient(circle at 70% 82%, rgba(212,175,55,0.25) 2px, transparent 3px),
        radial-gradient(circle at 92% 75%, rgba(212,175,55,0.2) 1.5px, transparent 2.5px),
        radial-gradient(circle at 20% 92%, rgba(233,30,99,0.1) 1px, transparent 2px),
        radial-gradient(circle at 60% 95%, rgba(212,175,55,0.15) 1.5px, transparent 2.5px),
        radial-gradient(circle at 40% 35%, rgba(212,175,55,0.18) 1px, transparent 2px),
        radial-gradient(circle at 80% 65%, rgba(183,110,121,0.12) 1.5px, transparent 2.5px);
    animation: twinkleStars 4s ease-in-out infinite alternate;
}

@keyframes twinkleStars {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* Floating hearts in hero */
.hero-floating-heart {
    position: absolute;
    bottom: -30px;
    pointer-events: none;
    z-index: 1;
    animation: floatHeart 8s ease-in-out infinite;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-50vh) translateX(20px) rotate(15deg);
        opacity: 0.25;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) translateX(-15px) rotate(-10deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-lg);
    animation: fadeInUp 1.2s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(30, 20, 25, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1.2s ease-out 0.2s both;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.heart-icon {
    font-size: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    56% { transform: scale(1); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.heart-icon {
    font-size: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    56% { transform: scale(1); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-name {
    display: block;
    background: linear-gradient(135deg, var(--gold), var(--pink), var(--lavender), var(--gold));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.15));
}

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

.hero-subtitle {
    font-family: var(--font-script);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: rgba(245, 230, 216, 0.7);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

.hero-years {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold), var(--gold-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-years-label {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.6);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(212, 175, 55, 0.08);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1.2s ease-out 1s both;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-warm));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
    border-color: transparent;
}

.cta-button svg {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUp 1.2s ease-out 1.2s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--pink-light);
    border-radius: 13px;
    position: relative;
    opacity: 0.5;
}

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

@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding: 0 var(--space-lg);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--pink);
    background: linear-gradient(135deg, rgba(232, 67, 147, 0.08), rgba(162, 155, 254, 0.08));
    border: 1px solid var(--border);
    padding: var(--space-xs) var(--space-lg);
    border-radius: 50px;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary), var(--gold-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.section-desc {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════ */
.timeline-section {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    background:
        radial-gradient(ellipse at 30% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(179, 156, 208, 0.04) 0%, transparent 60%),
        var(--bg-primary);
}




.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding: var(--space-lg) 0 var(--space-lg) 40px;
}

.timeline-line {
    position: absolute;
    left: 13px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: repeating-linear-gradient(
        180deg,
        rgba(233,30,99,0.08) 0px,
        rgba(233,30,99,0.08) 8px,
        transparent 8px,
        transparent 16px
    );
    border-radius: 3px;
}

/* Love story progress fill */
.timeline-line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, 
        #81c784 0%,
        #f48fb1 25%,
        #ce93d8 50%,
        #ffb74d 75%,
        #ef5350 100%);
    transition: height 0.15s ease-out;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(233,30,99,0.2);
    position: relative;
}

/* Heart that follows the fill progress */
.timeline-line-fill::after {
    content: '💗';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    filter: drop-shadow(0 2px 4px rgba(233,30,99,0.3));
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: translateX(-50%) scale(1); }
    15% { transform: translateX(-50%) scale(1.25); }
    30% { transform: translateX(-50%) scale(1); }
    45% { transform: translateX(-50%) scale(1.15); }
    60% { transform: translateX(-50%) scale(1); }
}

/* ─── YEAR DIVIDERS ─────────────────────────────────────── */
.year-divider {
    position: relative;
    width: 100%;
    padding: var(--space-xl) 0;
    z-index: 3;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.year-divider.visible {
    opacity: 1;
    transform: scale(1);
}

.year-divider-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.year-line-left, .year-line-right {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--year-primary, var(--pink)), transparent);
    opacity: 0.3;
}

.year-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 24px;
    padding: 24px 44px;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.08),
        0 0 0 2px rgba(232, 67, 147, 0.08),
        0 0 60px rgba(233, 30, 99, 0.06);
    position: relative;
    overflow: visible;
}

.year-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--year-primary, var(--pink)), var(--year-secondary, var(--lavender)), var(--year-primary, var(--pink)));
    border-radius: 4px 4px 0 0;
}

/* Decorative elements around year badge */
.year-badge::after {
    content: '✨💕✨';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 4px;
    opacity: 0.6;
    animation: badgeSparkle 3s ease-in-out infinite;
}

@keyframes badgeSparkle {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(0.9); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.year-emoji {
    font-size: 2rem;
    margin-bottom: 4px;
    animation: yearEmojiBounce 2s ease-in-out infinite;
}

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

.year-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--year-primary, var(--pink)), var(--year-secondary, var(--lavender)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.year-tagline {
    font-family: var(--font-script);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ─── PER-MOOD ENTRANCE ANIMATIONS ─────────────────────── */
/* Default state */
.memory-item {
    --year-primary: var(--pink);
    --year-secondary: var(--lavender);
    --year-accent: var(--rose);
}

/* All card animations — GPU-friendly (only opacity + transform, NO filter) */
.memory-item[data-anim="slide-right"] {
    transform: translateX(-40px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.memory-item[data-anim="slide-right"].visible {
    transform: translateX(0);
    opacity: 1;
}
.memory-item[data-anim="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.memory-item[data-anim="fade-up"].visible {
    transform: translateY(0);
    opacity: 1;
}

.memory-item[data-anim="bloom"] {
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.memory-item[data-anim="bloom"].visible {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.memory-item[data-anim="float-in"] {
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.memory-item[data-anim="float-in"].visible {
    transform: translateY(0);
    opacity: 1;
}

.memory-item[data-anim="fade-blur"] {
    transform: translateY(25px);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.memory-item[data-anim="fade-blur"].visible {
    transform: translateY(0);
    opacity: 1;
}
.memory-item[data-anim="drift-in"] {
    transform: translateX(30px);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.memory-item[data-anim="drift-in"].visible {
    transform: translateX(0);
    opacity: 1;
}

.memory-item[data-anim="bounce-in"] {
    transform: translateY(35px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.memory-item[data-anim="bounce-in"].visible {
    transform: translateY(0);
    opacity: 1;
}
.memory-item[data-anim="zoom-pop"] {
    transform: scale(0.9);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.memory-item[data-anim="zoom-pop"].visible {
    transform: scale(1);
    opacity: 1;
}

.memory-item[data-anim="confetti-in"] {
    transform: translateY(35px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.memory-item[data-anim="confetti-in"].visible {
    transform: translateY(0);
    opacity: 1;
}
.memory-item[data-anim="grand-reveal"] {
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.memory-item[data-anim="grand-reveal"].visible {
    transform: translateY(0);
    opacity: 1;
}

/* Year-mood themed dots */
.year-mood-innocent .memory-dot { border-color: #00b894 !important; }
.year-mood-innocent:hover .memory-dot { background: #00b894 !important; box-shadow: 0 0 20px rgba(0, 184, 148, 0.4) !important; }
.year-mood-romantic .memory-dot { border-color: #e84393 !important; }
.year-mood-romantic:hover .memory-dot { background: #e84393 !important; box-shadow: 0 0 20px rgba(232, 67, 147, 0.4) !important; }
.year-mood-bittersweet .memory-dot { border-color: #6c5ce7 !important; }
.year-mood-bittersweet:hover .memory-dot { background: #6c5ce7 !important; box-shadow: 0 0 20px rgba(108, 92, 231, 0.4) !important; }
.year-mood-joyful .memory-dot { border-color: #f0932b !important; }
.year-mood-joyful:hover .memory-dot { background: #f0932b !important; box-shadow: 0 0 20px rgba(240, 147, 43, 0.4) !important; }
.year-mood-celebration .memory-dot { border-color: #e84393 !important; }
.year-mood-celebration:hover .memory-dot { background: #e84393 !important; box-shadow: 0 0 20px rgba(232, 67, 147, 0.4) !important; }

/* Year-mood themed date labels */
.year-mood-innocent .memory-date { color: #00b894; }
.year-mood-innocent .memory-date::before { color: #55efc4; }
.year-mood-romantic .memory-date { color: #e84393; }
.year-mood-romantic .memory-date::before { color: #fd79a8; }
.year-mood-bittersweet .memory-date { color: #6c5ce7; }
.year-mood-bittersweet .memory-date::before { content: '🌧'; font-size: 0.5rem; }
.year-mood-joyful .memory-date { color: #f0932b; }
.year-mood-joyful .memory-date::before { content: '☀'; color: #fdcb6e; }
.year-mood-celebration .memory-date { color: #e84393; }
.year-mood-celebration .memory-date::before { content: '🎉'; font-size: 0.5rem; }

/* Year-mood card border accents on hover */
.year-mood-innocent .memory-card:hover { border-color: rgba(0, 184, 148, 0.25); box-shadow: 0 16px 48px rgba(0, 184, 148, 0.08); }
.year-mood-romantic .memory-card:hover { border-color: rgba(232, 67, 147, 0.25); box-shadow: 0 16px 48px rgba(232, 67, 147, 0.08); }
.year-mood-bittersweet .memory-card:hover { border-color: rgba(108, 92, 231, 0.25); box-shadow: 0 16px 48px rgba(108, 92, 231, 0.08); }
.year-mood-joyful .memory-card:hover { border-color: rgba(240, 147, 43, 0.25); box-shadow: 0 16px 48px rgba(240, 147, 43, 0.08); }
.year-mood-celebration .memory-card:hover { border-color: rgba(232, 67, 147, 0.25); box-shadow: 0 16px 48px rgba(232, 67, 147, 0.1); }

/* Individual memory item — centered single-column */
.memory-item {
    position: relative;
    width: 100%;
    padding: var(--space-md) 0 var(--space-md) var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.memory-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.memory-item.left,
.memory-item.right {
    left: 0;
    text-align: left;
    padding-left: var(--space-md);
    padding-right: 0;
}

/* Timeline dot */
.memory-dot {
    position: absolute;
    top: var(--space-xl);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--gold);
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08), var(--glow-gold);
    transition: var(--transition);
    left: -47px;
}

.memory-item.left .memory-dot,
.memory-item.right .memory-dot {
    left: -47px;
    right: auto;
}

.memory-item:hover .memory-dot {
    background: var(--gold);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 0 0 16px rgba(212, 175, 55, 0.2);
}

/* Memory card — Luxury editorial style */
.memory-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    position: relative;
}

.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--gold-light) 50%, transparent 90%);
    opacity: 0.4;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.memory-card:hover {
    border-color: rgba(212, 175, 55, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.memory-card:hover::before {
    opacity: 0.8;
}

.memory-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

/* Shimmer placeholder while images load */
.memory-image-container::before,
.memory-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255,255,255,0.3) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: imgShimmer 1.5s ease-in-out infinite;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.memory-image-container.images-loaded::before,
.memory-carousel.images-loaded::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes imgShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Global image blur-up fade-in */
.memory-image,
.carousel-slide img,
.gallery-main-img,
.kiss-photo {
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s ease;
}

.memory-image.img-loaded,
.carousel-slide img.img-loaded,
.gallery-main-img.img-loaded,
.kiss-photo.img-loaded {
    opacity: 1;
    filter: blur(0);
}

.memory-image {
    width: 100%;
    height: auto;
    max-height: 340px;
    display: block;
    object-fit: contain;
}

.memory-card:hover .memory-image {
    transform: scale(1.02);
}

.memory-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.08), rgba(162, 155, 254, 0.08));
}

.memory-image-placeholder .placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

.memory-info {
    padding: 10px 16px 12px;
}

.memory-date {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-warm);
    margin-bottom: 4px;
    font-weight: 500;
}

.memory-date::before {
    content: '◆';
    font-size: 0.35rem;
    color: var(--gold);
}

.memory-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.memory-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   LOVE LETTER SECTION
   ═══════════════════════════════════════════════════════════ */
.letter-section {
    padding: var(--space-3xl) var(--space-lg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(162, 155, 254, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 30%, rgba(253, 121, 168, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary), #f3e7ff, var(--bg-primary));
}

.letter-container {
    max-width: 600px;
    width: 100%;
    perspective: 1000px;
}

.letter-envelope {
    background: linear-gradient(135deg, #fff0f5, #f5f0ff);
    border: 1px solid rgba(232, 67, 147, 0.15);
    border-radius: 20px;
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.letter-envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--lavender), var(--pink));
    border-radius: 20px 20px 0 0;
}

.letter-envelope:hover {
    transform: scale(1.02);
    border-color: rgba(232, 67, 147, 0.3);
    box-shadow: var(--shadow-card-hover);
}

.envelope-flap {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    position: relative;
}

.envelope-flap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--pink-light);
    transform: rotate(45deg);
    border-radius: 4px;
    opacity: 0.3;
}

.envelope-body {
    color: var(--text-secondary);
}

.envelope-heart {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
    animation: heartbeat 2s ease-in-out infinite;
}

.envelope-body p {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--pink);
}

.letter-content {
    display: none;
    animation: unfoldLetter 0.8s ease-out forwards;
}

.letter-content.show {
    display: block;
}

.letter-paper {
    background: linear-gradient(135deg, #ffffff, #fff5f7, #f8f0ff);
    border: 1px solid rgba(232, 67, 147, 0.1);
    border-radius: 20px;
    padding: var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--lavender), var(--gold), var(--pink));
}

.letter-paper::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-display);
    font-size: 8rem;
    color: rgba(232, 67, 147, 0.06);
    line-height: 1;
}

.letter-greeting {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--pink);
    margin-bottom: var(--space-lg);
}

.letter-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.letter-sign {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--lavender);
    text-align: right;
}

@keyframes unfoldLetter {
    0% { opacity: 0; transform: rotateX(-30deg) scale(0.9); }
    100% { opacity: 1; transform: rotateX(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   BIRTHDAY WISHES / CAKE SECTION
   ═══════════════════════════════════════════════════════════ */
.wishes-section {
    padding: var(--space-3xl) var(--space-lg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(253, 203, 110, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(253, 121, 168, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary), #fff8e8, var(--bg-primary));
}

.wishes-container {
    max-width: 600px;
    width: 100%;
}

/* Cake */
.cake-animation {
    margin-bottom: var(--space-xl);
}

.cake {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.candle-group {
    display: flex;
    gap: 20px;
    margin-bottom: -4px;
    z-index: 2;
}

.candle {
    width: 8px;
    height: 40px;
    background: linear-gradient(180deg, #fff5e0, var(--pink-light));
    border-radius: 4px 4px 0 0;
    position: relative;
}

.flame {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 18px;
    background: radial-gradient(ellipse at center bottom, #fff8dc, #ffd700, #ff6b35, transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.3s ease-in-out infinite alternate;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 107, 53, 0.3);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.flame.out {
    opacity: 0;
    transform: translateX(-50%) scale(0) translateY(-10px);
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
    100% { transform: translateX(-50%) scale(1.1, 0.9) rotate(2deg); }
}

.cake-layer {
    border-radius: 16px;
    position: relative;
}

.cake-top {
    width: 120px;
    height: 45px;
    background: linear-gradient(180deg, var(--pink-light), var(--pink));
    border-radius: 8px 8px 12px 12px;
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.25);
}

.cake-top::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.cake-middle {
    width: 150px;
    height: 50px;
    background: linear-gradient(180deg, var(--lavender-light), var(--lavender));
    border-radius: 4px 4px 12px 12px;
    margin-top: -2px;
    box-shadow: 0 4px 15px rgba(162, 155, 254, 0.25);
}

.cake-middle::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.cake-bottom {
    width: 180px;
    height: 55px;
    background: linear-gradient(180deg, var(--gold), var(--gold-warm));
    border-radius: 4px 4px 16px 16px;
    margin-top: -2px;
    box-shadow: 0 8px 25px rgba(253, 203, 110, 0.3);
}

.cake-bottom::after {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0;
}

.wishes-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wishes-text {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.blow-button {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border: none;
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(232, 67, 147, 0.25);
}

.blow-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(232, 67, 147, 0.35);
}

.blow-button.hidden {
    display: none;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    opacity: 0;
    animation: confettiFall linear forwards;
}

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

.birthday-message {
    margin-top: var(--space-xl);
    animation: fadeInUp 1s ease-out;
}

.birthday-message.hidden {
    display: none;
}

.final-wish {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--pink), var(--lavender), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.final-text {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   MUSIC TOGGLE
   ═══════════════════════════════════════════════════════════ */
.music-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    color: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
}

.music-toggle:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   SECRET GALLERY SECTION
   ═══════════════════════════════════════════════════════════ */
.secret-section {
    padding: var(--space-3xl) var(--space-lg);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(253, 121, 168, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 30%, rgba(162, 155, 254, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary), #ffe8f0, var(--bg-primary));
}

.secret-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* Locked State */
.secret-locked {
    text-align: center;
    padding: var(--space-xl);
}

.secret-lock-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--space-xl);
    background: linear-gradient(135deg, rgba(232, 67, 147, 0.08), rgba(162, 155, 254, 0.08));
    border: 2px solid rgba(232, 67, 147, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 67, 147, 0.15), 0 0 0 0 rgba(162, 155, 254, 0.1); }
    50% { box-shadow: 0 0 0 15px rgba(232, 67, 147, 0), 0 0 0 30px rgba(162, 155, 254, 0); }
}

.secret-heart-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(232, 67, 147, 0.3);
}

.secret-heart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(232, 67, 147, 0.4);
}

.secret-heart-btn.burst {
    animation: heartBurst 0.6s ease-out forwards;
}

@keyframes heartBurst {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1.2); opacity: 0; }
}

.secret-heart-pulse {
    font-size: 2rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Heart spark particles */
.heart-spark {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkBurst 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes sparkBurst {
    0% { 
        transform: rotate(var(--angle)) translateX(0) scale(0);
        opacity: 1;
    }
    100% { 
        transform: rotate(var(--angle)) translateX(100px) scale(1);
        opacity: 0;
    }
}

.secret-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.secret-hint {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Unlocked Gallery Grid */
.secret-gallery.reveal {
    animation: revealGallery 0.8s ease-out forwards;
}

@keyframes revealGallery {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.secret-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: var(--space-md) 0;
}

.secret-photo-item {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    opacity: 0;
    animation: photoPopIn 0.4s ease-out forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.secret-photo-item:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(232, 67, 147, 0.15);
    z-index: 2;
}

/* Vary the grid for visual interest */
.secret-photo-item:nth-child(5n+1) { grid-row: span 1; }
.secret-photo-item:nth-child(7n+3) {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

@keyframes photoPopIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.secret-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.secret-photo-item:hover img {
    transform: scale(1.08);
}

/* Heart overlay on hover */
.secret-photo-item::after {
    content: '♥';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: rgba(232, 67, 147, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.secret-photo-item:hover::after {
    opacity: 1;
}

@media (max-width: 600px) {
    .secret-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .secret-photo-item:nth-child(7n+3) {
        grid-column: span 1;
        aspect-ratio: 1;
    }

    .secret-photo-item {
        border-radius: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════
   KISS ME — INTERACTIVE SECRET SECTION
   ═══════════════════════════════════════════════════════════ */
.kiss-section {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    background: linear-gradient(180deg, #1a0a1e 0%, #2d0a3e 30%, #1a0a2e 100%);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kiss-hearts-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.kiss-hearts-bg .floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: kissFloat 6s ease-in-out infinite;
}

@keyframes kissFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-40px) rotate(15deg); opacity: 0.25; }
}

/* Container: fixed vertical column — NEVER changes layout */
.kiss-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

/* The prompt (title + button) */
.kiss-prompt {
    text-align: center;
    flex-shrink: 0;
}

/* Photo wall — always present, fixed size, images swap inside */
.kiss-photo-wall {
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kiss-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #ff6b9d;
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
}

.kiss-subtitle {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-xl);
}

.kiss-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    color: white;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 50px;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: kissPulse 2s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.4);
    letter-spacing: 1px;
}

@keyframes kissPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(255, 107, 157, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(255, 107, 157, 0.6); }
}

.kiss-button:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 80px rgba(255, 107, 157, 0.7);
}

.kiss-button:active {
    transform: scale(0.95) !important;
}

.kiss-emoji {
    font-size: 1.8rem;
    animation: kissWobble 1s ease-in-out infinite;
}

@keyframes kissWobble {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.kiss-counter {
    margin-top: var(--space-md);
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    min-height: 30px;
}

/* Kiss photo reveal */
.kiss-photo-reveal {
    margin-top: var(--space-xl);
    position: relative;
    display: none;
}

.kiss-photo-reveal.show {
    display: block;
    animation: kissReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes kissReveal {
    0% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
    50% { transform: scale(1.05) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.kiss-photo {
    max-width: 100%;
    max-height: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3), 0 0 0 3px rgba(255, 107, 157, 0.2);
    object-fit: contain;
}

.kiss-photo-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.kiss-heart-burst {
    position: absolute;
    font-size: 1.5rem;
    animation: heartBurst 1.2s ease-out forwards;
    pointer-events: none;
}

@keyframes heartBurst {
    0% { opacity: 1; transform: translate(0, 0) scale(0.5); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(var(--rot)); }
}

/* ═══════════════════════════════════════════════════════════
   YEAR THEME BACKGROUND TRANSITIONS — FULL SCENERY
   ═══════════════════════════════════════════════════════════ */
.timeline-section {
    transition: background 2.5s cubic-bezier(0.4, 0, 0.2, 1), color 2s ease;
    position: relative;
}

/* Scenery overlay layer */
.timeline-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), background 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* All themed children transition smoothly */
.timeline-section .memory-card {
    transition: background 2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 2s ease,
                box-shadow 2s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-section .memory-date,
.timeline-section .memory-title {
    transition: color 2s ease;
}

.timeline-section .year-divider-inner {
    transition: filter 2s ease;
}

.timeline-section > * {
    position: relative;
    z-index: 1;
}

/* ── 2021: BEFORE WE MET — Warm sepia nostalgia ── */
.timeline-section[data-active-mood="nostalgic"] {
    background:
        radial-gradient(ellipse at 15% 25%, rgba(184,134,11,0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 20%, rgba(218,165,32,0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 70%, rgba(210,180,140,0.2) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(160,120,60,0.1) 0%, transparent 30%),
        linear-gradient(150deg, #fdf6e3 0%, #f5e6c8 20%, #faebd7 45%, #f0e0c0 70%, #fdf6e3 100%);
}
.timeline-section[data-active-mood="nostalgic"]::after {
    opacity: 1;
    background:
        radial-gradient(ellipse at 50% 10%, rgba(184,134,11,0.1) 0%, transparent 30%),
        radial-gradient(ellipse at 20% 5%, rgba(255,248,220,0.6) 0%, transparent 25%),
        radial-gradient(circle at 80% 8%, rgba(218,165,32,0.08) 0%, transparent 20%);
}
.timeline-section[data-active-mood="nostalgic"] .memory-card {
    background: rgba(255,252,240,0.9);
    border-color: rgba(184,134,11,0.12);
    box-shadow: 0 8px 40px rgba(184,134,11,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

/* ═══ ANIMATED FLOATING PARTICLES PER MOOD ═══ */
.mood-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.mood-particle {
    position: absolute;
    pointer-events: none;
    animation: moodFloat var(--float-duration, 12s) ease-in-out infinite;
    opacity: 0;
    font-size: var(--particle-size, 16px);
    will-change: transform, opacity;
}

@keyframes moodFloat {
    0% {
        opacity: 0;
        transform: translateY(100%) translateX(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: var(--particle-opacity, 0.3);
    }
    50% {
        transform: translateY(-50vh) translateX(var(--drift-x, 30px)) rotate(180deg) scale(1);
    }
    90% {
        opacity: var(--particle-opacity, 0.3);
    }
    100% {
        opacity: 0;
        transform: translateY(-120vh) translateX(var(--drift-x2, -20px)) rotate(360deg) scale(0.6);
    }
}

/* ── 2022: FIRST MEETING — Soft misty forest morning ── */
.timeline-section[data-active-mood="innocent"] {
    background:
        radial-gradient(ellipse at 10% 90%, rgba(129,199,132,0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 20%, rgba(174,213,129,0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(200,230,201,0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(165,214,167,0.25) 0%, transparent 35%),
        linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 25%, #dcedc8 50%, #c5e1a5 75%, #e8f5e9 100%);
}
.timeline-section[data-active-mood="innocent"]::after {
    opacity: 1;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(255,255,255,0.8) 0%, transparent 25%),
        radial-gradient(ellipse at 75% 5%, rgba(255,255,255,0.6) 0%, transparent 20%),
        radial-gradient(circle at 90% 8%, rgba(255,235,59,0.2) 0%, transparent 15%),
        linear-gradient(0deg, rgba(27,94,32,0.05) 0%, transparent 8%);
}
.timeline-section[data-active-mood="innocent"] .memory-card {
    background: rgba(255,255,255,0.85);
    border-color: rgba(76,175,80,0.12);
    box-shadow: 0 8px 40px rgba(76,175,80,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

/* ── 2023: FALLING IN LOVE — Dreamy twilight aurora ── */
.timeline-section[data-active-mood="romantic"] {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(244,143,177,0.5) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 30%, rgba(206,147,216,0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(248,187,208,0.3) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 70%, rgba(225,190,231,0.25) 0%, transparent 35%),
        radial-gradient(circle at 10% 60%, rgba(255,183,77,0.15) 0%, transparent 30%),
        linear-gradient(160deg, #fce4ec 0%, #f8bbd0 20%, #f3e5f5 45%, #e8eaf6 70%, #fce4ec 100%);
}
.timeline-section[data-active-mood="romantic"]::after {
    opacity: 1;
    background:
        radial-gradient(ellipse at 50% 15%, rgba(255,183,77,0.2) 0%, transparent 35%),
        radial-gradient(circle at 20% 8%, rgba(255,255,255,0.5) 1px, transparent 3px),
        radial-gradient(circle at 75% 12%, rgba(255,255,255,0.4) 1px, transparent 3px),
        radial-gradient(circle at 45% 3%, rgba(255,255,255,0.3) 1px, transparent 2px);
}
.timeline-section[data-active-mood="romantic"] .memory-card {
    background: rgba(255,255,255,0.82);
    border-color: rgba(233,30,99,0.1);
    box-shadow: 0 8px 40px rgba(233,30,99,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
}

/* ── 2024: THROUGH THE STORM — Moody midnight rain ── */
.timeline-section[data-active-mood="bittersweet"] {
    background:
        radial-gradient(ellipse at 15% 15%, rgba(103,58,183,0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 25%, rgba(81,45,168,0.15) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 70%, rgba(149,117,205,0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 30% 90%, rgba(69,39,160,0.1) 0%, transparent 30%),
        radial-gradient(circle at 70% 50%, rgba(186,104,200,0.08) 0%, transparent 25%),
        linear-gradient(170deg, #ede7f6 0%, #d1c4e9 20%, #e8eaf6 40%, #c5cae9 60%, #e1bee7 80%, #ede7f6 100%);
}
.timeline-section[data-active-mood="bittersweet"]::after {
    opacity: 1;
    background:
        radial-gradient(ellipse at 30% 10%, rgba(69,39,160,0.08) 0%, transparent 25%),
        radial-gradient(ellipse at 60% 5%, rgba(49,27,146,0.06) 0%, transparent 20%),
        repeating-linear-gradient(
            170deg,
            transparent,
            transparent 60px,
            rgba(149,117,205,0.03) 60px,
            rgba(149,117,205,0.03) 61px
        ),
        radial-gradient(circle at 50% 60%, rgba(186,104,200,0.05) 0%, transparent 30%);
}
.timeline-section[data-active-mood="bittersweet"] .memory-card {
    background: rgba(255,255,255,0.85);
    border-color: rgba(103,58,183,0.1);
    box-shadow: 0 8px 40px rgba(103,58,183,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
}

/* ── 2025: TOGETHER AGAIN — Warm golden hour magic ── */
.timeline-section[data-active-mood="joyful"] {
    background:
        radial-gradient(ellipse at 80% 15%, rgba(255,183,77,0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 30%, rgba(255,213,79,0.25) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 75%, rgba(255,241,118,0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 80%, rgba(255,167,38,0.15) 0%, transparent 35%),
        radial-gradient(circle at 90% 60%, rgba(255,224,130,0.2) 0%, transparent 30%),
        linear-gradient(145deg, #fffde7 0%, #fff9c4 15%, #fff3e0 35%, #ffe0b2 55%, #fff8e1 75%, #fffde7 100%);
}
.timeline-section[data-active-mood="joyful"]::after {
    opacity: 1;
    background:
        radial-gradient(circle at 82% 8%, rgba(255,152,0,0.3) 0%, rgba(255,193,7,0.1) 10%, transparent 25%),
        radial-gradient(circle at 82% 8%, rgba(255,235,59,0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 25% 15%, rgba(129,212,250,0.12) 0%, transparent 25%),
        radial-gradient(ellipse at 55% 10%, rgba(129,212,250,0.08) 0%, transparent 20%);
}
.timeline-section[data-active-mood="joyful"] .memory-card {
    background: rgba(255,255,255,0.88);
    border-color: rgba(255,152,0,0.12);
    box-shadow: 0 8px 40px rgba(255,152,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

/* ── 2026: OUR FOREVER — Cosmic celebration night ── */
.timeline-section[data-active-mood="celebration"] {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(233,69,96,0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 30%, rgba(171,71,188,0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(255,183,77,0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 10% 70%, rgba(92,107,192,0.12) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(233,69,96,0.1) 0%, transparent 25%),
        linear-gradient(160deg, #fce4ec 0%, #f3e5f5 20%, #e8eaf6 40%, #ede7f6 55%, #fce4ec 75%, #fff3e0 100%);
}
.timeline-section[data-active-mood="celebration"]::after {
    opacity: 1;
    background:
        radial-gradient(circle at 20% 25%, rgba(255,215,0,0.12) 0%, transparent 12%),
        radial-gradient(circle at 75% 15%, rgba(233,69,96,0.1) 0%, transparent 12%),
        radial-gradient(circle at 50% 40%, rgba(255,215,0,0.06) 0%, transparent 15%),
        radial-gradient(circle at 10% 8%, rgba(255,255,255,0.4) 1px, transparent 2px),
        radial-gradient(circle at 30% 3%, rgba(255,215,0,0.3) 1px, transparent 2px),
        radial-gradient(circle at 60% 6%, rgba(233,69,96,0.3) 1px, transparent 2px),
        radial-gradient(circle at 85% 18%, rgba(171,71,188,0.2) 1px, transparent 2px),
        radial-gradient(circle at 95% 3%, rgba(255,183,77,0.3) 1px, transparent 2px);
}
.timeline-section[data-active-mood="celebration"] .memory-card {
    background: rgba(255,255,255,0.88);
    border-color: rgba(233,69,96,0.12);
    box-shadow: 0 8px 40px rgba(233,69,96,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
}

/* Easter egg — double tap hearts */
.easter-heart-burst {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-size: 2rem;
    animation: easterHeartUp 1.5s ease-out forwards;
}

@keyframes easterHeartUp {
    0% { opacity: 1; transform: translateY(0) scale(0.5); }
    100% { opacity: 0; transform: translateY(-120px) scale(1.5); }
}

/* Surprise Polaroid Easter Egg */
.surprise-polaroid {
    position: fixed;
    z-index: 9999;
    background: white;
    padding: 8px 8px 30px 8px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
    transform: rotate(var(--tilt, 3deg)) scale(0.3) translateY(40px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 180px;
    pointer-events: none;
}

.surprise-polaroid.show {
    opacity: 1;
    transform: rotate(var(--tilt, 3deg)) scale(1) translateY(0);
}

.surprise-polaroid.hiding {
    opacity: 0;
    transform: rotate(var(--tilt, 3deg)) scale(0.8) translateY(-20px);
    transition: all 0.6s ease-in;
}

.surprise-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.surprise-label {
    text-align: center;
    font-family: var(--font-script);
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: 6px;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
    }

    .timeline-line {
        left: 10px;
    }

    .memory-item {
        padding-left: var(--space-sm) !important;
        padding-right: var(--space-sm) !important;
    }

    .memory-item.left .memory-dot,
    .memory-item.right .memory-dot,
    .memory-dot {
        left: -37px;
    }

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

    .letter-paper {
        padding: var(--space-lg);
    }

    .letter-greeting {
        font-size: 1.5rem;
    }

    .letter-body {
        font-size: 0.9rem;
    }

    .candle-group {
        gap: 14px;
    }

    .cake-top { width: 90px; height: 35px; }
    .cake-middle { width: 115px; height: 40px; }
    .cake-bottom { width: 140px; height: 45px; }

    .year-divider {
        padding: var(--space-md) 0;
    }

    .year-badge {
        padding: 14px 28px;
    }

    .year-number {
        font-size: 1.8rem;
    }

    .year-emoji {
        font-size: 1.5rem;
    }

    .year-tagline {
        font-size: 0.85rem;
    }

    .year-line-left, .year-line-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-md);
    }

    .section-header {
        margin-bottom: var(--space-xl);
    }

    .memory-info {
        padding: var(--space-md);
    }

    .memory-title {
        font-size: 1.1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   MODERN CARD GALLERY / SLIDESHOW
   ═══════════════════════════════════════════════════════════ */
.gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 27, 61, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(12px);
    padding: 20px;
}

.gallery-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* The Card */
.gallery-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    box-shadow: 
        0 25px 80px rgba(232, 67, 147, 0.15),
        0 10px 30px rgba(45, 27, 61, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.gallery-overlay.active .gallery-card {
    transform: scale(1) translateY(0);
}

/* Header */
.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(232, 67, 147, 0.08);
}

.gallery-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-header-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-warm));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
}

.gallery-header-dot::after {
    content: '♥';
    color: white;
    font-size: 1rem;
}

.gallery-header-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-header-date {
    font-size: 0.72rem;
    color: var(--gold-warm);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2px;
}

.gallery-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(232, 67, 147, 0.06);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-close:hover {
    background: rgba(232, 67, 147, 0.12);
    color: var(--pink);
}

/* Main Image Area */
.gallery-image-area {
    position: relative;
    width: 100%;
    max-height: 65vh;
    min-height: 200px;
    background: #f5f0e6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.gallery-main-img.gallery-img-transition {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(4px);
}

/* Nav Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    z-index: 3;
}

.gallery-image-area:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: var(--pink);
    color: white;
    box-shadow: 0 4px 16px rgba(232, 67, 147, 0.3);
}

.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }

/* Counter Badge */
.gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 3;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Thumbnail Strip */
.gallery-thumbs-wrapper {
    padding: 12px 16px;
    border-top: 1px solid rgba(232, 67, 147, 0.06);
    background: rgba(255, 245, 247, 0.6);
    overflow: hidden;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    opacity: 0.5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.gallery-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--pink);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(232, 67, 147, 0.25);
}

/* Footer Caption */
.gallery-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(232, 67, 147, 0.06);
}

.gallery-caption {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    max-height: 60px;
    overflow-y: auto;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .gallery-overlay {
        padding: 10px;
    }

    .gallery-card {
        max-width: 100%;
        border-radius: 18px;
    }

    .gallery-image-area {
        aspect-ratio: 1 / 1;
        max-height: 50vh;
    }

    .gallery-nav {
        opacity: 1;
        width: 34px;
        height: 34px;
    }

    .gallery-nav-prev { left: 8px; }
    .gallery-nav-next { right: 8px; }

    .gallery-thumb {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .gallery-header-title {
        font-size: 0.85rem;
        max-width: 180px;
    }

    .gallery-caption {
        font-size: 0.8rem;
    }
}
/* ═══════════════════════════════════════════════════════════
   PHOTO CAROUSEL (per memory card) — PREMIUM TRANSITIONS
   ═══════════════════════════════════════════════════════════ */
.memory-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
}

.carousel-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    perspective: 1200px;
}

/* ─── BASE SLIDE ─── */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 0s 1.2s;
    will-change: opacity;
    backface-visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: auto;
    z-index: 2;
    transition: opacity 1.2s ease, visibility 0s 0s;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 340px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    cursor: pointer;
}

/* ─── SMOOTH FADE TRANSITION — All moods ─── */
/* Simple, elegant crossfade for every year */

/* ─── SINGLE IMAGE CONTAINER ─── */
.memory-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.memory-image-container img {
    width: 100%;
    display: block;
    cursor: pointer;
    transition: transform 0.6s ease;
}

.memory-image-container:hover img {
    transform: scale(1.03);
}

/* Image placeholder for memories with no photos */
.memory-image-placeholder {
    padding: 60px 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--pink-soft), #f3e7ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-family: var(--font-script);
    font-size: 1rem;
}

.placeholder-icon {
    font-size: 2.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Carousel prev/next buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0.6;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
}

.memory-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--pink);
    color: white;
    box-shadow: 0 4px 16px rgba(232, 67, 147, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 10px !important; right: auto !important; }
.carousel-next { right: 10px !important; left: auto !important; }

/* Carousel dots */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.carousel-dot.active {
    background: white;
    width: 20px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Carousel counter */
.carousel-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 3;
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL PREMIUM TOUCHES
   ═══════════════════════════════════════════════════════════ */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

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

/* GPU acceleration hints */
.memory-card, .carousel-slide, .gallery-card, .year-badge {
    will-change: transform;
    -webkit-font-smoothing: antialiased;
}

/* Image loading shimmer */
.memory-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.memory-carousel:not(:has(.carousel-slide.active img[src])) ::before {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════════════════
   FLOATING PAGE DECORATIONS
   ═══════════════════════════════════════════════════════════ */
.page-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    font-size: 1.2rem;
    opacity: 0;
    animation: floatDecor var(--duration, 12s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes floatDecor {
    0% { opacity: 0; transform: translate(0, 100vh) rotate(0deg); }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translate(var(--drift, 30px), -100px) rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM BUTTON ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.blow-button,
.kiss-button,
.carousel-btn,
.carousel-dot {
    position: relative;
    overflow: hidden;
}

/* Shine effect on buttons */
.blow-button::after,
.kiss-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 75% { left: -100%; }
    100% { left: 200%; }
}

/* Carousel navigation buttons — cute round style */
.carousel-btn {
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

/* Carousel dots — bouncy */
.carousel-dot {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-dot.active {
    transform: scale(1.3);
}

.carousel-dot:hover {
    transform: scale(1.2);
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR — Romantic Pink
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #fce4ec, #f3e5f5, #e8eaf6);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ec407a, #ab47bc, #5c6bc0);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e91e63, #9c27b0, #3f51b5);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ec407a #fce4ec;
}

/* ═══════════════════════════════════════════════════════════
   ENHANCED MEMORY DOT MARKERS
   ═══════════════════════════════════════════════════════════ */
.memory-dot {
    position: relative;
}

.memory-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--year-primary, #ec407a);
    opacity: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   CARD HOVER — Premium lift with shadow bloom
   ═══════════════════════════════════════════════════════════ */
.memory-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.memory-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.12), 0 8px 24px rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════════════════════
   SURPRISE CLOSE BUTTON
   ═══════════════════════════════════════════════════════════ */
.surprise-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}
.surprise-close:hover {
    background: rgba(233,30,99,0.8);
    transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════════
   SURPRISE GALLERY — End of Website
   ═══════════════════════════════════════════════════════════ */
.surprise-gallery-section {
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(180deg, 
        var(--bg-primary) 0%,
        #fce4ec 30%,
        #f3e5f5 60%,
        #ede7f6 100%);
}

.surprise-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-lg) 0;
}

.surprise-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: surpriseReveal 0.6s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.surprise-gallery-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 32px rgba(233,30,99,0.15);
}

.surprise-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.surprise-gallery-item:hover img {
    transform: scale(1.05);
}

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

@media (max-width: 600px) {
    .surprise-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .surprise-gallery-item img {
        height: 140px;
    }
}
