/* إعدادات عامة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

/* رأس الصفحة */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    background-color: #50c8b8d5;
    color: rgb(16, 16, 16);
}

.header-logo {
    width: 40px; 
    height: auto;
}

header nav {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end; /* وضع الروابط في نهاية الـheader */
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    font-weight: bold;
    font-size: 0.9em;
    padding: 5px 10px; /* تصغير الحشوة */
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

header nav a:hover {
    background-color: #ffdd40;
    color: #333;
    transform: scale(1.1);
}

/* القسم الرئيسي */
.main {
    padding: 200px 100px;
    text-align: center;
    background: url("تنزيل\ \(9\).jpeg") no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    max-width: 100%;
}

.main h1 {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    background: rgba(162, 232, 171, 0.527);
    backdrop-filter: blur(8px);
    border-radius: 8px;
}

.main h3 {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background: rgba(162, 232, 171, 0.527);
    backdrop-filter: blur(8px);
    border-radius: 8px;
}

.main h1 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main h3 {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-top: 10px;
}

.social-icons {
    padding: 50px;
    font-size: 50px;
}

/* قسم الخدمات */
.services {
    padding: 20px;
    margin: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.services h2 {
    color: #000000;
    font-size: 22px;
    margin-bottom: 15px;
}

.services-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.services-card {
    flex: 1 1 calc(33.333% - 10px);
    margin-top: 10px;
    text-align: center;
    background-color: #50c8b86c;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.services-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.services-card h3 a {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #000000;
    border-radius: 5px;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.services-card h3 a:hover {
    background-color: #0056b3;
}
.services-cards img{
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}
.services-cards {
    flex: 1 1 calc(33.333% - 10px);
    margin-top: 10px;
    text-align: center;
    background-color: #50c8b86c;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}
.services-cards h3 a {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #000000;
    border-radius: 5px;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.services-cards h3 a:hover {
    background-color: #0056b3;
}
/* زر واتساب */
.contact {
    padding: 20px;
    text-align: center;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 15px;
}

.whatsapp-button i {
    margin-left: 8px;
}

/* قسم من نحن */
#about-us {
    position: relative;
    padding: 200px 100px;
    text-align: center;
    background: url("wallpaper\ anime.jpeg") no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    max-width: 100%;
    color: #ffffff; /* لون النص */
    margin: 10px;
}
#about-us h1,p,h2{
    margin: 10px;
}
#about-us h1,
#about-us p,
#about-us h2 {
    position: relative;
    display: block;
    z-index: 1;
}

#about-us h1::before,
#about-us p::before,
#about-us h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* لون شفاف */
    filter: blur(8px); /* مقدار التمويه */
    border-radius: 4px;
    z-index: -1;
}


/* Contact Us Section */
#contact-us {
    background-color: #f4f4f4; /* Light background */
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact-us h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

#contact-us p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
}

#contact-us form {
    margin-top: 20px;
}

#contact-us label {
    font-size: 1em;
    color: #333;
    margin-top: 10px;
    display: block;
    text-align: right;
}

#contact-us input[type="text"],
#contact-us input[type="email"],
#contact-us textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.submit-button {
    background-color: #50c8b8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #3da99a;
}

/* WhatsApp Button */
.whatsapp-link {
    text-decoration: none;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.whatsapp-button i {
    margin-left: 8px;
    font-size: 1.2em;
}

.whatsapp-button:hover {
    background-color: #1ebe5d;
}
footer {
    background-color: #333;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9em;
}

footer p {
    margin: 0;
    font-size: 1em;
}

/* Social Icons in Footer */
#footer-social-icons {
    margin-top: 10px;
}

#footer-social-icons a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 8px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

#footer-social-icons a:hover {
    color: #ffdd40; /* لون مميز عند التمرير */
}



/* تجهيزات العرض المتجاوب */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .services-card {
        flex: 1 1 calc(50% - 10px);
    }
    
    .main, .services {
        margin: 10px;
        padding: 15px;
    }
    .services-cards{
        flex: 1 1 calc(50% - 10px);
        margin: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .services-card {
        flex: 1 1 100%;
    }

    .main h1 {
        font-size: 20px;
    }
    .services-cards{
        flex: 1 1 100%;
    }
}
