/* إعدادات عامة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #e5e5e5; /* لون رمادي خفيف لخلفية الشاشة الكبيرة */
    font-family: 'Cairo', sans-serif;
    color: #5a5a5a;
    display: flex;
    justify-content: center;
}

/* حاوية تشبه شاشة الموبايل */
.mobile-container {
    background-color: #fcfaf5;
    width: 100%;
    max-width: 480px; /* عرض شاشة الموبايل */
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

/* نصوص عامة */
.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #8b7355;
    text-align: center;
    margin-bottom: 10px;
}
.arabic-text {
    font-family: 'Amiri', serif;
    text-align: center;
}

/* قسم الغلاف (تعديل الصورة هنا) */
.hero {
    /* هنا نضع صورة الغلاف (45287.jpg و 45288.jpg) */
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/45287.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero .bism { font-family: 'Amiri', serif; font-size: 1.2rem; margin-bottom: 15px;}
.hero .subtitle { font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 20px;}
.hero .names { font-family: 'Great Vibes', cursive; font-size: 4rem; line-height: 1; margin-bottom: 20px; }
.hero .names .and { font-size: 2rem; }
.hero .date-en { letter-spacing: 3px; margin-top: 20px;}

/* قسم العد التنازلي */
.countdown-section {
    padding: 40px 20px;
    text-align: center;
}
.countdown-sub { font-size: 0.8rem; letter-spacing: 2px; color: #a3a3a3; margin-bottom: 20px; }
.timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.time-box span { font-size: 2rem; color: #4a4a4a; display: block; border-bottom: 1px solid #ddd; padding-bottom: 5px; margin-bottom: 5px;}
.time-box p { font-size: 0.7rem; color: #888; letter-spacing: 1px; }

/* قسم اللحظات */
.moments-section { padding: 40px 20px; text-align: center; }
.gallery {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 10px;
}
.gallery img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
}
.date-ar { color: #8b7355; font-size: 0.9rem; }

/* قسم التفاصيل */
.details-section { padding: 40px 20px; background-color: #f7f4ec; text-align: center; }
.time-range { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 30px; font-size: 1.5rem; color: #4a4a4a;}
.time-range .divider { color: #d4c5b0; font-size: 2rem; }
.cards-container { display: flex; gap: 15px; margin-bottom: 30px;}
.card { background: white; padding: 20px; border-radius: 15px; flex: 1; box-shadow: 0 4px 10px rgba(0,0,0,0.03);}
.card h3 { font-family: 'Great Vibes', cursive; font-size: 1.5rem; color: #8b7355; margin-bottom: 10px;}
.card p { font-size: 0.9rem; margin-bottom: 5px;}
.building-img { width: 100%; opacity: 0.5; }

/* قسم الخريطة */
.location-section { padding: 40px 20px; text-align: center; }
.map-container { margin: 20px 0; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1);}
.map-btn { background: transparent; border: 1px solid #d4c5b0; padding: 10px 20px; border-radius: 20px; color: #8b7355; font-family: 'Cairo'; cursor: pointer; letter-spacing: 1px;}

/* قسم نموذج الحضور */
.rsvp-section { padding: 40px 20px; text-align: right; background-color: #fcfaf5;}
.rsvp-section p { text-align: center; margin-bottom: 20px; color: #888;}
form label { display: block; margin-bottom: 5px; font-size: 0.9rem; color: #a3a3a3;}
input[type="text"], input[type="tel"], textarea {
    width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #eaeaea; border-radius: 10px; font-family: 'Cairo'; background: white;
}
.radio-group { display: flex; gap: 10px; margin-bottom: 20px; }
.radio-btn {
    flex: 1; text-align: center; padding: 12px; border: 1px solid #eaeaea; border-radius: 10px; cursor: pointer; background: white; transition: 0.3s;
}
.radio-btn input { display: none; }
.radio-btn.active { background-color: #8b7355; color: white; border-color: #8b7355;}
.submit-btn {
    width: 100%; background-color: #8b7355; color: white; padding: 15px; border: none; border-radius: 10px; font-family: 'Cairo'; font-size: 1.1rem; cursor: pointer;
}

/* =========================================
   تنسيقات شاشة البداية (الظرف والختم)
   ========================================= */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f4ec;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease, visibility 1.5s;
    overflow: hidden; /* عشان النبض ميعملش سكرول في الشاشة */
}

.envelope-container {
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.envelope-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لملء الشاشة بالكامل */
    object-position: center;
    animation: pulseBg 2s infinite ease-in-out; /* رجعنا تأثير النبض */
}

.click-text {
    position: absolute;
    bottom: 12%; /* مكان النص في الأسفل */
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cairo', sans-serif;
    color: #8b7355;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.5); /* خلفية شفافة بسيطة */
    padding: 8px 20px;
    border-radius: 20px;
    pointer-events: none; /* عشان لو المستخدم ضغط على النص نفسه يفتح الدعوة عادي */
}

/* كلاس لإخفاء الشاشة بعد الضغط */
.hide-intro {
    opacity: 0;
    visibility: hidden;
}

/* حركة النبض (زووم خفيف) عشان تليق مع ملء الشاشة */
@keyframes pulseBg {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* =========================================
   تأثير تساقط الورد (Petals)
   ========================================= */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* مهم جداً عشان متمنعش الضغط على الموقع */
    z-index: 9998;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    /* شكل الوردة باستخدام CSS بدون الحاجة لصور */
    background-color: #ffb6c1; 
    border-radius: 15px 0 15px 0;
    opacity: 0.6;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        top: 110%;
        transform: translateX(50px) rotate(360deg);
        opacity: 0;
    }
}
