* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Poppins", sans-serif;
    overflow: hidden;
    background:
        radial-gradient(circle at top, #ffe4ec, #fff5f8 45%, #ffdbe7);
    color: #4a2634;
}
/* PAGE*/
.page {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        visibility 0.8s;
}
.page.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
/* Content*/
.page-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
    animation: contentAppear 1s ease;
}
@keyframes contentAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Text */
.small-text {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.8;
}
h1 {
    font-family: "Dancing Script", cursive;
    font-size: clamp(55px, 8vw, 100px);
    line-height: 1;
    margin-bottom: 30px;
}
h1 span {
    display: block;
    color: #e75480;
}
h2 {
    font-family: "Dancing Script", cursive;
    font-size: clamp(45px, 6vw, 70px);
    margin-bottom: 35px;
}
.intro-text {
    max-width: 600px;
    margin: 0 auto 35px;
    font-size: 17px;
    line-height: 1.8;
    color: #704455;
}
/* Button */
.main-btn {
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    background: #e75480;
    color: white;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    cursor: pointer;
    box-shadow:
        0 10px 25px rgba(231, 84, 128, 0.25);
    transition: 0.3s;
}
.main-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 15px 30px rgba(231, 84, 128, 0.35);
}
.main-btn:active {
    transform: scale(0.96);
}
/* Cake */
.cake {
    font-size: 100px;
    margin-bottom: 20px;
    animation: cakeBounce 2s infinite;
}
@keyframes cakeBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}
/* Balloons*/
.balloons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}
.balloons span {
    font-size: 50px;
    animation: balloonFloat 3s infinite ease-in-out;
}
.balloons span:nth-child(2) {
    animation-delay: 0.3s;
}
.balloons span:nth-child(3) {
    animation-delay: 0.6s;
}
.balloons span:nth-child(4) {
    animation-delay: 0.9s;
}
@keyframes balloonFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}
/* Memory Cards */
.memory-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}
.memory-card {
    width: 250px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 18px;
    box-shadow:
        0 15px 35px rgba(100, 30, 60, 0.08);
    backdrop-filter: blur(10px);
    transition: 0.4s;
}
.memory-card:hover {
    transform: translateY(-10px) rotate(1deg);
}
.memory-image {
    height: 150px;
    border-radius: 15px;
    background:
        linear-gradient(135deg, #ffd6e2, #fff0f5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    margin-bottom: 15px;
}
.memory-card h3 {
    font-family: "Dancing Script", cursive;
    font-size: 28px;
    margin-bottom: 8px;
}
.memory-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #75505e;
}
/* Letter */
.letter-page {
    max-width: 750px;
}
.letter {
    background: rgba(255, 255, 255, 0.7);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow:
        0 20px 50px rgba(90, 30, 50, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}
.letter p {
    font-family: "Dancing Script", cursive;
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 15px;
}
.signature {
    text-align: right;
    color: #e75480;
    font-size: 28px !important;
    margin-top: 25px;
}
/* Final Page*/
.gift {
    font-size: 100px;
    animation: giftFloat 2s infinite ease-in-out;
}
@keyframes giftFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}
.birthday-title {
    margin-bottom: 20px;
}
.final-message {
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin: auto auto 25px;
}
.final-hearts {
    font-size: 25px;
    letter-spacing: 10px;
    margin-bottom: 30px;
    animation: heartPulse 1.5s infinite;
}
@keyframes heartPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}
/* Floating Hearts */
.hearts-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 100;
}
.heart {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    animation: heartUp linear forwards;
    opacity: 0.7;
}
@keyframes heartUp {
    0% {
        transform:
            translateY(0)
            rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.8;
    }
    100% {
        transform:
            translateY(-110vh)
            rotate(360deg);
        opacity: 0;
    }
}
/* Mobile Responsive */
@media (max-width: 700px) {
    .page {
        padding: 20px;
    }
    .small-text {
        font-size: 14px;
    }
    .intro-text {
        font-size: 14px;
    }
    .memory-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-height: 48vh;
        overflow-y: auto;
        padding: 5px;
    }
    .memory-card {
        width: 90%;
        display: grid;
        grid-template-columns: 90px 1fr;
        column-gap: 15px;
        text-align: left;
        padding: 10px;
    }
    .memory-image {
        height: 90px;
        grid-row: span 2;
        font-size: 35px;
    }
    .memory-card h3 {
        font-size: 22px;
    }
    .memory-card p {
        font-size: 11px;
    }
    .letter {
        padding: 22px;
        max-height: 55vh;
        overflow-y: auto;
    }
    .letter p {
        font-size: 19px;
    }
    .balloons {
        gap: 12px;
    }
    .balloons span {
        font-size: 35px;
    }
    .cake,
    .gift {
        font-size: 75px;
    }
}
.image-box{
    height:300px;
    width:300px;
    background-color: rgb(131, 231, 231);
    border-radius: 15px;
}
.image1{
    height:250px;
    width:250px;
    background-size: cover;
    margin-top: 1rem;
    margin-left: 1.4rem;
    border-radius: 10px;
}
.images{
    display: flex;
    width:1220px;
    justify-content: space-between;
    padding-left:0px;
    margin-right: 700px;
}
.image2{
    height:490px;
    width:300px;
    background-size: cover;
    margin-top: 1rem;
    margin-left:3.2rem;
    border-radius: 10px;
    
}
.image-box2{
    height:540px;
    width:400px;
    background-color: #ffd6e2;
    background-size: cover;
    border-radius: 15px;
}
.image3{
    background-color: #57d0ec;
}
#page3{
        background: linear-gradient(
        to bottom,
        rgb(169, 56, 250) 0px,
        rgb(169, 56, 250) 50px,
        #ffffff 650px
    );
}
.butt{
    margin-top: 500px;
    margin-left: 80px;
}
#page5, #page2{
    background: linear-gradient(
        to bottom,
        #e89eb8 0px,
        #e89eb8 50px,
        #ffffff 650px
    );
}
#page4{
    background: linear-gradient(
        to bottom,
        #dee0c2 0px,
        #dee0c2 50px,
        #ffffff 650px
    );
}
.firs{
    font-weight: 700;
}
