:root {
    --primary-color: #e31e24;
    --secondary-color: #333;
    --text-color: #4a4a4a;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 0.125rem 0.938rem rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 0.5rem;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    direction: rtl;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.navbar {
    background: var(--white);
    padding: 1rem 3.125rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.625rem 3.125rem;
}

.logo img {
    height: 3.125rem;
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.875rem;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 13.75rem;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.625rem);
    transition: var(--transition);
    padding: 0.625rem 0;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 0.625rem 1.25rem;
    display: block;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Button Styles */
.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn {
    /* Add these new properties */
    min-width: 3.75rem;
    font-size: 1.125rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    /* Keep existing properties */
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--primary-color);
}

.lang-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    background: #c41920;
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    margin-bottom: 3.125rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    bottom: -0.938rem;
    width: 5rem;
    height: 0.188rem;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 1.25rem 0;
}

.footer-container {
    margin: 0 auto;
    max-width: 75rem;
    padding: 0 1.25rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

/* معلومات الاتصال - اليمين */
.contact-info {
    flex: 1;
    max-width: 300px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    color: #cccccc;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.contact-details i {
    color: #e31e24;
    width: 1rem;
    text-align: center;
}

/* القسم الأوسط */
.footer-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.938rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e31e24;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 1.875rem;
    height: 1.875rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #e31e24;
    transform: translateY(-2px);
}

/* اللوجو - اليسار */
.footer-logo {
    flex: 1;
    max-width: 300px;
    display: flex;
    justify-content: flex-end;
}

.footer-logo img {
    max-width: 100px;
    height: auto;
}

/* حقوق النشر */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    text-align: center;
}

.copyright {
    color: #888888;
    font-size: 0.85rem;
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .contact-info, .footer-logo {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
        order: 1;
    }

    .footer-middle {
        order: 2;
    }

    .contact-info {
        order: 3;
    }

    .contact-details {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 15px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .contact-details p {
        font-size: 0.85rem;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.938rem 1.875rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.625rem 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }

    .scroll-to-top,
    .whatsapp-btn {
        width: 2.5rem;
        height: 2.5rem;
        bottom: 1.25rem;
        font-size: 1.125rem;
    }
}


@media (max-width: 480px) {

    .navbar {
        padding: 0.625rem 0.938rem;
    }

    .logo img {
        height: 2.188rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .scroll-to-top,
    .whatsapp-btn {
        width: 2.188rem;
        height: 2.188rem;
        bottom: 0.938rem;
        font-size: 1rem;
    }
}

/* Trusted Clients Section */
.trusted-clients {
    background: #fff;
    overflow: hidden;
    padding: 3.125rem 0;
    margin: 2.5rem 0;
    position: relative;
}
.clients-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.875rem;
    color: var(--secondary-color);
    position: relative;
}

.clients-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.625rem;
    width: 3.75rem;
    height: 0.188rem;
    background: var(--primary-color);
}
.clients-slider {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 0;
    margin: 1.25rem auto;
    width: 100%;
}

.clients-track {
    display: flex;
    gap: 2rem;
    animation: continuousScroll 100s linear infinite;
    width: fit-content; /* تغيير من max-content */
}

.client-logo {
    flex: 0 0 8rem;
    height: 5rem;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 4rem;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes continuousScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* تحسينات للشاشات المختلفة */
@media (max-width: 768px) {
    .client-logo {
        flex: 0 0 7rem;
    }

    .clients-track {
        animation-duration: 15s;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .client-logo {
        flex: 0 0 6rem;
    }

    .clients-track {
        animation-duration: 12s;
        gap: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .clients-slider {
        max-width: 900px;
    }

    .client-logo {
        flex: 0 0 140px;
    }
}

@media (max-width: 768px) {
    .clients-slider {
        max-width: 600px;
    }

    .client-logo {
        flex: 0 0 120px;
        height: 80px;
    }

    .clients-track {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .clients-slider {
        max-width: 300px;
    }

    .client-logo {
        flex: 0 0 100px;
        height: 70px;
    }

    .clients-track {
        gap: 20px;
    }

    .clients-title {
        font-size: 1.5rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* سيتم تغييره إلى flex عند التمرير */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #c41920; /* لون أغمق عند التحويم */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Animation for button appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fixed Buttons Styles */
.scroll-to-top,
.whatsapp-btn {
    position: fixed;
    width: 2.813rem;
    height: 2.813rem;
    bottom: 1.875rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Scroll to Top Button */
.scroll-to-top {
    right: 1.875rem;
    background-color: var(--primary-color);
    color: white;
    display: none;
}

/* WhatsApp Button */
.whatsapp-btn {
    left: 1.875rem;
    background-color: #25D366;
    color: white;
    text-decoration: none;
}

/* Hover Effects */
.scroll-to-top:hover {
    background-color: #c41920;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active,
.whatsapp-btn:active {
    transform: translateY(0);
}

.scroll-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Animation for button appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .scroll-to-top,
    .whatsapp-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        font-size: 18px;
    }

    .scroll-to-top {
        right: 20px; /* تم تحديث الموضع */
    }

    .whatsapp-btn {
        left: 20px; /* تم تحديث الموضع */
    }
}

@media (max-width: 480px) {
    .scroll-to-top,
    .whatsapp-btn {
        width: 35px;
        height: 35px;
        bottom: 15px;
        font-size: 16px;
    }

    .scroll-to-top {
        right: 15px; /* تم تحديث الموضع */
    }

    .whatsapp-btn {
        left: 15px; /* تم تحديث الموضع */
    }
}

/* Optional: Add pulse animation for WhatsApp button */
.whatsapp-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}