* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: linear-gradient(135deg, #ffb6c1, #ff69b4, #ff1493);
    min-height: 100vh;
    color: #5a1735;
    overflow-x: hidden;
}


/* =========================
   FLOATING HEARTS
========================= */

.heart {
    position: fixed;
    bottom: -50px;
    font-size: 25px;
    animation: floatHeart 7s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 1s;
}

.heart:nth-child(2) {
    left: 35%;
    animation-delay: 3s;
}

.heart:nth-child(3) {
    left: 65%;
    animation-delay: 2s;
}

.heart:nth-child(4) {
    left: 85%;
    animation-delay: 4s;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}


/* =========================
   MAIN CONTAINER
========================= */

.container {
    width: 90%;
    max-width: 950px;
    margin: auto;
    padding: 40px 0;
    position: relative;
    z-index: 2;
}


/* =========================
   HEADER
========================= */

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 48px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

header p {
    font-size: 20px;
    margin-top: 10px;
}


/* =========================
   CARDS
========================= */

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin: 25px 0;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: #e91e63;
    margin: 15px 0;
}

.card p {
    line-height: 1.7;
}

.big-heart {
    font-size: 65px;
}

.emoji-title {
    font-size: 50px;
}


/* =========================
   BUTTONS
========================= */

button {
    border: none;

    background: linear-gradient(
        135deg,
        #ff4081,
        #e91e63
    );

    color: white;

    padding: 14px 25px;

    border-radius: 30px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    margin: 10px;

    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.35);

    transition: 0.3s;
}

button:hover {
    transform: scale(1.06);

    box-shadow:
        0 9px 20px
        rgba(233, 30, 99, 0.45);
}


/* =========================
   HIDDEN
========================= */

.hidden {
    display: none !important;
}


/* =========================
   LOVE LETTER
========================= */

.letter {
    background: #fff8fb;

    border: 2px solid #ffb6c1;

    padding: 30px;

    border-radius: 20px;

    margin-top: 20px;

    text-align: left;

    line-height: 1.9;

    box-shadow:
        inset 0 0 20px
        rgba(255, 105, 180, 0.1);
}

.letter h2 {
    text-align: center;
    color: #e91e63;
    margin-bottom: 20px;
}

.special-line {
    text-align: center;
    color: #e91e63;
    font-size: 21px;
}


/* =========================
   100 REASONS
========================= */

.reason-box {
    background: #fff8fb;

    padding: 25px;

    border-radius: 20px;

    margin-top: 20px;

    text-align: left;
}

#reasonList {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 20px;
}

.reason {
    background: white;

    padding: 12px;

    border-radius: 12px;

    border-left: 4px solid #ff4081;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.08);

    transition: 0.2s;
}

.reason:hover {
    transform: translateX(5px);
}


/* =================================================
   OUR MEMORIES
================================================= */

.permanent-gallery {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    width: 100%;

    max-width: 650px;

    margin: 25px auto;

    align-items: start;
}


/* =========================
   MEMORY CARD
========================= */

.memory {

    width: 100%;

    max-width: 315px;

    margin: auto;

    padding: 7px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.35);

    overflow: hidden;

    text-align: center;

    opacity: 0;

    animation: memoryAppear 0.8s ease forwards;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


/* =========================
   MEMORY IMAGE
   VERY IMPORTANT
========================= */

.permanent-gallery .memory img {

    display: block;

    width: 100% !important;

    height: auto !important;

    min-width: 0 !important;

    max-width: 100% !important;

    min-height: 0 !important;

    max-height: 350px !important;

    object-fit: contain !important;

    object-position: center;

    border-radius: 15px;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.18);

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


/* =========================
   PREVENT HUGE IMAGES
========================= */

.permanent-gallery img {

    width: 100% !important;

    height: 180px !important;

    max-width: 315px !important;

    max-height: 180px !important;

    object-fit: cover !important;
}


/* =========================
   PHOTO HOVER
========================= */

.memory:hover {

    transform:
        translateY(-6px)
        scale(1.02);

    box-shadow:
        0 12px 25px
        rgba(0, 0, 0, 0.25);
}

.memory:hover img {

    transform: scale(1.06);

    filter: brightness(1.08);
}


/* =========================
   YEAR
========================= */

.year {

    margin-top: 8px;

    font-size: 18px;

    font-weight: bold;

    color: black;

    text-shadow:
        0 2px 5px
        rgba(0, 0, 0, 0.25);
}


/* =========================
   MEMORY TEXT
========================= */

.memory-text {

    margin-top: 5px;

    font-size: 14px;

    line-height: 1.4;

    color: white;
}


/* =========================
   MEMORY ANIMATION
========================= */

@keyframes memoryAppear {

    0% {
        opacity: 0;
        transform:
            translateY(30px)
            scale(0.85);
    }

    70% {
        opacity: 1;
        transform:
            translateY(-5px)
            scale(1.03);
    }

    100% {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================
   PHOTO DELAYS
========================= */

.memory:nth-child(1) {
    animation-delay: 0.2s;
}

.memory:nth-child(2) {
    animation-delay: 0.4s;
}

.memory:nth-child(3) {
    animation-delay: 0.6s;
}

.memory:nth-child(4) {
    animation-delay: 0.8s;
}


/* =========================
   CHOCOLATE ORDER
========================= */

.order-box {

    max-width: 600px;

    margin: 25px auto;

    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.2);

    text-align: left;
}

.shop-header {

    background: #4b1f1f;

    color: white;

    padding: 20px;

    text-align: center;

    font-size: 24px;

    font-weight: bold;
}

.product {

    padding: 25px;

    text-align: center;
}

.chocolate {

    font-size: 90px;

    margin-bottom: 15px;
}

.product h3 {

    color: #4b1f1f;

    font-size: 25px;
}

.product-info {

    color: #777;

    margin: 8px 0;
}

.price {

    font-size: 28px;

    font-weight: bold;

    color: #e91e63;

    margin: 15px 0;
}

.old-price {

    color: #999;

    text-decoration: line-through;

    font-size: 15px;
}

.discount {

    color: green;

    font-weight: bold;

    margin-left: 8px;
}


/* =========================
   DELIVERY
========================= */

.delivery {

    background: #fff5f8;

    padding: 25px;
}

.delivery h3 {

    margin-bottom: 15px;

    color: #e91e63;
}

.delivery input,
.delivery textarea {

    width: 100%;

    padding: 13px;

    margin: 8px 0;

    border: 1px solid #ddd;

    border-radius: 10px;

    font-size: 15px;

    font-family: inherit;
}

.delivery textarea {

    height: 90px;

    resize: none;
}

.total {

    padding: 20px 25px;

    display: flex;

    justify-content: space-between;

    font-size: 20px;

    font-weight: bold;
}

.place-order {

    width: calc(100% - 50px);

    margin: 0 25px 25px;
}


/* =========================
   CONFIRMATION
========================= */

.confirmation {

    background: white;

    padding: 30px;

    border-radius: 20px;

    margin-top: 25px;

    text-align: center;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.2);
}

.confirmation h2 {

    color: #e91e63;

    margin-bottom: 15px;
}

.order-id {

    background: #fff0f5;

    padding: 12px;

    border-radius: 10px;

    margin: 15px 0;

    font-weight: bold;
}

.tracking {

    text-align: left;

    margin-top: 20px;
}

.track-step {

    padding: 12px;

    border-left: 4px solid #ff4081;

    margin: 8px 0;

    background: #fff7fa;

    border-radius: 5px;
}


/* =========================
   FOOTER
========================= */

footer {

    text-align: center;

    color: white;

    padding: 30px 10px;

    font-size: 16px;
}


/* =================================================
   MOBILE
================================================= */

@media (max-width: 600px) {

    header h1 {
        font-size: 34px;
    }

    header p {
        font-size: 16px;
    }

    .container {
        width: 94%;
        padding-top: 25px;
    }

    .card {
        padding: 20px;
    }

    #reasonList {
        grid-template-columns: 1fr;
    }


    /* MOBILE MEMORY GALLERY */

    .permanent-gallery {

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

        max-width: 100%;
    }

    .memory {

        width: 100%;

        max-width: none;

        padding: 5px;
    }

    .permanent-gallery .memory img,
    .permanent-gallery img {

        width: 100% !important;

        height: 140px !important;

        max-width: 100% !important;

        max-height: 140px !important;

        object-fit: cover !important;
    }

    .year {
        font-size: 15px;
    }

    .memory-text {
        font-size: 12px;
    }


    /* FINAL SURPRISE */

.final-surprise {
    text-align: center;
}

.final-intro {
    line-height: 1.8;
    margin-bottom: 20px;
}

.future-timeline {
    margin-top: 25px;
    padding: 25px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

.future-timeline p {
    font-size: 17px;
    margin: 18px 0;
    color: #333;
}

.forever-line {
    margin: 30px 0 20px;
    font-size: 18px;
    font-weight: bold;
}

.forever {
    font-size: 24px;
    font-weight: bold;
    margin: 25px 0;
}

.final-message {
    line-height: 1.8;
    font-size: 16px;
    margin-top: 25px;
}
}