
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #fff0f5;
    color: #74334f;
    text-align: center;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    gap: 25px;
    z-index: 100;
}

nav a {
    color: #a3446d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

nav a:hover {
    color: #ed6a9b;
}

section {
    min-height: 100vh;
    padding: 120px 20px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero {
    background: linear-gradient(135deg, #ffe0ec, #fff5f8, #f9c5dc);
}

.small-title {
    letter-spacing: 4px;
    font-size: 11px;
    color: #bd6589;
    margin-bottom: 20px;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: clamp(38px, 7vw, 65px);
    color: #b33f70;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(32px, 6vw, 48px);
    color: #bd527e;
    margin-bottom: 30px;
}

h3 {
    margin: 20px;
    color: #a3446d;
}

.description {
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hearts {
    font-size: 55px;
    color: #e66c9d;
    margin-bottom: 30px;
    animation: float 2s infinite ease-in-out;
}

.main-btn {
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    background: linear-gradient(45deg, #e66c9d, #b93f75);
    color: white;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 20px #eaa0bd;
    transition: 0.3s;
}

.main-btn:hover {
    transform: scale(1.08);
}

.bottom-text {
    margin-top: 50px;
    color: #c16b90;
}

.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    border: none;
    background: #bd527e;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.birthday {
    background: linear-gradient(135deg, #fff1f6, #ffd6e6);
}

.cake {
    font-size: 100px;
    animation: float 2s infinite ease-in-out;
}

.birthday p {
    max-width: 450px;
    line-height: 1.8;
    margin-bottom: 25px;
}

#wishMessage {
    margin-top: 25px;
    font-size: 22px;
    color: #c43d78;
    font-family: 'Playfair Display', serif;
}

.memories {
    background: #fff8fb;
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.photo-card {
    width: 230px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 25px #e8b2c7;
    transition: 0.3s;
}

.photo-card:hover {
    transform: rotate(-3deg) scale(1.04);
}

.photo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.photo-card p {
    padding: 12px 0;
}

.letter {
    background: linear-gradient(135deg, #ffe5ef, #fff6fa);
}

.envelope {
    cursor: pointer;
    font-size: 60px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px #e8b2c7;
}

.envelope p {
    font-size: 13px;
}

.letter-content {
    display: none;
    max-width: 550px;
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-top: 30px;
    line-height: 2;
    box-shadow: 0 8px 25px #e8b2c7;
    animation: appear 1s ease;
}

.letter-content.show {
    display: block;
}

.final {
    background: linear-gradient(135deg, #f9c5dc, #ffeaf2);
}

.final-heart {
    font-size: 90px;
    animation: heartbeat 1.3s infinite;
}

#finalMessage {
    margin-top: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    color: #ad3269;
}

footer {
    margin-top: 80px;
    font-size: 12px;
}

.confetti {
    position: fixed;
    top: -20px;
    z-index: 300;
    pointer-events: none;
    animation: fall 3s linear forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    nav {
        gap: 12px;
        padding: 15px 5px;
    }

    nav a {
        font-size: 10px;
    }

    .photo-card {
        width: 85%;
        max-width: 300px;
    }
}

/* COUNTDOWN */

.countdown-box {
    margin: 35px 0;
    padding: 25px;
    background: rgba(255,255,255,0.65);
    border-radius: 25px;
    box-shadow: 0 8px 25px #e8b2c7;
}

#countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

#countdown div {
    background: #bd527e;
    color: white;
    padding: 15px;
    min-width: 75px;
    border-radius: 15px;
}

#countdown span {
    display: block;
    font-size: 27px;
    font-weight: bold;
}

#countdown small {
    font-size: 11px;
}

/* MEMORY BOOK */

.memory-book {
    width: min(90%, 500px);
    margin: 50px auto 0;
}

.book-page {
    min-height: 230px;
    background: linear-gradient(135deg, #fff, #ffe4ef);
    border: 2px solid #efb1cb;
    border-radius: 20px;
    padding: 35px 20px;
    box-shadow: 0 10px 30px #e8b2c7;
}

#bookEmoji {
    font-size: 55px;
}

#bookText {
    line-height: 1.9;
}

.book-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px;
}

#pageNumber {
    color: #bd527e;
    font-size: 13px;
}

/* MAGIC ENVELOPE */

.magic-envelope {
    background: white;
    padding: 35px;
    border-radius: 25px;
    max-width: 400px;
    cursor: pointer;
    box-shadow: 0 10px 30px #e8b2c7;
    transition: 0.4s;
}

.magic-envelope:hover {
    transform: translateY(-8px);
}

.envelope-heart {
    font-size: 75px;
    animation: heartbeat 1.5s infinite;
}

.magic-envelope p {
    margin: 15px;
    font-size: 13px;
}

.letter-content {
    max-width: 550px;
    width: 90%;
}

/* FLOATING HEARTS */

.floating-heart {
    position: fixed;
    bottom: -40px;
    pointer-events: none;
    z-index: 50;
    animation: floatingUp 7s linear forwards;
}

@keyframes floatingUp {
    to {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* FINAL MESSAGE */

#finalMessage {
    max-width: 550px;
    padding: 20px;
    line-height: 1.8;
}

@media(max-width: 450px) {
    #countdown div {
        min-width: 65px;
        padding: 10px;
    }

    #countdown span {
        font-size: 22px;
    }

    .book-buttons .main-btn {
        padding: 12px 17px;
    }
}
