/* =========================================
   MUSKAN AKA MJ — BIRTHDAY LOVE BOX ❤️
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;

    background:
        radial-gradient(
            circle at top,
            #fff9fb 0%,
            #fdeef3 45%,
            #f8e3e9 100%
        );

    color: #4d2633;

    min-height: 100vh;
}


/* =========================================
   GENERAL
========================================= */

.hidden {
    display: none !important;
}

button {
    font-family: inherit;
}

.eyebrow {
    font-family: Arial, sans-serif;

    font-size: 12px;

    letter-spacing: 5px;

    text-transform: uppercase;

    color: #a94a68;

    margin-bottom: 25px;
}


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

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

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 50px 25px;

    position: relative;

    overflow: hidden;
}

.intro-screen::before {
    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    background:
        rgba(255, 182, 200, 0.18);

    top: -220px;

    left: -180px;
}

.intro-screen::after {
    content: "";

    position: absolute;

    width: 450px;

    height: 450px;

    border-radius: 50%;

    background:
        rgba(210, 150, 175, 0.12);

    bottom: -220px;

    right: -180px;
}

.intro-decoration {
    font-size: 35px;

    color: #b44c6a;

    margin-bottom: 20px;

    animation: heartbeat 1.8s infinite;
}

.intro-screen h1 {
    font-size:
        clamp(55px, 8vw, 105px);

    line-height: 0.95;

    font-weight: normal;

    margin-bottom: 55px;

    position: relative;

    z-index: 1;
}

.intro-screen h1 em {
    font-style: italic;
}

.intro-text {
    max-width: 680px;

    font-size: 20px;

    line-height: 1.8;

    color: #76515e;

    margin-bottom: 25px;

    position: relative;

    z-index: 1;
}

.primary-button {
    margin-top: 30px;

    border: none;

    background: #9e405e;

    color: white;

    padding: 19px 38px;

    border-radius: 50px;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 15px 35px
        rgba(130, 50, 75, 0.22);

    transition: all 0.3s ease;

    position: relative;

    z-index: 2;
}

.primary-button:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 40px
        rgba(130, 50, 75, 0.3);
}

.intro-footer {
    margin-top: 40px;

    color: #9a6675;

    font-size: 14px;

    position: relative;

    z-index: 1;
}


/* =========================================
   HERO
========================================= */

.hero-section {
    text-align: center;

    padding:
        85px 25px 100px;

    max-width: 1100px;

    margin: auto;
}

.hero-section h2 {
    font-size:
        clamp(55px, 8vw, 100px);

    line-height: 0.95;

    font-weight: normal;

    margin-bottom: 45px;
}

.hero-section h2 em {
    font-style: italic;
}

.hero-text {
    max-width: 800px;

    margin: auto;

    font-size: 20px;

    line-height: 1.8;

    color: #75505e;
}


/* =========================================
   MAIN PHOTO — PHOTO 11
========================================= */

.main-photo-frame {
    width:
        min(760px, 92vw);

    margin:
        65px auto 0;

    padding: 14px;

    background: white;

    box-shadow:
        0 25px 60px
        rgba(80, 35, 50, 0.15),

        0 5px 15px
        rgba(80, 35, 50, 0.08);

    transform: rotate(-1deg);

    transition:
        transform 0.5s ease;
}

.main-photo-frame:hover {
    transform:
        rotate(0deg)
        scale(1.01);
}

.photo-inner {
    width: 100%;

    height: 560px;

    overflow: hidden;

    background: #ead8de;
}

.main-photo {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center center;

    transition:
        transform 0.7s ease;
}

.main-photo-frame:hover
.main-photo {
    transform: scale(1.03);
}

.photo-caption {
    padding:
        16px 10px 8px;

    font-size: 16px;

    font-style: italic;

    color: #7b4b5d;
}

.memory-line {
    margin-top: 40px;

    font-size: 19px;

    line-height: 1.8;

    color: #805665;
}


/* =========================================
   LETTER SECTION
========================================= */

.letters-section {
    max-width: 1200px;

    margin: auto;

    padding:
        80px 25px 120px;

    text-align: center;
}

.letters-section h2 {
    font-size:
        clamp(50px, 7vw, 82px);

    font-weight: normal;

    margin-bottom: 20px;
}

.section-intro {
    color: #805665;

    font-size: 19px;

    line-height: 1.7;

    margin-bottom: 40px;
}


/* =========================================
   PROGRESS BOX
========================================= */

.progress-box {
    width:
        min(620px, 100%);

    margin:
        0 auto 55px;

    padding:
        20px 24px;

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

    border:
        1px solid
        rgba(150, 80, 105, 0.12);

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(80, 35, 50, 0.06);

    text-align: left;
}

.progress-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;

    font-family: Arial, sans-serif;

    font-size: 13px;

    color: #805665;
}

.progress-top strong {
    color: #9e405e;

    font-size: 14px;
}

.progress-bar {
    width: 100%;

    height: 8px;

    background: #ead9df;

    border-radius: 20px;

    overflow: hidden;
}

.progress-fill {
    width: 10%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            #9e405e,
            #d87998
        );

    border-radius: 20px;

    transition:
        width 0.5s ease;
}

.progress-box p {
    margin-top: 12px;

    font-size: 14px;

    color: #8a5b6b;

    text-align: center;
}


/* =========================================
   LETTER GRID
========================================= */

.letters-grid {
    display: grid;

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

    gap: 24px;

    text-align: left;
}

.letter {
    background:
        rgba(255, 255, 255, 0.72);

    border:
        1px solid
        rgba(150, 80, 105, 0.12);

    border-radius: 22px;

    padding: 35px 30px;

    cursor: pointer;

    box-shadow:
        0 12px 35px
        rgba(80, 35, 50, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        opacity 0.3s ease;

    position: relative;

    overflow: hidden;
}

.letter::before {
    content: "";

    position: absolute;

    width: 130px;

    height: 130px;

    border-radius: 50%;

    background:
        rgba(240, 170, 190, 0.12);

    right: -60px;

    top: -60px;
}

.letter:hover {
    transform:
        translateY(-8px);

    box-shadow:
        0 22px 45px
        rgba(80, 35, 50, 0.13);

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


/* =========================================
   LOCKED LETTERS
========================================= */

.letter.locked {
    opacity: 0.58;

    cursor: not-allowed;

    background:
        rgba(235, 222, 227, 0.65);

    box-shadow:
        0 8px 20px
        rgba(80, 35, 50, 0.04);
}

.letter.locked:hover {
    transform: none;

    background:
        rgba(235, 222, 227, 0.65);

    box-shadow:
        0 8px 20px
        rgba(80, 35, 50, 0.04);
}

.letter.locked .letter-icon {
    filter: grayscale(0.4);
}

.letter.locked span {
    color: #92717d;
}


/* =========================================
   LETTER CONTENT
========================================= */

.letter-icon {
    font-size: 38px;

    margin-bottom: 20px;

    position: relative;
}

.letter h3 {
    font-size: 25px;

    font-weight: normal;

    line-height: 1.25;

    margin-bottom: 15px;

    position: relative;
}

.letter p {
    color: #805665;

    font-size: 16px;

    line-height: 1.7;

    margin-bottom: 22px;

    position: relative;
}

.letter span {
    font-family: Arial, sans-serif;

    font-size: 13px;

    letter-spacing: 1px;

    color: #a23f60;

    position: relative;
}


/* =========================================
   BIRTHDAY CARD
========================================= */

.birthday-letter {
    background:
        linear-gradient(
            135deg,
            rgba(255, 240, 245, 0.95),
            rgba(255, 225, 234, 0.95)
        );

    border:
        1px solid
        rgba(170, 70, 100, 0.18);
}


/* =========================================
   SECRET CARD
========================================= */

.secret-letter {
    background:
        linear-gradient(
            135deg,
            #f3e7ec,
            #ead5de
        );
}

.secret-letter .letter-icon {
    animation:
        heartbeat 2s infinite;
}

.special-label {
    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 3px;

    color: #a23f60;

    margin-bottom: 12px;
}


/* =========================================
   FINAL SECTION
========================================= */

.final-section {
    text-align: center;

    padding: 120px 25px;

    background:
        rgba(255, 255, 255, 0.35);
}

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

    margin-bottom: 25px;

    animation:
        heartbeat 1.8s infinite;
}

.final-section h2 {
    font-size:
        clamp(42px, 6vw, 70px);

    line-height: 1.05;

    font-weight: normal;

    margin-bottom: 35px;
}

.final-section p {
    color: #805665;

    font-size: 20px;

    line-height: 1.8;
}

.final-signature {
    margin-top: 35px;

    font-size: 19px;

    font-style: italic;

    color: #9e405e;
}

.site-footer {
    text-align: center;

    padding: 30px;

    font-size: 13px;

    color: #9a6675;
}


/* =========================================
   MODAL
========================================= */

.modal {
    position: fixed;

    inset: 0;

    background:
        rgba(45, 20, 30, 0.72);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 25px;

    z-index: 9999;

    overflow-y: auto;
}

.modal-content {
    width:
        min(700px, 100%);

    max-height: 92vh;

    overflow-y: auto;

    background:
        linear-gradient(
            180deg,
            #fffafb,
            #fff0f4
        );

    border-radius: 26px;

    padding: 45px;

    text-align: center;

    position: relative;

    box-shadow:
        0 30px 90px
        rgba(20, 10, 15, 0.35);

    animation:
        letterPop 0.45s ease;
}

.modal-close {
    position: absolute;

    top: 15px;

    right: 20px;

    border: none;

    background: transparent;

    font-size: 35px;

    color: #8d5365;

    cursor: pointer;
}

.modal-emoji {
    font-size: 45px;

    margin-bottom: 12px;
}

.modal-label {
    font-family: Arial, sans-serif;

    font-size: 10px;

    letter-spacing: 3px;

    color: #a94a68;

    margin-bottom: 12px;
}

.modal-content h2 {
    font-size: 37px;

    font-weight: normal;

    line-height: 1.2;

    margin-bottom: 30px;
}


/* =========================================
   LETTER PHOTOS 1–10
   FULL IMAGE — NO CROPPING
========================================= */

.letter-photo-frame {
    width: 100%;

    min-height: 250px;

    max-height: 520px;

    padding: 10px;

    background: #ffffff;

    box-shadow:
        0 15px 35px
        rgba(80, 35, 50, 0.12);

    margin-bottom: 35px;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    border-radius: 4px;
}

.letter-photo-frame img {
    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    max-height: 500px;

    object-fit: contain;

    object-position: center center;

    background: #f5e8ed;

    border-radius: 2px;
}


/* =========================================
   MESSAGE
========================================= */

.message {
    white-space: pre-line;

    text-align: left;

    font-size: 18px;

    line-height: 1.9;

    color: #68424f;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.close-button {
    margin-top: 35px;

    padding: 15px 28px;

    border: none;

    border-radius: 50px;

    background: #9e405e;

    color: white;

    font-size: 15px;

    cursor: pointer;

    transition:
        transform 0.3s ease;
}

.close-button:hover {
    transform:
        translateY(-3px);
}


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

@keyframes heartbeat {

    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.12);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.08);
    }

    60% {
        transform: scale(1);
    }

}


@keyframes letterPop {

    0% {
        opacity: 0;

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

    60% {
        opacity: 1;

        transform:
            scale(1.03)
            translateY(-5px);
    }

    100% {
        opacity: 1;

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

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .intro-screen {
        padding: 35px 20px;
    }

    .intro-screen h1 {
        font-size:
            clamp(46px, 13vw, 70px);

        margin-bottom: 40px;
    }

    .intro-text {
        font-size: 17px;

        line-height: 1.7;
    }

    .primary-button {
        font-size: 15px;

        padding:
            17px 27px;
    }


    /* HERO */

    .hero-section {
        padding:
            60px 18px 75px;
    }

    .hero-section h2 {
        font-size:
            clamp(48px, 14vw, 70px);
    }

    .hero-text {
        font-size: 17px;
    }


    /* MAIN PHOTO 11 */

    .main-photo-frame {
        width: 94vw;

        padding: 9px;

        margin-top: 45px;
    }

    .photo-inner {
        height: 440px;
    }


    /* LETTERS */

    .letters-section {
        padding:
            60px 18px 80px;
    }

    .letters-section h2 {
        font-size: 52px;
    }

    .letters-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .letter {
        padding:
            28px 24px;
    }

    .letter h3 {
        font-size: 22px;
    }


    /* PROGRESS */

    .progress-box {
        padding:
            17px 18px;

        margin-bottom: 35px;
    }


    /* LETTER PHOTOS */

    .letter-photo-frame {
        width: 100%;

        min-height: 200px;

        max-height: 500px;

        height: auto;

        padding: 8px;

        margin-bottom: 25px;

        display: flex;

        justify-content: center;

        align-items: center;

        overflow: hidden;
    }

    .letter-photo-frame img {
        width: 100%;

        height: auto;

        max-width: 100%;

        max-height: 480px;

        object-fit: contain;
    }


    /* MODAL */

    .modal {
        padding: 12px;

        align-items: flex-start;
    }

    .modal-content {
        margin-top: 15px;

        max-height: 94vh;

        padding:
            38px 20px 28px;

        border-radius: 20px;
    }

    .modal-content h2 {
        font-size: 29px;
    }

    .message {
        font-size: 16px;

        line-height: 1.8;
    }


    /* FINAL */

    .final-section {
        padding:
            85px 20px;
    }

    .final-section h2 {
        font-size: 42px;
    }

}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 400px) {

    .photo-inner {
        height: 390px;
    }

    .intro-screen h1 {
        font-size: 43px;
    }

    .hero-section h2 {
        font-size: 45px;
    }

    .letter-photo-frame {
        min-height: 180px;

        max-height: 450px;
    }

    .letter-photo-frame img {
        max-height: 430px;
    }

} 
