@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@300;400;600&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    /* خلفية متدرجة ساحرة وناعمة */
    background: linear-gradient(135deg, #0f0c1b 0%, #201335 50%, #3b1342 100%);
    height: 100vh;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* تصميم القلوب المتساقطة مع حركة متأرجحة */
.heart {
    font-size: 28px;
    position: fixed;
    top: -50px;
    user-select: none;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) translateX(50px);
        opacity: 0; /* تتلاشى قبل الاختفاء تماماً */
    }
}

.main {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
    position: relative;
}

/* خط تهنئة العيد ميلاد مع توهج نيون لطيف وردي */
p {
    color: #ff75a0;
    font-family: 'Dancing Script', cursive;
    font-size: 45px;
    text-shadow: 0 0 10px rgba(255, 117, 160, 0.6), 0 0 20px rgba(255, 117, 160, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

/* النص الفرعي الأخير */
.final {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    font-size: 22px;
    color: #e0b0ff;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 0 8px rgba(224, 176, 255, 0.5);
    z-index: 10;
}

/* تصميم بطاقة المفاجأة النهائية */
#secret-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.1);
    text-align: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#secret-card.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.card-content h2 {
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
}

.card-content p {
    color: #f3e5f5;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    text-shadow: none;
    line-height: 1.6;
}

.cake {
    font-size: 50px;
    margin-top: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media(max-width: 500px) {
    p {
        font-size: 32px;
    }
    .final {
        font-size: 18px;
        top: 40px;
    }
    #secret-card {
        width: 85%;
    }
}