/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --bg-dark: #1f0612;
    --bg-gradient-1: #2f0d1b;
    --bg-gradient-2: #16040c;

    --rose-primary: #e06a92;
    --rose-light: #f492b4;

    --gift-lid: #ce3669;
    --gift-body: #a51d4b;
    --gift-body-bottom: #841338;

    --gold-primary: #eeb54d;
    --gold-light: #f8cf74;
    --gold-dark: #c4912b;

    --text-main: #f9f5f6;
    --text-muted: rgba(249, 245, 246, 0.6);

    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);

    --font-serif: 'Cormorant Garamond', serif;
    --font-playfair: 'Playfair Display', serif;
    --font-garamond: 'EB Garamond', serif;
    --font-sans: 'Lato', sans-serif;
    --font-script: 'Dancing Script', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-serif);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* italic-serif is now defined near .title below — kept here for legacy compatibility */
.italic-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #e8748a;
}

.text-rose {
    color: var(--rose-light);
}

/* ==========================================================================
   Backgrounds & Effects
   ========================================================================== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    z-index: -3;
}

#particles-container,
#blurry-petals-container,
#flowers-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

#gift-stars-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blinking-star {
    position: absolute;
    color: #ffffff;
    text-shadow: 0 0 8px #ffffff, 0 0 15px rgba(255, 255, 255, 0.7);
    animation: starTwinkle infinite ease-in-out;
    opacity: 0;
    pointer-events: none;
}

@keyframes starTwinkle {

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

    50% {
        opacity: 0.95;
        transform: scale(1.15) rotate(35deg);
    }
}

#blurry-petals-container {
    z-index: -2;
}

.bg-dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(22, 4, 12, 0.55);
    backdrop-filter: blur(1.5px);
    pointer-events: none;
    z-index: -1.5;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.love-bomb-particle {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    font-size: var(--p-size);
    will-change: transform, opacity;
    animation: loveBombExplode var(--p-dur) cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes loveBombExplode {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0.95;
    }

    100% {
        transform: translate(var(--p-tx), var(--p-ty)) scale(var(--p-scale)) rotate(var(--p-rot));
        opacity: 0;
    }
}

.sparkle {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    animation: twinkle infinite alternate ease-in-out;
}

@keyframes twinkle {
    0% {
        opacity: 0.1;
        transform: scale(0.6);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.blurry-petal {
    position: absolute;
    border-radius: 50% 0 50% 50%;
    filter: blur(1.2px);
    opacity: 0;
    will-change: transform, opacity;
}

/* Petal floats in, swings lazily on the breeze, fades at ~65% */
@keyframes windDrift-early {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.7);
        opacity: 0;
    }

    8% {
        opacity: 0.5;
    }

    25% {
        transform: translate(calc(var(--drift-x) * 0.25 + 5vw), calc(var(--drift-y) * 0.18)) rotate(-40deg) scale(0.9);
    }

    50% {
        transform: translate(calc(var(--drift-x) * 0.5 - 6vw), calc(var(--drift-y) * 0.42)) rotate(45deg) scale(1.05);
        opacity: 0.4;
    }

    65% {
        opacity: 0;
    }

    100% {
        transform: translate(calc(var(--drift-x) * 1.1), var(--drift-y)) rotate(90deg) scale(0.75);
        opacity: 0;
    }
}

/* Petal rides the wind, swings wide left then right, fades at ~80% */
@keyframes windDrift-mid {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.7);
        opacity: 0;
    }

    8% {
        opacity: 0.55;
    }

    28% {
        transform: translate(calc(var(--drift-x) * 0.3 - 7vw), calc(var(--drift-y) * 0.2)) rotate(55deg) scale(0.95);
    }

    52% {
        transform: translate(calc(var(--drift-x) * 0.55 + 6vw), calc(var(--drift-y) * 0.45)) rotate(-35deg) scale(1.1);
        opacity: 0.5;
    }

    72% {
        transform: translate(calc(var(--drift-x) * 0.78 - 4vw), calc(var(--drift-y) * 0.65)) rotate(100deg) scale(0.9);
        opacity: 0.25;
    }

    80% {
        opacity: 0;
    }

    100% {
        transform: translate(var(--drift-x), var(--drift-y)) rotate(140deg) scale(0.7);
        opacity: 0;
    }
}

/* Petal lingers long, dramatic arcs, fades at ~85% */
@keyframes windDrift-late {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.65);
        opacity: 0;
    }

    8% {
        opacity: 0.55;
    }

    22% {
        transform: translate(calc(var(--drift-x) * 0.18 + 8vw), calc(var(--drift-y) * 0.12)) rotate(-60deg) scale(1);
    }

    45% {
        transform: translate(calc(var(--drift-x) * 0.42 - 7vw), calc(var(--drift-y) * 0.32)) rotate(70deg) scale(1.15);
        opacity: 0.5;
    }

    65% {
        transform: translate(calc(var(--drift-x) * 0.65 + 5vw), calc(var(--drift-y) * 0.55)) rotate(130deg) scale(1.05);
        opacity: 0.3;
    }

    85% {
        opacity: 0;
    }

    100% {
        transform: translate(var(--drift-x), var(--drift-y)) rotate(210deg) scale(0.7);
        opacity: 0;
    }
}

/* Petal does full lazy arc across the whole screen, fades at ~88% */
@keyframes windDrift-full {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.65);
        opacity: 0;
    }

    8% {
        opacity: 0.55;
    }

    20% {
        transform: translate(calc(var(--drift-x) * 0.2 - 8vw), calc(var(--drift-y) * 0.1)) rotate(45deg) scale(0.95);
    }

    42% {
        transform: translate(calc(var(--drift-x) * 0.45 + 8vw), calc(var(--drift-y) * 0.28)) rotate(-55deg) scale(1.15);
        opacity: 0.5;
    }

    62% {
        transform: translate(calc(var(--drift-x) * 0.68 - 5vw), calc(var(--drift-y) * 0.5)) rotate(115deg) scale(1.05);
        opacity: 0.4;
    }

    80% {
        transform: translate(calc(var(--drift-x) * 0.85 + 3vw), calc(var(--drift-y) * 0.72)) rotate(175deg) scale(0.9);
        opacity: 0.15;
    }

    88% {
        opacity: 0;
    }

    100% {
        transform: translate(var(--drift-x), var(--drift-y)) rotate(240deg) scale(0.75);
        opacity: 0;
    }
}

/* Reach-bottom variant A: swings wide, stays opaque all the way down, fades only at 95% */
@keyframes windDrift-reach-a {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.7);
        opacity: 0;
    }

    8% {
        opacity: 0.55;
    }

    25% {
        transform: translate(calc(var(--drift-x) * 0.22 + 7vw), calc(var(--drift-y) * 0.15)) rotate(-50deg) scale(0.95);
        opacity: 0.55;
    }

    50% {
        transform: translate(calc(var(--drift-x) * 0.48 - 8vw), calc(var(--drift-y) * 0.38)) rotate(60deg) scale(1.1);
        opacity: 0.5;
    }

    75% {
        transform: translate(calc(var(--drift-x) * 0.76 + 5vw), calc(var(--drift-y) * 0.66)) rotate(120deg) scale(1.0);
        opacity: 0.45;
    }

    95% {
        transform: translate(calc(var(--drift-x) * 0.95 - 2vw), calc(var(--drift-y) * 0.92)) rotate(180deg) scale(0.85);
        opacity: 0.3;
    }

    100% {
        transform: translate(var(--drift-x), var(--drift-y)) rotate(200deg) scale(0.75);
        opacity: 0;
    }
}

/* Reach-bottom variant B: gentle arc, stays visible, fades only at 95% */
@keyframes windDrift-reach-b {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.65);
        opacity: 0;
    }

    8% {
        opacity: 0.55;
    }

    22% {
        transform: translate(calc(var(--drift-x) * 0.2 - 6vw), calc(var(--drift-y) * 0.12)) rotate(40deg) scale(0.9);
        opacity: 0.55;
    }

    45% {
        transform: translate(calc(var(--drift-x) * 0.44 + 7vw), calc(var(--drift-y) * 0.32)) rotate(-45deg) scale(1.05);
        opacity: 0.5;
    }

    68% {
        transform: translate(calc(var(--drift-x) * 0.7 - 4vw), calc(var(--drift-y) * 0.56)) rotate(100deg) scale(1.15);
        opacity: 0.45;
    }

    88% {
        transform: translate(calc(var(--drift-x) * 0.9 + 2vw), calc(var(--drift-y) * 0.84)) rotate(160deg) scale(0.95);
        opacity: 0.35;
    }

    95% {
        opacity: 0.15;
    }

    100% {
        transform: translate(var(--drift-x), var(--drift-y)) rotate(220deg) scale(0.8);
        opacity: 0;
    }
}

.falling-flower {
    position: absolute;
    top: -50px;
    font-size: 24px;
    animation: fall linear forwards;
    opacity: 0.9;
    will-change: transform, opacity;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   Screen 1: Gift Box
   ========================================================================== */
#gift-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    background: radial-gradient(ellipse at center, rgba(47, 13, 27, 0.8) 0%, rgba(22, 4, 12, 1) 100%);
    transition: opacity 1.2s ease;
}

.gift-container {
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gift-container:hover {
    transform: scale(1.06);
}

.gift-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 172px;
    height: 150px;
    background: rgba(0, 0, 0, 0.7);
    filter: blur(28px);
    border-radius: 12px;
    z-index: -1;
    pointer-events: none;
}

.gift-scene {
    position: relative;
    animation: floatGift 3.2s ease-in-out infinite alternate;
    filter:
        drop-shadow(0 12px 24px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px rgba(244, 146, 180, 0.28)) drop-shadow(0 0 6px rgba(255, 232, 138, 0.18));
    will-change: transform;
}

@keyframes floatGift {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-7px);
    }
}

.gift-stack {
    position: relative;
    width: 156px;
    animation: idleShake 4s ease-in-out infinite;
}

@keyframes idleShake {

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

    87% {
        transform: rotate(-3.5deg) scale(1.02);
    }

    89% {
        transform: rotate(3.5deg) scale(1.02);
    }

    91% {
        transform: rotate(-4.5deg) scale(1.02);
    }

    93% {
        transform: rotate(4.5deg) scale(1.02);
    }

    95% {
        transform: rotate(-2.5deg) scale(1.01);
    }

    97% {
        transform: rotate(2.5deg) scale(1.01);
    }
}

.g-body {
    width: 156px;
    height: 104px;
    background: linear-gradient(135deg, #e04a6f 0%, #cc3359 40%, #b21e42 100%);
    border-radius: 0 0 12px 12px;
    position: relative;
    box-shadow:
        inset 0 2px 8px rgba(255, 255, 255, 0.15),
        inset 0 -4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1;
    will-change: transform, opacity;
}

.g-body::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 18px;
    height: 100%;
    background: linear-gradient(90deg, #d89614 0%, #fadb14 45%, #ffe066 50%, #fadb14 55%, #d89614 100%);
    z-index: 2;
}

.g-body::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 18px;
    background: linear-gradient(180deg, #d89614 0%, #fadb14 45%, #ffe066 50%, #fadb14 55%, #d89614 100%);
    z-index: 2;
}

.g-lid {
    position: absolute;
    top: -32px;
    left: -8px;
    width: 172px;
    height: 45px;
    background: linear-gradient(135deg, #e04a6f 0%, #cc3359 40%, #b21e42 100%);
    border-radius: 10px 10px 0 0;
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.2),
        0 5px 12px rgba(0, 0, 0, 0.45);
    transform-origin: center bottom;
    z-index: 3;
    will-change: transform, opacity;
}

.g-lid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 18px;
    height: 100%;
    background: linear-gradient(90deg, #d89614 0%, #fadb14 45%, #ffe066 50%, #fadb14 55%, #d89614 100%);
    z-index: 2;
}

.g-lid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 18px;
    background: linear-gradient(180deg, #d89614 0%, #fadb14 45%, #ffe066 50%, #fadb14 55%, #d89614 100%);
    z-index: 2;
}

.g-bow {
    position: absolute;
    top: -23px;
    left: 52%;
    transform: translateX(-50%);
    width: 64px;
    height: 32px;
    z-index: 5;
    will-change: transform, opacity;
}

.bow-loop {
    position: absolute;
    top: 0;
    width: 30px;
    height: 22px;
    background: linear-gradient(135deg, #ffe066 0%, #fadb14 45%, #d89614 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.bow-loop--left {
    left: -2px;
    transform: rotate(-18deg);
}

.bow-loop--right {
    right: -2px;
    transform: rotate(18deg);
}

.bow-knot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ffe066 0%, #fadb14 50%, #d89614 100%);
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.gift-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    filter: blur(4px);
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.tap-hint {
    margin-top: 42px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2.5px;
    text-transform: lowercase;
    color: rgba(238, 181, 77, 0.65);
    animation: pulseHint 2.8s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

.tap-spark {
    color: var(--gold-light);
    font-size: 13px;
    opacity: 0.85;
}

@keyframes pulseHint {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}

/* ==========================================================================
   Main Content Sections
   ========================================================================== */
#main-content {
    display: none;
    position: relative;
    z-index: 10;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.subtitle {
    font-family: var(--font-garamond);
    font-style: italic;
    font-size: 17px;
    font-weight: 400;
    color: rgba(200, 120, 140, 0.65);
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(200, 120, 140, 0.35);
}

.subtitle::before {
    content: '';
    font-style: normal;
}

.title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.5px;
    text-shadow: 0 0 15px rgba(244, 146, 180, 0.3), 0 0 4px rgba(255, 255, 255, 0.15);
}

.italic-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: rgba(232, 116, 138, 0.8);
    text-shadow: 0 0 15px rgba(232, 116, 138, 0.45), 0 0 4px rgba(232, 116, 138, 0.2);
}

.description {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    max-width: 480px;
    line-height: 2;
    margin: 20px auto;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.flower-icon {
    margin: 15px 0;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.flower-glow-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffeb99 0%, #ffa500 70%, rgba(255, 165, 0, 0) 100%);
    border-radius: 50%;
    filter: blur(0.8px) drop-shadow(0 0 3px #ffbe33);
    pointer-events: none;
    z-index: 2;
}

.spinning-flower {
    display: inline-block;
    font-size: 80px;
    animation: spinSlow 8s linear infinite;
    filter: drop-shadow(0 0 8px rgba(244, 146, 180, 0.95)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.95));
}

@keyframes spinSlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.flower-icon.large {
    font-size: 64px;
}

.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(249, 245, 246, 0.4);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 4px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(6px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* Letter Section — glass card box */
.letter-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 48px 44px;
    max-width: 640px;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.letter-text {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.45);
    max-width: 540px;
    margin: 28px auto 0;
    text-align: center;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    color: rgba(244, 146, 180, 0.75);
    margin-top: 28px;
    text-shadow: 0 0 12px rgba(244, 146, 180, 0.35);
}

/* Reasons Section specific */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 30px 20px;
    width: calc(33.333% - 14px);
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 146, 180, 0.3);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.card-desc {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.9;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.08);
}

.pulse-heart {
    font-size: 42px;
    margin-top: 40px;
    animation: heartPulse 1.5s infinite;
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* Animations Init (Hidden states) */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* White Flash Transition Overlay */
#white-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: opacity;
}

/* ============================
   flower-row
   ============================ */
.flower-row {
    font-size: 28px;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 8px rgba(244, 146, 180, 0.35));
}

/* ============================
   Secret Garden Section
   ============================ */
.garden-flowers {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    margin: 48px 0 20px;
    flex-wrap: wrap;
}

.garden-flower {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    animation: sway 2.5s ease-in-out infinite;
}

.garden-flower:nth-child(2) {
    animation-delay: 0.3s;
}

.garden-flower:nth-child(3) {
    animation-delay: 0.6s;
}

.garden-flower:nth-child(4) {
    animation-delay: 0.9s;
}

.garden-flower:nth-child(5) {
    animation-delay: 1.2s;
}

.garden-flower:nth-child(6) {
    animation-delay: 1.5s;
}

.garden-flower:nth-child(7) {
    animation-delay: 1.8s;
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-3deg);
        transform-origin: bottom center;
    }

    50% {
        transform: rotate(3deg);
        transform-origin: bottom center;
    }
}

.flower-emoji {
    font-size: 44px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(244, 146, 180, 0.55));
    transition: transform 0.3s ease;
}

.garden-flower:hover .flower-emoji {
    transform: scale(1.2);
}

.flower-stem {
    width: 2px;
    height: 110px;
    background: linear-gradient(180deg, #5a9a4a 0%, #3d6e30 100%);
    border-radius: 2px;
    margin-top: 2px;
}

.flower-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(40, 5, 25, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 80, 100, 0.25);
    border-radius: 8px;
    padding: 7px 12px;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.garden-flower:hover .flower-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.garden-hint {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 16px;
    letter-spacing: 0.18em;
    color: rgba(200, 120, 140, 0.7);
    margin-top: 16px;
}

/* ============================
   Photo Gallery Section
   ============================ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 620px;
    width: 100%;
    margin-top: 40px;
}

.photo-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.photo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 146, 180, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Placeholder — swap src on <img> when ready */
.photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(50, 10, 30, 0.6);
    border: 1px dashed rgba(200, 80, 100, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: grayscale(80%);
    cursor: pointer;
    position: relative;
}

/* To swap to real photo: replace .photo-placeholder with:
   <img class="photo-img" src="your-photo.jpg" alt="caption"> */
.photo-img,
.photo-video {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    filter: grayscale(100%);
    transition: filter 0.35s ease;
    display: block;
    will-change: filter;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.photo-card:hover .photo-placeholder,
.photo-card:hover .photo-img,
.photo-card:hover .photo-video {
    filter: grayscale(40%);
}

.photo-caption {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* ============================
   Closing / Finale extras
   ============================ */
.pulse-heart {
    font-size: 64px;
    margin-top: 36px;
    animation: heartPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(244, 100, 150, 0.5));
}

.footer-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 24px;
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* ============================
   Site Footer
   ============================ */
.site-footer {
    text-align: center;
    padding: 32px 20px;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.15em;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================
   Scroll indicator font fix
   ============================ */
.scroll-indicator p {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 680px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .photo-card {
        padding: 10px;
        gap: 8px;
        border-radius: 18px;
    }

    .photo-img,
    .photo-video {
        border-radius: 10px;
    }

    .garden-flowers {
        gap: 14px;
    }

    .letter-card {
        padding: 32px 24px;
    }

    .glass-card {
        width: calc(50% - 10px);
        min-width: 130px;
    }

    .letter-card,
    .glass-card,
    .photo-card {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        background: rgba(30, 5, 18, 0.45);
    }

    .bg-dark-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}