
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
    --bg: #240d20;
    --pink: #f3a8c9;
    --rose: #d875a6;
    --gold: #e9c58b;
    --cream: #fff1f4;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
}

button {
    font: inherit;
}

.hidden {
    display: none !important;
}

.screen {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 20px;
    text-align: center;
}

.intro-screen {
    background:
        radial-gradient(ellipse at 50% 42%, #612448 0%, transparent 48%),
        linear-gradient(145deg, #240d20, #35112c 55%, #1e0a1d);
}

.intro-content {
    width: 100%;
    max-width: 720px;
    animation: introReveal 1.2s ease both;
}

.tiny-label,
.nav-note {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 4px;
    line-height: 1.8;
}

.hero-heart {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 30px auto 24px;
    border: 1px solid #e9c58b75;
    border-radius: 50%;
    color: var(--pink);
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    box-shadow: 0 0 45px #f3a8c91a;
    animation: heartPulse 2.5s ease-in-out infinite;
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    line-height: 1.8;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
}

.intro-content h1,
.birthday-hero h1 {
    margin: 18px 0;
    font-size: clamp(43px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -1.5px;
}

h1 span {
    color: var(--pink);
    font-style: italic;
}

.intro-text,
.main-subtitle {
    max-width: 440px;
    margin: 22px auto;
    color: #e8cddc;
    font-size: 14px;
    line-height: 1.9;
}

.premium-button {
    min-height: 54px;
    max-width: 100%;
    margin-top: 20px;
    padding: 15px 25px;
    border: 1px solid #f5d6a6;
    border-radius: 999px;
    background: linear-gradient(135deg, #f0c994, #dba6b8);
    color: #341326;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 8px 35px #df91b329;
    transition: transform 0.25s, box-shadow 0.25s;
}

.premium-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 38px #df91b34a;
}

.premium-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 5px;
}

.audio-status {
    min-height: 24px;
    margin-top: 17px;
    color: #d7b9cb;
    font-size: 11px;
    line-height: 1.7;
}

.loading-screen {
    flex-direction: column;
    background:
        radial-gradient(ellipse at center, #612448, #240d20 65%);
    animation: introReveal 0.5s ease both;
}

.loading-heart {
    color: var(--pink);
    font-size: 48px;
    animation: heartPulse 0.8s ease-in-out infinite;
}

.loading-screen h2 {
    margin: 10px 0;
    font-size: clamp(30px, 6vw, 46px);
}

.loader-track {
    width: min(270px, 75vw);
    height: 3px;
    margin-top: 20px;
    overflow: hidden;
    background: #ffffff20;
    border-radius: 10px;
}

.loader-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--rose), var(--gold));
    transform-origin: left;
    animation: loadingBar 1.8s ease-in-out both;
}

.loading-caption {
    color: #d7b9cb;
    font-size: 12px;
    line-height: 1.8;
}

.ambient-glow {
    position: fixed;
    z-index: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    pointer-events: none;
}

.glow-one {
    top: -100px;
    left: -100px;
    background: #ff68b3;
}

.glow-two {
    right: -100px;
    bottom: -100px;
    background: #b17cff;
}

.main-page {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    animation: introReveal 1s ease both;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 30px;
}

.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
}

.brand span,
footer span {
    color: var(--pink);
}

.birthday-hero {
    width: min(100% - 32px, 780px);
    margin: 45px auto 80px;
    padding: clamp(24px, 5vw, 60px);
    border: 1px solid #e9c58b42;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff0c, #ffffff03);
    box-shadow: 0 30px 90px #00000020;
    text-align: center;
    backdrop-filter: blur(12px);
}

.birthday-hero h1 {
    font-size: clamp(42px, 8vw, 76px);
}

.cake {
    margin: 30px 0 12px;
    font-size: clamp(58px, 10vw, 86px);
    animation: cakeFloat 3s ease-in-out infinite;
}

.gold-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    width: min(260px, 80%);
    margin: 30px auto;
    color: var(--gold);
}

.gold-divider::before,
.gold-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9c58b99);
}

.gold-divider::after {
    background: linear-gradient(90deg, #e9c58b99, transparent);
}

.love-message {
    max-width: 500px;
    margin: 0 auto;
    color: #f0dce7;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(19px, 3vw, 24px);
    line-height: 1.8;
}

.surprise-message {
    max-width: 500px;
    margin: 30px auto 0;
    padding: 26px 18px;
    border: 1px solid #e9c58b55;
    border-radius: 20px;
    background: #ffffff08;
    animation: introReveal 0.7s ease both;
}

.message-heart {
    color: var(--pink);
    font-size: 28px;
}

.surprise-message h2 {
    color: var(--pink);
    font-size: clamp(25px, 5vw, 36px);
}

.surprise-message p {
    color: #f0dce7;
    font-size: 14px;
    line-height: 1.9;
}

footer {
    padding: 20px;
    color: #c7a9bd;
    font-size: 12px;
    text-align: center;
}

.floating-heart {
    position: fixed;
    bottom: -40px;
    z-index: 5;
    pointer-events: none;
    animation: heartFloat 5s linear forwards;
}

@keyframes introReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes cakeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes loadingBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes heartFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    15% { opacity: 0.8; }
    100% {
        transform: translateY(-110vh) rotate(25deg);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 24px 17px;
    }

    .tiny-label {
        letter-spacing: 2.5px;
    }

    .intro-content h1 {
        font-size: clamp(39px, 11vw, 56px);
    }

    .top-nav {
        padding: 20px 18px;
    }

    .nav-note {
        font-size: 8px;
        letter-spacing: 1.5px;
        text-align: right;
    }

    .birthday-hero {
        margin-top: 28px;
        padding: 32px 20px;
        border-radius: 22px;
    }

    .premium-button {
        padding: 14px 18px;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .premium-button {
        transition: none;
    }
}

/* ===== PREMIUM ROMANTIC PHOTO GALLERY ===== */

.gallery-section {
    width: min(1100px, 92%);
    margin: 80px auto;
    padding: 55px 25px;
    text-align: center;
    position: relative;
}

.section-label {
    color: #e9c58b;
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.gallery-section h2 {
    color: #fff0f5;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 500;
    margin: 0 0 15px;
}

.gallery-section h2 span {
    color: #e9c58b;
    font-style: italic;
}

.gallery-intro {
    color: #d9b8c6;
    font-size: 14px;
    margin-bottom: 38px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    text-align: left;
}

.photo-card {
    overflow: hidden;
    border: 1px solid rgba(233, 197, 139, 0.45);
    border-radius: 18px;
    background: rgba(70, 20, 42, 0.65);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 120, 165, 0.2);
}

.photo-card img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-card:hover img {
    transform: scale(1.06);
}

.photo-caption {
    padding: 20px 17px 22px;
}

.photo-caption h3 {
    color: #f9dce8;
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-weight: 500;
    margin: 0 0 8px;
}

.photo-caption p {
    color: #d9b8c6;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 750px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .photo-card img {
        height: 300px;
    }

    .gallery-section {
        padding: 35px 5px;
    }
}
/* ROMANTIC LOVE LETTER */
.love-letter-section {
    text-align: center;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.love-letter-section h2 {
    font-size: clamp(30px, 5vw, 48px);
    margin: 15px 0;
}

.love-letter-section h2 span {
    color: #e8a4b8;
}

.letter-card {
    max-width: 650px;
    margin: 35px auto 0;
    padding: 35px;
    text-align: left;
    line-height: 1.9;
    color: #f8e8ed;
    background: linear-gradient(145deg, #35152d, #24101f);
    border: 1px solid rgba(218, 169, 126, 0.55);
    border-radius: 18px;
    box-shadow: 0 0 35px rgba(224, 117, 158, 0.15);
    animation: letterReveal 0.8s ease both;
}

.letter-card p {
    margin-bottom: 18px;
}

.letter-signature {
    text-align: right;
    color: #e8a4b8;
    font-style: italic;
}

@keyframes letterReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FLOATING ROMANTIC HEARTS */
#hearts {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.floating-heart {
    position: absolute;
    bottom: -40px;
    color: #f2a6c2;
    opacity: 0;
    text-shadow:
        0 0 8px rgba(255, 130, 180, 0.8),
        0 0 18px rgba(218, 165, 105, 0.4);
    animation: floatHeart 7s linear forwards;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.7);
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.65;
    }

    100% {
        transform: translateY(-110vh) rotate(35deg) scale(1.2);
        opacity: 0;
    }
}

/* PREMIUM PINK & ROSE-GOLD GLOW */
.letter-card {
    border: 1px solid rgba(232, 164, 184, 0.65);
    box-shadow:
        0 0 15px rgba(232, 164, 184, 0.18),
        0 0 35px rgba(232, 164, 184, 0.12),
        0 0 55px rgba(183, 125, 91, 0.10);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.letter-card:hover {
    border-color: #e8c19a;
    box-shadow:
        0 0 20px rgba(255, 160, 195, 0.30),
        0 0 45px rgba(232, 193, 154, 0.20),
        0 0 70px rgba(232, 164, 184, 0.15);
}

/* Soft glow around the main birthday headings */
.birthday-hero h1,
.intro-content h1 {
    text-shadow:
        0 0 12px rgba(232, 164, 184, 0.18),
        0 0 28px rgba(183, 125, 91, 0.12);
}

/* ELEGANT BIRTHDAY WISH */
.surprise-message {
    max-width: 650px;
    margin: 30px auto 0;
    padding: 30px 25px;
    background: linear-gradient(
        145deg,
        rgba(66, 27, 52, 0.96),
        rgba(36, 13, 32, 0.98)
    );
    border: 1px solid rgba(232, 193, 154, 0.65);
    border-radius: 18px;
    box-shadow:
        0 0 18px rgba(232, 164, 184, 0.16),
        0 0 40px rgba(232, 193, 154, 0.10);
    animation: wishReveal 0.9s ease both;
}

.surprise-message h2 {
    color: #f2c6d2;
    line-height: 1.4;
    text-shadow: 0 0 15px rgba(232, 164, 184, 0.22);
}

.surprise-message p {
    color: #f4e5eb;
    line-height: 1.9;
}

.message-heart {
    color: #e8c19a;
    font-size: 28px;
    text-shadow: 0 0 15px rgba(232, 193, 154, 0.5);
}

@keyframes wishReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* CHILDHOOD TO YOUTH - CINEMATIC DESIGN */

.memories-section {
    width: 100%;
    max-width: 1000px;
    margin: 80px auto;
    padding: 50px 20px;
    text-align: center;
}

.memories-section h2 {
    color: #f4e5eb;
    font-size: clamp(30px, 5vw, 48px);
    margin: 12px 0;
}

.memories-section h2 span {
    color: #e8c19a;
}

.cinematic-frame {
    position: relative;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    margin: 35px auto 25px;
    overflow: hidden;
    border: 1px solid rgba(232, 193, 154, 0.7);
    border-radius: 18px;
    background: #190b17;
    box-shadow:
        0 0 22px rgba(232, 164, 184, 0.2),
        0 0 55px rgba(232, 193, 154, 0.12);
}

.cinematic-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 1;
    transform: scale(1.02);
    transition:
        opacity 0.9s ease,
        transform 6s ease;
}

.cinematic-frame.playing img {
    transform: scale(1.13);
}

.cinematic-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: clamp(18px, 5vw, 40px);
    text-align: left;
    background: linear-gradient(
        to top,
        rgba(15, 5, 14, 0.92),
        rgba(15, 5, 14, 0.25) 55%,
        transparent
    );
}

.cinematic-overlay p {
    color: #e8c19a;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.cinematic-overlay h3 {
    color: #fff0f5;
    font-size: clamp(20px, 4vw, 34px);
    margin: 0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.memories-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 25px;
}

.memories-note {
    color: #d9bac8;
    font-size: 13px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .memories-section {
        padding: 35px 15px;
        margin: 45px auto;
    }

    .cinematic-frame {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    .cinematic-overlay p {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .memories-controls {
        flex-direction: column;
        align-items: center;
    }

    .memories-controls button {
        width: 100%;
        max-width: 300px;
    }
}
/* CENTER THE ENTIRE MEMORIES SECTION */

.memories-section {
    width: 100%;
    max-width: 1000px;
    margin: 80px auto;
    padding: 50px 20px;
    text-align: center;
    box-sizing: border-box;
}

.memories-section .section-label,
.memories-section h2,
.memories-section .gallery-intro,
.memories-section .memories-note {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.memories-section .section-label {
    display: block;
}

.memories-section h2 {
    display: block;
}

.memories-section .gallery-intro {
    display: block;
    max-width: 600px;
}

.memories-section .memories-note {
    display: block;
    margin-top: 20px;
}

.cinematic-frame {
    margin-left: auto;
    margin-right: auto;
}
/* SHOW THE COMPLETE MEMORY PHOTO */

.cinematic-frame {
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    background: #190b17;
}

.cinematic-frame img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.cinematic-frame.playing img {
    transform: none;
}

@media (max-width: 600px) {
    .cinematic-frame {
        aspect-ratio: auto;
    }

    .cinematic-frame img {
        max-height: 65vh;
        object-fit: contain;
    }
}

/* PREMIUM SURPRISE GIFT SECTION */

.gift-section {
    width: 100%;
    max-width: 900px;
    margin: 70px auto;
    padding: 55px 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

.gift-section h2 {
    color: #f8e9ef;
    font-size: clamp(30px, 5vw, 46px);
    margin: 12px 0;
}

.gift-section h2 span {
    color: #e8c19a;
    text-shadow: 0 0 18px rgba(232, 193, 154, 0.25);
}

.gift-box-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 420px);
    min-height: 250px;
    margin: 35px auto;
    padding: 30px 20px;
    overflow: hidden;
    cursor: pointer;
    color: #fff0d5;
    background:
        radial-gradient(
            ellipse at center,
            rgba(177, 108, 35, 0.22),
            transparent 70%
        ),
        linear-gradient(145deg, #26151d, #10090f);
    border: 1px solid rgba(232, 193, 154, 0.75);
    border-radius: 20px;
    box-shadow:
        0 0 20px rgba(232, 193, 154, 0.14),
        inset 0 0 25px rgba(232, 193, 154, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gift-box-button:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 30px rgba(232, 193, 154, 0.3),
        0 0 60px rgba(232, 164, 184, 0.12);
}

.gift-emoji {
    display: block;
    font-size: 85px;
    filter: drop-shadow(0 0 18px rgba(232, 193, 154, 0.45));
    animation: giftFloat 2.5s ease-in-out infinite;
}

.gift-button-text {
    color: #f2c98e;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gift-hint {
    color: #d9bac8;
    font-size: 13px;
}

@keyframes giftFloat {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-9px) rotate(2deg);
    }
}
/* THE REVEALED GIFT MESSAGE */

.gift-reveal {
    max-width: 650px;
    margin: 30px auto;
    padding: 35px 25px;
    box-sizing: border-box;
    color: #f4e5eb;
    background: linear-gradient(145deg, #2c1725, #130b14);
    border: 1px solid rgba(232, 193, 154, 0.7);
    border-radius: 20px;
    box-shadow:
        0 0 25px rgba(232, 193, 154, 0.18),
        0 0 60px rgba(232, 164, 184, 0.08);
    animation: giftReveal 0.9s ease both;
}

.gift-reveal h3 {
    color: #f2c98e;
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.5;
}

.gift-reveal p {
    line-height: 1.9;
}

.gift-sparkle {
    color: #e8c19a;
    font-size: 25px;
    letter-spacing: 8px;
}

.gift-surprise-icon {
    margin: 20px 0;
    font-size: 65px;
    filter: drop-shadow(0 0 18px rgba(232, 193, 154, 0.3));
}

.gift-final-message {
    color: #f2c6d2;
}

.gift-signature {
    color: #e8c19a;
    font-style: italic;
    margin-top: 25px;
}

@keyframes giftReveal {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .gift-section {
        padding: 35px 15px;
        margin: 45px auto;
    }

    .gift-box-button {
        min-height: 220px;
    }

    .gift-emoji {
        font-size: 72px;
    }

    .gift-reveal {
        padding: 28px 18px;
    }
}
/* FINAL ROMANTIC FOOTER */

.romantic-footer {
    width: 100%;
    padding: 35px 20px 45px;
    margin-top: 45px;
    box-sizing: border-box;
    text-align: center;
    border-top: 1px solid rgba(232, 193, 154, 0.25);
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(30, 12, 26, 0.55)
    );
}

.footer-heart {
    color: #e8c19a;
    font-size: 30px;
    text-shadow: 0 0 18px rgba(232, 193, 154, 0.45);
    animation: footerHeartbeat 2s ease-in-out infinite;
}

.romantic-footer p {
    color: #f2c6d2;
    font-size: 15px;
    letter-spacing: 1px;
    margin: 10px 0;
}

.romantic-footer span {
    color: #bfa8b5;
    font-size: 12px;
}

@keyframes footerHeartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

/* ========================================
   CINEMATIC DREAM — MAGICAL BACKGROUND
======================================== */

body {
    position: relative;
    isolation: isolate;
}

/* Background stays behind the entire website */
.dream-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%,
            rgba(100, 28, 72, 0.35), transparent 55%),
        linear-gradient(145deg, #100711, #1b0918 50%, #100711);
}

/* Dreamy glowing lights */
.dream-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(95px);
    opacity: 0.3;
    animation: dreamGlowFloat 12s ease-in-out infinite alternate;
}

.dream-glow-one {
    top: 8%;
    left: -150px;
    background: #b52b75;
}

.dream-glow-two {
    right: -160px;
    bottom: 5%;
    background: #bd874c;
    animation-delay: -5s;
}

/* Tiny glowing stars */
.dream-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.dream-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffe4c2;
    box-shadow: 0 0 8px 2px rgba(255, 210, 170, 0.55);
    animation: starTwinkle var(--twinkle-duration, 3s) ease-in-out infinite alternate;
}

/* Floating magical particles */
.magic-particles {
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow: hidden;
    pointer-events: none;
}

.magic-particle {
    position: absolute;
    bottom: -35px;
    color: #f2c6d2;
    opacity: 0;
    user-select: none;
    text-shadow: 0 0 12px rgba(255, 190, 220, 0.8);
    animation: particleRise var(--rise-duration, 12s) linear forwards;
}

@keyframes dreamGlowFloat {
    from {
        transform: translate3d(-15px, -10px, 0) scale(0.9);
    }
    to {
        transform: translate3d(35px, 30px, 0) scale(1.15);
    }
}

@keyframes starTwinkle {
    from {
        opacity: 0.15;
        transform: scale(0.65);
    }
    to {
        opacity: 0.95;
        transform: scale(1.5);
    }
}

@keyframes particleRise {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.55;
    }
    100% {
        transform: translate3d(var(--drift, 35px), -110vh, 0) rotate(180deg);
        opacity: 0;
    }
}

/* Mobile performance */
@media (max-width: 600px) {
    .dream-glow {
        width: 250px;
        height: 250px;
        filter: blur(75px);
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dream-glow,
    .dream-star,
    .magic-particle {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =================================
   CINEMATIC INTRO REVEAL
================================= */

.intro-screen {
    animation: cinematicIntroAppear 1.8s ease-out both;
}

#introName {
    color: #f8d9e5;
    text-shadow:
        0 0 10px rgba(255, 190, 220, 0.65),
        0 0 28px rgba(220, 90, 160, 0.45),
        0 0 55px rgba(232, 193, 154, 0.2);
    animation: cinematicNameReveal 2s ease-out both;
}

@keyframes cinematicIntroAppear {
    from {
        opacity: 0;
        filter: brightness(0.4);
    }
    to {
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes cinematicNameReveal {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.94);
        letter-spacing: 8px;
        filter: blur(8px);
    }
    65% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 2px;
        filter: blur(0);
    }
}

/* Elegant glowing intro buttons */
.intro-screen button {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.intro-screen button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 18px rgba(235, 166, 200, 0.25),
        0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(232, 193, 154, 0.8);
}

@media (prefers-reduced-motion: reduce) {
    .intro-screen,
    #introName {
        animation: none;
    }
}

/* MAGICAL INTRO BUTTON EFFECT */

.intro-screen button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(232, 193, 154, 0.65);
    box-shadow:
        0 0 15px rgba(219, 130, 177, 0.12),
        inset 0 0 12px rgba(255, 255, 255, 0.025);
}

.intro-screen button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 45%;
    height: 200%;
    transform: rotate(25deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 235, 220, 0.4),
        transparent
    );
    animation: introButtonShine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.intro-screen button:active {
    transform: scale(0.96);
    box-shadow: 0 0 25px rgba(232, 193, 154, 0.35);
}

@keyframes introButtonShine {
    0%, 65% {
        left: -75%;
    }
    100% {
        left: 140%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro-screen button::before {
        animation: none;
    }
}

/* CINEMATIC SCROLL REVEAL */

.cinematic-reveal {
    opacity: 0;
    transform: translateY(35px) scale(0.985);
    filter: blur(4px);
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.9s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.cinematic-reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-reveal,
    .cinematic-reveal.reveal-visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* ===================================
   CINEMATIC PHOTO LIGHTBOX
=================================== */

.photo-card {
    cursor: zoom-in;
}

.photo-card img {
    transition: transform 0.6s ease, filter 0.6s ease;
}

.photo-card:hover img {
    transform: scale(1.045);
    filter: brightness(1.08);
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 70px 75px;
    box-sizing: border-box;
    background: rgba(10, 4, 12, 0.96);
    backdrop-filter: blur(18px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-lightbox.hidden {
    display: none;
}

.lightbox-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: lightboxReveal 0.45s ease both;
}

.lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(232, 193, 154, 0.55);
    border-radius: 12px;
    box-shadow:
        0 0 25px rgba(218, 113, 169, 0.16),
        0 0 70px rgba(0, 0, 0, 0.6);
}

#lightboxCaption {
    color: #f4d8e5;
    text-align: center;
    font-size: 16px;
    letter-spacing: 1px;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    border: 1px solid rgba(232, 193, 154, 0.4);
    color: #f8dfeb;
    background: rgba(58, 20, 45, 0.75);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background: rgba(139, 48, 95, 0.9);
    transform: scale(1.08);
}

.lightbox-close {
    top: 22px;
    right: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.lightbox-arrow {
    top: 50%;
    width: 46px;
    height: 54px;
    border-radius: 24px;
    font-size: 20px;
    transform: translateY(-50%);
}

.lightbox-arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.lightbox-hint {
    position: absolute;
    bottom: 15px;
    color: #bca5b5;
    font-size: 12px;
    text-align: center;
}

@keyframes lightboxReveal {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 600px) {
    .photo-lightbox {
        padding: 65px 48px;
    }

    .lightbox-figure img {
        max-height: 68vh;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-arrow {
        width: 36px;
        height: 44px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }
}

/* MAGICAL BIRTHDAY CONFETTI */

.confetti-burst {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 8px;
    height: 13px;
    border-radius: 2px;
    background: var(--confetti-color);
    animation: confettiBurst var(--confetti-duration) cubic-bezier(.15,.7,.3,1) forwards;
}

@keyframes confettiBurst {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.5);
        opacity: 1;
    }
    100% {
        transform:
            translate(var(--confetti-x), var(--confetti-y))
            rotate(var(--confetti-rotation)) scale(1);
        opacity: 0;
    }
}

.birthday-hero.celebration-active .cake {
    animation: cakeCelebration 0.8s ease-in-out 2;
}

@keyframes cakeCelebration {
    0%, 100% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.15) rotate(-8deg); }
    75% { transform: scale(1.15) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .confetti-piece,
    .birthday-hero.celebration-active .cake {
        animation-duration: 0.01ms !important;
    }
}

/* =====================================
   CINEMATIC DREAM — MOBILE POLISH
===================================== */

@media (max-width: 600px) {
    /* Comfortable spacing on phones */
    .main-page {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: clip;
    }

    .top-nav {
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-note {
        font-size: 9px;
        letter-spacing: 1px;
    }

    /* Elegant headings */
    .birthday-hero h1 {
        font-size: clamp(30px, 8vw, 43px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .gallery-section h2,
    .love-letter-section h2,
    .memories-section h2,
    .gift-section h2 {
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.25;
    }

    .main-subtitle,
    .love-message,
    .gallery-intro {
        font-size: 14px;
        line-height: 1.8;
    }

    /* Gallery cards fit the screen */
    .photo-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .photo-card {
        width: 100%;
        min-width: 0;
    }

    .photo-card img {
        max-width: 100%;
    }

    /* Memories photos stay fully visible */
    .cinematic-frame img {
        width: 100%;
        height: auto;
        max-height: 65vh;
        object-fit: contain;
    }

    .memories-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    .memories-controls button,
    .premium-button {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Gift section fits narrow screens */
    .gift-box-button,
    .gift-reveal {
        max-width: 100%;
        box-sizing: border-box;
    }

    .gift-reveal {
        padding: 24px 18px;
    }

    /* Footer stays inside the viewport */
    .romantic-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
}
/* Magical Love Effects */
.love-spark {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    animation: loveSparkFloat 1.2s ease-out forwards;
    user-select: none;
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.8));
}

@keyframes loveSparkFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100px) scale(1.5) rotate(25deg);
    }
}

/* Soft magical glow */
body {
    --love-glow: rgba(255, 105, 180, 0.16);
}

button:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 22px var(--love-glow);
}

@media (prefers-reduced-motion: reduce) {
    .love-spark {
        animation-duration: 0.4s;
    }
}
/* Premium Cinematic Love Letter */
.premium-love-letter {
    text-align: center;
    padding: 55px 15px;
    overflow: hidden;
}

.letter-subtitle {
    color: #e8b4c8;
    font-style: italic;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.love-envelope {
    position: relative;
    width: min(340px, 85vw);
    height: 225px;
    margin: 35px auto;
    cursor: pointer;
    perspective: 1000px;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.3));
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #68243f, #3a1027);
    border: 1px solid #d5a46d;
    border-radius: 5px;
}

.letter-paper {
    position: absolute;
    left: 7%;
    top: 7%;
    width: 86%;
    height: 85%;
    background: linear-gradient(145deg, #fff4ee, #f5dfe7);
    color: #57223c;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 1s ease, height 1s ease;
    z-index: 2;
}

.letter-content {
    padding: 18px 16px;
    font-family: Georgia, serif;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
}

.letter-content h3 {
    text-align: center;
    color: #8d3157;
    font-size: 19px;
}

.letter-date {
    text-align: right;
    font-size: 10px;
    color: #a16a79;
}

.letter-signature {
    text-align: right;
    font-style: italic;
    color: #9b4267;
}

.envelope-front {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(145deg, #9b365d, #5b1939);
    clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
    border-radius: 4px;
    pointer-events: none;
}

.envelope-flap {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(145deg, #c66b89, #742647);
    clip-path: polygon(0 0, 100% 0, 50% 58%);
    transform-origin: top center;
    transition: transform 0.7s ease;
    pointer-events: none;
}

.envelope-heart {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: #ffe1e8;
    font-size: 30px;
    text-shadow: 0 0 15px #ff8bb8;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.love-envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.love-envelope.open .letter-paper {
    height: 160%;
    transform: translateY(-60%);
    overflow-y: auto;
    z-index: 6;
}

.love-envelope.open .envelope-heart {
    opacity: 0;
}

.letter-open-btn {
    background: linear-gradient(135deg, #b44d75, #e0a56c);
    color: white;
    border: 1px solid #f3d2b0;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(220, 125, 164, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.letter-open-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(220, 125, 164, 0.5);
}

.letter-hint {
    color: #e8b4c8;
    font-size: 13px;
    margin-top: 18px;
}

@media (max-width: 480px) {
    .premium-love-letter {
        padding: 35px 10px;
    }

    .love-envelope {
        height: 205px;
    }
}
/* 💌 Premium Love Letter Upgrade */

.love-letter-section {
    position: relative;
    text-align: center;
    padding: 70px 20px;
}

.love-letter-section h2 span {
    color: #e7a6bd;
    text-shadow: 0 0 18px rgba(231, 166, 189, 0.25);
}

#letterButton {
    margin-top: 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#letterButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(231, 166, 189, 0.35);
}

.letter-card {
    position: relative;
    max-width: 650px;
    margin: 35px auto 10px;
    padding: 35px 30px;
    text-align: left;
    color: #f9e8ed;
    line-height: 1.9;
    font-family: Georgia, serif;
    font-size: 16px;
    background:
        radial-gradient(
            circle at top right,
            rgba(205, 132, 160, 0.15),
            transparent 45%
        ),
        linear-gradient(145deg, rgba(65, 22, 48, 0.96),
        rgba(36, 13, 32, 0.98));
    border: 1px solid rgba(220, 174, 132, 0.65);
    border-radius: 12px;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(214, 133, 170, 0.10);
    transform-origin: top center;
}

.letter-card:not(.hidden) {
    animation: loveLetterReveal 1s cubic-bezier(.2, .8, .2, 1) both;
}

.letter-card p {
    margin: 0 0 20px;
}

.letter-card p:first-child {
    color: #f0b7cb;
    font-size: 21px;
}

.letter-card .letter-signature {
    margin-top: 28px;
    margin-bottom: 0;
    text-align: right;
    color: #e8b58a;
    font-style: italic;
}

@keyframes loveLetterReveal {
    0% {
        opacity: 0;
        transform: perspective(900px) rotateX(-8deg) translateY(25px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: perspective(900px) rotateX(0) translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 600px) {
    .love-letter-section {
        padding: 45px 15px;
    }

    .letter-card {
        padding: 25px 20px;
        font-size: 15px;
        line-height: 1.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .letter-card:not(.hidden) {
        animation: none;
    }
}
/* 💌 Cinematic Rose-Gold Envelope */

.love-envelope {
    position: relative;
    width: min(320px, 82vw);
    height: 205px;
    margin: 35px auto 25px;
    perspective: 1000px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.love-envelope:hover {
    transform: translateY(-5px);
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #6f2949, #321024);
    border: 1px solid #dcb17d;
    border-radius: 7px;
}

.envelope-letter-preview {
    position: absolute;
    z-index: 1;
    left: 10%;
    top: 8%;
    width: 80%;
    height: 84%;
    display: grid;
    place-items: center;
    font-size: 54px;
    background: linear-gradient(145deg, #fff1ed, #f0cedb);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 196, 218, 0.2);
}

.envelope-front {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(145deg, #a64b70, #63203f);
    clip-path: polygon(0 0, 50% 57%, 100% 0, 100% 100%, 0 100%);
    border-radius: 6px;
    pointer-events: none;
}

.envelope-flap {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(145deg, #d28ba5, #813052);
    clip-path: polygon(0 0, 100% 0, 50% 58%);
    transform-origin: top center;
    transition: transform 0.8s ease;
    pointer-events: none;
}

.envelope-heart {
    position: absolute;
    z-index: 5;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffe5ed;
    font-size: 29px;
    text-shadow: 0 0 15px #ff8ab5;
    pointer-events: none;
}

.love-envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.love-envelope.open .envelope-heart {
    opacity: 0;
}

.love-envelope.open .envelope-letter-preview {
    transform: translateY(-12px);
    transition: transform 0.8s ease;
}

@media (max-width: 480px) {
    .love-envelope {
        height: 185px;
    }
}