@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');




.back-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* الفيديو في الأسفل تماماً */
}
.smart-light {
    background-color: #1a1818; /* لون الخلفية الموحد للموقع */
    padding: 100px 5%;
    color: #ffffff;
}

.smart-light .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

/* تنسيق الصورة */
.light-image {
    flex: 1;
}

.light-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* إضافة ظل لإبراز الصورة */
}

/* تنسيق النصوص */
.light-text {
    flex: 1;
}

.light-text span {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.light-text h2 {
    text-align: left !important; /* محاذاة لليسار لتناسب هذا السكشن */
    margin-top: 10px;
}

.light-text .line {
    width: 80px;
    height: 3px;
    background-color: #ffffff;
    margin: 20px 0;
}

.light-text p {
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 25px;
    text-align: left;
}

/* قائمة المميزات */
.light-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.light-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #efefef;
}

.light-features li i {
    color: #ffffff; /* لون الأيقونة */
}

/* الزر */
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000;
}

/* التجاوب مع الموبايل */
@media (max-width: 768px) {
    .smart-light .container {
        flex-direction: column; /* جعل العناصر فوق بعضها في الموبايل */
        text-align: center;
    }

    .light-text h2 {
        text-align: center !important;
    }

    .light-text .line {
        margin: 20px auto;
    }

    .light-features li {
        justify-content: center;
    }
}




.card i.fa-whatsapp {
    transition: 0.3s;
}

.card:hover i.fa-whatsapp {
    color: #25D366; /* لون واتساب الرسمي */
}
.card:hover i.fa-envelope {
    color: #007bff; /* لون أزرق بسيط أو لون هوية Nestify */
    transition: 0.3s;
}




/* تنسيقات عامة للسكاشن الجديدة */
.image-grid-section {
    padding: 80px 5%;
    background-color: #1a1818; 
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط الحاويات داخل السكشن */
    color: #ffffff; /* جعل لون الخط الافتراضي أبيض لجميع العناصر */
}

/* محاذاة الفقرة لليسار داخل حاوية السكشن */
.section-intro {
    text-align: left;
    margin-bottom: 50px;
    max-width: 1100px; 
    width: 100%; 
}

/* التأكيد على اللون الأبيض للعناوين والفقرات */
.section-intro h2 {
    color: #ffffff !important; /* لون أبيض صافي للعناوين */
    font-size: 2.5rem;
    margin: 10px 0;
}

.section-intro p, 
.section-intro span {
    color: #ffffff !important; /* لون أبيض صافي للنصوص */
    line-height: 1.6;
    opacity: 0.9; /* شفافية بسيطة جداً للنصوص الفرعية لراحة العين */
}









.image-grid-section {
    padding: 80px 20px;

    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* حركة فخمة عند التمرير */
    position: relative;
    color: white;
}

/* طبقة تعتيم لضمان وضوح الكلمات البيضاء */
.image-grid-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}




/*تنسيق صور الكبسات والاجهزة جو صفحة البرودكتس*/
/* التنسيق العام للقسم */
/* --- تنسيق قسم شبكة الصور (Panels, Curtains, etc.) --- */
/* --- تنسيق قسم شبكة الصور --- */

.image-grid-section {
    padding: 60px 20px;
    background-color: #000000; /* خلفية سوداء */
    text-align: center;
}

.grid-4-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* مسافة واضحة بين العناصر لترك مساحة للتكبير */
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- صندوق الصورة (Item) --- */
.photo-item {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
    position: relative;
    border-radius: 12px;
  
    cursor: pointer;
    
    /* سرعة ونوع الحركة لتكبير العنصر بالكامل */
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 1; /* لضمان عدم اختفاء العنصر خلف جيرانه */
}

/* --- تأثير التكبير عند الهفر (تكبير الصندوق كله) --- */
.photo-item:hover {
    transform: scale(1.09); /* يكبر العنصر كاملاً بنسبة 10% */
    z-index: 10; /* يجعله يظهر فوق العناصر الأخرى عند التكبير */

}

.photo-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    /* لا نحتاج transition هنا لأن الصندوق الأب هو من يتحرك */
}
.photo-type{
    font-size: 0.72rem;
    padding-top: 2px;
}
/* --- التجاوب مع الجوال (ضمان صورتين دائماً) --- */

@media (max-width: 768px) {
    .grid-4-photos {
        gap: 15px;
        padding: 0 10px;
    }

    .photo-item {
        /* إجبار المتصفح على عرض صورتين في الصف */
        flex: 0 0 calc(50% - 15px) !important; 
        max-width: calc(50% - 15px) !important;
    }
}

/* الشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .grid-4-photos {
        gap: 10px;
    }

    .photo-item {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
    
    .photo-item:hover {
        transform: scale(1.05); /* تكبير أقل في الجوال لتجنب الخروج عن الشاشة */
    }
}








.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: auto;
    overflow: hidden; /* يمنع ظهور الصورة الثانية بجانب الأولى */
    background: #000;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out; /* سرعة الانتقال */
    width: 200%; /* لأن لدينا صورتين، كل واحدة تأخذ 100% */
}

.slide {
    width: 50%; /* نصف الـ 200% يعني 100% من عرض الشاشة */
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* لضمان عدم تمطط تفاصيل الصورة */
}

.caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 5px;
}

/* أزرار التنقل */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
}
.next { right: 10px; }
.prev { left: 10px; }























/* تصميم الفورم ليغطي عرض الشاشة باللون الأسود */
.contact-section {
    background-color: #000000;
    width: 100%;
    padding: 60px 0;
}

.contact-container {
    max-width: 1100px; /* تقليل العرض الأقصى قليلاً لتركيز النظر */
    margin: 0 auto;
    padding: 50px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
}

.contact-container p {
    text-align: center;
    margin-bottom: 40px;
    color: #888;
    font-size: 16px;
}

/* تعديل الـ Grid لجعل الحقول أعرض */
.form-grid {
    display: grid;
    /* هنا جعلنا الحقول تتوزع على عمودين فقط لزيادة العرض */
    grid-template-columns: 1fr 1fr; 
    gap: 25px 40px; /* زيادة المسافة بين الحقول */
}

/* لجعل الحقول تأخذ عرض كامل في الشاشات الصغيرة (الموبايل) */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-container {
        padding: 20px;
    }
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* زيادة حجم وطول الحقول */
.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 15px; /* زيادة الحشوة الداخلية لتكبير الحقل */
    background: #262626;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.2 rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* جعل الملاحظات تأخذ العرض الكامل دائماً */
.full-width {
    grid-column: 1 / -1;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    background: #333333;
}

.submit-btn {
    grid-column: 1 / -1; /* جعل الزر في المنتصف أسفل الحقول العريضة */
    width: 250px;
    display: block;
    margin: 30px auto 0;
    padding: 16px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.02);
}