/* Global Styles */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
   /* background-color: #f9f9f9;*/
    background-color: #dbf2fe;
    
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #c0392b;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--secondary);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background: #f0f7f7;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    /* background: linear-gradient(135deg, #2e2e2e, #1c1c1c, #000000);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);*/
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark);
    font-weight: 500;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--secondary);
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--light);
}

.language-switcher img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}


/* Services Section */
    .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    background: var(--secondary);
    color: white;
    font-size: 2.5rem;
    padding: 30px;
    text-align: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Products Section */
.products-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-price {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2rem;
}

/* About Section */
.about {
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 900px;
    margin: 50px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.8rem;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

.modal-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.modal-product-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-product-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.modal-product-price {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 20px;
}

.modal-product-description {
    margin-bottom: 20px;
    line-height: 1.8;
}

.modal-product-features {
    margin-bottom: 20px;
}

.modal-product-features li {
    margin-bottom: 8px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.modal-product-features li:before {
    content: "✓";
    color: var(--secondary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}
/* Partners Section */
.partners {
    background: var(--light);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.partners-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    will-change: transform;
    padding: 10px 0;
}

.partner-logo {
    flex: 0 0 auto;
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin: 0 20px;
    height: 120px;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    scroll-snap-align: center;
}

    .partner-logo:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .partner-logo img {
        max-width: 100%;
        max-height: 70px;
        object-fit: contain;
        filter: grayscale(0%);
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .partner-logo:hover img {
        filter: grayscale(100%);
        opacity: 1;
    }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partners-container:hover .partners-track {
    animation-play-state: paused;
}

/* Navigation dots for mobile */
.partners-dots {
    display: none;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.partners-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

    .partners-dot.active {
        background: var(--secondary);
    }

/* Mobile-specific styles */
@media (max-width: 768px) {
    .partners-track {
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        padding: 10px 0;
    }

        .partners-track::-webkit-scrollbar {
            display: none;
        }

    .partners-container {
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: auto;
    }

        .partners-container::before,
        .partners-container::after {
            display: none;
        }

    .partner-logo {
        width: 140px;
        height: 100px;
        padding: 18px;
        margin: 0 15px;
        flex-shrink: 0;
    }

        .partner-logo img {
            max-height: 60px;
        }

    .partners-dots {
        display: flex;
    }
}

@media (max-width: 576px) {
    .partner-logo {
        width: 120px;
        height: 90px;
        padding: 15px;
        margin: 0 12px;
    }

        .partner-logo img {
            max-height: 50px;
        }
}
/* Contact Section */
.contact {
    background: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content, .modal-body {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 0;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: 0.5s;
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .modal-content {
        margin: 20px auto;
    }
    
    .products-filter {
        flex-direction: column;
        align-items: center;
    }
}

/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}

    body.rtl .logo-container {
        flex-direction: row; /* Keep natural order but with RTL alignment */
    }

    body.rtl .logo-text {
        text-align: right;
        margin-left: 0;
        margin-right: 10px;
    }

        /* Keep the company name in standard LTR direction even in RTL mode */
        body.rtl .logo-text h1,
        body.rtl .logo-text p {
            direction: ltr;
            unicode-bidi: embed;
        }

    body.rtl .section-title h2::after {
        left: auto;
        right: 50%;
        transform: translateX(50%);
    }

    body.rtl .modal-product-features li {
        padding-left: 0;
        padding-right: 25px;
    }

        body.rtl .modal-product-features li:before {
            left: auto;
            right: 0;
        }

    body.rtl .footer-col h4::after {
        left: auto;
        right: 0;
    }

    body.rtl .contact-details i,
    body.rtl .social-links a {
        margin-right: 0;
        margin-left: 15px;
    }

    body.rtl .products-filter {
        justify-content: right;
    }

    /* Additional RTL adjustments for logo */
    body.rtl .logo {
        direction: rtl; /* Force LTR for the logo container */
    }

    body.rtl .logo-container {
        direction: rtl; /* Force LTR for logo elements */
    }

    body.rtl .logo-text {
        direction: rtl; /* Force LTR for text */
        text-align: right; /* Align text to left within its container */
    }

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    color: Red;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 500;
}

.logo-text span {
    color: var(--secondary);
}

/* Navigation Highlight Styles */
nav ul li a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
}

    nav ul li a:hover,
    nav ul li a.active {
        color: white;
        background-color: rgba(52, 152, 219, 0.8); /* Semi-transparent blue matching your secondary color */
    }

    nav ul li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--secondary);
        border-radius: 4px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s;
    }

    nav ul li a.active::before {
        opacity: 0.8;
    }

    nav ul li a:hover::before {
        opacity: 0.6;
    }


/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    nav ul li a {
        padding: 10px 20px;
        display: block;
        margin: 5px 0;
    }
}

/* Hero Slider Styles */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

    .hero-slide.active {
        opacity: 1;
    }

    .hero-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(211, 98, 99, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

    .hero-nav-btn.active {
        background: blue;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    text-align: center;
    padding: 40px 20px;
}

    .error-message p {
        margin-bottom: 20px;
        color: var(--text-light);
    }



/* Product content styles for modal */
.product-content-container {
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .product-content-container h2 {
        color: var(--primary);
        margin-bottom: 15px;
        text-align: center;
        background-color: #1CA2FF !important;
        padding: 10px !important;
    }

    .product-content-container h4 {
        color: #333;
        margin: 20px 0 10px;
        background-color: #1CA2FF !important;
        padding: 10px !important;
    }

    .product-content-container p {
        margin-bottom: 15px;
        line-height: 1.6;
        margin: 20px !important;
    }

    .product-content-container strong {
        color: var(--secondary);
    }

    .product-content-container img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 20px !important;
    }

/* RTL support for Arabic product content */
body.rtl .product-content-container {
    direction: rtl;
    text-align: right;
}

    body.rtl .product-content-container h2,
    body.rtl .product-content-container h4 {
        text-align: right;
    }

/* Responsive adjustments for modal content */
@media (max-width: 768px) {
    .product-content-container {
        padding: 15px;
    }

        .product-content-container p {
            margin: 15px !important;
        }
}
