@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: #4b4260;

    background:
        radial-gradient(circle at 20% 20%, #fff4f8 0%, transparent 30%),
        radial-gradient(circle at 80% 30%, #eee9ff 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, #e8f6ff 0%, transparent 35%),
        #fffaff;

    overflow-x: hidden;
}


/* ================= GENERAL ================= */

.section {
    min-height: 100vh;
    padding: 110px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-label {
    letter-spacing: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #a18ab8;
    margin-bottom: 18px;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
}

h2 {
    font-size: clamp(40px, 6vw, 75px);
    text-align: center;
    color: #554b68;
}

h2 span,
h1 span {
    color: #c486ad;
}

button {
    border: none;
    background: linear-gradient(135deg, #c995c0, #9b91ce);
    color: white;
    padding: 15px 28px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(157, 130, 183, 0.2);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(157, 130, 183, 0.3);
}


/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(circle at 30% 30%, #ffeef8, transparent 30%),
        radial-gradient(circle at 70% 60%, #e8e4ff, transparent 35%),
        linear-gradient(135deg, #fffafd, #f4f1ff, #eefaff);
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.tiny-text {
    color: #9b8cac;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(50px, 9vw, 110px);
    line-height: 1.05;
    color: #534960;
}

.hero-subtitle {
    margin: 30px 0;
    line-height: 1.8;
    color: #80738f;
}


/* Orbit */

.orbit {
    width: 180px;
    height: 80px;
    border: 1px solid rgba(160, 137, 181, 0.4);
    border-radius: 50%;
    margin: 30px auto;
    transform: rotate(-15deg);
    position: relative;
}

.orbit-dot {
    width: 14px;
    height: 14px;
    background: #d39ac2;
    border-radius: 50%;
    position: absolute;
    top: -7px;
    left: 50%;
    box-shadow: 0 0 20px #d39ac2;
}


/* Floating planets */

.planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
}

.planet1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e7c9e4, #c9d7f3);
    top: 15%;
    left: 8%;
    box-shadow: 15px 15px 30px rgba(170, 140, 180, 0.2);
}

.planet2 {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #ffd8e8, #d7d0f5);
    right: 12%;
    bottom: 20%;
}


/* ================= LETTER ================= */

.letter {
    background:
        radial-gradient(circle at 80% 20%, #eee9ff, transparent 30%),
        #fffaff;
}

.letter-card {
    max-width: 800px;
    margin-top: 50px;
    padding: 50px;
    border-radius: 30px;

    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(190,170,205,0.25);

    box-shadow: 0 25px 80px rgba(110, 90, 130, 0.08);

    line-height: 2;
    font-size: 16px;
}

.letter-card p {
    margin-bottom: 25px;
}

.highlight {
    color: #b2769f;
    font-weight: 600;
}

.scroll-hint {
    margin-top: 60px;
    color: #aaa0b4;
    font-size: 13px;
}


/* ================= QUIZ ================= */

.quiz-section {
    background:
        radial-gradient(circle at 20% 50%, #ffeaf5, transparent 30%),
        radial-gradient(circle at 80% 30%, #e9e5ff, transparent 30%),
        #fdfaff;
}

.quiz-intro {
    margin-top: 20px;
    text-align: center;
    line-height: 1.8;
    color: #81768d;
}

.quiz-container {
    width: min(600px, 90%);
    margin-top: 45px;
    padding: 45px;

    background: rgba(255,255,255,0.85);
    border-radius: 30px;

    box-shadow: 0 25px 80px rgba(100, 80, 130, 0.1);
}

.question-number {
    font-size: 12px;
    color: #a48cb4;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.quiz-container h3 {
    font-size: 25px;
    color: #574d65;
    margin-bottom: 25px;
}

.answer {
    width: 100%;
    text-align: left;

    margin: 8px 0;
    padding: 15px 18px;

    background: #faf7fd;
    color: #645a70;

    border: 1px solid #eee7f2;
    border-radius: 15px;

    box-shadow: none;
}

.answer:hover {
    background: #f2eafa;
    transform: translateY(-1px);
}

#quiz-message {
    min-height: 25px;
    margin: 18px 0;
    color: #c486ad;
    font-size: 14px;
}

#nextButton {
    margin-top: 5px;
}

.quiz-result {
    margin-top: 30px;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: 30px;
    color: #b277a0;
}


/* ================= MEMORY CARDS ================= */

.memories {
    background: #fffdfd;
}

.memory-grid {
    max-width: 1000px;
    width: 100%;
    margin-top: 60px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.memory-card {
    padding: 35px;
    min-height: 180px;

    border-radius: 25px;

    background:
        radial-gradient(circle at 90% 10%, #f2eaff, transparent 35%),
        #fff;

    border: 1px solid #f0e9f4;

    box-shadow: 0 15px 40px rgba(100,80,120,0.06);

    transition: 0.4s;
}

.memory-card:hover {
    transform: translateY(-8px) rotate(0.5deg);
}

.memory-card span {
    font-size: 12px;
    color: #b79fc5;
}

.memory-card h3 {
    margin: 18px 0 10px;
    font-size: 23px;
    color: #5d536b;
}

.memory-card p {
    color: #a17699;
}


/* ================= DISTANCE ================= */

.distance-section {
    min-height: 80vh;
    text-align: center;

    padding: 100px 20px;

    background:
        radial-gradient(circle at 50% 20%, #fff0f7, transparent 35%),
        linear-gradient(135deg, #f8f3ff, #f0faff);
}

.distance-section h2 {
    margin-bottom: 35px;
}

.distance-section p {
    line-height: 2;
    color: #83788f;
}

.moon {
    font-size: 65px;
    margin-bottom: 25px;
}

.distance-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.person {
    width: 45px;
    height: 45px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    background: white;

    box-shadow: 0 10px 30px rgba(100,80,130,0.1);
}

.stars-line {
    color: #b99aca;
    letter-spacing: 10px;
}


/* ================= FINAL ================= */

.final-section {
    min-height: 100vh;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        radial-gradient(circle at 20% 20%, #ffeef8, transparent 25%),
        radial-gradient(circle at 80% 30%, #e6e2ff, transparent 30%),
        radial-gradient(circle at 50% 90%, #e5f7ff, transparent 30%),
        #faf8ff;

    overflow: hidden;
}

.final-content {
    max-width: 750px;
    padding: 40px;
    z-index: 2;
}

.final-content h2 {
    margin-bottom: 35px;
}

.final-message {
    line-height: 2;
    color: #7c7189;
    margin-bottom: 20px;
}

.final-highlight {
    margin-top: 40px;
    color: #b1799e;
}

.final-content h3 {
    font-size: 32px;
    color: #5b5069;
    margin: 15px 0 45px;
}

.final-signature {
    color: #96899f;
    line-height: 1.8;
    margin-bottom: 30px;
}

.final-signature span {
    color: #bd83a7;
    font-family: "Playfair Display", serif;
    font-size: 22px;
}


/* ================= FLOATING STARS ================= */

.star {
    position: fixed;
    width: 4px;
    height: 4px;

    background: white;
    border-radius: 50%;

    box-shadow: 0 0 10px rgba(190,160,220,0.8);

    animation: twinkle 3s infinite alternate;

    pointer-events: none;
    z-index: 1;
}

@keyframes twinkle {

    from {
        opacity: 0.2;
        transform: scale(0.7);
    }

    to {
        opacity: 0.9;
        transform: scale(1.3);
    }

}


/* ================= RESPONSIVE ================= */

@media(max-width: 700px) {

    .section {
        padding: 80px 20px;
    }

    .letter-card {
        padding: 30px;
        font-size: 14px;
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .quiz-container {
        padding: 30px 22px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .planet1 {
        width: 60px;
        height: 60px;
    }

}
/* ================= FUTURE UNIVERSE ================= */

.future-universe {
    min-height: 100vh;
    padding: 120px 7%;

    text-align: center;

    background:
        radial-gradient(circle at 15% 20%, #ffeaf5, transparent 28%),
        radial-gradient(circle at 85% 30%, #e8e3ff, transparent 30%),
        radial-gradient(circle at 50% 90%, #e5f6ff, transparent 30%),
        #fffaff;
}

.future-universe h2 {
    margin-bottom: 30px;
}

.future-intro {
    color: #81768c;
    line-height: 2;
    font-size: 16px;
}

.future-divider {
    margin: 35px 0;
    color: #b58cbd;
    letter-spacing: 7px;
}

.future-note {
    font-size: 13px;
    color: #a095aa;
    margin-bottom: 55px;
}


/* MOMENT GRID */

.moment-grid {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


.moment-card {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 30px;

    position: relative;

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(225, 211, 245, 0.6),
            transparent 30%
        ),
        rgba(255,255,255,0.75);

    border: 1px solid rgba(191,170,205,0.25);

    box-shadow:
        0 15px 45px rgba(100,80,120,0.07);

    cursor: pointer;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border 0.4s ease;

    overflow: hidden;
}


.moment-card::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background: rgba(220, 196, 233, 0.18);

    top: -50px;
    right: -40px;
}


.moment-card:hover {
    transform:
        translateY(-10px)
        rotate(0.5deg);

    box-shadow:
        0 25px 60px rgba(120,90,140,0.14);

    border-color: rgba(180,150,195,0.5);
}


.card-star {
    color: #bd93c1;
    font-size: 20px;
    margin-bottom: 20px;

    animation: cardTwinkle 2s infinite alternate;
}


@keyframes cardTwinkle {

    from {
        opacity: 0.4;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1.15);
    }

}


.moment-card h3 {
    font-size: 21px;
    line-height: 1.5;
    color: #5c526a;
    font-weight: 500;
}


.moment-card span {
    margin-top: 20px;

    font-size: 10px;
    letter-spacing: 2px;

    text-transform: uppercase;

    color: #aa97b3;
}


/* ================= PHOTO POPUP ================= */

.moment-popup {

    position: fixed;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(82, 68, 95, 0.35);

    backdrop-filter: blur(15px);

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transition: 0.4s ease;
}


.moment-popup.active {

    opacity: 1;
    visibility: visible;
}


.popup-content {

    width: min(650px, 95%);

    max-height: 90vh;

    overflow-y: auto;

    padding: 25px;

    position: relative;

    text-align: center;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #fffaff,
            #f7f3ff
        );

    box-shadow:
        0 30px 100px rgba(50,40,70,0.2);

    transform:
        scale(0.85)
        translateY(30px);

    transition: 0.4s ease;
}


.moment-popup.active .popup-content {

    transform:
        scale(1)
        translateY(0);
}


/* CLOSE BUTTON */

.close-popup {

    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    padding: 0;

    border-radius: 50%;

    background: rgba(255,255,255,0.8);

    color: #74667e;

    font-size: 24px;

    box-shadow: none;

    z-index: 5;
}


.close-popup:hover {

    background: #f0e8f5;

    transform: rotate(90deg);

}


/* PHOTO */

.photo-wrapper {

    width: 100%;

    border-radius: 20px;

    overflow: hidden;

    margin-bottom: 25px;

    background: #eee8f2;
}


.photo-wrapper img {

    width: 100%;

    max-height: 60vh;

    object-fit: contain;

    display: block;

    margin: auto;
}


.popup-number {

    font-size: 10px;

    letter-spacing: 3px;

    color: #ad91b8;

    text-transform: uppercase;

    margin-bottom: 10px;
}


.popup-content h3 {

    font-size: 28px;

    color: #5b5067;

    margin-bottom: 12px;
}


.popup-content > p:last-child {

    color: #877a91;

    line-height: 1.8;

    padding: 0 15px;
}


/* MOBILE */

@media(max-width: 800px) {

    .moment-grid {

        grid-template-columns: 1fr 1fr;

    }

}


@media(max-width: 550px) {

    .future-universe {

        padding: 90px 20px;

    }

    .moment-grid {

        grid-template-columns: 1fr;

    }

    .moment-card {

        min-height: 180px;

    }

}
/* ================= FINAL LITTLE NOTE ================= */

.little-note {
    min-height: 80vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 100px 25px;

    background:
        radial-gradient(
            circle at 20% 30%,
            #ffeaf5,
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 20%,
            #e9e3ff,
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 90%,
            #e7f7ff,
            transparent 35%
        ),
        #fffaff;

    position: relative;
    overflow: hidden;
}


/* little floating stars */

.little-note::before,
.little-note::after {
    content: "✦";

    position: absolute;

    color: #c7a5ce;

    font-size: 25px;

    animation: noteFloat 4s ease-in-out infinite alternate;
}

.little-note::before {
    top: 20%;
    left: 15%;
}

.little-note::after {
    bottom: 20%;
    right: 15%;
    animation-delay: 1.5s;
}


@keyframes noteFloat {

    from {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }

    to {
        transform: translateY(-20px) rotate(20deg);
        opacity: 0.9;
    }

}


/* CARD */

.little-note-card {

    width: min(700px, 100%);

    padding: 60px 55px;

    text-align: center;

    border-radius: 35px;

    background: rgba(255,255,255,0.72);

    border: 1px solid rgba(190,170,205,0.25);

    box-shadow:
        0 25px 80px rgba(100,80,130,0.09);

    backdrop-filter: blur(10px);

}


.little-note-star {

    color: #c395c5;

    font-size: 25px;

    margin-bottom: 20px;

    animation: twinkle 2s infinite alternate;
}


.little-note-card h2 {

    font-family: "Playfair Display", serif;

    font-size: 45px;

    color: #5a5068;

    margin-bottom: 30px;
}


.little-note-card p {

    color: #81758c;

    font-size: 15px;

    line-height: 2;

    margin-bottom: 22px;

}


/* DNA JOKE */

.little-note-card .joke {

    color: #a8739b;

    margin: 30px 0;
}


.little-note-card .joke span {

    font-size: 13px;

    color: #b494ad;
}


/* GARDEN QUOTE */

.garden-quote {

    margin: 40px auto !important;

    max-width: 580px;

    font-family: "Playfair Display", serif;

    font-size: 21px !important;

    line-height: 1.8 !important;

    color: #a8759c !important;
}


/* ENDING */

.note-ending {

    margin-top: 35px;

    font-family: "Playfair Display", serif;

    font-size: 27px;

    color: #5a5068;
}


.universe-ending {

    margin-top: 8px;

    color: #b082a7 !important;

    font-size: 14px !important;
}


/* MOBILE */

@media(max-width: 600px) {

    .little-note {
        padding: 70px 18px;
    }

    .little-note-card {
        padding: 45px 25px;
    }

    .little-note-card h2 {
        font-size: 38px;
    }

    .garden-quote {
        font-size: 18px !important;
    }

}