/* =========================
   BASIC RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: #fff7fa;
    color: #4a3b42;
    overflow-x: hidden;
}

p {
    line-height: 1.8;
    font-size: 17px;
}

h1,
h2,
h3 {
    font-weight: 500;
}

button {
    font-family: inherit;
}



/* =========================
   OPENING SCREEN
========================= */

#opening {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            #fff0f5,
            #ffe0eb
        );
}

.opening-content {
    width: min(600px, 90%);
    padding: 40px 25px;

    animation: fadeUp 1.2s ease;
}

.opening-content h1 {
    font-size: clamp(45px, 8vw, 80px);
    margin: 15px 0;

    color: #4a3b42;
}

.opening-content p {
    color: #806c74;
    margin-bottom: 15px;
}

.small-text {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #d982a5;
}

.heart {
    font-size: 65px;

    animation:
        heartbeat 1.5s infinite;
}

.opening-content button,
.proposal button {
    margin-top: 25px;

    padding: 15px 30px;

    border: none;
    border-radius: 30px;

    background: #e98aaa;
    color: white;

    font-size: 16px;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(220, 120, 155, 0.25);

    transition: 0.3s;
}

.opening-content button:hover,
.proposal button:hover {
    transform:
        translateY(-3px)
        scale(1.03);

    background: #df789d;
}



/* =========================
   MAIN WEBSITE
========================= */

#website {
    display: none;
}

section {
    min-height: 100vh;

    padding: 100px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.section-content {
    width: min(850px, 92%);
    margin: auto;
}

.section-content h1 {
    font-size: clamp(55px, 9vw, 100px);
    margin: 20px 0;
}

.section-content h2 {
    font-size: clamp(35px, 6vw, 60px);
    margin: 20px 0 30px;
}

.section-content p {
    max-width: 700px;
    margin: 15px auto;
    color: #77666e;
}



/* =========================
   HERO
========================= */

.hero {
    background:
        radial-gradient(
            circle at 30% 30%,
            #fff,
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #fff6f9,
            #ffe8f0
        );
}



/* =========================
   STORY
========================= */

.story {
    background: #fff;

    border-bottom:
        1px solid #f6dfe8;
}

.story:nth-of-type(3) {
    background: #fff8fb;
}



/* =========================
   MEMORIES
========================= */

.memories {
    background: #fff;

    min-height: auto;

    padding-top: 100px;
    padding-bottom: 120px;
}



/* =========================
   PHOTO GALLERY
========================= */

.gallery {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 45px;

    align-items: start;
}



/* =========================
   MEMORY CARD
========================= */

.memory-card {
    background: #fff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 10px 30px
        rgba(150, 100, 120, 0.12);

    transition:
        0.35s ease;
}

.memory-card:hover {
    transform:
        translateY(-8px);

    box-shadow:
        0 18px 40px
        rgba(150, 100, 120, 0.18);
}



/* =========================
   MEMORY IMAGE
========================= */

.memory-card img {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 0;

    box-shadow: none;

    transition:
        0.4s ease;
}

.memory-card:hover img {
    transform:
        scale(1.03);
}



/* =========================
   MEMORY SONG
========================= */

.memory-song {
    padding:
        25px
        20px
        30px;
}

.memory-song h3 {
    color: #d9789c;

    font-size: 24px;

    margin-bottom: 18px;
}

.memory-song p {
    font-size: 15px;

    line-height: 1.8;

    color: #77666e;
}

.memory-song strong {
    color: #d9789c;

    font-weight: 500;
}



/* =========================
   MUSIC SECTION
========================= */

.music-section {
    min-height: 80vh;

    padding: 90px 20px;

    background: #fff9fc;
}

.music-section h2 {
    font-size: 45px;

    color: #4a3b42;

    margin: 10px 0;
}

.music-subtitle {
    color: #9a858d;

    margin-bottom: 35px;
}



/* =========================
   MUSIC PLAYER
========================= */

.music-player {
    width: min(600px, 92%);

    padding: 45px 30px;

    margin:
        35px auto 0;

    background: #fff;

    border:
        1px solid #f4dce6;

    border-radius: 30px;

    box-shadow:
        0 15px 45px
        rgba(180, 120, 145, 0.12);
}



/* =========================
   MUSIC DISC
========================= */

.music-disc {
    width: 130px;
    height: 130px;

    margin:
        0 auto 25px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #ffe8f0,
            #ffd1e1
        );

    border:
        8px solid white;

    box-shadow:
        0 8px 25px
        rgba(220, 140, 170, 0.2);

    animation:
        rotateDisc 6s
        linear infinite;

    animation-play-state: paused;
}

.music-disc.playing {
    animation-play-state: running;
}

.music-disc span {
    font-size: 55px;

    color: #d9789c;
}



/* =========================
   SONG INFO
========================= */

.music-player h3 {
    font-size: 28px;

    margin:
        10px 0
        5px;
}

.music-player p {
    color: #a18d95;

    margin-bottom: 30px;
}



/* =========================
   PROGRESS BAR
========================= */

.progress-area {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 12px;

    color: #9a858d;
}

#progressBar {
    flex: 1;

    cursor: pointer;

    accent-color: #e58aaa;
}



/* =========================
   MUSIC CONTROLS
========================= */

.music-controls {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    margin-top: 30px;
}

.control-btn,
.play-btn {
    border: none;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        0.25s ease;
}

.control-btn {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: #fff0f5;

    color: #c86f91;

    font-size: 20px;
}

.play-btn {
    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: #e98aaa;

    color: white;

    font-size: 22px;

    box-shadow:
        0 8px 25px
        rgba(220, 120, 155, 0.25);
}

.control-btn:hover {
    transform: scale(1.12);

    background: #ffe3ed;
}

.play-btn:hover {
    transform: scale(1.08);

    background: #df789d;
}



/* =========================
   MESSAGE
========================= */

.message {
    background: #fff;

    min-height: 80vh;
}



/* =========================
   EVERY UNIVERSE
========================= */

.universe {
    background:
        linear-gradient(
            135deg,
            #fff0f5,
            #ffe1eb
        );
}

.big-heart {
    font-size: 80px;

    animation:
        heartbeat 1.5s infinite;
}

.highlight {
    color: #d9789c !important;

    font-size: 21px !important;
}



/* =========================
   PROPOSAL
========================= */

.proposal {
    background: #fff;

    min-height: 90vh;
}

.proposal h1 {
    font-size:
        clamp(
            55px,
            9vw,
            90px
        );
}

.proposal h2 {
    color: #d9789c;
}

#answer {
    display: none;

    margin-top: 40px;

    padding: 30px;

    background: #fff5f8;

    border-radius: 25px;

    animation:
        fadeUp 0.7s ease;
}



/* =========================
   FINAL
========================= */

.final {
    background:
        linear-gradient(
            135deg,
            #fff5f8,
            #ffe5ee
        );
}



/* =========================
   FOOTER
========================= */

footer {
    padding: 30px 20px;

    text-align: center;

    background: #fff;

    color: #9a858d;

    border-top:
        1px solid #f3dce5;
}



/* =========================
   FLOATING HEARTS
========================= */

#hearts {
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 999;
}

.floating-heart {
    position: absolute;

    bottom: -30px;

    color: #e98aaa;

    opacity: 0.5;

    animation:
        floatHeart
        linear
        forwards;
}

@keyframes floatHeart {

    from {
        transform:
            translateY(0)
            rotate(0deg);

        opacity: 0;
    }

    15% {
        opacity: 0.5;
    }

    to {
        transform:
            translateY(-110vh)
            rotate(360deg);

        opacity: 0;
    }
}



/* =========================
   ANIMATIONS
========================= */

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(30px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes rotateDisc {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }
}



/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .gallery {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    section {
        padding:
            80px 15px;
    }

    .music-player {
        padding:
            35px 20px;
    }

    .music-disc {
        width: 110px;
        height: 110px;
    }

    .memory-song {
        padding:
            22px 18px
            28px;
    }

    .memory-song h3 {
        font-size: 21px;
    }

    .memory-song p {
        font-size: 14px;
    }

    .music-controls {
        gap: 18px;
    }

    .section-content {
        width: 94%;
    }
}