:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #18a3e9;
    --text-color: #34495e;
    --whatsapp-color: #25D366;
    --white-color: #fff;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;

}

/* --- الهيدر والقائمة --- */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* ======================================================== */
/* تم نقل هذا الجزء إلى هنا (المكان الصحيح) */
/* ======================================================== */
.all-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.hamburger {
    display: none;
    /* سيتم إظهاره فقط في الشاشات الصغيرة */
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* --- قسم الهيرو --- */
.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('src/images/split.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-btn {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* --- الأقسام العامة --- */
section {
    padding: 5rem 2rem;
}

section>h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
}

/* --- قسم من نحن --- */
#about {
    background-color: var(--white-color);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-images {
    flex: 1;
    display: flex;
    gap: 1rem;
    min-width: 300px;
}

.about-images img {
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- قسم الخدمات المحدث --- */
.service-subsection {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 1rem;
    border-radius: 10px;
    background-color: var(--white-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-subsection h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-subsection>p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.ac-types-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ac-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    width: 220px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ac-card:hover {
    transform: translateY(-5px);
}

.ac-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.ac-card h4 {
    margin: 1rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.service-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-content .service-text,
.service-content .service-image {
    flex: 1;
    min-width: 300px;
}

.service-content .service-text h3 {
    text-align: start;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
}

/* --- قسم اتصل بنا --- */
#contact {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white-color);
}

#contact h2 {
    color: var(--white-color);
}

#contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    text-decoration: none;
    color: var(--white-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.contact-btn.phone {
    background-color: var(--secondary-color);
}

.contact-btn.whatsapp {
    background-color: var(--whatsapp-color);
}

/* --- الفوتر --- */
footer {
    background-color: #1c2833;
    color: #bdc3c7;
    text-align: center;
    padding: 1.5rem;
}

/* ===== الأزرار العائمة ===== */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1010;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

html[dir="rtl"] .floating-buttons {
    right: auto;
    left: 25px;
}

.f-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.f-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-float {
    background-color: var(--whatsapp-color);
}

.phone-float {
    background-color: var(--secondary-color);
}


/* --- التجاوب مع الشاشات الصغيرة --- */
@media (max-width: 768px) {

    /* إخفاء القائمة الرئيسية وإظهار زر الهامبرغر */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        /* هنا يتم إظهار زر القائمة */
    }

    /* تنسيق القائمة عند فتحها */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        /* يعتمد على ارتفاع الهيدر */
        left: 0;
        background-color: var(--white-color);
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active li {
        text-align: center;
        margin: 1rem 0;
    }

    /* تنسيق حركة أيقونة الهامبرغر عند الفتح */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* تعديلات عامة للشاشات الصغيرة */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .service-content,
    .service-content.reverse {
        flex-direction: column;
    }

    .service-content .service-text h3 {
        text-align: center;
    }

    .f-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    html[dir="rtl"] .floating-buttons {
        right: auto;
        left: 15px;
    }
}