/* 1. المتغيرات الأساسية */
:root {
    --primary: #003366;      /* أزرق ملكي */
    --accent: #00a8ff;       /* أزرق فاتح */
    --gold: #d4af37;         /* ذهبي */
    --pink: #1518c9;         /* روز بناتي */
    --white: #ffffff;
    --light-grey: #f4f7f6;
    --dark-blue: #001f3f;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. الإعدادات العامة */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }
body { 
    background: var(--white); 
    color: var(--dark-blue); 
    overflow-x: hidden; 
    padding-top: 70px; /* لضمان عدم اختفاء المحتوى تحت النافبار */
}

/* 3. النافبار (Navbar) - تم التعديل ليكون مرناً جداً */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 0 8%; /* تم تقليل الـ Padding الرأسي */
    position: fixed;
    top: 0; width: 100%; height: 70px; /* تحديد ارتفاع ثابت */
    z-index: 2000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    display: flex; 
    justify-content: center; /* سنعتمد على الحاوية الداخلية للتوزيع */
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between; /* اللوجو في طرف والزر في طرف */
    align-items: center;
}

.logo { font-size: 26px; font-weight: 900; color: var(--primary); text-decoration: none; }
.logo span { color: var(--pink); }

/* روابط الكمبيوتر */
.nav-links-desktop { display: flex; list-style: none; gap: 25px; }
.nav-links-desktop a { text-decoration: none; color: var(--dark-blue); font-weight: 700; transition: var(--transition); font-size: 15px; }
.nav-links-desktop a:hover { color: var(--pink); }

/* زر القائمة (للموبايل) - تم تعديل الحجم واللون */
.menu-toggle { 
    display: none; 
    font-size: 24px; 
    color: var(--primary); 
    cursor: pointer;
    padding: 10px; /* تسهيل الضغط عليه */
}

/* 4. السايد بار (Sidebar) */
.sidebar {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; height: 100vh;
    background: var(--dark-blue);
    z-index: 3000;
    transition: var(--transition);
    padding: 60px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.sidebar.active { right: 0; }
.close-btn { position: absolute; top: 20px; left: 20px; font-size: 25px; color: #fff; cursor: pointer; }
.sidebar-logo { font-size: 24px; font-weight: 900; color: var(--gold); text-align: center; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 25px; }
.sidebar-links a { color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; display: block; transition: 0.3s; }
.sidebar-links a:hover { color: var(--pink); padding-right: 10px; }

.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2500; display: none; }
.sidebar-overlay.active { display: block; }

/* 5. قسم الهيرو (Hero Section) */
.hero {
    min-height: 85vh;
    background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.8)), 
                url('https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?w=1500'); 
    background-size: cover; background-position: center;
    display: flex; align-items: center; position: relative; overflow: hidden; padding: 40px 8%;
}

.hero-wrapper { display: flex; align-items: center; justify-content: space-between; width: 100%; z-index: 10; gap: 30px; }
.hero-content { flex: 1.2; color: white; text-align: right; }
.main-title { font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.main-title span { color: var(--pink); text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.sub-title { color: var(--gold); font-size: 1.2rem; margin-bottom: 10px; display: block; }

.hero-image-box { flex: 1; display: flex; justify-content: center; position: relative; }
.hero-image-box img { width: 90%; max-width: 420px; border-radius: 20px; border: 8px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.5); z-index: 2; }

/* 6. الاستجابة (Responsive) - تم التركيز هنا على طلبك */
@media (max-width: 992px) {
    /* 1. إخفاء الروابط وإظهار الزر فوراً */
    .nav-links-desktop { display: none !important; }
    .menu-toggle { display: block; }
    
    /* 2. جعل النافبار نحيفاً ومنظماً في سطر واحد */
    .navbar { height: 60px; padding: 0 5%; }
    body { padding-top: 60px; } /* تعديل تباعد الجسم ليناسب النافبار الأصغر */
    
    .logo { font-size: 22px; } /* تصغير اللوجو قليلاً للموبايل */

    /* 3. تعديل الهيرو للموبايل */
    .hero { padding: 40px 5%; }
    .hero-wrapper { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; margin-bottom: 30px; order: 1; }
    .main-title { font-size: 2rem !important; }
    
    .hero-image-box { order: 2; width: 100%; }
    .hero-image-box img { max-width: 280px; }
}

/* 7. المنتجات والأزرار (باقي الكود كما هو لضمان الاستقرار) */
/* --- 1. تطوير الأزرار العامة --- */
.btn-main { 
    background: var(--pink); 
    color: white; 
    padding: 16px 45px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 800; 
    display: inline-block; 
    transition: var(--transition); 
    border: none; 
    cursor: pointer; 
    box-shadow: 0 10px 20px rgba(255, 107, 129, 0.2);
}
.btn-main:hover { 
    background: var(--primary); 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.2);
}

/* --- 2. قسم المنتجات والشبكة (تم تكبير العرض) --- */
/* --- 1. تعديل السكشن ليتناسب مع الخلفية --- */
.products-section { 
    padding: 80px 8%;
    background: var(--bg-body); /* لضمان التوافق مع الدارك مود */
}

.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; /* زيادة المسافة قليلاً للسماح بانتشار الظل */
}

/* --- 2. الكارت بتأثير الفوكس والأثر (Glow Effect) --- */
.product-card { 
    background: var(--bg-card); 
    border-radius: 25px; 
    overflow: hidden; 
    /* ظل طبيعي خفيف جداً في الحالة العادية */
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05); 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid var(--border);
    position: relative;
}

.product-card:hover { 
    transform: translateY(-10px); 
    /* التأثير المطلوب: حواف سايبة أثر (Double Shadow Glow) */
    /* الظل الأول: عمق للكارت ، الظل الثاني: هالة زرقاء ناعمة (الأثر) */
    box-shadow: 
        0 20px 40px rgba(0, 51, 102, 0.12), 
        0 0 25px rgba(0, 168, 255, 0.15); /* أثر بلون الـ accent الأزرق الفاتح */
    
    border-color: var(--accent); /* تغيير لون الحواف عند الفوكس */
}

/* --- 3. تحسين الصورة داخل الكارت --- */
.p-img { 
    height: 420px; 
    background: #f9f9f9; 
    position: relative; 
    overflow: hidden;
    /* إضافة فلاتر بسيطة تزيد من جودة الصورة عند الهوفر */
    transition: 0.5s;
}

.p-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s ease, filter 0.5s ease; 
}

.product-card:hover .p-img img {
    transform: scale(1.08); /* تكبير هادئ */
    filter: brightness(1.05); /* تفتيح بسيط يعطي إحساس الحياة */
}

/* إضافة طبقة حماية للعين عند الهوفر لجعل النص تحت أوضح */
.p-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
    opacity: 0;
    transition: 0.5s;
}

.product-card:hover .p-img::after {
    opacity: 1;
}

/* --- 4. شارات احترافية (Badges) لـ VIP والأكثر مبيعاً --- */
.p-badge { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    padding: 7px 18px; 
    border-radius: 50px; 
    font-size: 13px; 
    font-weight: 800; 
    z-index: 10; 
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* شارة VIP ذهبية */
.p-badge.vip {
    background: linear-gradient(45deg, #d4af37, #f1c40f);
    border: 1px solid rgba(255,255,255,0.3);
}

/* شارة الأكثر مبيعاً روز */
.p-badge.best-seller {
    background: linear-gradient(45deg, #ff6b81, #ff4757);
}

/* شارة جديد */
.p-badge.new {
    background: linear-gradient(45deg, #2ed573, #7bed9f);
}

/* --- 5. معلومات المنتج والزر --- */
.p-info { padding: 30px 25px; text-align: center; }

.p-price { 
    color: var(--primary); 
    font-size: 26px; 
    font-weight: 900; 
    margin: 15px 0; 
    display: block;
}

.buy-btn { 
    width: 100%; 
    padding: 15px; 
    background: var(--dark-blue); 
    color: white; 
    font-weight: 800; 
    cursor: pointer; 
    border-radius: 15px; 
    border: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    text-decoration: none; 
    transition: 0.3s;
}


.buy-btn:hover { 
    background: var(--pink); 
    transform: scale(1.02);
}

/* ميديا كويري للموبايل */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; /* كارت واحد عريض جداً في الموبايل */
        gap: 25px;
    }
    .p-img { height: 380px; }
}

.footer { background: var(--dark-blue); color: #fff; padding: 50px 8% 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; }


/* تصميم صفحه الكونناكت  */

/* --- Animated Contact Design --- */
/* --- التعديل النهائي لصفحة التواصل --- */

.animated-contact-page {
    background: #f0f4f8;
    overflow-x: hidden;
}

.contact-master-wrapper {
    min-height: 100vh;
    padding: 120px 0 60px;
    position: relative;
}

/* الأشكال المتحركة في الخلفية */
.floating-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px; height: 400px;
    background: linear-gradient(45deg, rgba(0, 51, 102, 0.1), rgba(255, 107, 129, 0.1));
    border-radius: 50%;
    filter: blur(50px);
    animation: move 20s infinite alternate;
}

.blob:nth-child(2) {
    right: -100px; top: 10%;
    background: rgba(212, 175, 55, 0.1);
    animation-duration: 15s;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}

/* الهيكل الرئيسي */
.contact-main {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.contact-visual { flex: 1; }
.contact-visual h1 { font-size: 4rem; color: var(--dark-blue); line-height: 1.1; margin-bottom: 20px; }
.contact-visual h1 span { color: #ff6b81; }

/* بوكس الفورم المتحرك */
.contact-box-container { flex: 1; perspective: 1000px; }

.contact-form-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 40px;
    box-shadow: 20px 20px 60px #d1d9e6, -20px -20px 60px #ffffff;
    transition: 0.5s;
    border: 1px solid rgba(255,255,255,0.8);
}

/* --- التعديل اللي طلبته هنا --- */
.contact-form-card h2 {
    margin-bottom: 25px !important; /* المسافة الـ 12 بكسل */
    font-size: 28px;
    font-weight: 900;
    color: var(--dark-blue);
    text-align: center;
}

.contact-form-card h2 span {
    color: #ff6b81;
}

.contact-form-card:hover {
    transform: translateY(-10px) rotateX(2deg);
}

/* الأنبوت الذكي */
.input-wrap {
    position: relative;
    margin-bottom: 30px;
}

.input-wrap input, .input-wrap textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    font-size: 18px;
    font-family: 'Cairo';
    transition: 0.3s;
}

.input-wrap label {
    position: absolute;
    top: 10px; right: 0;
    color: #999;
    transition: 0.3s;
    pointer-events: none;
    
}

.animate__animated {
    padding: 12px;
    margin-right: 25px;
}

.input-wrap input:focus ~ label, 
.input-wrap input:valid ~ label,
.input-wrap textarea:focus ~ label,
.input-wrap textarea:valid ~ label {
    top: -30px; font-size: 14px; color: #ff6b81;
}

.input-wrap .bar {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: #ff6b81;
    transition: 0.4s;
}

.input-wrap input:focus ~ .bar, .input-wrap textarea:focus ~ .bar { width: 100%; }

.blast-btn {
    width: 100%; padding: 18px;
    background: var(--dark-blue);
    color: white; border: none; border-radius: 15px;
    font-size: 18px; font-weight: 800; cursor: pointer;
    transition: 0.3s;
}

.blast-btn:hover { background: #ff6b81; letter-spacing: 2px; }

/* الموبايل */
@media (max-width: 992px) {
    .contact-main { flex-direction: column; text-align: center; }
    .contact-visual h1 { font-size: 2.5rem; }
    .contact-form-card { padding: 30px 20px; }
}

/* ضبط السايد بار في الموبايل */
@media (max-width: 768px) {
    .navbar { padding: 10px 5%; height: 70px; display: flex; align-items: center; justify-content: space-between; }
    .nav-links-desktop { display: none; }
    .menu-toggle { display: block !important; }
}

/* تصميم الفوتر */

/* --- Footer Styling --- */
.main-footer {
    background: #001f3f; /* نفس لون براند الباشا الداكن */
    color: #ffffff;
    padding: 60px 0 20px;
    font-family: 'Cairo', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: right;
}

/* اللوجو والوصف */
.footer-logo {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 8px;
    padding: 10px;
    margin-right: 12px;
}
.footer-logo span { color: #ff6b81; }

.footer-about p {
    line-height: 1.8;
    color: #cbd5e0;
    font-size: 15px;
    padding: 15px;
    margin-right: 13px;
}

/* الروابط والسوشيال */
.footer-links h3, .footer-contact h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 2px;
    background: #ff6b81;
}

.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a {
    color: #cbd5e0;
    transition: 0.3s;
    text-decoration: none;
}
.footer-links ul li a:hover { color: #ff6b81; padding-right: 10px; }

/* أيقونات التواصل */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #cbd5e0;
}
.contact-item i { color: #ff6b81; font-size: 18px; }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-right: 12px;
}
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}
.social-links a:hover { background: #ff6b81; transform: translateY(-5px); }

/* خط الحقوق السفلي */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #a0aec0;
}
.footer-bottom span { color: #ff6b81; font-weight: bold; }

/* الموبايل */
@media (max-width: 768px) {
    .footer-grid { text-align: center; }
    .footer-links h3::after, .footer-contact h3::after { right: 50%; transform: translateX(50%); }
    .contact-item { justify-content: center; }
    .social-links { justify-content: center; }
}

/* --- تحسينات خاصة لتوجيه الموبايل (Mobile UX Tuning) --- */

@media (max-width: 992px) {
    /* 1. ضبط اتجاه النص العام */
    body {
        text-align: right; /* التأكد من أن الأساس هو اليمين */
    }

    /* 2. ضبط الهيرو (الجزء العلوي) */
    .hero-content {
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center; /* تمركز المحتوى في المنتصف يعطي توازن أفضل للموبايل */
        text-align: center;
    }

    /* 3. حل مشكلة "الميل لليسار" في العناوين */
    .main-title {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        line-height: 1.4 !important;
        font-size: 2.2rem !important; /* حجم مناسب للموبايل */
    }

    /* 4. ضبط صورة الموبايل لتكون في المنتصف تماماً */
    .hero-image-box {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-image-box img {
        width: 85%; /* تكبير الصورة قليلاً لتملأ الفراغ */
        max-width: 320px;
        margin: 0 auto;
    }

    /* 5. ضبط الأزرار لتكون واضحة وسهلة الضغط */
    .btn-main {
        width: 80%; /* زر عريض يسهل الضغط عليه بالإبهام */
        max-width: 280px;
        padding: 14px 20px;
        margin: 10px auto;
    }

    /* 6. تحسين النافبار العلوي */
    .navbar {
        padding: 0 20px !important;
    }

    .nav-container {
        flex-direction: row-reverse; /* وضع اللوجو والمنيو في أماكنهم الصحيحة عربياً */
    }

    .logo {
        margin-right: 0;
    }

    /* 7. الهوامش الجانبية للأقسام */
    .products-section, .contact-main, .footer-grid {
        padding: 40px 20px !important;
    }
}

/* إضافة لمسة احترافية للصور (Shadow Softness) */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 20px;
        width: 100%;
    }
}
