/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    direction: rtl;
}




header {
    background: url('images/تنظيف\ \(2\).webp');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    color: #ffffff; /* لون النص أبيض */
    padding: 150px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideBackground 5s ease-in-out infinite alternate;
}

@keyframes slideBackground {
    0% {
        background-position: center 20%;
    }
    100% {
        background-position: center 80%;
    }
}

header h1 {
    font-size: 4rem;
    margin: 0;
    animation: slideInDown 1.5s ease-in-out;
    color: #ff9800; /* لون العنوان برتقالي مشرق */
}

header p {
    font-size: 1.8rem;
    margin: 10px 0 20px;
    animation: slideInUp 1.5s ease-in-out;
    color: #ffffff; /* لون النص أبيض */
}

.cta-button {
    background-color: #6a5acd; /* لون بنفسجي مشرق */
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    animation: fadeIn 2s ease-in-out;
}

.cta-button:hover {
    background-color: #7b68ee; /* لون بنفسجي داكن عند التحويم */
    transform: scale(1.1);
}

nav {
    background-color: rgba(51, 51, 51, 0.9); /* خلفية رمادية داكنة شفافة */
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 2px solid #6a5acd; /* خط أسفل القائمة باللون البنفسجي */
}

.logo {
    color: #6a5acd; /* لون الشعار بنفسجي مشرق */
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: bold;
    animation: fadeIn 2s ease-in-out;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: #6a5acd; /* لون بنفسجي مشرق عند التحويم */
    transform: translateY(-3px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: transform 0.3s;
}

/* تصميم متجاوب للهواتف والأجهزة اللوحية */
@media (max-width: 768px) {
    header {
        padding: 100px 20px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #333333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px;
    }

    .services {
        padding: 50px 20px;
    }

    .service {
        width: 100%;
        margin: 10px 0;
    }

    .about-us {
        padding: 50px 20px;
    }

    .gallery {
        padding: 50px 20px;
    }

    .faq {
        padding: 50px 20px;
    }

    .contact {
        padding: 50px 20px;
    }

    .map-section {
        padding: 30px 20px;
    }
}




.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background: #28a745;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}




header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    justify-content: flex-end; /* محاذاة العناصر إلى اليمين */
}



header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap; /* يسمح بتقسيم القائمة إلى عدة أسطر على الشاشات الصغيرة */
}

header nav ul li {
    margin: 0 1rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: url('images/image.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    margin-top: 1px; /* إضافة مسافة بين القسم والجزء الذي فوقه */
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background: #fff;
    color: #28a745;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
}

/* Services Section */
.services {
    padding: 4rem 0;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-item i {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Products Section */
.products {
    padding: 4rem 0;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Team Section */
.team {
    padding: 4rem 0;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    text-align: center;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact input, .contact textarea {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact button {
    background: #28a745;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    background: #28a745;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

footer .social-icons a {
    color: #fff;
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#back-to-top:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-item,
    .project-item,
    .product-item,
    .team-member {
        padding: 1rem;
    }

    footer .social-icons a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    .hero {
        padding: 50px 10px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .contact input,
    .contact textarea {
        max-width: 100%;
    }
}


/* Header Styles */
header {
    background: #28a745;
    color: #fff;
    padding: 1rem 0;
    position: relative; /* To position the menu icon properly */
}

header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

header nav ul li {
    margin: 0 1rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Mobile Menu Icon */
.menu-icon {
    display: none; /* Hidden by default on larger screens */
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide the navigation menu by default */
    header nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background: #28a745;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
    }

    /* Show the menu icon */
    .menu-icon {
        display: block;
    }

    /* Adjust styles for mobile navigation links */
    header nav ul li {
        margin: 0.5rem 0;
    }

    /* Show the menu when active */
    header nav.active ul {
        display: flex;
    }
}


/* About Section */
.about {
    padding: 4rem 0;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Best Practices Section */
.best-practices {
    padding: 4rem 0;
    text-align: center;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.practice-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    text-align: center;
}

.faq-item {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Products Section */
.products {
    padding: 4rem 0;
    background: #f9f9f9;
    text-align: center;
}

.products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0073e6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* لضبط الصورة لتغطي المساحة بالكامل */
    border-radius: 10px;
    margin-bottom: 1rem;
}

.product-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0073e6;
}

.product-item p {
    font-size: 1rem;
    color: #555;
}





        
/* تصميم الشريط الجانبي */
.social-sidebar {
    position: fixed;
    top: 20%;
    left: 10px; /* موقع الشريط على الشاشة */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1000; /* لضمان ظهوره فوق العناصر الأخرى */
}

/* تصميم الأيقونات */
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* الألوان لكل أيقونة */
.social-icon.phone {
    background-color: #007bff; /* لون الهاتف */
}

.social-icon.whatsapp {
    background-color: #25d366; /* لون الواتساب */
}

.social-icon.instagram {
    background-color: #e4405f; /* لون الإنستجرام */
}

.social-icon.twitter {
    background-color: #1da1f2; /* لون تويتر */
}

.social-icon.facebook {
    background-color: #3b5998; /* لون فيسبوك */
}

.social-icon.youtube {
    background-color: #ff0000; /* لون يوتيوب */
}

/* التأثير عند المرور */
.social-icon:hover {
    transform: scale(1.1); /* تكبير الأيقونة */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* شريط جديد للواتساب والاتصال في الجنب اليسار */
/* أيقونة الواتساب على اليسار */
.social-left {
    position: fixed;
    bottom: 10px; /* المسافة من الأسفل */
    left: 10px; /* المسافة من اليسار */
    z-index: 1000; /* لضمان الظهور فوق العناصر الأخرى */
}

.social-left .social-icon {
    position: relative; /* لضبط العناصر الداخلية مثل الشعار */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    background-color: #25d366; /* لون الواتساب */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* الشعار الأحمر أو الرقم على الواتساب */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* أيقونة الهاتف على اليمين */
.social-right {
    position: fixed;
    bottom: 10px; /* المسافة من الأسفل */
    right: 10px; /* المسافة من اليمين */
    z-index: 1000; /* لضمان الظهور فوق العناصر الأخرى */
    display: flex; /* لتوضيع الأيقونة والنص بجانب بعض */
    align-items: center;
    gap: 8px; /* مسافة بين الأيقونة والنص */
}

/* تصميم الأيقونة */
.social-right .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    background-color: #007bff; /* لون الهاتف */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* النص بجانب الأيقونة */
.call-label {
    font-size: 16px; /* حجم النص */
    font-weight: bold; /* خط عريض */
    color: #0b0b0b; /* لون النص */
    background-color: #fff; /* الخلفية البيضاء */
    padding: 5px 10px; /* الحشو حول النص */
    border-radius: 12px; /* زاوية حادة للنص */
    border: 1px solid #ccc; /* خط خفيف حول النص */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* تأثير الظل */
    font-family: 'Arial', sans-serif; /* الخط */
    margin-left: 10px; /* المسافة بين النص والأيقونة */
}

/* التأثير عند تمرير الفأرة على الأيقونة */
.social-icon:hover {
    transform: scale(1.1); /* تكبير الأيقونة */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}