/* --- المتغيرات (Variables) --- */
:root {
    --primary-red: #d40000; 
    --secondary-black: #1a1a1a;
    --text-light: #ffffff;
    --shadow-light: 0 8px 25px rgba(0, 0, 0, 0.25);
    --transition-speed: 0.3s;
}

/* --- إعادة تعيين أساسية وتنسيق الجسم (Body) --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    text-align: center;
    
    /* خلفية داكنة مع صورة */
    background: 
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), /* طبقة تغميق */
        url('../images/bac.webp'); /* تأكد من وجود الصورة */

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    direction: rtl; /* اتجاه الكتابة عربي (للواجهة ككل) */
}

/* --- الحاوية الرئيسية (Container) --- */
.container {
    /* 1. الخلفية الشفافة (تم تقليل العتامة إلى 0.65 لزيادة الشفافية) */
    /* 🔑 التعديل هنا: تقليل العتامة من 0.95 إلى 0.65 */
    background-color: rgba(255, 255, 255, 0.65); 

    /* 2. نعومة الحواف */
    border-radius: 30px; 
    
    padding: 30px;
    width: 95%;
    max-width: 450px;
    box-sizing: border-box;

    /* 3. الظل المزدوج */
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.35), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.1); 
    
    /* 4. تطبيق تأثير الضبابية (Glassmorphism) */
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    
    /* 5. إطار خفيف جداً */
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* إضافة حركة بسيطة لجذب الانتباه */
    animation: fadeIn 0.8s ease-out; 
}

/* --- الحركة الأساسية (Fade-In) --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- الحركة الافتتاحية للوجو (LogoIntro) --- */
@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(1.3);
        filter: blur(5px);
    }
    50% {
        opacity: 1;
        transform: translateY(0px) scale(1.02);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

/* --- قسم الشعار والملف الشخصي --- */
.profile-section {
    margin-bottom: 30px;
    /* 🔑 بدأ الحركة بعد 0.2s */
    animation: logoIntro 2s ease-in-out 0.1s forwards; 
    opacity: 0;
}

.logo-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); 
    border: 2px solid rgba(255, 255, 255, 0.5); 
    padding: 5px;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* 🔑 إزالة أي حركات قديمة قد تتعارض */
    animation: none; 
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform var(--transition-speed) ease;
}

h1 {
    font-family: 'Poppins', sans-serif;
    /* 🔑 تكبير حجم الخط ليكون العنوان واضحًا ومميزًا */
    font-size: 35px; 
    margin-bottom: 3px;
    /* 🔑 اللون الأحمر لـ LAPTOWN */
    color: var(--primary-red); 
    font-weight: 580;
    line-height: 1.2;
    /* 🔑 تثبيت الترتيب والشفافية لأغراض الحركة */
    animation: fadeIn 0.6s ease-out 1s forwards; 
    opacity: 0; 
    text-align: center; /* توسيط النص */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); 
}

.welcome-text {
    font-family: 'EB Garamond', Garamond, serif;
    font-size: 20px; 

    /* لون داكن ناعم */
    color: #1f1f1f; 

    margin-top: 10px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center; 

    /* ظل خفيف للنص */
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.4);

    animation: fadeIn 0.9s ease-out 1.2s forwards; 
    opacity: 0; 
}


/* --- قسم الروابط (الأزرار) --- */
/* --- قسم الروابط (الأزرار) --- */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    background: none; 
    box-shadow: none; 
}
/* --- تنسيق التذييل (Footer Text) --- */
.footer {
    margin-top: 30px;
    padding: 10px 0;
    width: 100%;
}

.footer p {
    /* 🔑 تغيير الخط إلى Poppins ليكون أكثر حداثة ووضوحاً */
    font-family: 'Poppins', sans-serif;
    
    /* 🔑 زيادة الوزن لجعله أكثر بروزاً */
    font-weight: 500; 
    
    /* 🔑 اللون الأبيض لتسليط الضوء على الخلفية الداكنة */
    color: #0b0202; 
    
    /* 🔑 حجم الخط أصغر قليلاً وأكثر نظافة */
    font-size: 15px; 
    
    /* 🔑 إضافة ظل خفيف للنص لتمييزه عن خلفية الصورة */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); 
    
    line-height: 1.5;
}

/* لتغيير لون اسم علامتك التجارية داخل النص */
.footer p strong {
    color: var(--primary-red); /* استخدام اللون الأحمر لـ LAPTOWN */
    font-weight: 700;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    
    /* 🔑 الزر الآن لديه لون خلفية ثابت وليس شفافًا (سنحدده لكل زر أدناه) */
    text-decoration: none;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 600;
    transition: all var(--transition-speed) ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    direction: ltr;
    
    /* 🔑 لون النص داخل الزر (الخط) دائمًا أبيض */
    color: #ffffff; 
    border: none; /* إزالة الإطار الشفاف */
    opacity: 0; /* يبدأ مخفياً */
    /* إضافة الحركة العامة التي سيتم تجاوزها لاحقاً */
    animation: fadeIn 0.4s ease-out forwards;
}

/* --- حركة ظهور متتالية للأزرار (Staggered Appearance) --- */
.btn:nth-child(1) {
    animation-delay: 1.2s; /* يظهر بعد استقرار النصوص */
}
.btn:nth-child(2) {
    animation-delay: 1.3s;
}
.btn:nth-child(3) {
    animation-delay: 1.4s;
}
.btn:nth-child(4) {
    animation-delay: 1.5s;
}
.btn:nth-child(5) {
    animation-delay: 1.6s;
}
.btn:nth-child(6) {
    animation-delay: 1.7s;
}

/* --- تنسيق الأيقونات (Icons) --- */
.btn i {
    font-size: 20px;
    margin-right: 10px; 
    margin-left: 0;
}

/* --- تلوين الأزرار (الخلفية والأيقونة) --- */
/* --- تنسيق زر تبديل اللغة --- */
.language-switcher {
    position: fixed; /* تثبيت الزر في مكانه */
    top: 20px;
    /* 🔑 نضعها على اليمين إذا كان الاتجاه الأساسي RTL (عربي) */
    right: 20px; 
    z-index: 1000; /* لضمان ظهوره فوق باقي العناصر */
}

#lang-toggle {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(4px); /* لإضافة تأثير الزجاج الخفيف */
    transition: all 0.3s ease;
}

#lang-toggle:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: white;
}

.facebook { 
    background-color: #1877F2; /* 🔑 لون مربع الأيقونة ثابت */
    color: #ffffff; /* تثبيت لون النص الأبيض */
}
.facebook i { 
    color: #ffffff; /* 🔑 لون الأيقونة ثابت (أبيض) */
}

.tiktok { 
    background-color: #000000;
    color: #ffffff; 
}
.tiktok i { 
    color: #ffffff; 
}

.instagram { 
    /* استخدام التدرج لجعله أكثر جاذبية، ويبقى ثابتًا */
    background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%); 
    color: #ffffff; 
}
.instagram i { 
    color: #ffffff; 
}

.whatsapp { 
    background-color: #25D366; 
    color: #ffffff; 
}
.whatsapp i { 
    color: #ffffff; 
}

.map { 
    background-color: #4285F4; 
    color: #ffffff; 
}
.map i { 
    color: #ffffff; 
}
.phone-call {
    /* مثال على لون لزر الاتصال */
    background-color: #2c3e50; 
    color: #ffffff;
}

.phone-call i {
    color: #f1c40f; /* لون مميز للأيقونة */
}
/* تأكد من إضافة تنسيقات hover الخاصة بك هنا */

/* --- تأثير التمرير (Hover effect) --- */
/* --- تأثير التمرير (Hover effect) --- */
.btn:hover {
    transform: translateY(-5px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    opacity: 0.7; /* 🔑 تعتيم خفيف للخلفية */
    
    /* إزالة أي تغيير في لون النص */
    color: #ffffff; 
}

/* 🔑 التأكد من أن لون الأيقونة يبقى أبيض عند التمرير */
.btn:hover i {
    color: #ffffff !important; 
}
/* مثال لكيفية تعريف خط Spinwerad */


