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

body {
    font-family: 'Arial', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #0a0a2e, #1a1a4e, #0a0a2e);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* خلفية النجوم */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* الحاوية الرئيسية */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* الصفحة الرئيسية */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
}

.main-title {
    font-size: 2.5rem;
    color: #ffd6e8;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
    margin-bottom: 20px;
    line-height: 1.4;
}

.subtitle {
    font-size: 1.2rem;
    color: #e0c3d6;
    margin-bottom: 40px;
}

/* الأزرار */
.btn-open {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #000000, #3a0909);
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(77, 5, 5, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-open:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(65, 7, 7, 0.6);
    background: linear-gradient(135deg, #000000, #87201e);
}

/* زر الموسيقى */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

/* عناوين الصفحات */
.page-title {
    font-size: 2.8rem;
    color: #ffd6e8;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
    margin-bottom: 15px;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #e0c3d6;
    margin-bottom: 40px;
    text-align: center;
}

/* أزرار التنقل */
.nav-buttons {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-back,
.btn-next,
.btn-home {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-next,
.btn-home {
    background: linear-gradient(135deg, #000000, #600808);
    color: #fff;
}

.btn-next:hover,
.btn-home:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(85, 7, 7, 0.4);
}

/* بطاقات الصفحة الثالثة */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 800px;
}

.reason-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reason-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(81, 8, 8, 0.2);
}

.reason-card .card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.reason-card .card-title {
    font-size: 1.2rem;
    color: #ffd6e8;
    margin-bottom: 10px;
}

.reason-card .card-content {
    font-size: 0.95rem;
    color: #e0c3d6;
    display: none;
    margin-top: 10px;
    line-height: 1.6;
}

.reason-card.active .card-content {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* صفحة الرسالة */
.letter-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.letter-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ffd6e8;
    margin-bottom: 30px;
}

.letter-body {
    font-size: 1.15rem;
    line-height: 2;
    color: #e8d5e0;
    margin-bottom: 30px;
}

.letter-body p {
    margin-bottom: 20px;
}

.letter-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.final-message {
    font-size: 1.6rem;
    color: #ffd6e8;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
    font-weight: bold;
    line-height: 1.6;
}