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

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #fff1f5,
            #ffe4ec,
            #fce7f3
        );

    color: #4a2634;
}

.hero {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    padding: 30px;
}

.small-text {
    font-size: 15px;

    text-transform: uppercase;

    letter-spacing: 3px;

    margin-bottom: 20px;

    opacity: 0.65;
}

h1 {
    font-size: clamp(
        40px,
        8vw,
        80px
    );

    max-width: 900px;

    line-height: 1.1;

    margin-bottom: 24px;
}

.message {
    font-size: 20px;

    opacity: 0.75;

    margin-bottom: 50px;
}

.countdown {
    display: flex;

    gap: 20px;

    justify-content: center;

    flex-wrap: wrap;
}

.time-box {
    width: 120px;
    height: 120px;

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

    backdrop-filter: blur(12px);

    border-radius: 25px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    align-items: center;

    box-shadow:
        0 10px 35px
        rgba(
            120,
            40,
            70,
            0.10
        );
}

.time-box span {
    font-size: 42px;

    font-weight: 700;
}

.time-box small {
    margin-top: 6px;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;

    opacity: 0.6;
}

.distance {
    margin-top: 60px;

    font-size: 18px;

    display: flex;

    align-items: center;

    gap: 14px;

    opacity: 0.8;
}

.distance span {
    font-size: 25px;
}

/* ------------------------------ */
/* Page switching */
/* ------------------------------ */

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}


/* ------------------------------ */
/* Birthday reveal */
/* ------------------------------ */

#birthday-page {
    position: relative;

    overflow: hidden;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            #fff6f8 0%,
            #ffdbe8 35%,
            #f7bfd4 70%,
            #efa7c2 100%
        );
}


/* Main birthday content */

.birthday-content {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    padding: 30px;

    position: relative;

    z-index: 5;

    animation:
        fadeUp 1.5s ease forwards;
}


.birthday-small {
    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 4px;

    opacity: 0.55;

    margin-bottom: 25px;
}


.birthday-title {
    font-size:
        clamp(
            52px,
            10vw,
            110px
        );

    line-height: 0.95;

    max-width: 1000px;

    margin-bottom: 30px;
}


.birthday-title span {
    display: block;

    font-family: Georgia, serif;

    font-style: italic;

    margin-top: 12px;
}


.birthday-message {
    font-size:
        clamp(
            18px,
            3vw,
            24px
        );

    opacity: 0.7;

    margin-bottom: 42px;
}


/* Gift button */

#open-gift {
    border: none;

    padding:
        18px
        28px;

    border-radius: 100px;

    font-size: 17px;

    cursor: pointer;

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

    color: #54263a;

    box-shadow:
        0 12px 35px
        rgba(
            100,
            30,
            65,
            0.18
        );

    backdrop-filter:
        blur(10px);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


#open-gift:hover {
    transform:
        translateY(-4px)
        scale(1.03);

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

    box-shadow:
        0 18px 45px
        rgba(
            100,
            30,
            65,
            0.25
        );
}


#open-gift span {
    margin-left: 10px;

    transition:
        transform 0.25s ease;
}


#open-gift:hover span {
    display: inline-block;

    transform:
        translateX(5px);
}


/* ------------------------------ */
/* Floating hearts */
/* ------------------------------ */

.floating-hearts {
    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 1;
}


.heart {
    position: absolute;

    bottom: -60px;

    opacity: 0;

    animation:
        floatHeart linear infinite;

    user-select: none;
}


/* ------------------------------ */
/* Animations */
/* ------------------------------ */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(30px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


@keyframes floatHeart {

    0% {
        transform:
            translateY(0)
            rotate(0deg);

        opacity: 0;
    }

    10% {
        opacity: 0.65;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform:
            translateY(-120vh)
            rotate(25deg);

        opacity: 0;
    }

}


/* Mobile */

@media (max-width: 600px) {

    .birthday-title {
        font-size: 55px;
    }

    .birthday-message {
        font-size: 18px;
    }

}

/* ------------------------------ */
/* Our Story */
/* ------------------------------ */

#story-page {
    background:
        linear-gradient(
            to bottom,
            #fff8fa,
            #fff1f5,
            #fde8ef
        );

    color: #4a2634;
}


.story-intro {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    padding: 40px 25px;
}


.story-small {
    font-size: 14px;

    letter-spacing: 4px;

    opacity: 0.55;

    margin-bottom: 25px;
}


.story-intro h2 {
    font-family: Georgia, serif;

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

    font-weight: 400;

    line-height: 1.15;

    max-width: 1000px;

    margin-bottom: 25px;
}


.story-subtitle {
    font-size: 20px;

    opacity: 0.7;

    max-width: 600px;
}


.scroll-hint {
    margin-top: 80px;

    font-size: 14px;

    letter-spacing: 1px;

    opacity: 0.45;

    animation:
        gentleBounce
        2s ease-in-out
        infinite;
}


@keyframes gentleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}


/* ------------------------------ */
/* Timeline */
/* ------------------------------ */

.timeline {
    width:
        min(
            1000px,
            90%
        );

    margin: 0 auto;

    padding:
        80px 0
        150px;

    position: relative;
}


.timeline::before {
    content: "";

    position: absolute;

    left: 50%;

    top: 0;
    bottom: 0;

    width: 2px;

    background:
        rgba(
            120,
            50,
            80,
            0.18
        );

    transform:
        translateX(-50%);
}


.timeline-item {
    width: 50%;

    position: relative;

    padding:
        40px
        55px;
}


.timeline-item:nth-child(odd) {
    margin-left: 0;

    text-align: right;
}


.timeline-item:nth-child(even) {
    margin-left: 50%;

    text-align: left;
}


.timeline-dot {
    position: absolute;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #c76d92;

    top: 80px;

    box-shadow:
        0 0 0 8px
        rgba(
            199,
            109,
            146,
            0.12
        );
}


.timeline-item:nth-child(odd)
.timeline-dot {
    right: -9px;
}


.timeline-item:nth-child(even)
.timeline-dot {
    left: -9px;
}


.timeline-card {
    background:
        rgba(
            255,
            255,
            255,
            0.7
        );

    backdrop-filter:
        blur(10px);

    padding: 22px;

    border-radius: 26px;

    box-shadow:
        0 18px 50px
        rgba(
            100,
            40,
            70,
            0.08
        );

    opacity: 0;

    transform:
        translateY(40px);

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


.timeline-card.visible {
    opacity: 1;

    transform:
        translateY(0);
}


.timeline-card img,
.timeline-card video {
    width: 100%;

    max-height: 520px;

    object-fit: cover;

    border-radius: 18px;

    margin-bottom: 18px;
}


.timeline-date {
    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 2px;

    opacity: 0.5;

    margin-bottom: 14px;
}


.timeline-card h3 {
    font-family: Georgia, serif;

    font-size: 29px;

    font-weight: 400;

    margin-bottom: 12px;
}


.timeline-card p {
    line-height: 1.7;

    opacity: 0.75;
}


.final-memory {
    text-align: center;

    padding: 45px 30px;
}


.final-memory h3 {
    font-size: 45px;
}


.continue-text {
    margin-top: 18px;
}


.to-be-continued {
    display: block;

    margin-top: 35px;

    font-family: Georgia, serif;

    font-size: 25px;

    font-style: italic;

    opacity: 0.65;
}


/* ------------------------------ */
/* Mobile */
/* ------------------------------ */

@media (max-width: 700px) {

    .timeline {
        width: 92%;
    }


    .timeline::before {
        left: 18px;
    }


    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;

        margin-left: 0;

        padding:
            30px
            10px
            30px
            50px;

        text-align: left;
    }


    .timeline-item:nth-child(odd)
    .timeline-dot,
    .timeline-item:nth-child(even)
    .timeline-dot {
        left: 9px;

        right: auto;
    }


    .story-intro h2 {
        font-size: 42px;
    }

}

/* ------------------------------ */
/* Things I Love About You */
/* ------------------------------ */

.love-section {
    min-height: 100vh;

    padding:
        120px
        25px
        150px;

    text-align: center;

    background:
        linear-gradient(
            to bottom,
            #fde8ef,
            #fbd9e6,
            #f8cddd
        );
}


.love-intro {
    max-width: 850px;

    margin: 0 auto 70px;
}


.love-small {
    font-size: 13px;

    letter-spacing: 4px;

    opacity: 0.5;

    margin-bottom: 20px;
}


.love-intro h2 {
    font-family: Georgia, serif;

    font-size:
        clamp(
            42px,
            7vw,
            78px
        );

    font-weight: 400;

    margin-bottom: 20px;
}


.love-subtitle {
    font-size: 18px;

    opacity: 0.6;
}


/* Hearts */

.love-grid {
    width:
        min(
            700px,
            95%
        );

    margin:
        0 auto
        60px;

    display: grid;

    grid-template-columns:
        repeat(
            5,
            1fr
        );

    gap: 25px;
}


.love-heart {
    border: none;

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

    width: 100%;

    aspect-ratio: 1;

    border-radius: 50%;

    font-size: 38px;

    cursor: pointer;

    box-shadow:
        0 12px 30px
        rgba(
            100,
            40,
            70,
            0.10
        );

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.love-heart:hover {
    transform:
        translateY(-5px)
        scale(1.05);

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

    box-shadow:
        0 18px 40px
        rgba(
            100,
            40,
            70,
            0.17
        );
}


.love-heart.opened {
    background:
        rgba(
            255,
            255,
            255,
            0.95
        );

    transform:
        scale(0.92);

    opacity: 0.7;
}


/* Message card */

.love-message-card {
    width:
        min(
            600px,
            92%
        );

    margin: 0 auto;

    padding:
        45px
        35px;

    border-radius: 30px;

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

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 20px 60px
        rgba(
            100,
            40,
            70,
            0.12
        );

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


.love-message-card.changing {
    opacity: 0;

    transform:
        translateY(15px);
}


.love-card-heart {
    display: block;

    font-size: 38px;

    margin-bottom: 18px;
}


.love-message-card h3 {
    font-family: Georgia, serif;

    font-size: 32px;

    font-weight: 400;

    margin-bottom: 15px;
}


.love-message-card p {
    font-size: 18px;

    line-height: 1.7;

    opacity: 0.75;
}


/* Mobile */

@media (max-width: 600px) {

    .love-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );

        gap: 18px;

        max-width: 340px;
    }


    .love-heart {
        font-size: 32px;
    }


    .love-section {
        padding:
            100px
            20px
            120px;
    }

}

/* ------------------------------ */
/* Distance Section */
/* ------------------------------ */

.distance-section {
    min-height: 100vh;

    display: flex;

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

    padding:
        130px
        25px;

    background:
        linear-gradient(
            to bottom,
            #f8cddd,
            #f5bfd3,
            #f2b4cb
        );

    text-align: center;
}


.distance-content {
    width:
        min(
            1000px,
            95%
        );
}


.distance-small {
    font-size: 13px;

    letter-spacing: 4px;

    opacity: 0.5;

    margin-bottom: 20px;
}


.distance-content h2 {
    font-family: Georgia, serif;

    font-size:
        clamp(
            45px,
            8vw,
            85px
        );

    font-weight: 400;

    margin-bottom: 20px;
}


.distance-content h2 span {
    display: inline-block;

    animation:
        heartbeat
        1.8s ease-in-out
        infinite;
}


.distance-intro {
    max-width: 650px;

    margin:
        0 auto
        100px;

    font-size: 20px;

    line-height: 1.7;

    opacity: 0.7;
}


/* ------------------------------ */
/* Germany ↔ Turkey */
/* ------------------------------ */

.distance-map {
    width: 100%;

    display: flex;

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

    margin-bottom: 100px;
}


.location {
    width: 180px;
}


.location-dot {
    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #a84e73;

    margin:
        0 auto
        18px;

    box-shadow:
        0 0 0 10px
        rgba(
            168,
            78,
            115,
            0.12
        );
}


.location h3 {
    font-family: Georgia, serif;

    font-size: 25px;

    font-weight: 400;

    margin-bottom: 7px;
}


.location p {
    opacity: 0.55;
}


.connection-line {
    position: relative;

    width:
        min(
            450px,
            45vw
        );

    height: 2px;

    margin:
        0
        10px
        55px;

    background:
        rgba(
            110,
            45,
            75,
            0.25
        );
}


.travel-heart {
    position: absolute;

    top: 50%;
    left: 0;

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

    font-size: 30px;

    animation:
        heartTravel
        6s ease-in-out
        infinite;
}


/* ------------------------------ */
/* Distance words */
/* ------------------------------ */

.distance-words {
    display: flex;

    flex-direction: column;

    gap: 26px;

    margin-bottom: 100px;
}


.distance-words p {
    font-family: Georgia, serif;

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

    opacity: 0.8;
}


.distance-ending {
    width:
        min(
            650px,
            92%
        );

    margin: 0 auto;

    padding:
        45px
        35px;

    border-radius: 30px;

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

    backdrop-filter:
        blur(10px);
}


.distance-ending p {
    font-size: 20px;

    line-height: 1.7;

    margin-bottom: 20px;

    opacity: 0.75;
}


.distance-ending span {
    font-family: Georgia, serif;

    font-style: italic;

    font-size: 25px;
}


/* ------------------------------ */
/* Distance animations */
/* ------------------------------ */

@keyframes heartTravel {

    0% {
        left: 0;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 0;
    }

}


@keyframes heartbeat {

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

    15% {
        transform:
            scale(1.15);
    }

    30% {
        transform:
            scale(1);
    }

    45% {
        transform:
            scale(1.10);
    }

    60% {
        transform:
            scale(1);
    }

}


/* Mobile */

@media (max-width: 650px) {

    .distance-map {
        margin-bottom: 80px;
    }


    .location {
        width: 100px;
    }


    .location h3 {
        font-size: 18px;
    }


    .connection-line {
        width: 120px;
    }


    .travel-heart {
        font-size: 24px;
    }


    .distance-intro {
        margin-bottom: 75px;
    }


    .distance-section {
        padding:
            110px
            18px;
    }

}

/* ------------------------------ */
/* Voice Message */
/* ------------------------------ */

.voice-section {
    min-height: 100vh;

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

    padding: 120px 25px;

    background:
        linear-gradient(
            to bottom,
            #f2b4cb,
            #f7d7e3
        );

    text-align: center;
}


.voice-content {
    width: min(700px, 95%);
}


.voice-small,
.letter-small,
.final-small {
    font-size: 13px;

    letter-spacing: 4px;

    opacity: 0.5;

    margin-bottom: 20px;
}


.voice-content h2,
.letter-intro h2,
.final-content h2 {
    font-family: Georgia, serif;

    font-size:
        clamp(
            44px,
            7vw,
            78px
        );

    font-weight: 400;

    margin-bottom: 18px;
}


.voice-subtitle {
    font-size: 18px;

    opacity: 0.6;

    margin-bottom: 55px;
}


.voice-card {
    padding: 45px 35px;

    border-radius: 30px;

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

    backdrop-filter: blur(12px);

    box-shadow:
        0 20px 60px
        rgba(
            100,
            40,
            70,
            0.12
        );
}


.voice-icon {
    font-size: 42px;

    margin-bottom: 18px;

    animation:
        heartbeat
        1.8s ease-in-out
        infinite;
}


.voice-card p {
    font-size: 19px;

    line-height: 1.6;

    margin-bottom: 30px;

    opacity: 0.75;
}


.voice-card audio {
    width: 100%;
}


/* ------------------------------ */
/* Letter */
/* ------------------------------ */

.letter-section {
    min-height: 100vh;

    padding:
        130px
        25px;

    background:
        linear-gradient(
            to bottom,
            #f7d7e3,
            #fff4f7
        );
}


.letter-intro {
    text-align: center;

    margin-bottom: 60px;
}


#open-letter {
    border: none;

    padding:
        17px
        28px;

    border-radius: 100px;

    font-size: 17px;

    cursor: pointer;

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

    color: #54263a;

    box-shadow:
        0 12px 35px
        rgba(
            100,
            30,
            65,
            0.15
        );

    transition:
        transform 0.25s ease;
}


#open-letter:hover {
    transform:
        translateY(-4px)
        scale(1.03);
}


.letter {
    width:
        min(
            760px,
            95%
        );

    margin: 0 auto;

    background: #fffdf9;

    padding:
        65px
        55px;

    border-radius: 12px;

    box-shadow:
        0 25px 70px
        rgba(
            80,
            40,
            55,
            0.15
        );

    font-family: Georgia, serif;

    display: none;

    opacity: 0;

    transform:
        translateY(30px);

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


.letter.visible {
    display: block;

    opacity: 1;

    transform:
        translateY(0);
}


.letter p {
    font-size: 19px;

    line-height: 1.9;

    margin-bottom: 25px;

    color: #50333d;
}


.letter-heading {
    font-size: 30px !important;
}


.letter-signature {
    margin-top: 45px;

    font-style: italic;

    font-size: 23px !important;
}


/* ------------------------------ */
/* Final Section */
/* ------------------------------ */

.final-section {
    min-height: 100vh;

    display: flex;

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

    padding: 120px 25px;

    background:
        radial-gradient(
            circle at center,
            #fff6f8,
            #f8ccdc,
            #eaa9c2
        );

    text-align: center;
}


.final-content {
    max-width: 850px;
}


.final-main {
    font-family: Georgia, serif;

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

    opacity: 0.75;
}


.final-heart {
    font-size: 70px;

    margin:
        50px
        0;

    animation:
        heartbeat
        1.7s ease-in-out
        infinite;
}


.final-message {
    font-family: Georgia, serif;

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

    margin-bottom: 20px;
}


.final-submessage {
    font-size: 20px;

    opacity: 0.7;
}


.final-date {
    margin-top: 60px;

    letter-spacing: 5px;

    opacity: 0.45;
}


/* Mobile */

@media (max-width: 600px) {

    .letter {
        padding:
            45px
            28px;
    }


    .letter p {
        font-size: 17px;
    }


    .voice-section,
    .letter-section,
    .final-section {
        padding:
            100px
            18px;
    }

}