/* ================================== */
/* 0. إعادة التعيين والمتغيرات الأساسية (Reset & Variables) */
/* ================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --color-primary: #1976D2; 
    --color-dark: #212121; 
    --color-light: #ffffff; 
    --color-accent: #00D5FF; 
    --color-text-dark: #333333;
    --color-text-light: #f4f4f4;

    --font-body: 'Cairo', sans-serif;
    --font-heading: 'Tajawal', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-light);
    /* تم إزالة text-align: right; لتمكين التوسيط الأفقي الافتراضي */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
}

/* الأزرار الأساسية */
.cta-button {
    background-color: var(--color-accent);
    color: var(--color-dark);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #00b0d6;
    transform: translateY(-2px);
}


/* ================================== */
/* 1. تصميم شريط التنقل (Header & Navigation) */
/* ================================== */
.main-header {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--color-light);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 700;
    padding: 5px 0;
    position: relative;
}

.main-nav a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.main-nav a:not(.cta-button):hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* قائمة الجوال */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 24px;
    cursor: pointer;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background-color: var(--color-dark);
    color: var(--color-light);
    z-index: 1100;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.4s ease-in-out;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer .close-menu {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 30px;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
}

.mobile-drawer nav ul {
    list-style: none;
    padding-top: 60px;
}

.mobile-drawer nav li {
    margin: 20px 0;
}

.mobile-drawer nav a {
    color: var(--color-light);
    font-size: 18px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer nav a:hover {
    color: var(--color-accent);
}

/* ================================== */
/* 2. تصميم قسم البطل (Hero Section) */
/* ================================== */
.hero-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, #3a3a3a 100%);
    color: var(--color-light);
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--color-accent);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.cta-primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 213, 255, 0.5);
}

.cta-primary:hover {
    background-color: var(--color-light);
    transform: translateY(-3px);
}

.cta-secondary {
    background-color: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-light);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
}

.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* دمج الصورة في Hero - حجز المكان */
.hero-illustration {
    flex: 1;
    min-height: 400px;
    background: url('https://i.ibb.co/spPCjQCM/hero-digital-success.png') no-repeat center center/contain;
    background-color: #2c3e50;
    border-radius: 10px;
    border: 3px dashed var(--color-accent);
    /* */
}


/* ================================== */
/* 3. تصميم قسم من نحن (About Us) - البطاقات الجديدة */
/* ================================== */
.about-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-light);
}

.about-header {
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 38px;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.section-description {
    font-size: 18px;
    color: #666;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    flex: 1 1 280px;
    background-color: #f7f7f7;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--color-dark);
    transition: all 0.4s ease-in-out;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.value-icon {
    font-size: 45px;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 15px;
    color: #555;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

/* تصميم بطاقة CTA الخاصة (الرابعة) */
.cta-value-card {
    background-color: var(--color-dark);
    color: var(--color-light);
    border: 3px solid var(--color-accent);
}
.cta-value-card h3 {
    color: var(--color-accent);
}
.cta-value-card p {
    color: #ccc;
}
.cta-value-card .value-icon {
    color: var(--color-light);
}
.cta-value-card:hover {
    box-shadow: 0 0 25px var(--color-accent), 0 0 40px rgba(0, 213, 255, 0.4);
}
.cta-link-inverted {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    color: var(--color-accent);
}

/* القسم البارز المرئي في About - حجز المكان */
.about-visual-banner {
    margin-top: 60px;
    padding: 50px 0;
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: center;
}

.about-visual-banner h2 {
    color: var(--color-accent);
    margin-bottom: 30px;
}

.about-illustration {
    max-width: 800px;
    height: 300px;
    margin: 0 auto;
    background: url('https://i.ibb.co/0VdHXqZW/vision-teamwork.png') no-repeat center center/contain;
    background-color: #3a3a3a;
    border-radius: 10px;
    border: 3px dashed var(--color-accent);
    /* */
}


/* ================================== */
/* 4. تصميم قسم الخدمات (Services Section) */
/* ================================== */
.services-section {
    padding: 80px 5%;
    background-color: #f8f8f8;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--color-light);
    border-radius: 10px;
    padding: 35px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-dark);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-top: 5px solid var(--color-primary);
}

.service-icon {
    font-size: 35px;
    color: var(--color-primary);
    background-color: #e3f2fd;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.service-card p {
    font-size: 15px;
    color: #555;
    flex-grow: 1;
}

.read-more {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--color-accent);
}

/* ================================== */
/* 5. تصميم قسم الـ CTA (Call to Action Banner) */
/* ================================== */
.cta-banner {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--color-light);
}

.cta-banner p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-primary-inverted {
    background-color: var(--color-light);
    color: var(--color-primary);
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.cta-primary-inverted:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
    transform: scale(1.05);
}

/* ================================== */
/* 6. تصميم التذييل (Footer) */
/* ================================== */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-accent);
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    /* NEW: توجيه قوائم الروابط لليمين */
    text-align: right; 
}

.footer-col a {
    color: var(--color-text-light);
    font-size: 15px;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    /* توجيه الأيقونات لليمين في وضع العرض العادي */
    justify-content: flex-start;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #aaa;
}

/* ================================== */
/* 7. تنسيق الصفحات الفرعية المشترك (Page Hero) */
/* ================================== */
.page-hero-small {
    background-color: #f0f0f0;
    padding: 120px 0 60px;
    text-align: center;
}

.page-hero-small h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.page-hero-small p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* NEW: حاوية الصفحة الرئيسية لمنع التداخل مع الهيدر اللاصق */
.page-container {
    padding-top: 73px; /* يساوي تقريباً ارتفاع الهيدر */
}


/* ================================== */
/* 8. تصميم صفحة الأعمال (Portfolio) */
/* ================================== */
.portfolio-grid-section {
    padding: 60px 0 80px;
    /* خلفية متدرجة خفيفة لإظهار تأثير الزجاج */
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    /* تأثير الزجاج (Glassmorphism) */
    background: rgba(33, 33, 33, 0.85); /* لون داكن شفاف */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* لدعم متصفح سفاري */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    color: var(--color-light);
    border-radius: 20px; /* زوايا أكثر انحناءً */
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
    text-decoration: none;
}

.waiting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 213, 255, 0.2);
    border-color: var(--color-accent);
    background: rgba(33, 33, 33, 0.95); /* زيادة التعتيم عند التحويم */
}

.project-card .card-icon {
    font-size: 45px;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.project-card h3 {
    font-family: var(--font-heading);
    color: var(--color-light);
    margin-bottom: 10px;
}

.project-card p {
    color: #ccc;
    font-size: 15px;
    flex-grow: 1;
}

.status-tag, .app-buttons-container {
    margin-top: 15px;
}

.status-tag {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* تنسيق أزرار المتاجر (Google Play & App Store) */
.app-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.google-play-btn {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.app-store-btn {
    background-color: #000000; /* لون أسود لمتجر أبل */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.waiting-cta {
    background-color: var(--color-accent);
    color: var(--color-dark) !important;
    border: 3px solid var(--color-accent);
}

.waiting-cta h3 {
    color: var(--color-dark);
}

.waiting-cta .card-icon {
    color: var(--color-dark);
}

.waiting-cta p {
    color: var(--color-dark);
}

/* تنسيق خاص لزر "ابدأ الآن" داخل البطاقة المميزة ليظهر بوضوح */
.waiting-cta .cta-link-inverted {
    color: var(--color-accent);
    background-color: var(--color-dark);
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    /* تأثير الوهج النابض (Pulsing Glow) */
    animation: glow-pulse 2s infinite ease-in-out;
}

@keyframes glow-pulse {
    0% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.4); }
    100% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
}

/* تحريك السهم (Arrow Animation) */
.cta-link-inverted .arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

/* عند التحويم على البطاقة، يتحرك السهم */
.waiting-cta:hover .arrow-icon {
    animation: arrow-bounce 0.6s infinite alternate; /* حركة مستمرة */
}

@keyframes arrow-bounce {
    0% { transform: translateX(0); }
    100% { transform: translateX(-6px); }
}

.progress-bar-container {
    max-width: 600px;
    margin: 40px auto;
}
.progress-bar-label {
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-size: 16px;
}
.progress-bar {
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    width: 90%;
    height: 100%;
    background-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
}

.portfolio-visual-hint {
    padding: 40px 0;
    background-color: var(--color-dark);
}

/* دمج الصورة في Portfolio - رابط مباشر */
.behind-the-scenes-illustration {
    height: 150px;
    max-width: 700px;
    margin: 0 auto;
    background: url('https://i.ibb.co/PsCVs4Tc/portfolio-code-bg.png') no-repeat center center/contain;
}


/* ================================== */
/* 9. تصميم صفحة التواصل (Contact) */
/* ================================== */
.contact-form-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    gap: 40px;
    background-color: var(--color-light);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.contact-info-panel {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 40px;
    border-radius: 10px 0 0 10px;
    /* NEW: توجيه النص في لوحة الاتصال لليمين */
    text-align: right;
}

/* دمج الصورة في Contact Info Panel - رابط مباشر */
.contact-bg-illustration {
    /* تم إزالة صورة الخلفية لحل مشكلة التداخل */
}

.contact-info-panel h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.contact-info-panel p {
    color: #ccc;
    margin-bottom: 30px;
}

.info-block {
    margin-bottom: 25px;
}

.info-block i {
    color: var(--color-accent);
    font-size: 20px;
    margin-left: 10px;
}

.info-block h4 {
    font-size: 18px;
    color: var(--color-light);
    margin-bottom: 5px;
}

.info-block p {
    font-size: 15px;
    color: #f4f4f4;
    margin: 0;
}

.whatsapp-btn {
    display: block;
    background-color: #25D366;
    color: var(--color-light);
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.contact-form-panel {
    padding: 40px;
    /* NEW: توجيه النص في لوحة النموذج لليمين */
    text-align: right; 
}

.contact-form-panel h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(0, 213, 255, 0.2);
    outline: none;
}

/* ================================== */
/* 10. تصميم صفحة الخدمة التفصيلية (Service Page) */
/* ================================== */

.service-hero-detail {
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
    background-color: #f7f7f7;
}

.service-hero-detail .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-hero-detail h1 {
    font-family: var(--font-heading);
    font-size: 45px;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.service-hero-detail p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.feature-strip {
    margin-bottom: 40px;
}

.feature-item {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-weight: bold;
    border-radius: 20px;
    font-size: 14px;
}

/* 10.2 قسم منهجية العمل (Timeline) */
.service-process-section {
    padding: 80px 5%;
    /* NEW: توجيه النص لليمين */
    text-align: right; 
    background-color: var(--color-light);
}

.service-process-section .section-title {
    font-size: 35px;
    margin-bottom: 60px;
    color: var(--color-dark);
    /* NEW: توسيط العنوان ليتناسب مع تخطيط الـ section-title الافتراضي */
    text-align: center; 
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-right: 20px;
    text-align: right;
}

/* الخط الزمني العمودي */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background-color: #eee;
}

.process-step {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    align-items: flex-start;
}

.step-number {
    position: relative;
    z-index: 10;
    margin-left: 20px;
}

.step-number span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-weight: bold;
    font-size: 22px;
    box-shadow: 0 0 15px var(--color-accent);
    border: 3px solid var(--color-light);
}

.step-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    text-align: right;
}

.step-content h3 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 16px;
    color: #666;
}

/* ================================== */
/* 11. التجاوب (Media Queries) */
/* ================================== */
@media (max-width: 900px) {
    /* Header */
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-col ul {
        /* NEW: توسيط قوائم الروابط في وضع الجوال */
        text-align: center;
    }
    .contact-form-panel, .contact-info-panel {
        /* NEW: توجيه كلتا اللوحتين إلى التوسيط في وضع الجوال */
        text-align: center; 
    }
    .info-block {
        /* لضمان توسيط محتوى كتلة المعلومات في وضع الجوال */
        text-align: center;
    }
    /* ... باقي تنسيقات التجاوب ... */

    /* Hero Section */
    .hero-section {
        padding: 80px 0;
        text-align: center;
    }
    .hero-section .container {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-illustration {
        min-height: 300px;
        margin-top: 40px;
        width: 100%;
    }


    /* About Section */
    .values-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 30px;
    }
    .about-visual-banner {
        padding: 30px 0;
    }
    .about-illustration {
        height: 200px;
    }


    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Page Layout */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-info-panel {
        border-radius: 10px 10px 0 0;
    }

    /* Portfolio Page Layout */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Service Page Layout */
    .service-hero-detail h1 {
        font-size: 32px;
    }
    .process-timeline {
        padding-right: 0;
    }
    .process-timeline::before {
        right: 25px;
    }
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .step-number {
        margin-bottom: 15px;
        margin-left: 0;
    }
    .step-content {
        text-align: center;
    }
}

/* ================================== */
/* 12. زر الواتساب العائم (Floating WhatsApp) */
/* ================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px; /* تم تغيير الموقع إلى اليسار ليتناسب مع المواقع العربية */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}



/* ================================== */
/* 13. نافذة منبثقة (Custom Modal) - NEW */
/* ================================== */
.modal-content {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.custom-modal {
    position: fixed; 
    z-index: 2000; /* أعلى من كل شيء */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7); /* خلفية شفافة */
    backdrop-filter: blur(4px); /* تأثير ضبابي للخلفية */
    
    /* خصائص التوسيط */
    display: flex;
    align-items: center;
    justify-content: center;

    /* التحكم بالظهور والاختفاء */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content h2 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: 25px;
}

.close-btn {
    color: #aaa;
    float: left; /* ليتناسب مع اتجاه RTL */
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    left: 15px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

/* حركة بسيطة لظهور النافذة */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ================================== */
/* 14. إصلاحات الـ Modal و Overflow (NEW) */
/* ================================== */
body.modal-open {
    overflow: hidden !important; /* لضمان منع التمرير في الخلفية */
}

.custom-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ================================== */
/* 15. تصميم صفحة الخطأ 404 (NEW) */
/* ================================== */
.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    min-height: calc(100vh - 430px); 
    background-color: var(--color-light);
}

.error-content {
    max-width: 600px;
    margin: 0 auto; /* NEW: توسيط الكتلة الأفقية داخل الـ Container */
    text-align: center; /* لضمان توسيط النصوص والأزرار داخل الكتلة */
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-shadow: 4px 4px 0px var(--color-dark);
    margin-bottom: 0;
    line-height: 1;
    transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
    cursor: default; /* لكي لا يظهر مؤشر اليد كأنه رابط */
}

.error-code:hover {
    transform: translateY(-10px) rotate(-3deg);
    text-shadow: 8px 8px 0px var(--color-dark), 0 0 15px rgba(0, 213, 255, 0.5);
}

.error-content h1 {
    font-size: 36px;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.error-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* ================================== */
/* 16. تنسيق أيقونات الـ Badge (NEW) */
/* ================================== */

.nav-icon-button {
    position: relative; /* لضمان تمركز العداد بالنسبة للزر */
}

.badge {
    position: absolute;
    top: -5px; /* رفع العداد فوق الأيقونة */
    right: -10px; /* سحب العداد إلى اليمين قليلاً */
    background-color: #ff4d4d; /* خلفية حمراء بارزة */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    min-width: 18px; /* لضمان شكل دائري حتى للأرقام الفردية */
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* ================================== */
/* 17. شريط الأعمال المتحرك (Portfolio Marquee) - NEW */
/* ================================== */
.marquee-container {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
    /* تدرج شفاف على الجوانب لجمالية الحركة */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* حركة مستمرة */
    animation: scroll-loop 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused; /* توقف عند التحويم */
}

/* تثبيت عرض البطاقات داخل الشريط لضمان تناسق الشكل */
.marquee-track .project-card {
    flex: 0 0 320px; /* عرض ثابت للبطاقة */
    min-width: 320px;
}

@keyframes scroll-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } /* التحرك لنصف المسافة ثم التكرار */
}