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

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

body {
    background: #26030f;
    color: #fff5f7;
    font-family: Georgia, "Times New Roman", serif;
    position: relative;
}

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

.background-memory {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    background: #26030f;
}

.background-memory img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;

    opacity: 0.82;

    transform: scale(1.02);

    filter:
        saturate(0.85)
        brightness(0.72);

    animation: backgroundBreath 18s ease-in-out infinite alternate;

    transition:
        opacity 1.2s ease,
        filter 1.2s ease,
        transform 2s ease;
}

.background-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(35, 2, 13, 0.90),
            rgba(55, 3, 22, 0.38),
            rgba(35, 2, 13, 0.90)
        ),
        linear-gradient(
            180deg,
            rgba(25, 1, 9, 0.58),
            rgba(80, 5, 32, 0.08),
            rgba(20, 1, 8, 0.86)
        );

    transition: background 1.5s ease;
}

/* =========================
   AMBIENT LIGHT
========================= */

.ambient-light {
    position: fixed;

    width: 55vw;
    height: 55vw;

    max-width: 700px;
    max-height: 700px;

    border-radius: 50%;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(154, 17, 66, 0.28),
            transparent 70%
        );

    filter: blur(45px);

    pointer-events: none;

    z-index: -5;

    animation: ambientMove 10s ease-in-out infinite alternate;
}

/* =========================
   PARTICLES
========================= */

.particle {
    position: fixed;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: rgba(255, 190, 210, 0.55);

    pointer-events: none;

    z-index: -1;

    animation:
        floatParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 12%;
    top: 72%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 24%;
    top: 25%;
    animation-delay: 1.2s;
}

.particle:nth-child(3) {
    left: 39%;
    top: 78%;
    animation-delay: 2.1s;
}

.particle:nth-child(4) {
    left: 57%;
    top: 19%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    left: 73%;
    top: 68%;
    animation-delay: 1.8s;
}

.particle:nth-child(6) {
    left: 87%;
    top: 34%;
    animation-delay: 3.7s;
}

.particle:nth-child(7) {
    left: 46%;
    top: 45%;
    animation-delay: 4.5s;
}

.particle:nth-child(8) {
    left: 18%;
    top: 48%;
    animation-delay: 2.7s;
}

/* =========================
   STORY CONTAINER
========================= */

.story-container {
    position: relative;

    width: 100vw;
    height: 100vh;

    overflow: hidden;
}

/* =========================
   STORY SLIDES
========================= */

.story-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 70px 10vw;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(100px)
        scale(0.97);

    transition:
        opacity 0.8s ease,
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.8s;

    pointer-events: none;
}

.story-slide.active {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(0)
        scale(1);

    pointer-events: auto;
}

.story-slide.previous {
    transform:
        translateX(-100px)
        scale(0.97);
}

/* =========================
   SLIDE CONTENT
========================= */

.slide-content {
    width: min(900px, 90vw);

    max-height: 88vh;

    overflow-y: auto;

    scrollbar-width: none;

    padding: 40px 50px;

    position: relative;

    z-index: 5;
}

.slide-content::-webkit-scrollbar {
    display: none;
}

/* =========================
   HEADINGS
========================= */

.slide-content h1 {
    font-size: clamp(52px, 8vw, 105px);

    line-height: 0.98;

    letter-spacing: -3px;

    font-weight: normal;

    text-shadow:
        0 12px 50px rgba(0, 0, 0, 0.65);
}

.slide-content h2 {
    font-size: clamp(38px, 5vw, 70px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    font-weight: normal;

    margin-bottom: 25px;

    text-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    max-width: 680px;

    margin: 0 auto;

    font-size: 18px;

    line-height: 1.9;

    color: rgba(255, 237, 243, 0.82);

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.55);
}

/* =========================
   HIGHLIGHTED TEXT
========================= */

.highlight {
    color: #efa7bc;

    font-style: italic;

    text-shadow:
        0 0 20px rgba(239, 130, 165, 0.28);
}

.highlight-strong {
    color: #ffc3d3;

    font-weight: normal;

    text-shadow:
        0 0 25px rgba(255, 140, 175, 0.38);
}

/* =========================
   NORMAL MEMORY IMAGES
========================= */

.memory-image {
    display: block;

    width: min(620px, 80vw);

    max-height: 54vh;

    object-fit: contain;

    margin: 32px auto 0;

    border-radius: 7px;

    opacity: 0;

    transform:
        translateY(30px)
        scale(0.94);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.62);

    transition:
        opacity 1s ease 0.25s,
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.6s ease;
}

.story-slide.active .memory-image {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

/* =========================
   FIRST CONVERSATION SCREENSHOT
   SPECIAL DESIGN
========================= */

.first-chat {
    display: block;

    width: min(620px, 82vw);

    max-height: 62vh;

    object-fit: contain;

    margin: 32px auto 0;

    border-radius: 14px;

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

    padding: 7px;

    opacity: 0;

    transform:
        scale(0.88)
        translateY(25px);

    filter: blur(3px);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.65),
        0 0 45px rgba(239, 130, 165, 0.08);

    transition:
        opacity 1.1s ease,
        transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.1s ease,
        box-shadow 1.4s ease;
}

/*
    Special reveal ONLY for
    the first conversation screenshot
*/

.story-slide.active .first-chat {
    opacity: 1;

    transform:
        scale(1)
        translateY(0);

    filter: blur(0);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.65),
        0 0 55px rgba(239, 130, 165, 0.15);

    animation:
        chatMemoryReveal
        1.5s
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

@keyframes chatMemoryReveal {

    0% {
        opacity: 0;

        transform:
            scale(0.84)
            translateY(35px);

        filter: blur(5px);
    }

    55% {
        opacity: 1;

        transform:
            scale(1.025)
            translateY(-3px);

        filter: blur(0);
    }

    100% {
        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }
}

/* =========================
   PROPOSAL HEART
========================= */

.proposal-heart {
    font-size: 78px;

    display: inline-block;

    margin-bottom: 25px;

    animation:
        proposalHeart
        2.4s
        ease-in-out
        infinite;

    filter:
        drop-shadow(
            0 0 20px rgba(255, 100, 150, 0.65)
        );
}

/* =========================
   MEETING TIME
========================= */

.meeting-time {
    margin: 20px auto 25px;

    font-size: 24px;

    letter-spacing: 7px;

    color: #e7a2b7;

    text-shadow:
        0 0 25px rgba(220, 90, 130, 0.35);
}

/* =========================
   STORY ARROWS
========================= */

.story-arrow {
    position: fixed;

    top: 50%;

    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border-radius: 50%;

    border:
        1px solid rgba(255, 200, 220, 0.25);

    background:
        rgba(35, 2, 14, 0.42);

    backdrop-filter: blur(10px);

    color:
        rgba(255, 225, 235, 0.85);

    font-size: 20px;

    cursor: pointer;

    z-index: 200;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.story-arrow:hover {
    transform:
        translateY(-50%)
        scale(1.1);

    background:
        rgba(120, 10, 50, 0.45);

    border-color:
        rgba(255, 190, 215, 0.45);

    box-shadow:
        0 0 25px rgba(239, 130, 165, 0.18);
}

.story-arrow.left {
    left: 28px;
}

.story-arrow.right {
    right: 80px;
}

/* =========================
   STORY PROGRESS
========================= */

.story-progress {
    position: fixed;

    left: 50%;

    bottom: 28px;

    transform: translateX(-50%);

    z-index: 200;

    font-size: 10px;

    letter-spacing: 4px;

    color:
        rgba(255, 210, 225, 0.65);
}

/* =========================
   SWIPE HINT
========================= */

.swipe-hint {
    position: fixed;

    left: 50%;

    bottom: 55px;

    transform: translateX(-50%);

    font-size: 9px;

    letter-spacing: 4px;

    color:
        rgba(255, 215, 228, 0.45);

    z-index: 150;

    animation:
        swipeHint
        2.5s
        ease-in-out
        infinite;

    transition:
        opacity 0.6s ease;
}

/* =========================
   BACK TO DAY 1
========================= */

.back-day1 {
    position: fixed;

    top: 25px;
    left: 28px;

    z-index: 250;

    text-decoration: none;

    font-size: 9px;

    letter-spacing: 3px;

    color:
        rgba(255, 220, 230, 0.60);

    padding: 10px 15px;

    border:
        1px solid rgba(255, 200, 220, 0.13);

    background:
        rgba(30, 2, 12, 0.30);

    backdrop-filter: blur(8px);

    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.back-day1:hover {
    color:
        rgba(255, 230, 238, 0.95);

    background:
        rgba(100, 8, 42, 0.30);

    border-color:
        rgba(255, 200, 220, 0.30);
}

/* =========================
   9 DAY TIMELINE
========================= */

.day-timeline {
    position: fixed;

    right: 27px;

    top: 50%;

    transform: translateY(-50%);

    height: 390px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    align-items: center;

    z-index: 250;
}

.day-timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255, 190, 215, 0.25),
            transparent
        );

    z-index: -1;
}

.day-dot {
    position: relative;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    border:
        1px solid rgba(255, 210, 225, 0.40);

    background:
        rgba(50, 3, 20, 0.8);

    cursor: pointer;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.day-dot:hover {
    transform: scale(1.5);

    border-color:
        rgba(255, 190, 215, 0.8);

    box-shadow:
        0 0 15px rgba(239, 130, 165, 0.35);
}

.day-dot.active {
    width: 13px;
    height: 13px;

    background:
        #efa7bc;

    border-color:
        #ffc5d5;

    box-shadow:
        0 0 18px rgba(239, 130, 165, 0.65);
}

.day-dot.pulse {
    transform: scale(1.35);

    box-shadow:
        0 0 28px rgba(239, 130, 165, 0.8);
}

.day-label {
    position: absolute;

    right: 22px;

    top: 50%;

    transform:
        translateY(-50%)
        translateX(5px);

    opacity: 0;

    white-space: nowrap;

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

    font-size: 9px;

    letter-spacing: 2px;

    color:
        rgba(255, 220, 230, 0.65);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.day-dot:hover .day-label {
    opacity: 1;

    transform:
        translateY(-50%)
        translateX(0);
}

/* =========================
   INTRO ANIMATION
========================= */

.story-slide:first-child .slide-content {
    animation:
        introContent
        1.4s
        cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes backgroundBreath {

    0% {
        transform: scale(1.02);
    }

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

@keyframes ambientMove {

    0% {
        transform:
            translate(-50%, -50%)
            scale(0.9);
    }

    100% {
        transform:
            translate(-47%, -53%)
            scale(1.08);
    }
}

@keyframes floatParticle {

    0% {
        opacity: 0;

        transform:
            translateY(20px)
            scale(0.7);
    }

    25% {
        opacity: 0.8;
    }

    75% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;

        transform:
            translateY(-90px)
            scale(1.2);
    }
}

@keyframes introContent {

    0% {
        opacity: 0;

        transform:
            translateY(35px)
            scale(0.96);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes proposalHeart {

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

    50% {
        transform: scale(1.16);
    }
}

@keyframes swipeHint {

    0%,
    100% {
        opacity: 0.25;

        transform:
            translateX(-50%)
            translateX(0);
    }

    50% {
        opacity: 0.75;

        transform:
            translateX(-50%)
            translateX(8px);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .story-slide {
        padding:
            60px 70px;
    }

    .slide-content {
        width: 94vw;

        padding:
            30px 20px;
    }

    .slide-content p {
        font-size: 16px;

        line-height: 1.75;
    }

    .memory-image {
        width: min(650px, 85vw);

        max-height: 52vh;
    }

    .first-chat {
        width: min(620px, 88vw);

        max-height: 55vh;
    }

    .story-arrow {
        width: 42px;
        height: 42px;

        font-size: 16px;
    }

    .story-arrow.left {
        left: 14px;
    }

    .story-arrow.right {
        right: 58px;
    }

    .day-timeline {
        right: 14px;

        height: 320px;
    }
}

@media (max-width: 600px) {

    .story-slide {
        padding:
            60px 35px;
    }

    .slide-content {
        width: 100vw;

        max-height: 84vh;

        padding:
            25px 18px;
    }

    .slide-content h1 {
        letter-spacing: -2px;
    }

    .slide-content h2 {
        letter-spacing: -1px;

        margin-bottom: 18px;
    }

    .slide-content p {
        font-size: 15px;

        line-height: 1.7;
    }

    .memory-image {
        width: 88vw;

        max-height: 45vh;

        margin-top: 24px;
    }

    .first-chat {
        width: 90vw;

        max-height: 52vh;

        margin-top: 24px;

        padding: 5px;

        border-radius: 11px;
    }

    .proposal-heart {
        font-size: 62px;
    }

    .meeting-time {
        font-size: 18px;

        letter-spacing: 4px;
    }

    .story-arrow {
        width: 38px;
        height: 38px;

        font-size: 14px;
    }

    .story-arrow.left {
        left: 8px;
    }

    .story-arrow.right {
        right: 48px;
    }

    .back-day1 {
        top: 15px;
        left: 15px;

        font-size: 8px;

        padding: 8px 10px;
    }

    .day-timeline {
        right: 8px;

        height: 260px;
    }

    .day-dot {
        width: 7px;
        height: 7px;
    }

    .day-dot.active {
        width: 10px;
        height: 10px;
    }

    .day-label {
        display: none;
    }

    .story-progress {
        bottom: 18px;

        font-size: 8px;

        letter-spacing: 3px;
    }

    .swipe-hint {
        bottom: 40px;

        font-size: 7px;

        letter-spacing: 3px;
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
