/* Global Styles */
:root {
    --primary-color: #686DF3;
    --secondary-color: #0d141a;
    --text-color: #56585e;
    --light-color: #ffffff;
    --dark-color: #000000;
}

/* RTL Specific Styles */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .form-group {
    text-align: right;
}

html[dir="rtl"] nav ul {
    padding-right: 0;
}

html[dir="rtl"] .service {
    text-align: right;
}

html[dir="rtl"] .footer-section {
    text-align: right;
}

body {
    font-family: 'Noto Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background-color: var(--light-color);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 30px;
    height: auto;
    max-width: 100%;
}

.block-header-logo-text__text {
    font-size: 27px;
    font-weight: bold;
    color: var(--primary-color);
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.language-switcher {
    margin-left: auto;
    font-size: 17px !important;
}

.language-switcher select {
    font-size: 17px;
    padding: 5px;
    margin-right: 8px;
}

/* RTL Support */
html[dir="rtl"] nav {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 60px;
    position: relative;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0 auto;
    display: block;
    width: fit-content;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #f0f0f0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.service h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.service p {
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 15px;
}

/* RTL Support for Services */
html[dir="rtl"] .service h3::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Innovation Section */
.innovation-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.innovation-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.innovation-image {
    flex: 1;
    min-width: 0;
}

.innovation-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.innovation-image img:hover {
    transform: scale(1.02);
}

.innovation-text {
    flex: 1;
    min-width: 0;
}

.innovation-text h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.innovation-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-color);
}

/* RTL Support */
html[dir="rtl"] .innovation-wrapper {
    flex-direction: row-reverse;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .innovation-wrapper {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .innovation-wrapper {
        flex-direction: column;
    }

    .innovation-image img {
        width: 100%;
        max-width: 100%;
        margin-bottom: 25px;
    }

    .innovation-text {
        text-align: center;
    }
}

/* Expertise Section */
.expertise-section {
    padding: 80px 0;
    background-color: #fff;
}

.expertise-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 0 auto;
    max-width: 1200px;
}

.expertise-image {
    flex: 1;
    min-width: 0;
}

.expertise-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: cover;
}

.expertise-content {
    flex: 1;
    min-width: 0;
}

.expertise-content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.expertise-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* RTL Support */
html[dir="rtl"] .expertise-wrapper {
    flex-direction: row-reverse;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .expertise-wrapper {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .expertise-wrapper {
        flex-direction: column;
    }

    .expertise-image img {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .expertise-content {
        text-align: center;
    }
}

/* Solutions Section */
.solutions-section {
    padding: 10px 0;
    background-color: white;
}

.solutions-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.solutions-section .intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.solution-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.solution-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.solution-icon {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.solution-item:hover .solution-icon {
    transform: scale(1.03);
}

.solution-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.solution-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* RTL Support */
html[dir="rtl"] .solution-item {
    text-align: right;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .solution-icon {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 992px) {
    .solution-items {
        grid-template-columns: 1fr 1fr;
    }
    .solution-icon {
        width: 100%;
        height: 280px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .solution-items {
        grid-template-columns: 1fr;
    }
    .solution-icon {
        height: 350px;
        max-width: 100%;
    }
}

/* Tech Solutions Section */
.tech-solutions-section {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.tech-solutions-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.tech-solutions-section .subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item .label {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* RTL Support */
html[dir="rtl"] .stats {
    direction: rtl;
}

/* About Section */
.about {
    padding: 50px 0;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
}

.testimonials .stars {
    font-size: 24px;
    margin-bottom: 20px;
    color: gold;
}

.testimonials blockquote {
    font-size: 20px;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px;
}

.testimonials .author {
    font-weight: bold;
}

/* Contact Form Section */
.contact-form {
    padding: 40px 0;  
    margin-top: 60px;
}

.contact-form h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 40px 0 20px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-sections {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px 0;
    text-align: center;
}

.footer-section h5 a {
    color: var(--light-color);
    text-decoration: none;
}

.footer-section h5 a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* RTL Support */
html[dir="rtl"] .copyright {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-sections {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

/* Set current year in footer */
#current-year {
    font-weight: bold;
}

/* إضافة هذه الأنماط إلى ملف style.css */

/* Language Switcher Styles */
.language-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.lang-btn {
    padding: 5px 15px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.lang-btn:hover {
    opacity: 0.8;
}

/* Footer Copyright Styles */
.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.copyright #rights-text {
    font-weight: normal;
}

/* RTL Styles */
html[dir="rtl"] .language-buttons {
    margin-left: 0;
    margin-right: 15px;
}

html[dir="rtl"] .copyright {
    direction: ltr; /* للحفاظ على اتجاه علامة الحقوق */
}



/* إضافة هذه الأنماط الجديدة وتعديل بعض الأنماط الحالية */

/* تحسينات للهيدر في الوضع المصغر */
.header {
    padding: 15px 0; /* تقليل الحشو */
}

.logo-img {
    width: 25px; /* تصغير حجم الشعار */
}

.block-header-logo-text__text {
    font-size: 22px; /* تصغير حجم النص */
}

/* تحسين أزرار اللغة */
.language-buttons {
    gap: 8px;
    margin-left: 10px;
}

.lang-btn {
    padding: 4px 12px;
    font-size: 14px;
}

/* تحسين القائمة */
nav ul li {
    margin-left: 15px;
}

nav ul li a {
    font-size: 15px;
}

/* تحسين الهيرو سيكشن */
.hero {
    padding: 90px 0 40px; /* تقليل الحشو */
    margin-top: 50px; /* تقليل الهامش */
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* تحسين الأقسام الأخرى */
.solutions-section,
.tech-solutions-section,
.about {
    padding: 15px 0; /* تقليل الحشو */
}

.solution-item {
    min-height: 400px; /* تقليل الارتفاع */
    padding: 20px;
}

.solution-icon {
    width: 300px;
    height: 300px;
}

/* تحسين الفوتر */
.footer {
    padding: 30px 0 15px;
}

/* تحسينات للعرض على الشاشات الصغيرة */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
        flex: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    nav {
        position: static;
        order: 3;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }
    
    .language-switcher {
        order: 2;
        margin-left: 0;
    }
    
    .hero {
        padding: 70px 0 30px;
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .solution-items {
        grid-template-columns: 1fr;
    }
    
    .solution-icon {
        height: 300px;
    }
}

/* تحسينات إضافية للوضع المصغر */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .solution-icon {
        height: 250px;
    }
    
    .footer-section {
        min-width: 100%;
    }
}

/* إضافة هذه الأنماط إلى ملف style.css */

/* أنماط الفاليديشن */
.form-control.invalid {
    border-color: #ff3860;
}

.form-control.valid {
    border-color: #09c372;
}

.error-message {
    color: #ff3860;
    font-size: 0.8rem;
    margin-top: 5px;
    height: 15px;
}

/* تحسينات للنموذج */
.contact-form form {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(104, 109, 243, 0.2);
}

/* أنماط التنبيهات */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 5px;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* تحسينات الفورم */
#contactForm {
    position: relative;
}

/* أنماط زر الإرسال أثناء التحميل */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* أنماط الفاليديشن */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-valid {
    border-color: #28a745 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #28a745;
}

.is-invalid {
    border: 2px solid #ff0000 !important;
}

.error-message {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-control {
    padding: 10px;
    margin-bottom: 5px;
    width: 100%;
}