@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Lora:ital,wght@0,400;1,400&family=Noto+Serif+Telugu:wght@400;700&family=Noto+Sans+Devanagari:wght@400;700&family=Caveat:wght@700&display=swap');

:root {
    --rose: #E91E8C;
    --violet: #7B2FBE;
    --blush: #F9A8D4;
    --mauve: #C084FC;
    --bg-deep: #0D0618;
    --bg-mid: #1A0A2E;
    --bg-card: rgba(26, 10, 46, 0.7);
    --text-cream: #FFF0F5;
    --text-muted: #C4A8C8;
    --glow-rose: rgba(233, 30, 140, 0.4);
    --glow-violet: rgba(123, 47, 190, 0.4);
    --gradient-main: linear-gradient(135deg, var(--rose), var(--violet));
    --gradient-soft: linear-gradient(135deg, rgba(233,30,140,0.15), rgba(123,47,190,0.15));
}

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

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-deep);
    color: var(--text-cream);
    overflow-x: hidden;
}

/* ── Museum Plaque ── */
.museum-plaque {
    background: linear-gradient(135deg, #d4af37, #aa771c, #d4af37);
    padding: 2px;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.8);
    display: inline-block;
}
.museum-plaque-inner {
    background: #111;
    color: #eeddcc;
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: 'Lora', serif;
    text-align: center;
}
.museum-plaque-title {
    font-family: 'Playfair Display', serif;
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ── Love Journal & Scrapbook Styling ── */
.handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 400;
}

.scrapbook-card {
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    background-color: #fdf5e6;
    color: #2c1e16 !important;
    position: relative;
    padding: 2.5rem 1.8rem 1.8rem !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
}

.washi-tape {
    position: absolute;
    width: 80px;
    height: 25px;
    background: rgba(233, 30, 140, 0.3);
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 5;
    opacity: 0.8;
}

.photo-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(92, 46, 11, 0.6);
    z-index: 4;
}
.corner-tl { top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner-br { bottom: 0; right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ── Atmospheric Spotlight Effect ── */
.node-content.spotlight-active {
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 220, 150, 0.15),
        transparent 60%
    ), url('https://www.transparenttextures.com/patterns/aged-paper.png'), #fdf5e6;
    transition: background 0.1s ease; /* Faster response */
}

.hidden-ink {
    opacity: 0;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--rose);
    transition: opacity 0.5s ease;
    margin-top: 1rem;
    display: block;
    text-align: center;
    font-style: italic;
}

.node-content:hover .hidden-ink {
    opacity: 0.6; /* Fallback for touch/non-spotlight */
}

/* Spotlit hidden ink reveal */
.spotlight-reveal {
    opacity: 1 !important;
    color: var(--rose) !important;
    text-shadow: 0 0 10px var(--glow-rose);
}

/* ── Wax Seal for Unsealing Mechanic ── */
.seal-trigger {
    width: 45px;
    height: 45px;
    background: #a31818;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    box-shadow: inset 0 0 10px #400, 0 3px 10px rgba(0,0,0,0.4);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s;
}
.seal-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: inset 0 0 10px #400, 0 5px 15px var(--glow-rose);
}
.seal-trigger::after {
    content: '♥';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #500;
    font-size: 1.4rem;
}

/* ── Dynamic Timeline Line ── */
.timeline-line.mountain-sea {
    width: 4px;
    background: linear-gradient(to bottom, 
        #8b4513 0%, /* Mountain Earthy */
        #5c2e0b 20%,
        var(--rose) 40%,
        var(--violet) 70%,
        #00d4ff 100% /* Sea Blue */
    );
    filter: drop-shadow(0 0 8px var(--glow-rose));
}

/* ── Thematic Card Adjustments ── */
.node.left .node-content { 
    border-left: 4px solid #8b4513; /* Mountain Rooted */
    box-shadow: -10px 0 20px rgba(139, 69, 19, 0.1);
}
.node.right .node-content { 
    border-right: 4px solid #00d4ff; /* Sea Fluid */
    box-shadow: 10px 0 20px rgba(0, 212, 255, 0.1);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-main);
    z-index: 99999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--rose);
}

/* Music Toggle */
#music-toggle {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--mauve);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    box-shadow: 0 0 15px var(--glow-violet);
}
#music-toggle:hover { transform: scale(1.1); box-shadow: 0 0 25px var(--glow-rose); }

/* Telugu & Devanagari font helpers */
.telugu { font-family: 'Noto Serif Telugu', serif; }
.devanagari { font-family: 'Noto Sans Devanagari', sans-serif; }
.romantic { font-family: 'Playfair Display', serif; font-style: italic; }

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }
.hidden { display: none !important; }

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

/* ── Launch Screen ── */
#launch-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1.2s ease;
}
#launch-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
#launch-slideshow {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}
.launch-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.35) saturate(0.6);
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.05);
    animation: slowZoom 15s linear forwards;
}
.launch-slide.active {
    opacity: 1;
}
@keyframes slowZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.15); }
}
#launch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,6,24,0.3) 0%, rgba(233,30,140,0.12) 50%, rgba(13,6,24,0.7) 100%);
}
.launch-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1.5s ease forwards;
}
.launch-her-name {
    font-family: 'Noto Serif Telugu', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--blush);
    letter-spacing: 0.1em;
    text-shadow: 0 0 40px var(--rose), 0 0 80px var(--glow-rose);
    margin-bottom: 0.5rem;
}
.launch-subtitle {
    font-family: 'Noto Serif Telugu', serif;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--mauve);
    font-style: italic;
    margin-bottom: 2.5rem;
    opacity: 0.85;
}
.launch-his-watermark {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,240,245,0.3);
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
}
#btn-launch {
    padding: 0.9rem 2.8rem;
    font-size: 1.1rem;
    font-family: 'Noto Serif Telugu', serif;
    background: transparent;
    color: var(--blush);
    border: 1px solid var(--rose);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.4s;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px var(--glow-rose), inset 0 0 20px rgba(233,30,140,0.05);
}
#btn-launch:hover {
    background: var(--rose);
    color: #fff;
    box-shadow: 0 0 40px var(--rose);
    transform: scale(1.04);
}

/* ── Main Content ── */
#main-content { position: relative; z-index: 1; }

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
}

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

/* ── Section 1: Entrance ── */
#entrance { background: radial-gradient(ellipse at center, rgba(123,47,190,0.1) 0%, transparent 70%); }

.mountain-sea-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 3.5rem;
}
.icon-mountain { animation: slideFromLeft 1.5s ease forwards; opacity: 0; }
.icon-center   { animation: fadeIn 2s ease forwards 1.8s; opacity: 0; font-size: 2rem; }
.icon-sea      { animation: slideFromRight 1.5s ease forwards; opacity: 0; }

@keyframes slideFromLeft  { from { transform: translateX(-80px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideFromRight { from { transform: translateX(80px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn         { to { opacity: 1; } }
@keyframes fadeInUp       { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.entrance-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.entrance-trio { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 2rem; }
.entrance-trio span { font-size: clamp(0.9rem, 2vw, 1.1rem); color: var(--text-muted); font-style: italic; }
.entrance-trio .hindi { font-family: 'Noto Sans Devanagari', sans-serif; }
.entrance-trio .telugu { font-family: 'Noto Serif Telugu', serif; }

.entrance-subline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--blush);
    opacity: 0;
    animation: fadeIn 2s ease forwards 3s;
}
.scroll-hint {
    margin-top: 4rem;
    opacity: 0;
    animation: fadeIn 2s ease forwards 4s;
    color: var(--mauve);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
}
.petal-drift { margin-top: 0.5rem; font-size: 1.5rem; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ── Section 2: Timeline ── */
#timeline-section { padding: 8rem 0; }
.timeline-container {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}
.timeline-line {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, var(--rose), var(--violet));
    box-shadow: 0 0 12px var(--glow-rose);
    z-index: 1;
}
.walkers {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.walker-img {
    width: 56px; height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--rose));
    animation: floatAnim 3s ease-in-out infinite;
}
@keyframes floatAnim { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.timeline-nodes { display: flex; flex-direction: column; gap: 18vh; padding: 8vh 0; position: relative; z-index: 2; }

.node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}
.node-content {
    width: 44%;
    background: var(--bg-card);
    border: 1px solid rgba(233,30,140,0.2);
    padding: 1.8rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s ease;
}
.node-content:hover {
    border-color: var(--rose);
    box-shadow: 0 0 25px var(--glow-rose);
    transform: scale(1.03);
}
.node.left .node-content { text-align: right; }
.node.right .node-content { text-align: left; margin-left: auto; }
.node-point {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 18px; height: 18px;
    background: var(--bg-deep);
    border: 2px solid var(--rose);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--rose);
    z-index: 2;
}
.node h3 { color: var(--rose); font-size: 1.3rem; margin-bottom: 0.3rem; }
.node .node-telugu { font-family: 'Noto Serif Telugu', serif; font-size: 0.9rem; color: var(--mauve); margin-bottom: 0.5rem; }
.node p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.4rem; }

/* Timeline Node Thumbnails (Collage Effect) */
.node-thumbnails {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.thumb-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 2px;
    border: 4px solid #fff;
    border-bottom-width: 12px; /* Polaroid style */
    box-shadow: 0 6px 15px rgba(0,0,0,0.7);
    transition: transform 0.4s, box-shadow 0.4s;
    filter: sepia(30%) contrast(1.1);
}
.node-content:hover .thumb-img {
    transform: scale(1.15) rotate(0deg) !important;
    box-shadow: 0 10px 25px rgba(233,30,140,0.5);
    z-index: 2;
}

/* ── Section 3: Opposite Shores ── */
#opposite-shores {
    background: radial-gradient(ellipse at center, rgba(233,30,140,0.07) 0%, transparent 70%);
}
.shores-heading { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0.8rem; }
.shores-subline {
    font-family: 'Noto Serif Telugu', serif;
    color: var(--mauve);
    font-size: 1rem;
    margin-bottom: 3rem;
    font-style: italic;
}
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.2rem 2rem;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
}
.contrast-grid .side-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rose);
    text-align: center;
    margin-bottom: 0.5rem;
}
.contrast-grid .side-label.her { color: var(--rose); }
.contrast-grid .side-label.him { color: var(--violet); }
.contrast-item-her, .contrast-item-him {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    border: 1px solid rgba(233,30,140,0.15);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}
.contrast-item-her { text-align: right; border-left: none; }
.contrast-item-him { text-align: left; border-right: none; }
.contrast-item-her:hover { border-color: var(--rose); box-shadow: 0 0 15px var(--glow-rose); }
.contrast-item-him:hover { border-color: var(--violet); box-shadow: 0 0 15px var(--glow-violet); }
.contrast-divider { color: var(--mauve); font-size: 1.2rem; text-align: center; }

/* ── Section 3.5: Horizontal Gallery ── */
#her-gallery {
    padding: 4rem 0;
    background: var(--bg-mid);
    overflow: hidden;
    position: relative;
    /* We don't want min-height: 100vh here, it will be handled by ScrollTrigger pinned state */
    min-height: auto;
}
.gallery-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.gallery-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text-muted);
    opacity: 0.2;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 1;
}
.gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.gallery-track {
    display: flex;
    gap: 2vw;
    padding: 0 50vw 0 10vw; /* Start with an offset, end with a large pad to allow scroll */
    width: max-content;
}
.gallery-item {
    flex: 0 0 auto;
    width: 320px;
    height: 480px;
    border-radius: 12px;
    background: rgba(13,6,24,0.6);
    padding: 15px; /* card effect */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(233,30,140,0.2);
    position: relative;
    transform-origin: center center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}
.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(15%) sepia(20%);
    transition: filter 0.6s, transform 0.6s;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}
.gallery-item:hover img {
    filter: grayscale(0%) sepia(0%);
    transform: scale(1.08) translateZ(20px);
}
.gallery-item:hover {
    transform: perspective(800px) rotateY(-5deg);
    box-shadow: -10px 15px 40px rgba(233,30,140,0.3);
}

/* ── The Ledger (Performance Review) ── */
.ledger-book {
    display: flex;
    background: #fdf5e6;
    border-radius: 4px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.1), 0 20px 50px rgba(0,0,0,0.5);
    color: #2c1e16;
    transform: perspective(1000px) rotateX(10deg);
    position: relative;
    padding: 1rem 0;
    font-family: 'Lora', serif;
    transition: transform 0.5s ease;
}
.ledger-book:hover {
    transform: perspective(1000px) rotateX(0deg);
}
.ledger-binding {
    width: 30px;
    background: linear-gradient(to right, #8b4513, #5c2e0b, #8b4513);
    box-shadow: inset 3px 0 8px rgba(0,0,0,0.6);
    margin: -1rem 1rem;
    z-index: 2;
    border-radius: 2px;
}
.ledger-page {
    flex: 1;
    padding: 2rem;
    position: relative;
    background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(0,0,0,0.05) 32px);
    line-height: 32px;
}
.ledger-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    border-bottom: 2px solid #8b4513;
    margin-bottom: 1.5rem;
    color: #5c2e0b;
}
.ledger-list {
    list-style: none;
    text-align: left;
    font-size: 1.05rem;
}
.ledger-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    position: relative;
}
.ink-tick, .ink-heart, .ink-edit {
    font-family: 'Caveat', cursive, sans-serif;
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.5rem;
    transform: rotate(-10deg);
}
.ink-edit { font-size: 1.2rem; margin-left: 1rem;}
.crossed-out {
    text-decoration: line-through;
    text-decoration-color: #d32f2f;
    text-decoration-thickness: 3px;
    opacity: 0.8;
}

/* ── The Bribes Vault ── */
.bribes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}
.bribe-card {
    width: 100%;
    height: 320px;
    cursor: pointer;
}
.bribe-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.bribe-card.flipped .bribe-inner {
    transform: rotateY(180deg);
}
.bribe-front, .bribe-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.bribe-front {
    background: radial-gradient(circle at center, #720000 0%, #300 100%);
    color: #d4af37;
    border: 2px solid #d4af37;
}
.wax-seal {
    width: 70px;
    height: 70px;
    background: #a31818;
    border-radius: 50%;
    box-shadow: inset 0 0 15px #400, 0 5px 15px rgba(0,0,0,0.6);
    margin-bottom: 1.5rem;
    position: relative;
}
.wax-seal::after {
    content: "A";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    color: #500;
    font-size: 2rem;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.15);
}
.bribe-back {
    background: #fdf5e6;
    color: #2c1e16;
    transform: rotateY(180deg);
    border: 2px solid #d4af37;
    text-align: center;
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
}
.bribe-back h4 {
    font-family: 'Playfair Display', serif;
    color: #8b0000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 0.5rem;
}
.bribe-back p {
    font-size: 1.05rem;
    line-height: 1.5;
}

/* ── Section 4: Star Map ── */
#star-map {
    background: radial-gradient(ellipse at center, rgba(123,47,190,0.1) 0%, transparent 70%);
}
.map-frame {
    margin: 2rem auto;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 2px solid var(--violet);
    box-shadow: 0 0 40px var(--glow-violet), inset 0 0 40px rgba(13,6,24,0.8);
    overflow: hidden;
    position: relative;
    background: #000;
}
#sky-canvas { width: 100%; height: 100%; }

.map-location {
    font-family: 'Noto Serif Telugu', serif;
    font-size: 1rem;
    color: var(--mauve);
    margin-top: 0.5rem;
}
.map-caption-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.95rem;
    color: var(--blush);
    margin-top: 0.4rem;
    font-style: italic;
}
.map-caption-en {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ── Section 5: Proposal ── */
#proposal {
    background: radial-gradient(ellipse at center, rgba(233,30,140,0.08) 0%, transparent 70%);
}
.proposal-letter {
    max-width: 680px;
    margin: 0 auto 3rem auto;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid rgba(233,30,140,0.2);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px var(--glow-rose);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    line-height: 2;
}
.proposal-letter .salutation {
    font-family: 'Noto Serif Telugu', serif;
    font-size: 1.6rem;
    color: var(--rose);
    margin-bottom: 1.2rem;
    display: block;
}
.proposal-letter .line-telugu { font-family: 'Noto Serif Telugu', serif; color: var(--blush); }
.proposal-letter .line-hindi  { font-family: 'Noto Sans Devanagari', sans-serif; color: var(--mauve); font-style: normal; }

.big-question {
    text-align: center;
    margin: 2rem 0 1rem;
}
.big-question .q-telugu {
    font-family: 'Noto Serif Telugu', serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--rose);
    display: block;
    text-shadow: 0 0 20px var(--glow-rose);
    margin-bottom: 0.6rem;
}
.big-question .q-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--mauve);
    display: block;
    margin-bottom: 0.6rem;
}
.big-question .q-english {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    color: var(--blush);
    display: block;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-height: 160px;
    position: relative;
    margin-top: 2.5rem;
}
.btn {
    padding: 1rem 3rem;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn.yes {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 0 25px var(--glow-rose);
    animation: heartbeat 1.8s ease-in-out infinite;
}
@keyframes heartbeat {
    0%,100% { box-shadow: 0 0 25px var(--glow-rose); }
    50% { box-shadow: 0 0 45px var(--rose), 0 0 80px var(--glow-rose); }
}
.btn.yes:hover { transform: scale(1.08); }
.btn.no {
    background: transparent;
    color: var(--text-cream);
    border: 1px solid rgba(255,240,245,0.3);
    position: relative;
}

#taunt-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 6, 24, 0.9);
    border: 1px solid var(--rose);
    color: var(--blush);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 0 15px var(--glow-rose);
    font-family: 'Playfair Display', serif;
}

/* Broken Heart Stages */
.broken-heart-btn {
    border-radius: 10px !important;
    background: var(--bg-card) !important;
    border: 2px solid var(--rose) !important;
    color: #fff !important;
    transition: clip-path 0.2s ease, transform 0.2s ease, background 0.3s !important;
}
.crack-0 { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.crack-1 { clip-path: polygon(0 5%, 45% 0, 50% 15%, 55% 0, 100% 5%, 95% 100%, 5% 95%); }
.crack-2 { clip-path: polygon(5% 10%, 40% 5%, 50% 25%, 60% 0, 90% 15%, 100% 90%, 60% 85%, 50% 100%, 40% 80%, 0 95%); }
.crack-3 { clip-path: polygon(10% 20%, 35% 15%, 50% 40%, 65% 10%, 85% 25%, 95% 85%, 60% 75%, 50% 90%, 40% 70%, 5% 85%); background: rgba(192, 21, 90, 0.4) !important;}
.crack-4 { clip-path: polygon(15% 30%, 30% 25%, 50% 55%, 70% 20%, 80% 35%, 90% 75%, 60% 65%, 50% 80%, 40% 60%, 10% 75%); background: rgba(144, 16, 32, 0.6) !important;}
.crack-5 { clip-path: polygon(20% 40%, 25% 35%, 50% 70%, 75% 30%, 75% 45%, 85% 65%, 60% 55%, 50% 70%, 40% 50%, 15% 65%); background: #000 !important; color: #f00 !important; border-color: #f00 !important;}

body.rewinding {
    animation: rewindTint 2s ease-in-out;
}
@keyframes rewindTint {
    0% { filter: hue-rotate(0deg) sepia(0%); }
    50% { filter: hue-rotate(-50deg) sepia(80%) saturate(200%); }
    100% { filter: hue-rotate(0deg) sepia(0%); }
}

/* ── Finale ── */
#finale {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    z-index: 100; overflow: hidden;
}
#finale.hidden { display: none; }
.finale-bg {
    position: absolute; inset: 0;
    background-image: url('photos/lavanya_avinash_2026_02_16.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) saturate(0.8);
}
.finale-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,6,24,0.4) 0%, rgba(123,47,190,0.2) 100%);
}
.finale-text {
    position: relative; z-index: 2;
    text-align: center; padding: 2rem;
}
.finale-text .f-telugu {
    font-family: 'Noto Serif Telugu', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--rose);
    text-shadow: 0 0 30px var(--rose);
    margin-bottom: 0.5rem;
    display: block;
}
.finale-text .f-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--mauve);
    display: block;
    margin-bottom: 1.5rem;
}
.finale-text .f-english {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--blush);
    max-width: 600px;
    line-height: 1.8;
    display: block;
}

/* ── Modal ── */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13,6,24,0.92);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}
.modal.hidden { opacity: 0; pointer-events: none; display: none !important; }
.modal-content {
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    background-color: #fdf5e6;
    color: #2c1e16 !important;
    backdrop-filter: blur(20px);
    width: 90%; max-width: 860px; max-height: 85vh;
    border: 1px solid rgba(233,30,140,0.25);
    box-shadow: 0 0 60px var(--glow-rose);
    border-radius: 20px;
    position: relative; padding: 2.5rem; overflow-y: auto;
}
.modal-content h3 { color: #8b0000 !important; }
.modal-content .modal-telugu { color: #5c2e0b !important; }
.modal-content .modal-text { color: #2c1e16 !important; font-size: 1.4rem; }
.close-modal {
    position: absolute; top: 1rem; right: 1.5rem;
    font-size: 2.5rem; color: var(--rose); cursor: pointer;
    transition: transform 0.3s;
    line-height: 1;
}
.close-modal:hover { transform: rotate(90deg); }
.modal-header h3 {
    font-size: 2rem;
    color: var(--rose);
    text-align: center;
    margin-bottom: 0.4rem;
}
.modal-header .modal-telugu {
    font-family: 'Noto Serif Telugu', serif;
    color: var(--mauve);
    font-size: 1.1rem;
    text-align: center;
    display: block;
    margin-bottom: 1.5rem;
}
.modal-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
}
.modal-gallery img {
    flex: 0 0 auto;
    width: 280px; height: 380px;
    object-fit: contain;
    background: rgba(13,6,24,0.6);
    border-radius: 12px;
    padding: 10px; /* card effect */
    scroll-snap-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
    transition: transform 0.4s;
    border: 1px solid rgba(233,30,140,0.2);
}
.modal-gallery img:only-child {
    margin: 0 auto;
}
.modal-gallery img:hover { transform: scale(1.04); }
.modal-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* ── Restart Overlay ── */
#restart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-deep); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease;
}
#restart-overlay.hidden { opacity: 0; pointer-events: none; }
.glitch-text {
    color: var(--rose); font-family: 'Noto Serif Telugu', serif;
    font-size: 1.4rem; text-align: center; max-width: 80%; line-height: 2;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    /* General Spacing */
    .section { padding: 4rem 1.5rem; }
    .content { width: 100%; }

    /* Timeline */
    .timeline-container { padding: 0; }
    .timeline-line { left: 30px; transform: none; }
    .walkers { left: 30px; transform: translateX(-50%); }
    .timeline-nodes { gap: 8vh; padding: 4vh 0; }
    .node { flex-direction: column; align-items: flex-start; }
    .node-point { left: 30px; transform: translateX(-50%); }
    .node-content { 
        width: calc(100% - 70px) !important; 
        margin-left: 70px !important; 
        padding: 1.2rem;
        text-align: left !important;
    }
    .node.left .node-content, .node.right .node-content {
        margin-left: 70px;
        text-align: left;
    }

    /* Ledger Book */
    .ledger-book { flex-direction: column; transform: none; }
    .ledger-book:hover { transform: none; }
    .ledger-binding { 
        width: auto; height: 20px; 
        margin: 0 1rem; 
        background: linear-gradient(to bottom, #8b4513, #5c2e0b, #8b4513);
        box-shadow: inset 0 3px 8px rgba(0,0,0,0.6);
    }
    .ledger-page { padding: 1.5rem; }
    .ledger-list li {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .ledger-list li span:first-child {
        flex: 1;
    }
    .ink-tick, .ink-heart, .ink-edit {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    /* Contrast Grid */
    .contrast-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 1.2rem 0.8rem; 
    }
    .contrast-divider, .contrast-grid > div:nth-child(3n+2) { 
        display: none; 
    }
    .contrast-item-her, .contrast-item-him { 
        text-align: center; 
        border: 1px solid rgba(233,30,140,0.15);
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }
    .side-label { margin-top: 0; font-size: 1.1rem !important; }

    /* Horizontal Gallery */
    .gallery-item { width: 260px; height: 380px; }

    /* Proposal Letter & Buttons */
    .proposal-letter { padding: 1.5rem; font-size: 1.05rem; }
    .button-container { flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; min-height: auto; }
    .btn { padding: 1rem 2rem; width: 80%; max-width: 300px; }
    
    /* Star Map */
    .map-frame { width: 260px; height: 260px; }

    /* Emojis */
    .mountain-sea-anim { font-size: 2.5rem; }
    
    /* Modal */
    .modal-content { padding: 1.5rem; width: 95%; max-height: 90vh; }
    .modal-gallery img { width: 220px; height: 300px; }
}
