* {
    font-family: 'Cairo', Arial, sans-serif !important;
}
html, body {
    width: 100%;
    overflow-x: hidden;
}
body {
 font-family: 'Cairo', Arial, sans-serif;
direction: rtl;
margin: 0;
padding: 0;
background-color: #ffffff;

}

/* الشريط العلوي */
.top-header {
position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  min-height: 70px;
  border-bottom: 2px solid #333;
}

/* الشعار */
.logo {
width: 80px;
height: auto;
margin-left: 0%;
 }
.logo img {
width: 250%;
height: auto;
display: block;
}

/* قائمة التنقل */
nav {
display: flex;
gap: 30px;
flex: 1;
justify-content: center;
 }
nav a {
text-decoration: none;
color: white;
font-size: 20px;
transition: color 0.3s ease;
 }
nav a.active {
position: relative;
 }
nav a.active::after {
content: "";
position: absolute;
bottom: -5px;
right: 0;
left: 0;
height: 3px;
background-color: #cca75f;
border-radius: 2px;
 }
nav a:hover {
color: #cca75f;
 }

/* زر الترحيب */
#welcome-message {
      display: flex;
      top: 50px;
      left: 20px;
      font-size: 20px;
      font-weight: bold;
      color: #ffffff;
      background-color: #f3ac399b;
      padding: 5px 17px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      z-index: 1000;
 }

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
.top-header {
flex-direction: column;
padding: 20px 15px;
gap: 20px;
 }
.logo {
order: 1;
justify-content: center;
 }
.user-welcome {
order: 3;
width: 100%;
justify-content: center;
}
}

/* تصميم رساله الترحيب وزر تسجيل الدخول*/
.user-dropdown {
    display: inline-block;
    width: fit-content; /* للتأكد من أن العرض مناسب */
    z-index: 1100 !important;
    position: relative !important;

}

.welcome-btn {
   padding: 12px 20px;
   background-color: #ffffffa4;
   border: none;
   border-radius: 8px;
   cursor: pointer;
   user-select: none;
   transition: all 0.3s ease;
   font-weight: 500;
   color: #333;
   box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.welcome-btn:hover {
   background-color: #f8f9faa9;
   box-shadow: 0 4px 12px rgba(0,0,0,0.15);
   transform: translateY(-1px);
}
.welcome-btn a {
  color: inherit;        /* يخلي اللون مثل النصوص العادية */
  text-decoration: none; /* يشيل الخط */
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.798);
    width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    border: none;
    margin-top: 8px;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes slideDown {
   from {
       opacity: 0;
       transform: translateY(-10px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

.logout-btn {
   width: 100%;
   padding: 12px 16px;
   background: linear-gradient(135deg, #2e2e2ef5 0%, #4b4b4be7 100%);
   border: none;
   border-radius: 8px;
   cursor: pointer;
   font-size: 12px;
   color: rgb(255, 255, 255);
   transition: all 0.3s ease;
   font-weight: 500;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
   z-index: 1102 !important;
   position: relative !important;
   position: relative;
}

.logout-btn:hover {
   background: linear-gradient(135deg, #c82333de 0%, #a71e29d8 100%);
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
   z-index: 1001 !important;
   position: relative;

}

.logout-btn:active {
   transform: translateY(0);
   box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
   z-index: 1001 !important;
   position: relative;
}

.logout-btn svg {
   transition: transform 0.3s ease;
}

.logout-btn:hover svg {
   transform: translateX(2px);
}

/* تعتيم الخلفية */
.overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.2);
   z-index: 999;
   display: none;
}

.overlay.show {
   display: block;
   animation: fadeIn 1s ease;
}

@keyframes fadeIn {
   from { opacity: 0; }
   to { opacity: 1; }
}
.plans-dropdown {
   position: relative;
   display: inline-block;
}

.plans-dropdown > a {
   display: flex;
   align-items: center;
   gap: 8px;
   position: relative;
}

.dropdown-arrow {
   font-size: 14px;
   transition: all 0.3s ease;
   transform-origin: center;
}

.plans-dropdown.active .dropdown-arrow {
   transform: rotate(180deg);
   color: #cca75f;
}
/* التحكم بشريط القوائم المنسدله*/
.plans-dropdown-menu {
    display: none;
    position: fixed;
    top: 112px;
    left: 120px; /* المسافة من اليسار */
    right: 320px; /* المسافة من اليمين */
    background-color: #000000b5;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    z-index: 900 !important;
    overflow: hidden;
    padding: 10px 0px;
    border-top: 2px solid rgba(243, 172, 57, 0.3);
}

.plans-dropdown-menu.show {
   display: block;
   animation: slideDownPlans 0.5s ease;
}

@keyframes slideDownPlans {
   from {
       opacity: 0;
       transform: translateY(-20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

.plans-dropdown-content {
   max-width: 100%;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: flex-start;
   gap: 5px;
   padding: 0 0px;
   margin-right: 45px;/*التحكم في بعد خانات المخططات */
}

.plans-dropdown-item {
   padding: 15px 35px;
   border-radius: 15px;
   cursor: pointer;
   font-size: 18px;
   color: rgb(255, 255, 255);
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   text-decoration: none;
   display: flex;
   align-items: center;
   justify-content: center;
   min-width: 200px;
   font-weight: 600;
   position: relative;
   overflow: hidden;
   text-align: center;
}

.plans-dropdown-item::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(243, 172, 57, 0.4), transparent);
   transition: left 0.8s ease;
}

.plans-dropdown-item:hover::before {
   left: 100%;
}

.plans-dropdown-item:hover {
   background: linear-gradient(135deg, rgba(243, 172, 57, 0.3) 0%, rgba(219, 187, 99, 0.2) 100%);
   border-color: rgba(243, 172, 57, 0.8);
   transform: translateY(-5px) scale(1.05);
   box-shadow: 0 15px 30px rgba(243, 172, 57, 0.4);
   color: #cca75f;
}

.plans-dropdown-item::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 3px;
   background: linear-gradient(90deg, #cca75f, #dbbb63);
   transform: scaleX(0);
   transition: transform 0.4s ease;
}

.plans-dropdown-item:hover::after {
   transform: scaleX(1);
}

@media (max-width: 768px) {
   .plans-dropdown-content {
       flex-direction: column;
       gap: 20px;
       padding: 0 20px;
   }
   
   .plans-dropdown-item {
       min-width: 280px;
       font-size: 16px;
       padding: 18px 30px;
   }
}
/* إضافة كلاس للتحكم في التعتيم عند فتح القوائم المنسدلة */
header.dropdown-active {
    backdrop-filter: blur(10px);
    background-color: #000000b5;
}
header.hide-header {
  display: none;
}

/*الخلفيه والفديو التعريفي*/
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.background-video {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   z-index: 0;
}
.video-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.4);
   z-index: 1;
}

.hero-content {
   position: relative;
   z-index: 2;
   padding: 20px;
}

.hero-content h1 {
   font-size: 70px;
   margin-top: 350px;
   margin-left:150vh;
   max-width: 100%;
}

.btn-primary {
   background-color: #f3ac39;
   color: white;
   padding: 12px 24px;
   border-radius: 8px;
   text-decoration: none;
   font-size: 18px;
   transition: background 0.3s ease;
}

.btn-primary:hover {
   background-color: #d38e1e;
}
h1{
   color: #ffffff;
   font-weight: 1000;
   text-shadow: 0 2px 4px rgba(243, 172, 57, 0.3);
}
.btn-secondary {
      position: absolute;
      bottom: 20px;
      right: 20px;
      background-color: rgba(0, 0, 0, 0.203);
      color: white;
      border: 2px solid #cca75f;
      padding: 10px 18px;
      border-radius: 8px;
      font-size: 16px;
      text-decoration: none;
      z-index: 50;
      transition: background 0.3s ease;
      margin-right: 30px;
      margin-bottom: 20px;
  }

  .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: #cca75f;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }

  .modal video {
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    outline: none;
  }

  .close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-weight: bold;
  }

/*مربع من نحن */
/*مربع من نحن */
/*مربع من نحن */

.about-content {
    width: 100%;
    padding: 0;  
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc0 100%);
}
.about-text {
    max-width: 1600px; 
    width: 90%;    
    margin: 0 auto; 
    position: relative;
    z-index: 2;
    padding: 80px 0; 
    display: flex;
    align-items: flex-start;
    gap: 80px;
    flex-direction: row;
    background: none; 
}

.about-title {
    font-size: 4rem;
    font-weight: 700;
    color: #cca75f;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
    writing-mode: horizontal-tb;
    min-width: 300px;
    margin-right: 30px;
    margin-top: 20px;
    
}

.about-description-container {
    flex: 1;
   
}

.about-description {
    font-size: 1.2rem;
    line-height: 2.2;
    color: #5a4a3a;
    text-align: right;
    margin-bottom: 30px;
   
}

.about-image {
    width: 300px;
    height: 550px;
    background-image: url('/static/images/Pattern01.png');
    background-repeat: repeat-y;
    background-size: 300px auto;
    background-position: center;
    opacity: 0.6;
    margin-top: -200px;
    position: absolute;
    z-index: -1;
}
/*رؤيتنا*/
/* ===========================================
   الأساسيات العامة للقسم
   =========================================== */
.vision-section {
    position: relative;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1e1e1e 100%);
    direction: rtl;
    overflow: hidden;
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* خلفية الباترن */
.about-image2 {
    content: '';
    position: absolute;
    top: 300px; left: 0;
    width: 100%; height: 100%;
    background-image: url('/static/images/Pattern01.png');
    background-repeat: repeat-x;
    background-size: auto 80px;
    background-position: center top;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    animation: patternMove 20s linear infinite;
}

/* خلفية الـ parallax */
.vision-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(243, 172, 57, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(219, 187, 99, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(204, 167, 95, 0.02) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* حركة الباترن */
@keyframes patternMove {
    0% { background-position: 0 center; }
    100% { background-position: 200px center; }
}


/* ===========================================
   الحاوية والمحتوى النصي
   =========================================== */
        .vision-section {
            position: relative;
            padding: 60px 20px;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1e1e1e 100%);
            direction: rtl;
            overflow: hidden;
            isolation: isolate;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }

        /* خلفية الباترن */
        .vision-section::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23cca75f" opacity="0.3"/></svg>');
            background-repeat: repeat;
            background-size: 100px 100px;
            background-position: center top;
            opacity: 0.4;
            z-index: 1;
            pointer-events: none;
            animation: patternMove 20s linear infinite;
        }

        /* خلفية الـ parallax */
        .vision-section::after {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background:
                radial-gradient(circle at 20% 80%, rgba(243, 172, 57, 0.06) 0%, transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(219, 187, 99, 0.04) 0%, transparent 60%),
                radial-gradient(circle at 50% 50%, rgba(204, 167, 95, 0.02) 0%, transparent 70%);
            z-index: 0;
            pointer-events: none;
        }

        /* حركة الباترن */
        @keyframes patternMove {
            0% { background-position: 0 center; }
            100% { background-position: 200px center; }
        }

        /* ===========================================
           الحاوية والمحتوى النصي
           =========================================== */
        .vision-container {
            max-width: 900px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 200px;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .vision-content {
            position: relative;
            z-index: 3;
            transform: translateY(0);
            transition: transform 0.6s ease;
        }

        .vision-title {
            font-size: clamp(32px, 4vw, 48px);
            font-weight: 700;
            color: #cca75f;
            margin-bottom: 30px;
            font-family: 'Cairo', sans-serif;
            line-height: 1.2;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            transition: all 0.5s ease;
            position: relative;
            opacity: 1;
            transform: translateY(0);
        }

        .vision-title.fade-out {
            opacity: 0;
            transform: translateY(-20px);
        }

        .vision-title.fade-in {
            opacity: 1;
            transform: translateY(0);
        }

        .vision-title::before {
            content: '';
            position: absolute;
            bottom: -10px;
            right: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #cca75f, #cca75f);
            border-radius: 2px;
            transition: width 0.5s ease;
        }

        .vision-title:hover::before {
            width: 100px;
        }

        .vision-text-container {
            position: relative;
            min-height: 200px;
        }

        .vision-text {
            font-size: clamp(16px, 1.2vw, 18px);
            line-height: 1.8;
            color: #e0e0e0;
            margin-bottom: 40px;
            font-family: 'Cairo', sans-serif;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            transition: all 0.5s ease;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            opacity: 0;
            transform: translateY(20px);
        }

        .vision-text.active {
            opacity: 1;
            transform: translateY(0);
            position: relative;
        }

        .vision-text p {
            margin-bottom: 10px;
            padding: 5px 0;
            border-right: 2px solid transparent;
            transition: border-color 0.3s ease;
        }

        .vision-text p:hover {
            border-right-color: #cca75f;
            padding-right: 15px;
        }

        /* ===========================================
           التابات
           =========================================== */
        .vision-tabs {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        .vision-tab {
            flex: 1;
            max-width: 50px;
            height: 8px;
            background-color: rgba(224, 224, 224, 0.2);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(204, 167, 95, 0.2);
        }

        .vision-tab::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, #cca75f, #f3ac39);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .vision-tab.active::before {
            transform: scaleX(1);
        }

        .vision-tab:hover {
            background-color: rgba(224, 224, 224, 0.3);
            border-color: rgba(204, 167, 95, 0.4);
        }

        /* ===========================================
           الصور - هيكل وتفاعل
           =========================================== */
        .vision-images-container {
            position: relative;
            width: 100%;
            max-width: 320px; /*لتصغير حجم الصور*/
            aspect-ratio: 3 / 4;
        }

        .vision-images-group {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .vision-image-wrapper {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
            z-index: 1;
        }

        .vision-image-wrapper.active {
            opacity: 1;
            visibility: visible;
            z-index: 10;
            transform: scale(1) rotate(0deg);
        }

        .vision-image-wrapper:not(.active) {
            transform: scale(0.9) rotate(-2deg);
            z-index: 8;
            opacity: 0;
            filter: blur(1px);
        }

        .vision-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 8px 15px rgba(0, 0, 0, 0.12);
            transition: all 0.5s ease;
            border: 2px solid rgba(204, 167, 95, 0.15);
        }

        .vision-image-wrapper.active .vision-image {
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35),
                        0 12px 25px rgba(0, 0, 0, 0.18),
                        0 0 0 1px rgba(204, 167, 95, 0.4);
            border-color: rgba(204, 167, 95, 0.4);
        }

        .vision-image-wrapper::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(135deg, rgba(204, 167, 95, 0.1) 0%, rgba(243, 172, 57, 0.08) 30%, transparent 70%);
            border-radius: 20px;
            opacity: 0;
            transition: opacity 0.5s ease;
            z-index: 1;
            pointer-events: none;
        }

        .vision-image-wrapper.active::before {
            opacity: 1;
        }

        .vision-image-wrapper:hover {
            transform: scale(1.03) rotate(1deg);
        }

        .vision-image-wrapper.active:hover {
            transform: scale(1.05) rotate(0deg);
        }

        /* ===========================================
           تحسين الأداء والاستجابة
           =========================================== */
        .vision-image-wrapper,
        .vision-image,
        .vision-tab {
            will-change: transform, opacity;
            backface-visibility: hidden;
        }

        @media (max-width: 768px) {
            .vision-section { padding: 80px 20px; }
            .vision-container {
                grid-template-columns: 1fr;
                gap: 40px;
                text-align: center;
            }
            .vision-content { order: 2; }
            .vision-images-container { order: 1; height: 280px; }
            .vision-tabs {
                justify-content: center;
                max-width: 200px;
                margin: 30px auto 0;
            }
        }

        @media (max-width: 480px) {
            .vision-section { padding: 60px 15px; }
            .vision-container { max-width: 100%; }
            .vision-images-container { height: 240px; }
            .vision-text { font-size: 16px; }
        }
/*اعمالنا*/
/* ===========================================
   الأساسيات العامة للقسم
   =========================================== */
/**/
.projects-section.with-bg {
    position: relative;
    background-image: url('/static/images/background-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    z-index: 1;
    padding: 100px 20px;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

.projects-section.with-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.407);/*تعتيم الخلفية*/
    z-index: 1;
}

.projects-section.with-bg > .section-header,
.projects-section.with-bg > .projects-grid {
    position: relative;
    z-index: 2;
    color: #fff;
}

.section-header h2 {
    font-size: 52px;
    color: #cca75f;
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: -30px;
}

.section-subtitle {
    font-size: 40px;
    color: #eee;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 320px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cca75f, #ddb76f);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: translateX(0);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card h3 {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #cca75f, #ddb76f);
    border-radius: 2px;
}

.project-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-stats li {
    font-size: 18px;
    margin-bottom: 18px;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(204, 167, 95, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.project-stats li:last-child {
    border-bottom: none;
}

.project-stats li:hover {
    color: #f8f9fa;
    transform: translateX(5px);
}

.count {
    font-weight: 700;
    color: #cca75f;
    font-size: 22px;
    background: linear-gradient(135deg, #cca75f, #ddb76f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* إضافة تأثيرات متقدمة */
.project-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .projects-grid {
        gap: 20px;
    }
    
    .project-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
}


/*قسم تواصل معنا*/
.contact-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 60px 20px;
  direction: rtl;
  position: relative;
  overflow: hidden;
}
.contact-decoration {
  bottom: 0;
  left: 0;
  margin-right: -39px;
  margin-left: -39px;
  width: 110vw; /* يعني العرض كامل الشاشة */
  height: 80px; /* حسب حجم الصورة */
  background-image: url("/static/images/Pattern01.png"); /* مسار الصورة */
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%; /* ارتفاع تلقائي */
  opacity: 0.5; /* شفافية */
  margin-top: 20px;
  margin-bottom: -60px;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  direction: rtl;
}

.contact-logo-text {
  flex: 1;
  min-width: 280px;
  text-align: right;
}

.contact-logo {
  width: 220px;
  margin-top: -50px;
  margin-bottom: -40px;
}

.contact-description {
  font-size: 15px;
  line-height: 1.7;
  color: #e0e0e0;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ffc107;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 10px;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  flex-direction: row; /* هذا هو التعديل المهم */
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: #ffc10730;
}

.social-icons img {
  width: 20px;
  height: 20px;
}

footer {
  background-color: #222;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 14px;
}
.contact-col {
  flex: 1;
  min-width: 220px;
}

.contact-col h2 {
  font-size: 20px;
  margin-bottom: 15px;
  margin-top: -10px;
  color: #cca75f;
}
.contact-col p {
  margin: -4px 0;
}


.location-link {
  display: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  gap: 8px;
  transition: color 0.3s;
}

.location-link:hover {
  color: #cca75f;
}

.icon {
  width: 20px;
  height: 20px;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-link:hover {
  color: #cca75f;
}

/* أيقونات التواصل بشكل أفقي */
.horizontal-icons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.horizontal-icons a img {
  width: 26px;
  height: 26px;
  transition: transform 0.3s;
}

.horizontal-icons a:hover img {
  transform: scale(1.2);
}

.social-username {
  font-size: 17px;
  color: #ccc;
  margin-top: 10px;
}
.launch-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #cca75f;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  pointer-events: none; /* يمنع التفاعل معها لو ما تبي أحد يضغطها */
}


/* تصميم الجوال */
@media (max-width: 768px) {
    .top-header {
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        position: relative;
    }
    
    /* إخفاء العناصر الأصلية في الجوال */
    .top-header > nav,
    .top-header > .user-dropdown {
        display: none !important;
    }
    
    /* زر الهامبرغر (يسار) */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        width: 30px;
        height: 25px;
        justify-content: space-between;
        z-index: 1001;
        position: absolute;
        left: 20px;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* الشعار (يمين) في الجوال */
    .top-header > .logo {
        width: 90px;
        margin-left: 0;
        position: absolute;
        right: 20px;
    }
    
    .top-header > .logo img {
        width: 200%;
    }
    
    /* القائمة الجانبية */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #000000f0 0%, #1a1a1af0 100%);
        backdrop-filter: blur(15px);
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden; /* منع التمرير الأفقي */
    }
    
    .mobile-sidebar.active {
        right: 0;
    }
    
    .mobile-sidebar-content {
        padding: 30px 20px 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* الشعار في القائمة الجانبية - نفس الشعار الأصلي */
    .mobile-logo {
        width: 90px;
        margin-bottom: 20px;
        text-align: center;
      margin-left: 200px;
    }
    
    .mobile-logo img {
        width: 200%;
        height: auto;
    }
    
    /* رسالة الترحيب في الجوال */
    .mobile-welcome {
        background-color: #f3ac399b;
        color: white;
        padding: 15px;
        border-radius: 10px;
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 30px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* قائمة التنقل في الجوال */
    .mobile-nav {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-nav > a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        display: block;
        text-align: right;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-nav > a:hover,
    .mobile-nav > a.active {
        border-color: #cca75f;
        color: #cca75f;
    }
    
    /* قائمة المشاريع الفرعية في الجوال */
    .mobile-plans-dropdown {
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-plans-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        text-align: center;
        box-sizing: border-box;
    }
    
    .mobile-plans-dropdown > a:hover {
        border-color: #cca75f;
        color: #cca75f;
    }
    
    .mobile-dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    .mobile-plans-dropdown.active .mobile-dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .mobile-plans-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 10px;
        padding-right: 20px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-plans-submenu.active {
        max-height: 250px;
    }
    
    .mobile-plans-submenu a {
        font-size: 16px;
        padding: 12px 15px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: right;
        border: 1px solid rgba(243, 172, 57, 0.2);
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .mobile-plans-submenu a:hover {
        background-color: rgba(243, 172, 57, 0.3);
        border-color: #cca75f;
        color: #cca75f;
    }
    
    /* زر تسجيل الخروج في الجوال */
    .mobile-logout-btn {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: white;
        border: none;
        padding: 15px;
        border-radius: 8px;
        font-size: 16px;
        cursor: pointer;
        margin-top: 20px;
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-logout-btn:hover {
        background: linear-gradient(135deg, #c82333 0%, #a71e29 100%);
        transform: translateY(-2px);
    }
    
    /* تعتيم الخلفية */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* إصلاح موضع الشعار في الكمبيوتر */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-sidebar,
    .mobile-overlay {
        display: none !important;
    }
}
/* تحسينات تصميم الجوال لصفحة من نحن */
@media (max-width: 768px) {
    /* تحسين الفديو والقسم الرئيسي */
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 36px;
        margin-top: 50px;
        margin-left: 100%;
        text-align: right;
        max-width: 900px;
        margin: 200px auto 0 230px;
    }
    
    .btn-secondary {
        position: absolute;
        bottom: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 14px;
        margin-right: 15px;
        margin-bottom: 15px;
    }
    
    /* تحسين قسم من نحن */
    .about-content {
        padding: 40px 0;
    }
    
    .about-text {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
        width: 95%;
        text-align: center;
    }
    
    .about-title {
        font-size: 2.5rem;
        min-width: auto;
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.8;
        text-align: right;
        margin-bottom: 20px;
    }
    
    .about-image {
        display: none; /* إخفاء الصورة في الجوال لتوفير مساحة */
    }
    
    /* تحسين قسم الرؤية */
    .vision-section {
        padding: 40px 15px;
        min-height: auto;
    }
    
    .vision-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
        text-align: center;
    }
    
    .vision-content {
        order: 2;
        text-align: center;
    }
    
    .vision-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .vision-text-container {
        min-height: 180px;
        text-align: right;
    }
    
    .vision-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 25px;
    }
    
    .vision-text p {
        margin-bottom: 15px;
        padding: 8px 0;
    }
    
    .vision-tabs {
        justify-content: center;
        max-width: 150px;
        margin: 20px auto 0;
        gap: 10px;
    }
    
    .vision-tab {
        height: 6px;
        max-width: 40px;
    }
    
    .vision-images-container {
        order: 1;
        max-width: 250px;
        margin: 0 auto;
        aspect-ratio: 3/4;
    }
    
    /* تحسين قسم المشاريع */
    .projects-section.with-bg {
        padding: 60px 15px;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .projects-grid {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .project-card {
        width: 100%;
        max-width: 320px;
        padding: 25px 20px;
        margin: 0 auto;
    }
    
    .project-card h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .project-stats li {
        font-size: 1rem;
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    .count {
        font-size: 1.2rem;
    }
    
    /* تحسين الفوتر والشارة */
    footer {
        padding: 20px 15px;
        font-size: 0.8rem;
    }
    
    .launch-badge {
        bottom: 15px;
        left: 15px;
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    /* تحسين النافذة المنبثقة للفيديو */
    .modal video {
        width: 95%;
        max-width: none;
        border-radius: 8px;
    }
    
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 25px;
    }
    
    /* تحسينات إضافية للنصوص */
    h1, h2, h3 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* تحسين الأزرار للجوال */
    .btn-primary,
    .btn-secondary {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* تحسين تأثيرات الحركة للجوال */
    .project-card:hover {
        transform: translateY(-5px);
    }
    
    .vision-image-wrapper:hover {
        transform: scale(1.02);
    }
    
    .vision-image-wrapper.active:hover {
        transform: scale(1.03);
    }
    
    /* إخفاء الباترن في الجوال لتحسين الأداء */
    .vision-section::before {
        opacity: 0.2;
        animation: none;
    }
    
    /* تحسين عرض المحتوى */
    .vision-text p:hover {
        border-right-color: #cca75f;
        padding-right: 10px;
    }
}