:root {
    --primary-color: #d4af37;
    /* اللون الذهبي */
    --primary-color-hover: #c9a430;
    --secondary-color: #333;
    --secondary-color-hover: #444;
    --dark-color: #222;
    --light-color: #f4f4f4;
    --gray-color: #f9f9f9;
    --white-color: #fff;
    --accent-color: #2c3e50;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
    background-color: var(--white-color);
    color: var(--dark-color);
    direction: rtl;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin: 10px 0;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 15px;
    position: relative;
    color: var(--dark-color);
}

.underline {
    height: 4px;
    width: 70px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.icon-box {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* شاشة التحميل */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    animation: preloaderFallback 8s forwards;
    /* للتأكد من إخفاء الشاشة حتى في حالة حدوث خطأ */
}

@keyframes preloaderFallback {
    0% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.loader {
    text-align: center;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(212, 175, 55, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader img {
    height: 60px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* مبدل اللغة */
.lang-switch {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
    border-radius: 50px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(5px);
}

.lang-switch:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.lang-switch a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.lang-switch a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.lang-switch a:not(.active):hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* القائمة العلوية */
header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    position: absolute;
    right: 0;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 25px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

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

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* قسم الرئيسية (Hero) */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/WhatsApp Image 2025-05-16 at 11.13.55_5b687b9a.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white-color);
    margin-top: 90px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    transition: all 0.4s ease;
    z-index: -1;
}

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

.btn:hover:before {
    right: 0;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
}

.btn-dark {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-dark:before {
    background-color: var(--primary-color);
}

/* عن الشركة */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-left: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* الانتشار الجغرافي */
.geo-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
}

/* تحسينات على كروت النشاط الجغرافي */
.location-card {
    background-color: var(--white-color);
    padding: 30px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    transition: var(--transition);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.location-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.location-card h3 {
    margin-bottom: 10px;
}

.location-card p {
    color: var(--secondary-color);
}

/* تحسينات على الكروت الأخرى المشابهة */
.cert-detail-card,
.contact-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert-detail-card i,
.contact-card i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    margin-left: 0;
    margin-right: 0;
}

/* تنسيق لجميع أيقونات المناطق في الموقع */
.fa-map-marker-alt {
    color: var(--primary-color);
}

/* رؤيتنا ورسالتنا */
.vm-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.vision-box,
.mission-box {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    border-radius: 10px;
    margin: 15px;
    text-align: center;
    transition: var(--transition);
}

.vision-box:hover,
.mission-box:hover {
    transform: translateY(-10px);
}

/* شعار الشركة */
.logo-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.logo-display {
    margin: 30px auto;
    max-width: 300px;
}

/* قيمنا */
.values-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.value-card {
    background-color: var(--white-color);
    padding: 30px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 220px;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-color);
}

/* خدماتنا */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.service-card {
    background-color: var(--white-color);
    padding: 30px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.service-btn i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.service-btn:hover {
    background-color: var(--dark-color);
}

.service-btn:hover i {
    transform: translateX(-5px);
}

/* منتجات البيتومين */
.product-tabs {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background-color: var(--dark-color);
}

.tab-btn {
    padding: 15px 30px;
    background-color: transparent;
    color: var(--white-color);
    border: none;
    cursor: pointer;
    flex: 1;
    transition: var(--transition);
}

.tab-btn.active {
    background-color: var(--primary-color);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.grade-table {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}

.grade-item {
    background-color: var(--gray-color);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    font-weight: 500;
}

.certifications-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.certifications-gallery img {
    margin: 10px;
    border-radius: 5px;
    max-width: 200px;
    box-shadow: var(--shadow);
}

/* المواد الكيميائية */
.chemicals-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.chemicals-info {
    flex: 1;
    min-width: 300px;
    padding-left: 30px;
    text-align: right;
}

.chemicals-image {
    flex: 1;
    min-width: 300px;
    margin-top: 30px;
}

.chemicals-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* الخدمات اللوجستية */
.logistics-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.why-us {
    margin: 50px 0;
}

.why-us h3 {
    margin-bottom: 30px;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    background-color: var(--white-color);
    padding: 30px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: right;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    transition: var(--transition);
    line-height: 1.6;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.logistics-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

/* شهادات التأهيل */
.cert-content {
    max-width: 900px;
    margin: 0 auto;
}

.cert-info {
    text-align: center;
    margin-bottom: 40px;
}

.cert-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.cert-detail-card {
    background-color: var(--white-color);
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 220px;
    transition: var(--transition);
}

.cert-detail-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.transport-cert {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.transport-cert h3 {
    margin-bottom: 20px;
}

.transport-cert h3 i {
    color: var(--primary-color);
    margin-left: 10px;
}

/* الهيكل الإداري */
.team-intro {
    text-align: center;
    margin-bottom: 40px;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.team-card {
    background-color: var(--white-color);
    padding: 30px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    margin-bottom: 20px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    text-align: center;
}

.position {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.description {
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info i {
    color: var(--primary-color);
    margin-left: 10px;
}

/* اتصل بنا */
.contact-container {
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-card {
    background-color: var(--white-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card a {
    display: block;
    color: var(--dark-color);
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-right: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    outline: none;
}

/* نماذج الاتصال - تحسينات */
.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.success-message {
    text-align: center;
    padding: 30px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 10px;
    border: 1px solid #2ecc71;
}

.success-message i {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 15px;
}

.success-message h3 {
    margin-bottom: 10px;
    color: #2ecc71;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.submit-btn:hover:before {
    right: 0;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn:disabled:before {
    display: none;
}

/* الفوتر */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 70px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-left: 10px;
}

.copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* زر العودة للأعلى */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--dark-color);
    transform: translateY(-5px);
}

/* تأثيرات التمرير المتحركة */
.service-card,
.value-card,
.feature-card,
.team-card,
.cert-detail-card,
.location-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* تحسينات الصور والتأثيرات البصرية */
.img-hover-effect {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.img-hover-effect img {
    transition: transform 0.5s ease;
}

.img-hover-effect:hover img {
    transform: scale(1.05);
}

.img-hover-effect:hover {
    box-shadow: var(--shadow-hover);
}

/* تحسينات الكروت والبطاقات */
.service-card,
.location-card,
.feature-card,
.contact-card,
.team-card,
.cert-detail-card,
.value-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover,
.location-card:hover,
.feature-card:hover,
.contact-card:hover,
.team-card:hover,
.cert-detail-card:hover,
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

/* تحسين صفحة الخطأ 404 */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    background-color: var(--light-color);
}

.error-page h1 {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.error-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* تحسين عناصر المتصفحات المختلفة */
::selection {
    background-color: var(--primary-color);
    color: var(--white-color);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-hover);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white-color);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    color: var(--white-color);
    margin-top: 15px;
    text-align: center;
    font-size: 1rem;
}

/* Image with lightbox effect */
.lightbox-img {
    transition: all 0.3s ease;
    cursor: pointer;
}

.lightbox-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Dark Mode Styles */
.dark-mode {
    --dark-color: #f4f4f4;
    --light-color: #222;
    --gray-color: #2c2c2c;
    --white-color: #1a1a1a;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #f4f4f4;
}

.dark-mode .bg-light {
    background-color: #222;
}

.dark-mode .location-card,
.dark-mode .service-card,
.dark-mode .feature-card,
.dark-mode .contact-card,
.dark-mode .team-card,
.dark-mode .cert-detail-card,
.dark-mode .value-card,
.dark-mode .contact-form,
.dark-mode .about-text,
.dark-mode .tab-pane,
.dark-mode .logo-container {
    background-color: #2c2c2c;
    color: #f4f4f4;
}

.dark-mode .lang-switch {
    background-color: rgba(50, 50, 50, 0.9);
    border-color: rgba(212, 175, 55, 0.3);
}

.dark-mode .lang-switch a:not(.active) {
    color: #f4f4f4;
}

.dark-mode .lang-switch a:not(.active):hover {
    background-color: rgba(212, 175, 55, 0.2);
}

.dark-mode nav ul li a {
    color: #f4f4f4;
}

.dark-mode header {
    background-color: rgba(26, 26, 26, 0.9);
    color: #f4f4f4;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: #333;
    color: #f4f4f4;
    border-color: #444;
}

/* تنسيق الفوتر في الوضع الليلي */
.dark-mode footer {
    background-color: #111;
    color: #f4f4f4;
    border-top: 1px solid var(--primary-color);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .footer-links a {
    color: #e0e0e0;
    transition: var(--transition);
    position: relative;
    padding-right: 15px;
}

.dark-mode .footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.dark-mode .footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.dark-mode .footer-links a:hover:before {
    opacity: 1;
    transform: translateX(-5px);
}

.dark-mode .copyright {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    background-color: #0a0a0a;
    color: #f4f4f4;
    padding: 25px 0;
}

.dark-mode .footer-content {
    color: #f4f4f4;
}

.dark-mode .footer-logo p {
    color: #f4f4f4;
}

.dark-mode .footer-logo img {
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
}

.dark-mode .footer-links h3,
.dark-mode .footer-contact h3 {
    color: var(--primary-color);
}

.dark-mode .footer-contact p {
    color: #f4f4f4;
}

.dark-mode .footer-contact i {
    color: var(--primary-color);
}

/* إضافة تنسيق للعنوان في الوضع الليلي */
.dark-mode .hero-content h1 {
    color: #f4f4f4;
}

.dark-mode .section-title h2 {
    color: #f4f4f4;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6,
.dark-mode p,
.dark-mode a,
.dark-mode li {
    color: #f4f4f4;
}

.dark-mode .location-card,
.dark-mode .service-card,
.dark-mode .feature-card,
.dark-mode .value-card,
.dark-mode .team-card {
    color: #f4f4f4;
}

.dark-mode-toggle {
    position: fixed;
    top: 85px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* التصميم المتجاوب */
@media screen and (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }

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

    .contact-form {
        margin-right: 0;
        margin-top: 30px;
    }

    .service-card,
    .location-card,
    .feature-card,
    .value-card {
        min-width: 260px;
    }

    .service-card {
        max-width: 100%;
        width: calc(100% - 30px);
        margin-left: auto;
        margin-right: auto;
    }

    .tabs-container {
        flex-direction: column;
    }

    .tabs {
        flex-direction: row;
        margin-bottom: 20px;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .tab-pane {
        padding: 20px;
    }

    /* تعديلات القائمة للشاشات المتوسطة */
    header .container {
        justify-content: space-between;
    }

    .logo {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        left: 20px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 280px;
        background-color: var(--white-color);
        box-shadow: var(--shadow);
        padding-top: 80px;
        transition: 0.4s;
        z-index: 101;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-text,
    .about-image {
        padding: 0;
        margin-bottom: 30px;
        flex: 100%;
    }

    .products-content,
    .about-content,
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        min-width: 90%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }

    .hero {
        height: auto;
        padding: 100px 0;
    }

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

    .icon-box {
        font-size: 2.5rem;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .lang-switch {
        top: 80px;
        left: 20px;
        z-index: 98;
        background-color: rgba(255, 255, 255, 0.95);
        animation: slideIn 0.5s ease forwards;
    }

    @keyframes slideIn {
        from {
            transform: translateY(10px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .dark-mode-toggle {
        top: 135px;
        right: 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .location-card,
    .service-card,
    .feature-card,
    .cert-detail-card,
    .value-card,
    .team-card,
    .vision-box,
    .mission-box,
    .contact-card {
        min-width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .service-card {
        width: 90%;
        max-width: none;
        padding: 20px;
    }

    .service-card .icon-box,
    .service-card h3,
    .service-card p {
        text-align: center;
        width: 100%;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-method {
        width: 100%;
        margin-bottom: 20px;
    }

    .menu-toggle {
        top: 20px;
        left: 20px;
    }

    header {
        padding: 15px 0;
    }

    .logo img {
        height: 50px;
    }
}