body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg,#fff5f7,#ffe9ef);
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}
.navbar {
    background: white;
    height: 70px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

.navbar-brand {
    font-size: 28px;
    font-weight: bold;
    color: #ff4d6d !important;
}

body {
    background: #fff0f5;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .hero h1 {
        font-size: 60px;
        color: #ff4d6d;
    }

    .hero p {
        font-size: 24px;
        color: #555;
    }

.btn-start {
    margin-top: 30px;
    padding: 15px 35px;
    background: #ff4d6d;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 22px;
    transition: .3s;
}

    .btn-start:hover {
        background: #d63384;
        color: white;
    }
.login-page {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 30px;
    padding: 35px 28px;
    box-shadow: 0 20px 50px rgba(255,77,109,.18);
}

.lock {
    font-size: 70px;
    text-align: center;
}
.login-card h2 {
    text-align: center;
    margin-top: 15px;
    font-size: 32px;
    font-weight: bold;
}

.password-box {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 25px;
}

.unlock-btn {
    width: 100%;
    height: 58px;
    margin-top: 25px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(90deg,#ff4d6d,#ff6f91);
    color: white;
    font-size: 20px;
    font-weight: bold;
    transition: .3s;
}

    .unlock-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(255,77,109,.3);
    }
.password-container {
    position: relative;
    margin-top: 35px;
}

.password-box {
    width: 100%;
    height: 58px;
    border-radius: 18px;
    border: 2px solid #eee;
    padding-left: 20px;
    padding-right: 55px;
    font-size: 18px;
    transition: .3s;
}

    .password-box:focus {
        border-color: #ff4d6d;
        box-shadow: 0 0 12px rgba(255,77,109,.25);
    }

.eye {
    position: absolute;
    top: 60%;
    right: 18px;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    width: 350px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    animation: popup .3s ease;
}

.popup-emoji {
    font-size: 70px;
    margin-bottom: 10px;
}

.popup-box h3 {
    color: #ff4d6d;
    margin-bottom: 10px;
}

.popup-box p {
    font-size: 18px;
}

.popup-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background: #ff4d6d;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

    .popup-btn:hover {
        background: #e63956;
    }

@keyframes popup {

    from {
        transform: scale(.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
.back-container {
    position: absolute;
    top: 85px;
    left: 20px;
}

.back-btn {
    border: none;
    background: #ff4d6d;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top:20px;
}

    .back-btn:hover {
        color: white;
    }
@media(max-width:576px) {

    .navbar-brand {
        font-size: 24px;
    }

    .login-card {
        padding: 30px 22px;
    }

        .login-card h2 {
            font-size: 26px;
        }

    .lock {
        font-size: 60px;
    }

    .password-box {
        height: 55px;
        font-size: 16px;
    }

    .unlock-btn {
        height: 55px;
        font-size: 18px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }
}

.dashboard {
    min-height: 100vh;
    padding: 90px 20px 40px;
    background: linear-gradient(180deg,#fff5f7,#ffe9ef);
}

.welcome-section {
    text-align: center;
    margin-bottom: 35px;
}

    .welcome-section h1 {
        color: #ff4d6d;
        font-size: 38px;
        font-weight: bold;
    }

    .welcome-section p {
        color: #666;
        font-size: 18px;
        margin-top: 15px;
    }

.menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 430px;
    margin: auto;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(18px);
    border-radius: 25px;
    padding: 18px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 10px 30px rgba(255,77,109,.15);
    transition: .4s;
}

    .menu-card:hover {
        transform: translateY(-6px);
        text-decoration: none;
        color: #333;
        box-shadow: 0 20px 40px rgba(255,77,109,.25);
    }

    .menu-card h3 {
        margin: 0;
        font-size: 22px;
        color: #ff4d6d;
        font-weight: 700;
    }

    .menu-card p {
        margin: 6px 0 0;
        color: #777;
        font-size: 15px;
    }

    .menu-card span {
        margin-left: auto;
        font-size: 26px;
        color: #ff4d6d;
    }

.emoji {
    font-size: 42px;
}



@media(max-width:576px) {

    .welcome-section h1 {
        font-size: 32px;
    }

    .menu-card {
        padding: 15px;
    }

    .emoji {
        font-size: 34px;
    }

    .menu-card h3 {
        font-size: 20px;
    }
}

.icon {
    width: 70px;
    height: 70px;
    background: #ffe6ee;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .icon i {
        font-size: 34px;
        color: #ff4d6d;
    }

.story-page {
    background: #fff5f7;
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.story-header {
    text-align: center;
    margin-bottom: 50px;
}

    .story-header h1 {
        color: #ff4d6d;
        font-size: 40px;
        font-weight: bold;
    }

    .story-header p {
        color: #666;
        font-size: 18px;
        margin-top: 15px;
    }

.timeline {
    position: relative;
    max-width: 700px;
    margin: auto;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #ffd3df;
        transform: translateX(-50%);
    }

.story-card {
    width: 42%;
    background: white;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(255,77,109,.15);
    margin-bottom: 40px;
    position: relative;
}

    .story-card:hover {
        transform: translateY(-5px);
        transition: .3s;
    }

    .story-card.left {
        margin-right: auto;
    }

    .story-card.right {
        margin-left: auto;
    }

    .story-card.center {
        width: 70%;
        margin: auto;
    }

.story-icon {
    width: 65px;
    height: 65px;
    background: #ffe5ee;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin-bottom: 15px;
}

.story-card h3 {
    color: #ff4d6d;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.story-card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

@media(max-width:768px) {

    .timeline::before {
        display: none;
    }

    .story-card,
    .story-card.left,
    .story-card.right,
    .story-card.center {
        width: 100%;
        margin-bottom: 25px;
    }

    .story-header h1 {
        font-size: 32px;
    }
}
.ending-quote {
    max-width: 650px;
    margin: 60px auto 20px;
    background: linear-gradient(135deg,#fff,#fff7fa);
    padding: 35px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(255,77,109,.18);
    border: 2px dashed #ffd4df;
    position: relative;
    overflow: hidden;
}

    .ending-quote::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 20px;
        font-size: 35px;
        opacity: .25;
    }

    .ending-quote::after {
        content: "";
        position: absolute;
        right: 20px;
        bottom: -5px;
        font-size: 30px;
        opacity: .25;
    }

.quote-heart {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #ffe5ee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
}

.ending-quote p {
    color: #555;
    font-size: 22px;
    line-height: 1.9;
    margin: 0;
}

.doraemon {
    display: block;
    margin-top: 18px;
    font-size: 30px;
    font-weight: bold;
    color: #ff4d6d;
}

@media(max-width:768px) {

    .ending-quote {
        margin: 40px 15px;
        padding: 25px 20px;
    }

    .quote-heart {
        width: 65px;
        height: 65px;
        font-size: 34px;
    }

    .ending-quote p {
        font-size: 18px;
    }

    .doraemon {
        font-size: 24px;
    }
}
.floating-heart {
    position: absolute;
    font-size: 28px;
    opacity: .25;
}

.heart1 {
    top: 15px;
    left: 20px;
}

.heart2 {
    bottom: 15px;
    right: 20px;
}
/* Hidden */

.reveal {
    opacity: 0;
    transform: translateY(80px) scale(.9);
    transition: 1s ease;
    position: relative;
    overflow: hidden;
}

    /* Show */

    .reveal.active {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* Flying Hearts */

.flying-heart {
    position: absolute;
    font-size: 22px;
    pointer-events: none;
    animation: flyHeart 2.5s linear forwards;
    z-index: 100;
}

@keyframes flyHeart {

    0% {
        opacity: 0;
        transform: translateY(20px) scale(.5);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-220px) translateX(var(--x)) rotate(360deg) scale(1.5);
    }
}
.gallery-page {
    max-width: 700px;
    margin: auto;
    padding: 20px;
    background: #fff0f5;
}

.gallery-header {
    text-align: center;
    margin: 40px 0;
}

    .gallery-header h1 {
        font-size: 42px;
        font-weight: bold;
        color: #ff4d6d;
    }

    .gallery-header p {
        font-size: 22px;
        color: #666;
        line-height: 40px;
    }

.memory-card {
    position: relative;
    background: #fff;
    margin: 40px 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(255,120,170,.22);
    transition: .5s;
    opacity: 0;
    transform: translateY(80px);
}

    .memory-card.show {
        opacity: 1;
        transform: translateY(0);
    }

    .memory-card:hover {
        transform: translateY(-10px) scale(1.01);
        box-shadow: 0 25px 60px rgba(255,90,150,.35);
    }

    .memory-card img {
        width: 100%;
        height: 450px;
        object-fit: contain;
        background: white;
        display: block;
        padding: 20px;
        transition: .6s;
    }

    .memory-card:hover img {
        transform: scale(1.04);
    }

.memory-content {
    padding: 35px;
    text-align: center;
}

    .memory-content h2 {
        color: #ff4d6d;
        font-size: 34px;
        font-weight: bold;
        margin-bottom: 20px;
    }

        .memory-content h2::after {
            content: " ";
        }

    .memory-content p {
        max-width: 520px;
        margin: auto;
        font-size: 21px;
        line-height: 42px;
        color: #555;
    }

.gallery-ending {
    margin: 60px 0;
    padding: 40px;
    text-align: center;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(255,100,150,.15);
}

    .gallery-ending h2 {
        margin-top: 20px;
        color: #ff4d6d;
        font-size: 34px;
        font-weight: bold;
    }

    .gallery-ending p {
        margin-top: 20px;
        font-size: 22px;
        line-height: 40px;
        color: #555;
    }

@media(max-width:768px) {

    .memory-card img {
        height: 250px;
    }

    .gallery-header h1 {
        font-size: 32px;
    }

    .memory-content h2 {
        font-size: 26px;
    }

    .memory-content p {
        font-size: 18px;
        line-height: 32px;
    }

    .gallery-ending h2 {
        font-size: 28px;
    }
}

.memory-card::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 20px;
    animation: twinkle 2s infinite;
}

.memory-card::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 20px;
    animation: twinkle 2.5s infinite;
}

@keyframes twinkle {

    0% {
        transform: scale(1);
        opacity: .6;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: .6;
    }
}
.letter-page {
    max-width: 700px;
    margin: auto;
    padding: 20px;
    background: #fff0f5;
}

.letter-header {
    text-align: center;
    margin: 40px 0;
}

    .letter-header h1 {
        color: #ff4d6d;
        font-size: 42px;
        font-weight: bold;
    }

    .letter-header p {
        color: #666;
        font-size: 22px;
        line-height: 40px;
    }

.letter-paper {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 20px 50px rgba(255,100,150,.18);
    position: relative;
}

.heart-top {
    width: 80px;
    height: 80px;
    background: #ffe4ee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    font-size: 45px;
    animation: pulse 2s infinite;
}

.letter-paper h2 {
    text-align: center;
    color: #ff4d6d;
    margin: 30px 0;
    font-size: 34px;
}

.letter-paper p {
    font-size: 22px;
    line-height: 45px;
    color: #555;
    text-align: left;
}

.promise-card {
    margin-top: 45px;
    background: white;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(255,100,150,.18);
}

.promise-heart {
    font-size: 65px;
    animation: heartbeat 1.2s infinite;
}

.promise-card h2 {
    color: #ff4d6d;
    margin: 20px 0;
}

.promise-card p {
    font-size: 22px;
    line-height: 42px;
    color: #555;
}

.ending {
    text-align: center;
    margin: 70px 0;
}

    .ending h2 {
        color: #777;
    }

    .ending h1 {
        color: #ff4d6d;
        font-size: 42px;
    }

@keyframes pulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes heartbeat {

    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}
/* First card visible immediately */
.letter-paper {
    opacity: 1;
    transform: translateY(0);
}

/* Animate only these */
.promise-card,
.ending {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity .8s ease, transform .8s ease;
}

    .promise-card.show,
    .ending.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Heart Animation */

.flying-heart {
    position: absolute;
    font-size: 22px;
    pointer-events: none;
    animation: flyHeart 2.5s linear forwards;
    z-index: 20;
}

@keyframes flyHeart {

    0% {
        opacity: 0;
        transform: translateY(20px) scale(.5);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-220px) translateX(var(--x)) rotate(25deg) scale(1.5);
    }
}

.heart-top {
    animation: heartBeat 1.3s infinite;
}

@keyframes heartBeat {

    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(.95);
    }

    60% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}
.letter-paper {
    position: relative;
    overflow: hidden;
}

    .letter-paper::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, transparent, rgba(255,182,193,.25), transparent);
        transform: translateX(-100%);
        animation: shine 5s infinite;
    }

@keyframes shine {

    100% {
        transform: translateX(100%);
    }
}

.music-page {
    max-width: 700px;
    margin: auto;
    padding: 20px;
    background: #fff0f5;
}

.music-header {
    text-align: center;
    margin: 50px 0;
}

    .music-header h1 {
        font-size: 42px;
        color: #ff4d6d;
        font-weight: bold;
    }

    .music-header p {
        font-size: 22px;
        color: #666;
        line-height: 40px;
    }

.record {
    width: 130px;
    height: 130px;
    margin: 40px auto;
    border-radius: 50%;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 65px;
    animation: spin 10s linear infinite;
    box-shadow: 0 0 40px rgba(255,80,120,.4);
}

.song-card {
    background: white;
    padding: 35px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255,100,150,.2);
}

    .song-card h2 {
        color: #ff4d6d;
    }

    .song-card h3 {
        margin-top: 15px;
        color: #444;
    }

    .song-card audio {
        width: 100%;
        margin-top: 25px;
    }

.quote-card {
    margin-top: 40px;
    background: white;
    padding: 35px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255,100,150,.18);
}

    .quote-card h2 {
        color: #ff4d6d;
    }

    .quote-card p {
        font-size: 21px;
        line-height: 40px;
        color: #555;
    }

.memory-lines {
    margin: 50px 0;
    margin-bottom: 20px;
}

    .memory-lines div {
        background: white;
        padding: 20px;
        margin: 18px 0;
        border-radius: 20px;
        text-align: center;
        font-size: 22px;
        color: #ff4d6d;
        animation: fadeUp 1s ease;
       
    }

.ending-music {
    margin: 60px 0;
    text-align: center;
}

    .ending-music h2 {
        color: #ff4d6d;
        font-size: 34px;
    }

    .ending-music  {
        font-size: 45px;
        font-weight:bold;
        color: #555;
    }

@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ---------------- HEART FLY ---------------- */

.song-card,
.quote-card,
.memory-lines,
.ending-music {
    position: relative;
    overflow: hidden;
}

.flying-heart {
    position: absolute;
    bottom: 20px;
    font-size: 22px;
    pointer-events: none;
    animation: flyHeart 2.8s linear forwards;
    z-index: 99;
}

@keyframes flyHeart {

    0% {
        opacity: 0;
        transform: translateY(20px) scale(.4);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-250px) translateX(var(--x)) rotate(360deg) scale(1.6);
    }
}


/* ---------------- HEART BEAT ---------------- */

.music-header h1,
.song-card h2,
.quote-card h2,
.ending-music h2 {
    animation: heartBeat 1.8s infinite;
}

@keyframes heartBeat {

    0%,100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.08);
    }

    50% {
        transform: scale(.98);
    }

    75% {
        transform: scale(1.08);
    }
}


/* ---------------- RECORD GLOW ---------------- */

.record {
    animation: spin 10s linear infinite, recordGlow 2.5s infinite alternate;
}

@keyframes recordGlow {

    from {
        box-shadow: 0 0 20px rgba(255,90,150,.35);
    }

    to {
        box-shadow: 0 0 60px rgba(255,90,150,.8);
    }
}


/* ---------------- CARD APPEAR ---------------- */

.song-card,
.quote-card,
.memory-lines div,
.ending-music {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity .8s, transform .8s;
}

.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* ---------------- MEMORY HOVER ---------------- */

.memory-lines div {
    transition: .35s;
}

    .memory-lines div:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 12px 30px rgba(255,90,150,.25);
    }


/* ---------------- MUSIC NOTES ---------------- */

.music-note {
    position: absolute;
    font-size: 22px;
    opacity: .3;
    animation: floatNote 5s linear infinite;
}

.note1 {
    left: 8%;
    top: 120px;
}

.note2 {
    right: 10%;
    top: 250px;
    animation-delay: 2s;
}

.note3 {
    left: 15%;
    bottom: 250px;
    animation-delay: 4s;
}

@keyframes floatNote {

    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: .4;
    }

    100% {
        transform: translateY(-80px);
        opacity: 0;
    }
}