/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0%;

    direction: rtl;
    text-align: center;

    background: linear-gradient(to bottom,
            #b3e2d3, #a7d8b9), url('src/images/saffaalogo.png');
    /* background-blend-mode: overlay; */

    background-attachment: fixed;
    /* يجعل الخلفية ثابتة */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding-left: 80px;
    padding-right: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {

    width: 40px;
    height: auto;
    margin-left: 10px;
    margin-right: 10px;
}



@media (max-width: 768px) {
    nav {
        padding-left: 10px;
        padding-right: 10px;
    }


}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

footer {
    background: #005f87;
    color: white;
    text-align: center;
    direction: ltr;
    padding: 15px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background-color: white;
    height: 2px;
    width: 25px;
    margin: 3px 0;
}

.drawer {
    position: fixed;
    right: -300px;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #333;
    color: white;
    transition: 0.3s ease;
    z-index: 10000;
}

.drawer.show {
    right: 0;
}

.nav-links-drawer {
    list-style: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-links-drawer a {
    color: white;
    text-decoration: none;
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animated-img {
    width: 100%;
    height: auto;
    animation: slideIn 2s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    #products {
        padding: 10px;
    }
}

header {
    /* font-family: Arial, sans-serif;
    margin: 10;
    padding: 0%;
    border-radius: 15;
    position: relative;

    direction: rtl;
    text-align: center;


    background-position: center, center; */
    position: relative;
    color: white;
    padding: 20px;
    /* background: rgba(0, 0, 0, 0.3); */

}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    margin: 10px 0;
    font-size: 2.5em;
}

/* styles.css */
.allsite {
    width: 100%;
    /* عرض العنصر */
    /* max-width: 1200px; */
    /* أقصى عرض للعنصر */
    margin: 0 auto;
    /* محاذاة العنصر في المنتصف */
    /* padding: 100px; */
    /* مسافة داخلية للعنصر */
    background-color: transparent;
    /* لون الخلفية */
    border: 1px solid #ddd;
    /* إطار العنصر */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* ظل العنصر */
    border-radius: 10px;
    /* زوايا دائرية للعنصر */
    text-align: center;
    /* محاذاة النص داخل العنصر */
}

header .video-container {
    border-radius: 30px;
    margin: 10px;
    padding: 20px;
    overflow: initial;
    border-radius: 20px;
    transition: transform 0.3s ease;
    opacity: 0.8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);

}

header img.animated-img {
    width: 150px;
    /* عرض الصورة */
    height: auto;
    /* ارتفاع الصورة يتكيف مع العرض للحفاظ على النسبة */
    border-radius: 10px;
    /* زوايا دائرية */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* ظل للصورة */
    margin: 20px 0;
    /* مسافة حول الصورة */
    opacity: 0.9;
    /* شفافية الصورة */
    transition: transform 0.3s ease;
    /* تأثير تحريك عند التفاعل */
}

header img.animated-img:hover {
    transform: scale(1.05);
    /* تكبير الصورة قليلاً عند التفاعل */
}

#contact {

    background-color: #f8f8f8;
    padding: 20px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 20);
    margin: 20px auto;
    max-width: 1000px;
}

#contact h3,
#contact h2 {
    color: #333;
    margin-bottom: 10px;
}

#contact iframe {
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);


    margin-top: 10px;

}

#contact p {
    font-size: 18px;
    color: #444;
    margin: 8px 0;
}

#contact p a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

#contact p a:hover {
    text-decoration: underline;
}


#social {

    justify-content: center;

    flex-wrap: wrap;
    justify-content: center;
    display: flex;
    direction: rtl;
    text-align: center;

}

#social img.animated-img {
    display: flex;
    text-align: center;
    width: 40px;

    height: auto;
    /* ارتفاع الصورة يتكيف مع العرض للحفاظ على النسبة */
    border-radius: 10px;

    margin: 5px 15px;

    transition: transform 0.3s ease;
}

#social img.animated-img:hover {
    transform: scale(1.1);
}

#social p {
    direction: rtl;
    font-size: 12px;

    font-weight: bold;

    color: #333;
    text-align: center;

    margin-top: 5px;

    transition: color 0.3s ease;
}

*/ #social a:hover p {
    color: #007bff;
}

#services img:hover {
    transform: scale(1.15);
}


.banner {
    background-color: #007bff;
    color: white;
    padding: 20px;
    font-size: 24px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.product {

    /* background: #f8f9fa; */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.product p {
    color: white;
}

.product img {
    width: 100%;
    height: 90%;
    border-radius: 8px;
}

.products {
    padding-top: 40px;
    padding-left: 5px;
}

#allproducts {
    padding: 80px;
}

@media (max-width: 768px) {
    #allproducts {
        padding: 10px;
    }


}