/* إعادة تعيين الإعدادات الافتراضية وثنائيات الخط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth; /* حركة انسيابية عند الانتقال بين الأقسام */
}

/* الألوان الأساسية للموقع */
:root {
    --primary-color: #1e293b; /* كحلي غامق فخم */
    --secondary-color: #0284c7; /* أزرق حيوي يرمز للإيبوكسي والعزل */
    --accent-color: #f1f5f9; /* رمادي فاتح جداً للخلفيات */
    --text-color: #334155; /* لون النص الأساسي */
    --white: #ffffff;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.8;
}

/* شريط التنقل */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .logo {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
}

.navbar nav ul {
    display: flex;
    list-style: none;
}

.navbar nav ul li {
    margin-right: 20px;
}

.navbar nav ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
    color: var(--white);
}

/* القسم الرئيسي (Hero) */
.hero-section {
    background: linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.8)), 
                url(hero-paints.png.jpeg) no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #e2e8f0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #0369a1;
}

/* الأقسام العامة */
section {
    padding: 80px 10%;
    text-align: center;
}

section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* قسم من نحن */
.about-section {
    background-color: var(--white);
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* تنسيق شبكة بطاقات الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 0 10px;
}

.service-card {
    background-color: var(--white, #ffffff);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--primary-color, #1e293b);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}
/* قسم المنتجات */
.products-section {
    background-color: var(--white);
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.product-tag {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
}

/* قسم الاتصال */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-section h2 {
    color: var(--white);
}

.contact-info {
    margin-top: 30px;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 15px;
}

/* التذييل */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #334155;
}

/* متجاوب مع الشاشات الصغيرة (الهواتف) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
    .navbar nav ul li {
        margin: 0 10px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .services-grid {
        flex-direction: column;
    }
}

/* تنسيق أيقونة ورابط الفيسبوك */
.social-links {
    margin-top: 25px;
}

.social-links p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.facebook-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #1877f2; /* لون الفيسبوك الرسمي */
    color: #ffffff; /* لون الأيقونة أبيض */
    border-radius: 50%; /* تجعل الدائرية كاملة */
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* حركة عند وضع الماوس على الأيقونة */
.facebook-btn:hover {
    transform: translateY(-5px) scale(1.1); /* تكبر قليلاً وترتفع للأعلى */
    background-color: #166fe5;
}
/* ==========================================
   تنسيق معرض الأعمال (Gallery Section)
   ========================================== */
.gallery-section {
    background-color: var(--accent-color, #f1f5f9);
    padding: 60px 20px;
    text-align: center;
}

.gallery-section h2 {
    color: var(--primary-color, #1e293b);
    font-size: 2rem;
    margin-bottom: 10px;
}

.gallery-section p {
    color: #64748b;
    margin-bottom: 30px;
}

/* شبكة الصور المتناسقة */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* بترتب الصور تلقائياً حسب حجم الشاشة */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* كرت الصورة */
.gallery-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* حركة رفع الكرت عند تمرير الماوس */
.gallery-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* توحيد أحجام الصور */
.gallery-item img {
    width: 100%;
    height: 220px; /* ارتفاع موحد لجميع الصور */
    object-fit: cover; /* لضمان عدم قص أو تشويه الصورة */
    display: block;
}

/* عنوان الخدمة تحت الصورة */
.gallery-item h4 {
    padding: 15px;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
}
/* تنسيق قسم الاتصال والنموذج */
.contact-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 30px;
    flex-wrap: wrap;
    text-align: right;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-form {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

.contact-form button {
    border: none;
    cursor: pointer;
}
/* زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #ffffff;
}