:root {
    --color-bg-1: #FFF8F5;
    --color-bg-2: #F8EDEB;
    --color-accent-1: #E8CFC8;
    --color-accent-2: #C97B84;
    --color-accent-3: #7D4E57;
    --color-text: #4A3040;
    --color-text-light: #8B6B7B;
    --color-white: #FFFFFF;
    --color-glass: rgba(255, 255, 255, 0.25);
    --color-glass-border: rgba(255, 255, 255, 0.35);
    --color-shadow: rgba(125, 78, 87, 0.12);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, sans-serif;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-1);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='%23C97B84' stroke='%237D4E57' stroke-width='0.8'/%3E%3C/svg%3E") 14 14, auto;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }

/* ==========================================
   SLIDESHOW SECTIONS
   ========================================== */
.slide-section {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 5;
}

.slide-section.exit-up {
    opacity: 0;
    transform: translateY(-40px) scale(0.98);
}

.section-inner {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 20px 60px 20px 24px;
    max-width: 900px;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,123,132,0.25) transparent;
}
.section-inner::-webkit-scrollbar { width: 5px; }
.section-inner::-webkit-scrollbar-track { background: transparent; }
.section-inner::-webkit-scrollbar-thumb { background: rgba(201,123,132,0.25); border-radius: 4px; }

/* Anim-in system (replaces AOS) */
.anim-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-section.active .anim-in {
    opacity: 1;
    transform: translateY(0);
}
.slide-section.active .anim-in.delay-1 { transition-delay: 0.25s; }
.slide-section.active .anim-in.delay-2 { transition-delay: 0.5s; }
.slide-section.active .anim-in.delay-3 { transition-delay: 0.75s; }

/* ==========================================
   GLASS CARD
   ========================================== */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px var(--color-shadow);
}
.glass-dark {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ==========================================
   CURSOR GLOW
   ========================================== */
#cursor-glow {
    position: fixed;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,123,132,0.12) 0%, rgba(201,123,132,0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}
body:hover #cursor-glow { opacity: 1; }

button, a, .nav-dot, .gal-arrow, .rnav-btn, .reason-card, .gallery-item, .btn-next-section, .btn-secret, #music-toggle, #nav-prev, #nav-next, .secret-popup-close, .lightbox-close, .lightbox-prev, .lightbox-next {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='%23C97B84' stroke='%237D4E57' stroke-width='0.8'/%3E%3C/svg%3E") 14 14, pointer;
}

/* ==========================================
   RIPPLE
   ========================================== */
#ripple-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 9998;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,123,132,0.3) 0%, transparent 70%);
    transform: scale(0);
    animation: rippleAnim 0.8s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ==========================================
   MUSIC PLAYER
   ========================================== */
#music-player {
    position: fixed;
    bottom: 90px; left: 20px;
    z-index: 100;
}
#music-toggle {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    color: var(--color-accent-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--color-shadow);
}
#music-toggle:hover {
    background: var(--color-accent-2);
    color: var(--color-white);
    transform: scale(1.1);
}
#music-toggle.playing {
    animation: musicPulse 1.5s ease-in-out infinite;
}
@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,123,132,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(201,123,132,0); }
}

/* ==========================================
   SECTION NAVIGATION BAR (right side vertical)
   ========================================== */
#section-nav {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(125,78,87,0.12);
    transition: var(--transition);
}

.nav-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(201,123,132,0.25);
    flex-shrink: 0;
}
.nav-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 18px rgba(201,123,132,0.4);
}
.nav-btn:active { transform: scale(0.95); }
.nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
    box-shadow: none;
}

#nav-dots {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
}

.nav-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--color-accent-1);
    transition: var(--transition);
    cursor: pointer;
}
.nav-dot.active {
    background: var(--color-accent-2);
    height: 22px;
    width: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(201,123,132,0.4);
}
.nav-dot:hover:not(.active) {
    background: var(--color-accent-2);
    transform: scale(1.2);
}

/* Dark nav variant */
#section-nav.dark-nav {
    background: rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.15);
}
#section-nav.dark-nav .nav-dot {
    background: rgba(255,255,255,0.3);
}
#section-nav.dark-nav .nav-dot.active {
    background: var(--color-accent-2);
}

/* ==========================================
   NEXT SECTION BUTTONS (cute)
   ========================================== */
.btn-next-section {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.02em;
}
.btn-love {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    color: var(--color-white);
    box-shadow: 0 8px 30px rgba(201,123,132,0.3);
}
.btn-love:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(201,123,132,0.45);
}
.btn-love svg { animation: bounceDown 2s ease-in-out infinite; }
@keyframes bounceDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.btn-cute {
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    color: var(--color-accent-3);
    box-shadow: 0 6px 25px var(--color-shadow);
}
.btn-cute:hover {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(201,123,132,0.35);
    border-color: transparent;
}
.btn-emoji {
    font-size: 1.2rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%,100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

/* ==========================================
   SECTION TITLE
   ========================================== */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--color-accent-3);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
    font-weight: 300;
}

/* ==========================================
   HEART EMOJI
   ========================================== */
.heart-emoji {
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
}

/* ==========================================
   PARTICLES & PETALS (fixed bg)
   ========================================== */
#particles-container, #petals-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 2;
    overflow: hidden;
}
.particle {
    position: absolute;
    opacity: 0;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg) scale(0); opacity: 0; }
    10% { opacity: 0.5; transform: translateY(90vh) rotate(36deg) scale(1); }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) rotate(360deg) scale(0.5); opacity: 0; }
}
.petal {
    position: absolute;
    width: 15px; height: 15px;
    opacity: 0;
    animation: floatPetal linear infinite;
}
.petal::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50% 0 50% 0;
    background: linear-gradient(135deg, rgba(232,207,200,0.6), rgba(201,123,132,0.3));
}
@keyframes floatPetal {
    0% { transform: translateY(-10%) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.2; }
    100% { transform: translateY(110vh) translateX(80px) rotate(720deg); opacity: 0; }
}

/* ==========================================
   SECTION 1: HERO
   ========================================== */
#hero {
    background: linear-gradient(135deg, var(--color-bg-1) 0%, var(--color-bg-2) 50%, var(--color-accent-1) 100%);
}
.hero-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(255,248,245,0.3) 100%);
    z-index: 1;
}
.hero-inner { z-index: 5; }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--color-accent-3);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(125,78,87,0.1);
}
.hero-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.3rem);
    color: var(--color-text-light);
    font-weight: 300;
    margin-bottom: 36px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero sparkles */
.sparkles-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 2;
}
.sparkle {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--color-accent-2);
    animation: sparkleAnim ease-in-out infinite;
}
@keyframes sparkleAnim { 0%,100% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } }

/* Hero floating hearts */
.floating-hearts {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 2;
}
.floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatingHeart linear infinite;
}
@keyframes floatingHeart {
    0% { transform: translateY(100%) rotate(0deg) scale(0); opacity: 0; }
    15% { opacity: 0.6; transform: translateY(80%) rotate(20deg) scale(1); }
    85% { opacity: 0.2; }
    100% { transform: translateY(-20%) rotate(-20deg) scale(0.5); opacity: 0; }
}

/* ==========================================
   SECTION 2: LETTER
   ========================================== */
#letter {
    background: linear-gradient(180deg, var(--color-bg-2) 0%, var(--color-bg-1) 100%);
}
.letter-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 36px 40px;
    max-height: 52vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,123,132,0.3) transparent;
    position: relative;
}
.letter-card::-webkit-scrollbar { width: 5px; }
.letter-card::-webkit-scrollbar-track { background: transparent; }
.letter-card::-webkit-scrollbar-thumb { background: rgba(201,123,132,0.3); border-radius: 4px; }
.letter-envelope { text-align: center; margin-bottom: 20px; }
.letter-content { min-height: 120px; }
.typewriter {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1.9;
    color: var(--color-text);
    font-style: italic;
    white-space: pre-wrap;
    text-align: left;
}
.typewriter-cursor {
    display: inline-block;
    color: var(--color-accent-2);
    animation: cursorBlink 0.8s ease-in-out infinite;
    font-weight: 300;
}
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--color-text-light);
    font-size: 0.78rem;
    opacity: 0.55;
    animation: scrollHintBounce 2s ease-in-out infinite;
}
.scroll-hint.hidden { display: none; }
@keyframes scrollHintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ==========================================
   SECTION 3: TIMELINE (Premium Vertical)
   ========================================== */
#timeline {
    background: linear-gradient(180deg, var(--color-bg-2) 0%, var(--color-bg-1) 40%, var(--color-bg-2) 100%);
}
.tl-scroll {
    padding-top: 10px;
    padding-bottom: 10px;
}
.tl-title {
    margin-bottom: 6px;
}
.tl-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(0.82rem, 1.4vw, 0.95rem);
    color: var(--color-text-light);
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* Timeline wrapper */
.tl-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0 20px;
}

/* Vertical line */
.tl-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-accent-1);
    transform: translateX(-50%);
}
.tl-line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--color-accent-2), var(--color-accent-3));
    border-radius: 2px;
    transition: height 1.2s ease;
}
.tl-wrap.animate .tl-line-fill {
    height: 100%;
}

/* Timeline entry */
.tl-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.tl-entry.revealed {
    opacity: 1;
    transform: translateY(0);
}
.tl-left {
    padding-right: 32px;
    justify-content: flex-end;
}
.tl-right {
    margin-left: 50%;
    padding-left: 32px;
}

/* Node (circle on line) */
.tl-node {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-accent-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 16px rgba(201,123,132,0.2);
    z-index: 3;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.tl-left .tl-node { right: -21px; }
.tl-right .tl-node { left: -21px; }
.tl-entry:hover .tl-node {
    transform: scale(1.15);
    box-shadow: 0 6px 22px rgba(201,123,132,0.35);
}
.tl-node-end {
    border-color: var(--color-accent-3);
    background: linear-gradient(135deg, #FFF8F5, #F8EDEB);
}

/* Timeline card */
.tl-card {
    padding: 20px 22px;
    width: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
}
.tl-card:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 40px rgba(125,78,87,0.18);
}
.tl-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-accent-3);
    margin-bottom: 6px;
    font-weight: 700;
}
.tl-card p {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.65;
    font-style: italic;
}

/* Year badge */
.tl-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}
.tl-badge-today {
    background: linear-gradient(135deg, #FF6B8A, var(--color-accent-2));
    box-shadow: 0 2px 10px rgba(255,107,138,0.3);
}

/* Photo inside card */
.tl-photo {
    margin-top: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(125,78,87,0.12);
    border: 2px solid rgba(255,255,255,0.5);
}
.tl-photo img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.tl-photo-ph {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--color-bg-2), var(--color-accent-1));
    color: var(--color-accent-3);
}
.tl-photo-ph span {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
}

/* End hearts container */
.tl-end-hearts {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    pointer-events: none;
    z-index: 4;
}
.tl-float-heart {
    position: absolute;
    bottom: 0;
    opacity: 0;
    animation: tlHeartFloat 3s ease-out forwards;
}
@keyframes tlHeartFloat {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 0.8; transform: translateY(-20px) scale(1); }
    100% { transform: translateY(-120px) scale(0.4) rotate(20deg); opacity: 0; }
}

/* Closing text */
.tl-closing {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--color-accent-2);
    margin: 20px 0 24px;
    font-weight: 600;
}

/* Counters */
.tl-counters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.tl-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.78rem;
    color: var(--color-text-light);
}
.tl-counter strong {
    color: var(--color-accent-3);
    font-weight: 600;
}
.tl-counter-icon {
    font-size: 0.9rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

/* ==========================================
   SECTION 4: GALLERY (Slideshow)
   ========================================== */
#gallery {
    background: linear-gradient(180deg, var(--color-bg-1) 0%, var(--color-bg-2) 100%);
}
.gallery-slideshow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 16px auto 12px;
    max-width: 600px;
}
.gal-arrow {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    color: var(--color-accent-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--color-shadow);
    flex-shrink: 0;
}
.gal-arrow:hover {
    background: var(--color-accent-2);
    color: var(--color-white);
    transform: scale(1.1);
}
.gal-display {
    flex: 1;
    max-width: 400px;
}
.gal-card {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-2), var(--color-accent-1));
    box-shadow: 0 8px 30px var(--color-shadow);
    transition: var(--transition);
    position: relative;
}
.gal-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.gal-img.active {
    opacity: 1;
}
.gal-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-accent-3);
}
.gal-placeholder span {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
}
.gal-counter {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

/* ==========================================
   SECTION 5: REASONS (Paginated)
   ========================================== */
#reasons {
    background: var(--color-bg-1);
}
.reasons-viewport {
    max-width: 650px;
    margin: 0 auto 16px;
    min-height: 260px;
    position: relative;
}
.reasons-page {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.reasons-page.active { display: grid; }

.reason-card {
    perspective: 1000px;
    height: 120px;
    cursor: pointer;
}
.reason-card-inner {
    position: relative;
    width: 100%; height: 100%;
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.reason-card.flipped .reason-card-inner { transform: rotateY(180deg); }

.reason-card-front, .reason-card-back {
    position: absolute;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}
.reason-card-front {
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 6px 24px var(--color-shadow);
}
.reason-card-front .reason-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-2);
}
.reason-card-front .reason-heart {
    font-size: 1.5rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}
.reason-card-back {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    transform: rotateY(180deg);
    box-shadow: 0 6px 24px rgba(125,78,87,0.3);
}
.reason-card-back p {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-white);
    line-height: 1.5;
    font-style: italic;
}

/* Reasons pagination nav */
.reasons-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}
.rnav-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    color: var(--color-accent-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.rnav-btn:hover {
    background: var(--color-accent-2);
    color: var(--color-white);
}
.rnav-btn:disabled { opacity: 0.3; cursor: default; }
.rnav-counter {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ==========================================
   SECTION 6: FUTURE (Premium Dream Cards)
   ========================================== */
#future {
    background: linear-gradient(180deg, #0d0614 0%, #1a0a18 30%, #1f0f1e 60%, #0d0614 100%);
}
.future-scroll {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Stars */
.future-stars {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.future-star {
    position: absolute;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.15; transform: scale(1); } 50% { opacity: 1; transform: scale(1.6); } }

/* Meteors */
.future-meteors {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.future-meteor {
    position: absolute;
    width: 2px; height: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
    opacity: 0;
    transform: rotate(-45deg);
    animation: futureMeteor 1.4s linear forwards;
}
@keyframes futureMeteor {
    0% { opacity: 0; transform: translate(0,0) rotate(-45deg); }
    10% { opacity: 0.8; }
    100% { opacity: 0; transform: translate(300px,300px) rotate(-45deg); }
}

/* Moon */
.future-moon {
    position: absolute;
    top: 8%; right: 12%;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #fff8ee, #f0deb8);
    box-shadow: 0 0 40px rgba(255,248,238,0.25), 0 0 80px rgba(255,248,238,0.1);
    pointer-events: none;
    opacity: 0.7;
    animation: moonGlow 6s ease-in-out infinite;
}
@keyframes moonGlow { 0%,100% { box-shadow: 0 0 40px rgba(255,248,238,0.2), 0 0 80px rgba(255,248,238,0.08); } 50% { box-shadow: 0 0 50px rgba(255,248,238,0.35), 0 0 100px rgba(255,248,238,0.15); } }

/* Particles */
.future-particles {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.future-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(232,207,200,0.4);
    animation: futureParticleDrift linear infinite;
}
@keyframes futureParticleDrift {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-80vh) translateX(30px); opacity: 0; }
}

/* Heading */
.future-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-accent-1);
    margin-bottom: 10px;
}
.future-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(0.8rem, 1.3vw, 0.92rem);
    color: rgba(232,207,200,0.65);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.75;
}

/* Dream Cards Grid */
.dream-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto 32px;
}
.dream-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
}
.dream-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.dream-card:hover .dream-icon {
    animation: dreamIconBounce 0.5s ease;
}
@keyframes dreamIconBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.dream-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.dream-body { flex: 1; min-width: 0; }
.dream-status {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(232,207,200,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}
.dream-body h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-accent-1);
    margin-bottom: 6px;
    font-weight: 700;
}
.dream-body p {
    font-size: 0.72rem;
    color: rgba(232,207,200,0.6);
    line-height: 1.55;
    font-style: italic;
    margin-bottom: 10px;
}

/* Dream Progress */
.dream-progress {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.dream-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent-1));
    border-radius: 4px;
    transition: width 1.5s ease;
}
.dream-progress-inf {
    background: linear-gradient(90deg, var(--color-accent-2), #FFD700);
}
.dream-progress-walk {
    background: linear-gradient(90deg, var(--color-accent-2), #FF69B4);
}
.dream-pct {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-accent-2);
}

/* Typewriter block */
.future-typewriter-block {
    max-width: 480px;
    margin: 0 auto 30px;
    text-align: center;
    min-height: 120px;
}
.future-tw-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-accent-1);
    margin-bottom: 12px;
    font-weight: 600;
}
.future-tw-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    color: rgba(232,207,200,0.8);
    line-height: 1.8;
    white-space: pre-wrap;
    display: inline;
}
.future-tw-cursor {
    display: inline-block;
    color: var(--color-accent-2);
    animation: cursorBlink 0.8s ease-in-out infinite;
    font-weight: 300;
    font-size: 1rem;
}
.future-tw-cursor.hidden { display: none; }

/* Final quote */
.future-final {
    text-align: center;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}
.future-final.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.future-final-heart {
    font-size: 2.5rem;
    margin-bottom: 12px;
    animation: heartBeat 1.5s ease-in-out infinite;
}
.future-final-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--color-accent-1);
    line-height: 1.8;
    font-weight: 600;
}

/* Love Journey progress bar */
.love-journey {
    max-width: 560px;
    margin: 0 auto 28px;
    text-align: center;
}
.lj-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-accent-1);
    margin-bottom: 16px;
    font-weight: 600;
}
.lj-track {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.lj-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 58px;
    transition: var(--transition);
}
.lj-step.done {
    background: rgba(201,123,132,0.12);
    border-color: rgba(201,123,132,0.25);
}
.lj-step.walking {
    background: rgba(255,105,180,0.1);
    border-color: rgba(255,105,180,0.25);
}
.lj-icon { font-size: 1rem; }
.lj-label {
    font-size: 0.6rem;
    color: rgba(232,207,200,0.6);
    white-space: nowrap;
}
.lj-step.done .lj-label { color: var(--color-accent-1); }
.lj-check {
    font-size: 0.7rem;
    color: var(--color-accent-2);
}
.lj-step.done .lj-check { color: #4CAF50; }
.lj-step.walking .lj-check { color: #FF69B4; animation: heartBeat 1.5s ease-in-out infinite; }

.lj-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}
.lj-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4CAF50, var(--color-accent-2), rgba(255,255,255,0.2));
    border-radius: 4px;
    transition: width 2s ease;
}

/* ==========================================
   SECTION 7: WISHES
   ========================================== */
#wishes {
    background: linear-gradient(135deg, var(--color-bg-2) 0%, var(--color-bg-1) 50%, var(--color-accent-1) 100%);
}
.balloons-container, .confetti-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.balloon {
    position: absolute;
    bottom: -120px;
    width: 45px; height: 58px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: balloonFloat linear infinite;
    opacity: 0.75;
}
.balloon::after {
    content: '';
    position: absolute;
    bottom: -35px; left: 50%;
    width: 1px; height: 35px;
    background: rgba(125,78,87,0.25);
}
@keyframes balloonFloat {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.75; }
    50% { transform: translateY(-50vh) translateX(25px) rotate(5deg); }
    100% { transform: translateY(-110vh) translateX(-15px) rotate(-5deg); opacity: 0; }
}
.confetti {
    position: absolute;
    top: -10px;
    width: 8px; height: 8px;
    animation: confettiFall linear infinite;
}
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.wishes-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--color-accent-3);
    margin-bottom: 28px;
}
.wishes-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 36px 32px;
}
.wishes-text {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.9;
    color: var(--color-text);
    font-style: italic;
}

/* ==========================================
   SECTION 8: SECRET (Button only)
   ========================================== */
#secret {
    background: var(--color-bg-1);
}
.btn-secret {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 44px;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(201,123,132,0.3);
}
.btn-secret:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(201,123,132,0.45);
}

/* ==========================================
   GRAND FINALE
   ========================================== */
.grand-finale {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.grand-finale.active { display: flex; }

.finale-bg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, #1a0a18 0%, #0a0510 100%);
    opacity: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Stars */
.finale-stars {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.finale-star {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: twinkle ease-in-out infinite;
}

/* Meteors */
.finale-meteors {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.finale-meteor {
    position: absolute;
    width: 2px; height: 70px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
    opacity: 0;
    transform: rotate(-45deg);
    animation: futureMeteor 1.4s linear forwards;
}

/* Particles */
.finale-particles {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.finale-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(232,207,200,0.5);
    animation: futureParticleDrift linear infinite;
}

/* Hearts */
.finale-hearts {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.finale-heart {
    position: absolute;
    bottom: -30px;
    opacity: 0;
    animation: finaleHeartRise 4s ease-out forwards;
}
@keyframes finaleHeartRise {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    15% { opacity: 0.7; transform: translateY(-10vh) scale(1); }
    100% { transform: translateY(-110vh) scale(0.3) rotate(20deg); opacity: 0; }
}

/* Confetti */
.finale-confetti {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.finale-confetti-piece {
    position: absolute;
    top: -10px;
    animation: confettiFall linear infinite;
}

/* Petals */
.finale-petals {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.finale-petal {
    position: absolute;
    width: 12px; height: 12px;
    opacity: 0;
    animation: floatPetal linear infinite;
}
.finale-petal::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50% 0 50% 0;
    background: linear-gradient(135deg, rgba(232,207,200,0.5), rgba(201,123,132,0.25));
}

/* Floating photos */
.finale-photos {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.finale-float-photo {
    position: absolute;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.15);
    opacity: 0;
}
.finale-float-photo .finale-fp-inner {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(201,123,132,0.3), rgba(125,78,87,0.3));
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    font-family: var(--font-display);
}

/* Content */
.finale-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Generic step text */
.ft-step {
    position: absolute;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    width: 90%;
    max-width: 600px;
}

.finale-text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--color-accent-1);
    line-height: 1.8;
    font-style: italic;
}

/* Step 3 lines */
.ft-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ft-line {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-accent-1);
    font-style: italic;
    opacity: 0;
}

/* Step 5 thanks */
.ft-thanks {
    font-size: clamp(1.2rem, 2.8vw, 1.8rem);
}
.ft-thanks-word {
    font-weight: 700;
    color: var(--color-white);
}
.ft-thanks-sub {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--color-accent-1);
    font-weight: 300;
}

/* Step 6 wedding */
.ft-wedding-frame {
    width: 280px;
    height: 360px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(201,123,132,0.25), 0 20px 60px rgba(0,0,0,0.4);
    border: 3px solid rgba(255,255,255,0.2);
    margin: 0 auto;
}
.ft-wedding-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.ft-wedding-ph {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(201,123,132,0.2), rgba(125,78,87,0.3));
    color: var(--color-accent-1);
    font-family: var(--font-display);
    font-size: 0.85rem;
}

/* Step 7 decision */
.ft-decision {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
}
.ft-decision-big {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--color-white);
    display: block;
    margin-top: 8px;
}

/* Step 9 choose */
.ft-choose {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
}
.ft-choose-last {
    color: var(--color-accent-2);
}

/* Step 11 final */
.ft-final-heart {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: heartBeat 1.5s ease-in-out infinite;
}
.ft-final-happy {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 14px;
    line-height: 1.3;
}
.ft-final-love {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--color-accent-1);
    font-style: italic;
    line-height: 1.8;
}

/* Step 12 hug */
.btn-hug {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 50px;
    background: linear-gradient(135deg, #FF4B6E, var(--color-accent-2), var(--color-accent-3));
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    box-shadow: 0 8px 40px rgba(255,75,110,0.35);
    animation: hugPulse 2s ease-in-out infinite;
    pointer-events: auto;
}
.btn-hug:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 50px rgba(255,75,110,0.5);
}
@keyframes hugPulse {
    0%,100% { box-shadow: 0 8px 40px rgba(255,75,110,0.35); }
    50% { box-shadow: 0 8px 60px rgba(255,75,110,0.55); }
}

/* Ending */
.ft-ending-text {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-accent-1);
    font-style: italic;
    margin-bottom: 16px;
    opacity: 0;
}
.ft-ending-final {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    opacity: 0;
    text-shadow: 0 0 40px rgba(201,123,132,0.4);
}

/* ==========================================
   SECTION 9: ENDING
   ========================================== */
#ending {
    background: linear-gradient(180deg, #0a0510 0%, #1a0a15 50%, #0d0512 100%);
}
.stars-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.star {
    position: absolute;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
}
.meteors-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.meteor {
    position: absolute;
    width: 2px; height: 80px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
    animation: meteorFall 1.5s linear forwards;
    opacity: 0;
    transform: rotate(-45deg);
}
@keyframes meteorFall {
    0% { opacity: 0; transform: translate(0,0) rotate(-45deg); }
    10% { opacity: 1; }
    100% { opacity: 0; transform: translate(400px,400px) rotate(-45deg); }
}
.ending-hearts {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 2;
}
.ending-heart {
    position: absolute;
    opacity: 0;
    animation: endingHeartRise 4s ease-out forwards;
}
@keyframes endingHeartRise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    30% { opacity: 0.7; transform: translateY(60vh) scale(1); }
    100% { transform: translateY(-20vh) scale(0.3); opacity: 0; }
}
.ending-inner { z-index: 5; }
.ending-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    color: var(--color-accent-1);
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(201,123,132,0.3);
}
.ending-text {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    color: rgba(232,207,200,0.7);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.9;
    font-style: italic;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    /* Mobile: nav at bottom center */
    #section-nav {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 18px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
        padding: 8px 14px;
    }
    #nav-dots { flex-direction: row; gap: 6px; }
    .nav-dot { width: 8px; height: 8px; }
    .nav-dot.active { width: 22px; height: 8px; }
    .nav-btn { width: 34px; height: 34px; }

    #music-player { bottom: 78px; left: 16px; }
    #music-toggle { width: 40px; height: 40px; }

    .btn-next-section { padding: 12px 24px; font-size: 0.85rem; margin-bottom: 70px; }

    .section-inner { padding: 20px 20px; }

    .hero-title { font-size: clamp(1.8rem, 5.5vw, 3rem); }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 28px; }

    .letter-card { padding: 28px 22px; max-height: 48vh; }
    .typewriter { font-size: 0.85rem; }

    .tl-entry { margin-bottom: 20px; }
    .tl-left { padding-right: 26px; }
    .tl-right { padding-left: 26px; }
    .tl-node { width: 36px; height: 36px; font-size: 15px; }
    .tl-left .tl-node { right: -18px; }
    .tl-right .tl-node { left: -18px; }
    .tl-card { padding: 16px 16px; }
    .tl-card h3 { font-size: 0.95rem; }
    .tl-card p { font-size: 0.78rem; }
    .tl-photo img { height: 110px; }
    .tl-counter { padding: 8px 14px; font-size: 0.72rem; }

    .gal-card { height: 220px; }
    .gal-arrow { width: 38px; height: 38px; }

    .reasons-page { grid-template-columns: 1fr 1fr; gap: 12px; }
    .reason-card { height: 110px; }
    .reason-card-front .reason-number { font-size: 1.6rem; }
    .reason-card-back p { font-size: 0.8rem; }

    .dream-grid { grid-template-columns: 1fr; gap: 14px; }
    .dream-card { padding: 16px; gap: 12px; }
    .dream-icon { font-size: 1.6rem; }
    .dream-body h3 { font-size: 0.95rem; }
    .dream-body p { font-size: 0.72rem; }
    .lj-step { min-width: 50px; padding: 6px 5px; }
    .lj-label { font-size: 0.55rem; }

    .wishes-card { padding: 28px 22px; }
    .wishes-text { font-size: 0.95rem; }

    .btn-secret { padding: 14px 32px; font-size: 1rem; }
    .btn-hug { padding: 16px 36px; font-size: 1.1rem; }
    .ft-wedding-frame { width: 220px; height: 280px; }
    .finale-text { font-size: clamp(0.95rem, 2.2vw, 1.3rem); }
    .ft-choose { font-size: clamp(1.2rem, 3vw, 2rem); }

    #cursor-glow { display: none; }
}

@media (max-width: 480px) {
    /* Timeline: full-width stacked on small screens */
    .tl-line { left: 18px; }
    .tl-entry, .tl-left, .tl-right {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .tl-left .tl-node, .tl-right .tl-node { left: -1px; right: auto; }
    .tl-node { width: 34px; height: 34px; font-size: 14px; }
    .tl-card { padding: 14px 14px; }
    .tl-card h3 { font-size: 0.9rem; }
    .tl-card p { font-size: 0.75rem; }
    .tl-photo img { height: 100px; }
    .tl-counters { flex-direction: column; align-items: center; }
    .tl-counter { width: 100%; max-width: 280px; justify-content: center; }
    .reasons-page { grid-template-columns: 1fr; }
    .reason-card { height: 100px; }
    .gal-card { height: 180px; }
    .future-heading { font-size: 1.5rem; }
    .future-moon { width: 40px; height: 40px; top: 5%; right: 8%; }
    .lj-track { gap: 4px; }
    .lj-step { min-width: 44px; padding: 5px 4px; }
    .lj-label { font-size: 0.5rem; }
}

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