* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    color: #333333;
}


/* ============================= */
/* OPENING SCREEN */
/* ============================= */

.opening-screen {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 20px;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        #ffd6d0,
        #fbcfd3,
        #f5c9df
    );
}

.opening-content {
    position: relative;
    z-index: 10;

    max-width: 750px;
    width: 100%;

    animation: contentAppear 1.5s ease forwards;
}


/* ============================= */
/* OPENING TEXT */
/* ============================= */

.little-line {
    font-size: 1rem;
    letter-spacing: 2px;

    margin-bottom: 15px;

    opacity: 0;

    animation: fadeUp 1s ease forwards;
    animation-delay: 0.2s;
}

.birthday-heading {
    font-size: 4rem;
    line-height: 1.2;

    margin-bottom: 15px;

    opacity: 0;

    animation: fadeUp 1s ease forwards;
    animation-delay: 0.5s;
}

.surprise-text {
    font-size: 1.5rem;

    margin-bottom: 30px;

    opacity: 0;

    animation: fadeUp 1s ease forwards;
    animation-delay: 0.8s;
}


/* ============================= */
/* BUTTONS */
/* ============================= */

button {
    border: none;

    padding: 16px 28px;

    font-size: 1rem;
    font-weight: 500;

    border-radius: 50px;

    cursor: pointer;

    background-color: white;
    color: #333333;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.08);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.18);
}

button:active {
    transform: scale(0.96);
}


/* ============================= */
/* FLOATING HEARTS */
/* ============================= */

.hearts {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

.hearts span {
    position: absolute;

    bottom: -50px;

    font-size: 20px;

    opacity: 0.35;

    animation: floatHeart linear infinite;
}

.hearts span:nth-child(1) {
    left: 8%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.hearts span:nth-child(2) {
    left: 20%;
    font-size: 14px;
    animation-duration: 10s;
    animation-delay: 2s;
}

.hearts span:nth-child(3) {
    left: 35%;
    font-size: 25px;
    animation-duration: 9s;
    animation-delay: 1s;
}

.hearts span:nth-child(4) {
    left: 50%;
    font-size: 16px;
    animation-duration: 11s;
    animation-delay: 3s;
}

.hearts span:nth-child(5) {
    left: 65%;
    font-size: 23px;
    animation-duration: 8s;
    animation-delay: 1.5s;
}

.hearts span:nth-child(6) {
    left: 78%;
    font-size: 15px;
    animation-duration: 10s;
    animation-delay: 4s;
}

.hearts span:nth-child(7) {
    left: 90%;
    font-size: 22px;
    animation-duration: 9s;
    animation-delay: 2.5s;
}

.hearts span:nth-child(8) {
    left: 42%;
    font-size: 12px;
    animation-duration: 12s;
    animation-delay: 5s;
}


/* ============================= */
/* SPARKLES */
/* ============================= */

.sparkles {
    position: absolute;

    inset: 0;

    pointer-events: none;
}

.sparkles span {
    position: absolute;

    font-size: 20px;

    opacity: 0;

    animation: sparkle 3s ease-in-out infinite;
}

.sparkles span:nth-child(1) {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.sparkles span:nth-child(2) {
    top: 25%;
    right: 18%;
    animation-delay: 1s;
}

.sparkles span:nth-child(3) {
    top: 65%;
    left: 12%;
    animation-delay: 1.8s;
}

.sparkles span:nth-child(4) {
    top: 70%;
    right: 15%;
    animation-delay: 0.5s;
}

.sparkles span:nth-child(5) {
    top: 40%;
    left: 7%;
    animation-delay: 2s;
}

.sparkles span:nth-child(6) {
    top: 45%;
    right: 8%;
    animation-delay: 1.3s;
}


/* ============================= */
/* MAIN SURPRISE SECTION */
/* ============================= */

.hidden {
    display: none;
}

.main-section {
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    background: linear-gradient(
        180deg,
        #fff5f7,
        #ffe8ed
    );
}

.section-label {
    font-size: 0.9rem;

    letter-spacing: 2px;

    margin-bottom: 15px;

    opacity: 0.7;
}

.main-section h2 {
    font-size: 3rem;

    margin-bottom: 15px;
}

.section-description {
    font-size: 1.2rem;

    margin-bottom: 35px;

    opacity: 0.8;
}


/* ============================= */
/* LETTER BUTTON */
/* ============================= */

.letter-button {
    background-color: #ffffff;

    padding: 17px 32px;

    font-size: 1.05rem;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);
}


/* ============================= */
/* LETTER */
/* ============================= */

.letter {
    width: 100%;

    max-width: 800px;

    margin-top: 45px;

    animation: letterAppear 1s ease forwards;
}

.letter-paper {
    text-align: left;

    background-color: #fffdf9;

    padding: 55px 60px;

    border-radius: 8px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

    border: 1px solid rgba(0, 0, 0, 0.05);
}


/* ============================= */
/* LETTER TEXT */
/* ============================= */

.letter-date {
    text-align: right;

    font-size: 0.9rem;

    margin-bottom: 40px;

    opacity: 0.6;
}

.letter-paper h3 {
    font-size: 1.8rem;

    margin-bottom: 30px;
}

.letter-content p {
    font-size: 1.05rem;

    line-height: 1.9;

    margin-bottom: 22px;
}

.letter-ending {
    margin-top: 40px;

    line-height: 1.8;
}

.signature {
    font-size: 1rem;
    font-style: italic;
}


/* ============================= */
/* ANIMATIONS */
/* ============================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes contentAppear {

    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

@keyframes floatHeart {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.45;
    }

    100% {
        transform: translateY(-110vh) rotate(25deg);
        opacity: 0;
    }

}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(45deg);
    }

}

@keyframes letterAppear {

    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 600px) {

    .birthday-heading {
        font-size: 2.8rem;
    }

    .surprise-text {
        font-size: 1.2rem;
    }

    .little-line {
        font-size: 0.85rem;
    }

    .main-section h2 {
        font-size: 2.2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .letter-paper {
        padding: 35px 25px;
    }

    .letter-paper h3 {
        font-size: 1.5rem;
    }

    .letter-content p {
        font-size: 1rem;
        line-height: 1.8;
    }

}

/* ============================= */
/* REASONS SECTION */
/* ============================= */

.reasons-section {
    min-height: 100vh;

    padding: 100px 20px;

    text-align: center;

    background: linear-gradient(
        180deg,
        #ffe8ed,
        #fff5f7
    );
}

.reasons-section h2 {
    font-size: 3rem;

    margin-bottom: 15px;
}

.reasons-intro {
    max-width: 600px;

    margin: 0 auto 60px;

    font-size: 1.1rem;

    line-height: 1.7;

    opacity: 0.75;
}


/* ============================= */
/* CARD CONTAINER */
/* ============================= */

.reason-cards {
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 35px;

    justify-items: center;
}


/* ============================= */
/* INDIVIDUAL CARD */
/* ============================= */

.reason-card {
    width: 100%;

    max-width: 430px;

    height: 300px;

    perspective: 1000px;

    cursor: pointer;
}


/* ============================= */
/* CARD INNER */
/* ============================= */

.card-inner {
    position: relative;

    width: 100%;
    height: 100%;

    transition: transform 0.7s ease;

    transform-style: preserve-3d;
}


/* Flip the card */

.reason-card.flipped .card-inner {
    transform: rotateY(180deg);
}


/* ============================= */
/* FRONT + BACK */
/* ============================= */

.card-front,
.card-back {
    position: absolute;

    width: 100%;
    height: 100%;

    padding: 35px;

    border-radius: 20px;

    backface-visibility: hidden;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.1);
}


/* ============================= */
/* CARD FRONT */
/* ============================= */

.card-front {
    background-color: #ffffff;
}

.card-number {
    position: absolute;

    top: 20px;
    left: 25px;

    font-size: 0.8rem;

    letter-spacing: 2px;

    opacity: 0.5;
}

.card-heart {
    font-size: 2rem;

    margin-bottom: 15px;
}

.card-front h3 {
    font-size: 1.5rem;

    margin-bottom: 20px;

    line-height: 1.4;
}

.card-front p {
    font-size: 0.85rem;

    opacity: 0.5;
}


/* ============================= */
/* CARD BACK */
/* ============================= */

.card-back {
    background-color: #fff9fa;

    transform: rotateY(180deg);
}

.card-back .card-heart {
    margin-bottom: 20px;
}

.card-back p {
    max-width: 320px;

    font-size: 1.05rem;

    line-height: 1.8;
}


/* ============================= */
/* CARD HOVER */
/* ============================= */

.reason-card:hover {
    transform: translateY(-5px);
}


/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 700px) {

    .reasons-section h2 {
        font-size: 2.3rem;
    }

    .reason-cards {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .reason-card {
        max-width: 400px;

        height: 280px;
    }

}

/* ============================= */
/* STORY SECTION */
/* ============================= */

.story-section {
    min-height: 100vh;

    padding: 120px 20px;

    background-color: #fffaf9;

    text-align: center;
}

.story-container {
    max-width: 850px;

    margin: 0 auto;
}


/* ============================= */
/* STORY INTRO */
/* ============================= */

.story-intro {
    max-width: 600px;

    margin: 0 auto 70px;

    font-size: 1.15rem;

    line-height: 1.8;

    font-style: italic;

    opacity: 0.7;
}


/* ============================= */
/* STORY TITLE */
/* ============================= */

.story-title {
    margin-bottom: 65px;
}

.story-eyebrow {
    font-size: 0.85rem;

    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 15px;

    opacity: 0.55;
}

.story-title h2 {
    font-size: 3.8rem;

    line-height: 1.2;

    margin-bottom: 25px;
}


/* ============================= */
/* DECORATIVE DIVIDER */
/* ============================= */

.story-divider {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;
}

.story-divider::before,
.story-divider::after {
    content: "";

    width: 80px;

    height: 1px;

    background-color: #d9bfc4;
}

.story-divider span {
    font-size: 1.3rem;

    opacity: 0.7;
}


/* ============================= */
/* STORY CONTENT */
/* ============================= */

.story-content {
    max-width: 720px;

    margin: 0 auto;

    text-align: left;
}

.story-content p {
    font-size: 1.08rem;

    line-height: 2;

    margin-bottom: 28px;
}

.story-content p:nth-child(4) {
    text-align: center;

    font-size: 1.5rem;

    font-style: italic;

    margin: 50px 0;
}

.story-content p:nth-last-child(2),
.story-content p:last-child {
    text-align: center;
}

.story-content p:last-child {
    font-size: 1.5rem;

    font-weight: 500;

    margin-top: 40px;
}


/* ============================= */
/* STORY ENDING */
/* ============================= */

.story-ending {
    margin-top: 65px;

    padding-top: 30px;

    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.story-ending span {
    display: block;

    font-size: 1.7rem;

    margin-bottom: 15px;
}

.story-ending p {
    font-size: 1rem;

    font-style: italic;

    opacity: 0.7;
}


/* ============================= */
/* STORY MOBILE */
/* ============================= */

@media (max-width: 600px) {

    .story-section {
        padding: 90px 22px;
    }

    .story-title h2 {
        font-size: 2.6rem;
    }

    .story-intro {
        font-size: 1rem;

        margin-bottom: 55px;
    }

    .story-content p {
        font-size: 1rem;

        line-height: 1.85;
    }

    .story-divider::before,
    .story-divider::after {
        width: 50px;
    }

}

/* ============================= */
/* THINGS TO REMEMBER */
/* ============================= */

.remember-section {
    min-height: 100vh;

    padding: 120px 20px;

    display: flex;
    align-items: center;

    text-align: center;

    background-color: #fff5f7;
}

.remember-container {
    width: 100%;

    max-width: 1000px;

    margin: 0 auto;
}


/* ============================= */
/* HEADING */
/* ============================= */

.remember-section h2 {
    font-size: 3.2rem;

    line-height: 1.3;

    margin-bottom: 18px;
}

.remember-intro {
    max-width: 600px;

    margin: 0 auto 65px;

    font-size: 1.05rem;

    line-height: 1.8;

    opacity: 0.7;
}


/* ============================= */
/* NOTE CARDS */
/* ============================= */

.remember-notes {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    max-width: 850px;

    margin: 0 auto;
}

.remember-note {
    padding: 35px 30px;

    min-height: 210px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    background-color: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.remember-note:hover {
    transform: translateY(-7px);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.11);
}


/* ============================= */
/* NOTE CONTENT */
/* ============================= */

.note-symbol {
    font-size: 1.7rem;

    margin-bottom: 15px;

    opacity: 0.75;
}

.remember-note h3 {
    font-size: 1.35rem;

    margin-bottom: 12px;
}

.remember-note p {
    max-width: 280px;

    font-size: 0.95rem;

    line-height: 1.7;

    opacity: 0.7;
}


/* ============================= */
/* ENDING */
/* ============================= */

.remember-ending {
    margin-top: 65px;

    line-height: 1.8;
}

.remember-ending p {
    font-size: 1rem;

    opacity: 0.65;
}

.remember-ending span {
    display: block;

    margin-top: 5px;

    font-size: 1.15rem;

    font-style: italic;
}


/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 700px) {

    .remember-section {
        padding: 90px 22px;
    }

    .remember-section h2 {
        font-size: 2.4rem;
    }

    .remember-notes {
        grid-template-columns: 1fr;
    }

    .remember-note {
        min-height: 190px;
    }

}

/* ============================= */
/* BIRTHDAY FINALE */
/* ============================= */

.finale-section {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    padding: 120px 20px;

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        #fbcfd3,
        #f5c9df,
        #ffd6d0
    );
}

.finale-content {
    position: relative;

    z-index: 5;

    max-width: 800px;

    width: 100%;
}


/* ============================= */
/* INTRO */
/* ============================= */

.finale-small-text {
    font-size: 1.2rem;

    margin-bottom: 30px;

    font-style: italic;

    opacity: 0.75;
}


/* ============================= */
/* FINAL BUTTON */
/* ============================= */

.final-surprise-button {
    padding: 17px 32px;

    font-size: 1.05rem;

    background-color: #ffffff;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.final-surprise-button:hover {
    transform: scale(1.08);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.17);
}


/* ============================= */
/* FINAL MESSAGE */
/* ============================= */

.final-message {
    animation: finalMessageAppear 1.2s ease forwards;
}

.finale-eyebrow {
    font-size: 0.85rem;

    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 18px;

    opacity: 0.6;
}

.final-message h2 {
    font-size: 4.5rem;

    line-height: 1.2;

    margin-bottom: 20px;
}

.final-message h2 span {
    display: block;
}

.final-heart {
    font-size: 3rem;

    margin: 15px 0 35px;

    animation: heartBeat 1.5s ease-in-out infinite;
}

.final-text {
    max-width: 650px;

    margin: 0 auto 22px;

    font-size: 1.08rem;

    line-height: 1.9;
}

.final-signature {
    margin-top: 50px;

    line-height: 1.8;
}

.final-signature p {
    font-size: 1.15rem;

    margin-bottom: 5px;
}

.final-signature span {
    font-size: 1rem;

    font-style: italic;

    opacity: 0.75;
}


/* ============================= */
/* CONFETTI */
/* ============================= */

.confetti-container {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    pointer-events: none;

    overflow: hidden;

    z-index: 9999;
}

.confetti {
    position: absolute;

    top: -20px;

    width: 10px;
    height: 18px;

    opacity: 1;

    border-radius: 2px;

    animation: confettiFall linear forwards;
}


/* ============================= */
/* FINAL ANIMATIONS */
/* ============================= */

@keyframes finalMessageAppear {

    from {
        opacity: 0;

        transform:
            translateY(35px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }

}

@keyframes confettiFall {

    0% {
        transform:
            translateY(-30px)
            rotate(0deg);
    }

    25% {
        transform:
            translateY(25vh)
            rotate(180deg)
            translateX(20px);
    }

    50% {
        transform:
            translateY(50vh)
            rotate(360deg)
            translateX(-20px);
    }

    75% {
        transform:
            translateY(75vh)
            rotate(540deg)
            translateX(20px);
    }

    100% {
        transform:
            translateY(110vh)
            rotate(720deg)
            translateX(-20px);
    }

}


/* ============================= */
/* FINAL MOBILE */
/* ============================= */

@media (max-width: 600px) {

    .finale-section {
        padding: 90px 22px;
    }

    .final-message h2 {
        font-size: 3rem;
    }

    .final-text {
        font-size: 1rem;

        line-height: 1.8;
    }

    .final-heart {
        font-size: 2.5rem;
    }

}