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


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: #fff;

    background:
        radial-gradient(
            circle at 50% 0%,
            #68172f 0%,
            #3d0b1d 38%,
            #17030b 100%
        );

    overflow-x: hidden;
}


/* =====================================================
   BACKGROUND
===================================================== */

.background-glow {

    position: fixed;

    width: 480px;
    height: 480px;

    border-radius: 50%;

    background:
        rgba(255, 80, 125, 0.10);

    filter: blur(100px);

    pointer-events: none;

    z-index: 0;

    animation:
        glowFloat 12s ease-in-out infinite
        alternate;
}


.glow-one {

    top: -220px;
    left: -150px;

}


.glow-two {

    right: -180px;
    bottom: -220px;

    animation-delay: 4s;

}


@keyframes glowFloat {

    from {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    to {
        transform:
            translate3d(50px, 35px, 0)
            scale(1.08);
    }

}



/* =====================================================
   STARS
===================================================== */

.stars {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 0;

    opacity: 0.45;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,0.5) 1px,
            transparent 1px
        );

    background-size: 110px 110px;

    animation:
        starsMove 25s linear infinite;

}


@keyframes starsMove {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-110px);
    }

}



/* =====================================================
   FLOATING HEARTS
===================================================== */

#floating-hearts {

    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 20;

}


.love-float {

    position: fixed;

    bottom: -40px;

    pointer-events: none;

    opacity: 0;

    animation:
        floatHeart 7s linear forwards;

    filter:
        drop-shadow(
            0 0 8px
            rgba(255,100,140,0.25)
        );

}


@keyframes floatHeart {

    0% {

        transform:
            translateY(0)
            translateX(0)
            rotate(0deg)
            scale(0.7);

        opacity: 0;

    }

    10% {
        opacity: 0.8;
    }

    50% {

        transform:
            translateY(-50vh)
            translateX(25px)
            rotate(12deg)
            scale(1);

        opacity: 0.65;

    }

    100% {

        transform:
            translateY(-115vh)
            translateX(-30px)
            rotate(-12deg)
            scale(0.85);

        opacity: 0;

    }

}



/* =====================================================
   LOCKED SCREEN
===================================================== */

#lockedScreen {

    position: relative;

    z-index: 5;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 30px;

}


.locked-content {

    max-width: 650px;

    animation:
        fadeUp 1.2s ease both;

}


.locked-heart {

    font-size: 65px;

    margin: 25px 0;

    animation:
        heartbeat 2s ease-in-out infinite;

}


.locked-content h1 {

    font-size:
        clamp(35px, 6vw, 65px);

    font-weight: normal;

    margin-bottom: 25px;

}


.locked-content p {

    color: #d5a7b4;

    line-height: 1.8;

}


.soft-text {

    margin-top: 15px;

}



/* =====================================================
   DAY CONTENT
===================================================== */

.day-content {

    position: relative;

    z-index: 2;

}


.hidden {

    display: none;

}


.screen {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 80px 25px;

}


.screen-inner {

    width: 100%;

    max-width: 900px;

    text-align: center;

}



/* =====================================================
   TYPOGRAPHY
===================================================== */

.eyebrow,
.tiny-text,
.day-label {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #d99aaa;

    letter-spacing: 4px;

    font-size: 10px;

}


.eyebrow {

    margin-bottom: 25px;

}


.tiny-text {

    letter-spacing: 3px;

    margin-bottom: 20px;

}


.day-label {

    color: #e09aaa;

    margin-bottom: 25px;

}


.cinematic-title {

    font-size:
        clamp(65px, 12vw, 145px);

    line-height: 0.9;

    font-weight: normal;

    letter-spacing: -5px;

    margin-bottom: 30px;

}


.cinematic-title span {

    display: inline-block;

    font-size: 0.42em;

    margin-left: 10px;

    animation:
        heartbeat 2s ease-in-out infinite;

}


.intro-line {

    color: #e8bdc8;

    font-size:
        clamp(19px, 3vw, 27px);

    margin-bottom: 40px;

}


.intro-message {

    color: #cda0ac;

    font-size: 17px;

    line-height: 1.9;

}


.intro-message strong {

    color: #fff;

    font-weight: normal;

}



/* =====================================================
   REVEAL ANIMATION
===================================================== */

.reveal-item {

    opacity: 0;

    transform:
        translateY(25px);

    animation:
        revealUp 1s
        cubic-bezier(.22,1,.36,1)
        forwards;

}


.delay-1 {
    animation-delay: .15s;
}


.delay-2 {
    animation-delay: .30s;
}


.delay-3 {
    animation-delay: .45s;
}


.delay-4 {
    animation-delay: .60s;
}


.delay-5 {
    animation-delay: .80s;
}


.delay-6 {
    animation-delay: 1.05s;
}


@keyframes revealUp {

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}



/* =====================================================
   DIVIDERS
===================================================== */

.title-line,
.section-divider,
.letter-divider,
.final-divider {

    color: #d8879b;

    font-size: 18px;

}


.title-line {

    margin: 25px 0;

    animation:
        softPulse 2s ease-in-out infinite;

}


.section-divider {

    margin: 25px 0 40px;

}


.letter-divider {

    margin: 25px 0 35px;

}


@keyframes softPulse {

    0%,100% {
        opacity: .45;
    }

    50% {
        opacity: 1;
    }

}



/* =====================================================
   BUTTONS
===================================================== */

.main-button {

    margin-top: 40px;

    padding:
        15px 27px;

    border:
        1px solid
        rgba(255,160,180,0.35);

    border-radius: 50px;

    background:
        rgba(255,255,255,0.045);

    color: #f7dce3;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;

    letter-spacing: 2px;

    cursor: pointer;

    transition:
        transform .35s ease,
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;

}


.main-button span {

    margin-left: 8px;

}


.main-button:hover {

    transform:
        translateY(-4px);

    background:
        rgba(255,100,140,0.12);

    border-color:
        rgba(255,160,180,0.65);

    box-shadow:
        0 12px 40px
        rgba(0,0,0,0.25);

}


.main-button:active {

    transform:
        translateY(-1px)
        scale(.98);

}



/* =====================================================
   STORY SECTIONS
===================================================== */

.story-section {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        100px 25px;

}


.section-inner {

    width: 100%;

    max-width: 850px;

    text-align: center;

}


.story-section h2,
.letter-container h2 {

    font-size:
        clamp(40px, 7vw, 72px);

    font-weight: normal;

    margin-bottom: 20px;

}


.story-text {

    max-width: 650px;

    margin:
        0 auto 30px;

    color: #cda0ac;

    font-size: 17px;

    line-height: 1.9;

}


.big-love {

    margin:
        55px 0;

    font-size:
        clamp(38px, 7vw, 75px);

    line-height: 1.05;

}


.big-love span {

    color: #f0aabd;

    text-shadow:
        0 0 35px
        rgba(255,100,140,.18);

}



/* =====================================================
   HIDDEN SECTION REVEAL
===================================================== */

.hidden-section {

    opacity: 0;

    transform:
        translateY(70px)
        scale(.97);

    pointer-events: none;

    max-height: 0;

    min-height: 0;

    overflow: hidden;

    padding-top: 0;

    padding-bottom: 0;

}


.hidden-section.show {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;

    max-height: none;

    min-height: 100vh;

    padding-top: 100px;

    padding-bottom: 100px;

    transition:
        opacity 1s ease,
        transform 1s
        cubic-bezier(.22,1,.36,1);

}



/* =====================================================
   LOVE CARDS
===================================================== */

.cards-inner {

    max-width: 900px;

}


.section-intro {

    color: #b98d99;

    line-height: 1.7;

    margin-bottom: 50px;

}


.love-card {

    position: relative;

    max-width: 720px;

    margin:
        25px auto;

    padding:
        38px 42px;

    text-align: left;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );

    backdrop-filter:
        blur(14px);

    opacity: 0;

    transform:
        translateY(40px)
        scale(.97);

}


.show .love-card {

    animation:
        cardReveal .9s
        cubic-bezier(.22,1,.36,1)
        forwards;

}


.show .love-card:nth-of-type(2) {

    animation-delay: .15s;

}


.show .love-card:nth-of-type(3) {

    animation-delay: .30s;

}


.show .love-card:nth-of-type(4) {

    animation-delay: .45s;

}


@keyframes cardReveal {

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


.card-number {

    display: block;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    letter-spacing: 3px;

    color: #c88496;

    margin-bottom: 20px;

}


.love-card h3 {

    font-size: 22px;

    font-weight: normal;

    margin-bottom: 16px;

}


.love-card p {

    color: #bd929e;

    line-height: 1.8;

}


.special-line {

    color: #f0c4cf !important;

    margin-top: 20px;

}


.after-cards {

    margin-top: 50px;

    color: #c99aa7;

    font-style: italic;

}



/* =====================================================
   LETTER
===================================================== */

.letter-section {

    min-height: 100vh;

}


.letter-container {

    width: 100%;

    max-width: 800px;

    text-align: center;

}


.letter {

    text-align: left;

    padding:
        50px 55px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.065),
            rgba(255,255,255,.025)
        );

    box-shadow:
        0 30px 90px
        rgba(0,0,0,.22);

    backdrop-filter:
        blur(16px);

}


.letter p {

    color: #d0a5b0;

    line-height: 2;

    font-size: 16px;

    margin-bottom: 28px;

}


.letter strong {

    color: #fff;

}


.letter em {

    color: #e6b8c4;

}


.highlight {

    color: #f2b2c2 !important;

    font-size: 20px !important;

    text-align: center;

}


.signature {

    text-align: right;

    color: #f1c5d0 !important;

    font-size: 19px !important;

    margin-top: 45px;

}



/* =====================================================
   ENDING
===================================================== */

.ending {

    text-align: center;

    padding:
        90px 20px
        30px;

}


.ending h2 {

    font-size:
        clamp(40px, 7vw, 70px);

    font-weight: normal;

    margin-bottom: 20px;

}


.ending > p {

    color: #c99aa7;

    line-height: 1.8;

}


.final-love {

    color: #f0adbd !important;

    font-size:
        clamp(25px, 4vw, 38px);

    margin:
        40px 0;

}


.tomorrow {

    margin-top: 45px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;

    letter-spacing: 3px;

    color: #d98fa2 !important;

}



/* =====================================================
   FINAL SCENE
===================================================== */

.final-scene {

    position: fixed;

    inset: 0;

    z-index: 100;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 30px;

    background:
        radial-gradient(
            circle at center,
            rgba(105,20,48,.98),
            rgba(17,2,9,.99)
        );

    opacity: 0;

    visibility: hidden;

    transform:
        scale(1.06);

    transition:
        opacity 1.2s ease,
        transform 1.2s
        cubic-bezier(.22,1,.36,1);

}


.final-scene.show {

    opacity: 1;

    visibility: visible;

    transform:
        scale(1);

}


.final-scene-content {

    max-width: 700px;

}


.final-kiss {

    font-size: 55px;

    margin-bottom: 25px;

    animation:
        heartbeat 2s ease-in-out infinite;

}


.final-name {

    font-size:
        clamp(40px, 7vw, 75px);

    margin-bottom: 25px;

}


.final-message {

    color: #efbdc9;

    font-size:
        clamp(20px, 3vw, 28px);

}


.final-kisses {

    margin:
        30px 0;

    font-size: 24px;

}


.final-kisses span {

    margin:
        0 18px;

}


.final-small {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;

    letter-spacing: 4px;

    color: #ae7181;

}


.final-day {

    margin-top: 25px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    letter-spacing: 5px;

    color: #e2a0b1;

}


.final-tomorrow {

    margin-top: 10px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;

    letter-spacing: 2px;

    color: #936171;

}


.home-link {

    display: inline-block;

    margin-top: 40px;

    padding:
        13px 23px;

    border:
        1px solid
        rgba(255,160,180,.30);

    border-radius: 50px;

    color: #e7bdc8;

    text-decoration: none;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;

    letter-spacing: 2px;

    transition:
        .35s ease;

}


.home-link:hover {

    background:
        rgba(255,100,140,.10);

    border-color:
        rgba(255,160,180,.60);

    transform:
        translateY(-3px);

}



/* =====================================================
   GENERAL ANIMATIONS
===================================================== */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform:
            translateY(30px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


@keyframes heartbeat {

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

    50% {
        transform: scale(1.12);
    }

}



/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .cinematic-title {

        letter-spacing: -3px;

    }


    .story-section {

        padding:
            80px 18px;

    }


    .letter {

        padding:
            32px 25px;

    }


    .love-card {

        padding:
            30px 25px;

    }


    .locked-heart {

        font-size: 50px;

    }

}


@media (max-width: 450px) {

    .main-button {

        padding:
            14px 21px;

        font-size: 9px;

    }


    .letter p {

        font-size: 15px;

    }


    .intro-message {

        font-size: 15px;

    }

}
