/* ================= Global Styles ================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --primary-color: #1A237E; /* أزرق داكن جداً */
    --secondary-color: #00BCD4; /* سماوي مشرق (سيان) */
    --accent-color: #E91E63; /* وردي (فوشيا) كلمسة */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #495057;
    --heading-color: #343a40;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --gradient: linear-gradient(135deg, var(--primary-color), #4a5ac2); /* مثال لتدرج */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    direction: rtl;
    overflow-x: hidden; /* منع التمرير الأفقي */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block; /* لكي يتماشى الخط مع النص */
    padding-bottom: 10px;
}
/* خط أسفل العنوان */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%; /* للبدء من المنتصف في RTL */
    transform: translateX(50%); /* توسيط الخط */
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #6c757d;
}

/* ================= Buttons ================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* أزرار دائرية الحواف */
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.3); /* ظل متناسق مع اللون */
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(26, 35, 126, 0.4);
    color: var(--white-color); /* Ensure text color remains white */
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.btn-secondary:hover {
    background-color: #00a1b3; /* Darker shade */
    transform: translateY(-3px);
    color: var(--white-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* ================= Header Styles ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* خلفية شبه شفافة قليلاً */
    backdrop-filter: blur(10px); /* تأثير البلور للخلفية */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo img {
    max-height: 45px; /* تعديل حجم اللوجو */
}
/* أو تنسيق للنص إذا كان اسم الشركة كنص */
/*
.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}
*/

.nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    color: var(--heading-color);
    padding: 5px 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    right: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none; /* مخفي على الشاشات الكبيرة */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ================= Hero Section ================= */
.hero {
    background: var(--gradient); /* استخدام التدرج اللوني */
    color: var(--white-color);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* لتعويض الهيدر الثابت */
    position: relative;
    overflow: hidden; /* لإخفاء أي عناصر تخرج */
}

/* تأثيرات زخرفية اختيارية */
.hero::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    opacity: 0.5;
}
.hero::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(0, 188, 212, 0.1); /* لون ثانوي بشفافية */
    border-radius: 50%;
    opacity: 0.6;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative; /* لتبقى فوق العناصر الزخرفية */
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    color: var(--white-color);
    font-size: 3rem; /* حجم أكبر للهيرو */
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .btn {
    margin-left: 10px; /* مسافة بين الأزرار */
}
.hero .btn-outline {
    border-color: var(--white-color);
    color: var(--white-color);
}
.hero .btn-outline:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.hero-graphic {
    max-width: 450px; /* تحكم في حجم الصورة التوضيحية */
}
.hero-graphic img {
    /* Add subtle animation if desired */
     animation: float 5s ease-in-out infinite;
}

/* Animation for graphic */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}


/* ================= Services Section ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
    display: inline-block; /* لتطبيق الحجم بشكل صحيح */
}
.service-icon img {
    max-height: 60px; /* تحكم في حجم الأيقونة */
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ================= Features Section ================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start; /* محاذاة للأعلى */
    gap: 15px;
    padding: 20px;
    background-color: var(--white-color); /* Ensure contrast */
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    flex-shrink: 0; /* منع الأيقونة من الانكماش */
    width: 40px; /* تحديد عرض ثابت */
    text-align: center;
}

.feature-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--primary-color);
}
.feature-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ================= CTA Section ================= */
.cta {
    background: var(--gradient);
    color: var(--white-color);
}
.cta h2 {
    color: var(--white-color);
    margin-bottom: 1rem;
}
.cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}
.cta .btn-primary {
    background: var(--white-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}
.cta .btn-primary:hover {
    background: var(--light-color);
     box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}


/* ================= Footer Styles ================= */
footer {
    background-color: var(--dark-color);
    color: #adb5bd; /* لون رمادي فاتح للنصوص */
    padding: 60px 0 20px 0;
    margin-top: 50px; /* مسافة قبل الفوتر */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.social-links a {
    color: #adb5bd;
    font-size: 1.3rem;
    margin-left: 15px; /* مسافة بين الأيقونات */
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    color: #adb5bd;
}
.footer-links ul li a:hover {
    color: var(--white-color);
    padding-right: 5px; /* تحريك بسيط لليمين عند المرور */
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-contact p i {
    color: var(--secondary-color);
    width: 15px; /* لتنسيق المحاذاة */
}
.footer-contact a {
    color: #adb5bd;
}
.footer-contact a:hover {
     color: var(--white-color);
}

footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* ================= Animations on Scroll ================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= Responsive Styles ================= */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.6rem; }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .hero-graphic {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .section-padding { padding: 60px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero h1 { font-size: 2.2rem; }

    /* --- Mobile Menu --- */
    .mobile-menu-toggle {
        display: block;
        z-index: 1100; /* فوق القائمة */
        order: 1; /* ليكون أقصى اليسار في RTL (أول عنصر منطقياً) */
    }
    .nav-content {
        display: none; /* Hide by default */
        position: absolute;
        top: 100%; /* تحت الهيدر */
        left: 0;
        right: 0;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
        flex-direction: column;
        align-items: center; /* توسيط العناصر */
        gap: 0;
        z-index: 1050;
        border-top: 1px solid var(--border-color);
    }
    .nav-content.mobile-menu-open {
        display: flex; /* Show menu */
    }
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 0;
        width: 100%;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block; /* جعل الرابط يملأ المساحة */
        padding: 12px 0;
        border-bottom: 1px solid var(--light-color);
    }
    .nav-links a::after { display: none; } /* إخفاء تأثير الخط */
    .nav-cta {
        margin-top: 15px;
        width: 80%; /* عرض زر الموبايل */
    }
     /* --- End Mobile Menu --- */

    .hero { min-height: auto; padding: 120px 0 60px 0; } /* تقليل ارتفاع الهيرو */

    .features-grid { grid-template-columns: 1fr; } /* عمود واحد للمميزات */
    .footer-content { grid-template-columns: 1fr; text-align: center;}
    .footer-about .social-links { justify-content: center; }
    .footer-links ul { padding: 0; }
    .footer-contact { text-align: center; }
    .footer-contact p { justify-content: center; }
}
footer {
    /* background-color: var(--dark-color); */ /* Remove this */
    background-color: var(--primary-color); /* Use primary color */
    color: #e0e0e0; /* Light gray for default text */
    padding: 60px 0 20px 0;
    margin-top: 50px; /* مسافة قبل الفوتر */
}
/* Change heading color */
.footer-links h4,
.footer-contact h4 {
    color: var(--white-color); /* White color for headings */
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Change about text color */
.footer-about p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #e0e0e0; /* Light gray */
}

/* Change social link color */
.social-links a {
    color: #e0e0e0; /* Light gray */
    font-size: 1.3rem;
    margin-left: 15px; /* مسافة بين الأيقونات */
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color); /* Secondary color on hover */
}

/* Change footer navigation link color */
.footer-links ul li a {
    color: #e0e0e0; /* Light gray */
}
.footer-links ul li a:hover {
    color: var(--white-color); /* White on hover */
    padding-right: 5px; /* تحريك بسيط لليمين عند المرور */
}

/* Change contact info text and link color */
.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0; /* Light gray */
}
.footer-contact p i {
    color: var(--secondary-color); /* Keep icon color */
    width: 15px; /* لتنسيق المحاذاة */
}
.footer-contact a {
    color: #e0e0e0; /* Light gray for links */
}
.footer-contact a:hover {
     color: var(--white-color); /* White on hover */
}

/* Change HR color */
footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Lighter separator */
    margin: 30px 0;
}

/* Change copyright text color */
.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #b0bec5; /* Slightly darker light gray */
}


header nav {
    display: flex;
    justify-content: space-between; /* Pushes left and right groups apart */
    align-items: center;
    min-height: 70px;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 40px; /* Space between logo and links */
}

.logo img {
    max-height: 45px;
}

.nav-links { /* Common style for ul */
    display: flex;
    list-style: none; /* Ensure list style is none */
    padding: 0; /* Ensure no padding */
    margin: 0; /* Ensure no margin */
}

.desktop-nav-links {
    gap: 30px; /* Space between desktop links */
}

.nav-links a { /* Common style for links */
    font-weight: 600;
    color: var(--heading-color);
    padding: 5px 0;
    position: relative;
    display: block; /* Ensure it's block for padding/hover effects */
}
/* Underline effect for desktop */
.desktop-nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    right: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.desktop-nav-links a:hover::after,
.desktop-nav-links a.active::after {
    width: 100%;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between CTA and mobile toggle if needed */
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    line-height: 1; /* Prevent extra height */
    padding: 5px; /* Add some padding */
}

.mobile-nav-content {
    display: none; /* Hidden by default on all screens */
    position: absolute;
    top: 100%; /* Position below the header */
    left: 0;
    right: 0;
    background-color: var(--white-color);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 15px 20px; /* Adjust padding */
    flex-direction: column;
    align-items: center; /* Center items */
    gap: 0;
    z-index: 1050;
    border-top: 1px solid var(--border-color);
}
/* Style to show the mobile menu */
.mobile-nav-content.mobile-menu-open {
    display: flex;
}

/* Styles for links and CTA inside mobile menu */
.mobile-nav-content .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 0;
    width: 100%;
    margin-bottom: 15px; /* Space before mobile CTA */
}
.mobile-nav-content .nav-links li {
    width: 100%;
}
.mobile-nav-content .nav-links a {
    padding: 10px 0; /* Adjust padding */
    border-bottom: 1px solid var(--light-color);
}
.mobile-nav-content .nav-links li:last-child a {
    border-bottom: none; /* Remove border from last link */
}

.mobile-nav-content .nav-cta {
    width: 80%; /* Adjust width */
    max-width: 250px;
    text-align: center;
}


/* ================= Responsive Styles ================= */
/* ... (Existing responsive styles) ... */

@media (max-width: 768px) {
    /* ... (Other mobile styles) ... */

    /* --- Mobile Header Adjustments --- */
    .desktop-nav-links,
    .desktop-nav-cta {
        display: none; /* Hide desktop links and CTA */
    }

    .mobile-menu-toggle {
        display: block; /* Show mobile toggle button */
    }

    /* Ensure nav groups align correctly - might not be needed if hiding elements */
  
    .nav-left-group {
        gap: 15px; /* Reduce gap if needed, though links are hidden */
    }

    /* Styling for the opened mobile menu is handled by .mobile-nav-content */

}
/* ================= Text Logo Styles ================= */
.logo {
    text-decoration: none; /* Ensure link has no underline */
    display: inline-block; /* Allows margin/padding and keeps inline flow */
    line-height: 1; /* Prevent extra vertical space */
    /* Remove any height/width rules that might conflict */
}

.logo .logo-text {
    font-size: 1.8rem; /* Adjust size as needed for header */
    font-weight: 700; /* Bold */
    color: var(--primary-color); /* Use primary color */
    /* Optional: Fine-tune spacing between text and dot */
    /* margin-left: -2px; */
    /* Optional: Add transition if needed */
    /* transition: color 0.3s ease; */
}

.logo .logo-dot {
    font-size: 2rem; /* Make dot slightly larger or more prominent */
    font-weight: 700;
    color: var(--secondary-color); /* Use secondary color for the dot */
    /* Optional: Adjust vertical alignment slightly */
    /* position: relative; */
    /* top: 2px; */
}

/* --- Specific Footer Logo Adjustments --- */
footer .logo {
    display: block; /* Center easily in the footer */
    margin-bottom: 15px; /* Space below the logo */
    text-align: center; /* Center the text */
}

footer .logo .logo-text {
    font-size: 1.6rem; /* Slightly smaller size in footer */
    color: var(--white-color); /* White text on dark footer background */
}

footer .logo .logo-dot {
    font-size: 1.8rem; /* Slightly smaller dot */
    color: var(--secondary-color); /* Keep accent color */
}

/* --- Optional: Hover effect (Example) --- */
/*
.logo:hover .logo-text {
    color: var(--secondary-color);
}
.logo:hover .logo-dot {
    color: var(--primary-color);
}
*/
/* ================= Projects Page Styles ================= */

/* --- Page Header --- */
.page-header {
    /* Inherits section-padding */
    background: var(--gradient); /* Optional: Gradient background */
    color: var(--white-color);
    padding: 60px 0; /* Adjust padding */
}
.page-header h1 {
    color: var(--white-color);
    margin-bottom: 10px;
}
.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Projects Grid Layout --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 35px;
    margin-top: 40px;
}

/* --- Project Card Styling --- */
.project-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden; /* Clip video corners */
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex; /* Use flex for better structure */
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* --- Video Container --- */
.project-video-container {
    position: relative;
    background-color: #eee; /* Placeholder color */
    line-height: 0; /* Remove extra space below video/img */
}

.project-video-container video,
.project-video-container img { /* Style both video and image */
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    aspect-ratio: 16 / 9; /* Enforce aspect ratio (optional but good) */
    object-fit: cover; /* Cover the area */
}

/* --- Optional: Play Button Overlay (If using Option 2 in HTML) --- */
.project-video-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 188, 212, 0.8); /* Semi-transparent secondary color */
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    z-index: 10; /* Above image */
}
.project-video-container:hover .play-button {
    background-color: var(--secondary-color); /* Solid color on hover */
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- Project Info --- */
.project-info {
    padding: 20px 25px;
    flex-grow: 1; /* Allow info area to grow */
    border-top: 1px solid var(--border-color); /* Separator */
}

.project-info h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0;
}

/* --- Responsive adjustments for projects page --- */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 30px;
    }
    .project-info {
        padding: 15px 20px;
    }
     .page-header h1 { font-size: 1.8rem; }
     .page-header p { font-size: 1rem; }
}
/* --- Page Header --- */
.page-header {
    background: var(--gradient); /* Optional: Gradient background */
    color: var(--white-color);
    /* padding: 60px 0; */ /* القيمة الأصلية */
    padding: 80px 0 60px 0; /* زدنا الـ padding العلوي إلى 80px، وأبقينا السفلي 60px */
    /* يمكنك تجربة 90px أو أكثر إذا لزم الأمر: padding: 90px 0 60px 0; */
}

/* باقي تنسيقات .page-header h1 و .page-header p تبقى كما هي */
.page-header h1 {
    color: var(--white-color);
    margin-bottom: 10px;
}
.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}
/* ================= Contact Page Styles ================= */

/* --- Contact Grid Layout --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive columns */
    gap: 40px; /* Increase gap for better separation */
    align-items: start; /* Align items to the top */
}

/* --- Contact Form Styling --- */
.contact-form-container h3,
.contact-info-container h3 {
    margin-bottom: 10px; /* Adjust spacing */
    color: var(--primary-color);
}

.contact-form-container p,
.contact-info-container p:first-of-type { /* Target the first paragraph */
    margin-bottom: 30px; /* Space below introductory paragraph */
    color: #6c757d;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 0.95rem;
}

.contact-form label .required {
    color: var(--accent-color); /* Use accent color for asterisk */
    font-weight: normal;
    margin-right: 3px; /* Space for RTL */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fdfdfd; /* Slightly off-white background */
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.15); /* Subtle glow effect */
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 120px; /* Minimum height */
}

.contact-form .submit-btn {
    width: auto; /* Or 100% if preferred */
    padding: 12px 35px; /* Adjust padding */
    margin-top: 10px;
}


/* --- Contact Info Styling --- */
.contact-info-list {
    margin-bottom: 30px; /* Space before the map */
}

.info-item {
    display: flex;
    align-items: flex-start; /* Align icon top with text start */
    gap: 20px;
    margin-bottom: 25px; /* Space between info items */
}

.info-icon {
    font-size: 1.5rem; /* Icon size */
    color: var(--secondary-color); /* Icon color */
    margin-top: 5px; /* Align icon slightly lower */
    flex-shrink: 0;
    width: 25px; /* Fixed width for alignment */
    text-align: center;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--heading-color);
}

.info-item p {
    margin-bottom: 0;
    color: var(--text-color);
    line-height: 1.6;
}
.info-item a {
    color: var(--primary-color); /* Link color */
    word-break: break-word; /* Prevent long links from overflowing */
}
.info-item a:hover {
    color: var(--secondary-color);
}

/* --- Map Container --- */
.map-container {
    border-radius: 8px; /* Match iframe border-radius */
    overflow: hidden; /* Ensure iframe corners are clipped */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* --- Responsive adjustments for contact page --- */
@media (max-width: 992px) {
    .contact-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
     .contact-info-container {
        margin-top: 40px; /* Add space between form and info on mobile */
    }
}
/* --- Contact Form Success Message --- */
.form-success-message {
    border: 1px solid #a8d5ba; /* لون حدود أخضر فاتح */
    background-color: #eaf7f0; /* لون خلفية أخضر فاتح جداً */
    color: #1e462b; /* لون نص أخضر داكن */
    padding: 25px 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px; /* مسافة من الفورم */
    animation: fadeIn 0.5s ease-out; /* تأثير ظهور بسيط */
}

.form-success-message .success-icon {
    font-size: 2.5rem;
    color: #34a853; /* لون الأيقونة الأخضر */
    margin-bottom: 15px;
    display: block;
}

.form-success-message h4 {
    color: #163821; /* لون عنوان أغمق قليلاً */
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.form-success-message p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ==================================================== */
/* ============= Styles for Services Page ============= */
/* ==================================================== */

.services-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 35px;
}

.service-card-detailed {
    background-color: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.service-card-detailed:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.1);
}

.service-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card-detailed:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 25px;
    flex-grow: 1; /* Pushes action buttons to the bottom */
}

.service-card-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0;
}

.service-card-actions {
    padding: 0 25px 25px 25px;
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
    gap: 10px;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    margin-top: auto; /* Pushes to bottom */
    padding-top: 20px;
}

.service-card-actions .btn {
    width: 100%; /* Make buttons full width */
    max-width: 200px; /* But not too wide */
    font-size: 0.9rem;
    padding: 10px 20px;
}

.btn-whatsapp {
    background-color: #25D366; /* WhatsApp Green */
    color: var(--white-color);
}
.btn-whatsapp:hover {
    background-color: #128C7E; /* Darker WhatsApp Green */
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-whatsapp i {
    margin-left: 8px; /* For RTL, this will be on the right */
}

.btn-outline-service {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-service:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.service-card-detailed:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.5);
}
/* ==================================================== */
/* =========== Service Details Page Styles ============ */
/* ==================================================== */

/* رابط عنوان الخدمة في البطاقات */
.service-title-link, .service-title-link:hover {
    text-decoration: none;
    color: inherit; /* ليرث اللون من العنصر الأب */
}

.service-details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* ثلث للعمود الجانبي وثلثان للمحتوى */
    gap: 40px;
    align-items: start;
}

.service-image-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.service-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.service-features-box {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.service-features-box h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.service-features-list li i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.service-details-content h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.details-text-content {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

.service-details-cta {
    background-color: var(--white-color);
    border: 2px dashed var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.service-details-cta h3 {
    color: var(--heading-color);
    margin-bottom: 10px;
}

.service-details-cta p {
    color: var(--text-color);
    margin-bottom: 25px;
}

.service-details-cta .btn {
    margin: 5px;
}

/* For responsive design */
@media (max-width: 992px) {
    .service-details-grid {
        grid-template-columns: 1fr; /* Stack columns on tablets and mobile */
    }

    .service-details-sidebar {
        margin-bottom: 40px;
    }
}