  /*---------------------------------------
    CUSTOM PROPERTIES ( VARIABLES )             
  -----------------------------------------*/
  :root {
    --white-color: #ffffff;
    --primary-color: #dfb629;
    --secondary-color: #ff69b4;
    --section-bg-color: #f0f8ff;
    --custom-btn-bg-color: #dfb629;
    --custom-btn-bg-hover-color: #ff69b4;
    --dark-color: #000000;
    --p-color: #717275;
    --border-color: #7fffd4;
    --link-hover-color: #b22727;
    --primary-colosr: #dfb629;

    --body-font-family: "Outfit", sans-serif;

    --h1-font-size: 74px;
    --h3-font-size: 32px;
    --h4-font-size: 28px;
    --h5-font-size: 24px;
    --h6-font-size: 22px;
    --p-font-size: 18px;
    --btn-font-size: 14px;
    --copyright-font-size: 16px;

    --border-radius-large: 100px;
    --border-radius-medium: 20px;
    --border-radius-small: 10px;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
  }

  body {
    background-color: var(--white-color);
    font-family: var(--body-font-family);
  }

  /*---------------------------------------
    TYPOGRAPHY               
  -----------------------------------------*/

  h5 {
    color: var(--dark-color);
  }

  h5 {
    font-weight: var(--font-weight-bold);
  }

  h5 {
    font-size: var(--h5-font-size);
  }

  p {
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-light);
  }

  ul li {
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-light);
  }

  a,button {
    touch-action: manipulation;
    transition: all 0.3s;
  }

  a {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
  }

  a:hover {
    color: var(--link-hover-color);
  }

  h2 {
    font-size: 3rem; /* حجم الخط */
    color: #ffffff; /* لون الخط */
    font-family: "Tajawal", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800; /* وزن الخط (عريض) */
    text-align: center; /* توسيط النص أفقيًا */
    margin-bottom: 25px; /* مسافة أسفل العنوان */
    text-shadow: 0 0 7px rgba(255, 255, 255, 0.719); /* إضافة هالة بيضاء حول النص */
  }

  strong {
    font-weight: var(--font-weight-bold);
  }

  /*---------------------------------------
    SECTION               
  -----------------------------------------*/

  /*---------------------------------------
    CUSTOM ICON COLOR               
  -----------------------------------------*/

  /*---------------------------------------
    CUSTOM BUTTON               
  -----------------------------------------*/
  .custom-btn {
    background: var(--custom-btn-bg-color);
    border: 2px solid transparent;
    border-radius: var(--border-radius-large);
    color: var(--white-color);
    font-size: var(--btn-font-size);
    font-weight: var(--font-weight-bold);
    line-height: normal;
    transition: all 0.3s;
    padding: 10px 20px;
  }

  .custom-btn:hover {
    background: var(--custom-btn-bg-hover-color);
    color: var(--white-color);
  }

  /* الألوان المخصصة */
  :root {
    --primary-color: #dfb629; /* ذهبي */
    --dark-color: #000000; /* أسود داكن */
    --white-color: #ffffff; /* أبيض */
    --border-radius-large: 25px;
    --border-radius-medium: 15px;
    --h5-font-size: 1.5rem;
    --p-font-size: 1rem;
    --font-weight-bold: 700;
    --font-weight-normal: 400;
  }

  /* إزالة الهوامش والحشو الافتراضي */
  body,
  html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* الشريط العلوي */
  .navbar {
    background: linear-gradient(135deg, #000000c5, #10031f);
    padding: 10px 20px; /* حجم أصغر في البداية */
    position: fixed; /* تثبيت الشريط في أعلى الصفحة */
    top: 0;
    right: 0;
    left: 0;
    margin-top: 0; /* تأكد من أن margin-top يساوي 0 */
    z-index: 1000; /* تأكد من أن الشريط يظهر فوق العناصر الأخرى */
    transition: height 0.3s ease; /* تطبيق الانتقال على الارتفاع فقط */
  }

  .navbar-brand,
  .navbar-brand:hover {
    color: var(--white-color); /* نص أبيض في البداية */
    font-size: var(--h5-font-size);
    font-weight: var(--font-weight-bold);
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    border-radius: var(--border-radius-large);
    margin: 5px;
    padding: 10px 20px;
    background: transparent;
    color: var(--white-color); /* نص أبيض في البداية */
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-link {
    display: inline-block;
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-normal);
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar-nav .nav-link:hover {
    color: var(--primary-color); /* لون ذهبي عند التمرير */
    background: rgba(255, 215, 0, 0.1); /* خلفية شبه شفافة ذهبية */
  }
  /* تنسيق الشريط عند الوصول إلى الفوتر */

  /* عند التمرير (Scroll) */

  * تنسيق الأزرار */ .custom-btn {
    background-color: #dfb629; /* لون ذهبي */
    color: #ffffff;

    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .custom-btn:hover {
    background-color: #ff69b4; /* لون وردي فاتح */
    color: #fff;
    transform: translateY(-3px);
  }

  /*footer*/

  .site-footer {
    background: linear-gradient(135deg, #10031fa4, #000000c5);
    padding: 40px 0 20px;
    font-family: "Tajawal", sans-serif;
  }

  .site-footer h2 {
    text-align: right;
  }
  .site-footer h5 {
    color: #f8d51d;
    font-size: 18px;
    margin-bottom: 20px;
  }

  /* ملف CSS خارجي */
  .site-footer p a {
    color: #fff; /* لون النص الافتراضي */
    text-decoration: none;
    transition: color 0.3s, border 0.3s, border-radius 0.3s; /* تأثير انتقالي */
    padding: 5px 10px;
    display: inline-block;
  }

  .site-footer p a:hover {
    color: #f8d51d; /* اللون عند التمرير */
    border: 1px solid #f8d51d; /* إضافة الحواف */
    border-radius: 20px; /* جعل الحواف دائرية */
  }

  .site-footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, border 0.3s, border-radius 0.3s; /* تأثير انتقالي للخصائص */
    padding: 5px 10px;
    display: inline-block;
  }

  .site-footer-links a:hover {
    color: #f8d51d;
    border: 1px solid #f8d51d; /* إضافة الحواف عند التمرير */
    border-radius: 20px; /* جعل الحواف دائرية */
  }

  .social-icon-link {
    color: #fff;
    font-size: 18px;
    margin-right: 10px;
    transition: color 0.3s;
  }

  .social-icon-link:hover {
    color: #f8d51d;
  }

  .newsletter-form .form-control {
    background: #3a3a3a;
    border: none;
    color: #fff;
    margin-bottom: 10px;
  }

  .newsletter-form .btn {
    background-color: #f8d51d;
    color: #000;
    border: none;
    font-weight: bold;
  }

  .newsletter-form .btn:hover {
    background-color: #e4c10b;
  }
  /*---------------------------------------
    SOCIAL ICON               
  -----------------------------------------*/
  .social-icon {
    margin: 0;
    padding: 0;
  }

  .social-icon-item {
    list-style: none;
    display: inline-block;
    vertical-align: top;
  }

  .social-icon-link {
    background: var(--primary-color);
    border-radius: var(--border-radius-large);
    color: var(--white-color);
    font-size: var(--copyright-font-size);
    display: block;
    margin-right: 10px;
    text-align: center;
    width: 35px;
    height: 35px;
    line-height: 36px;
    transition: background 0.2s, color 0.2s;
  }

  .social-icon-link:hover {
    background: var(--secondary-color);
    color: var(--white-color);
  }

  .social-icon-link span {
    display: block;
  }

  .social-icon-link span:hover::before {
    animation: spinAround 2s linear infinite;
  }

  @keyframes spinAround {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  /*---------------------------------------
    RESPONSIVE STYLES               
  -----------------------------------------*/
  @media screen and (max-width: 991px) {

    h5 {
      font-size: 20px;
    }

    .navbar {
      background-color: var(--dark-color);
    }

    .navbar-expand-lg .navbar-nav {
      padding-bottom: 30px;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
      padding: 0;
    }
  }

  @media screen and (max-width: 767px) {
    .custom-btn {
      font-size: 14px;
      padding: 10px 20px;
    }
  }

  @media screen and (max-width: 480px) {

    h5 {
      font-size: 20px;
    }
  }
  /* تنسيق الشعار */
  .navbar-brand {
    display: flex;
    align-items: center; /* محاذاة الشعار والنص عموديًا */
    gap: 1px;
  }

  .navbar-brand .logo {
    height: 70px; /* تحجيم ارتفاع الشعار */
    width: auto; /* الحفاظ على نسبة العرض إلى الارتفاع */
    margin-right: 1px; /* مسافة بين الشعار والنص */
    transition: all 0.3s ease; /* تأثير سلس عند التغيير */
  }

  /* تحجيم الشعار عند التصغير */
  @media (max-width: 768px) {
    .navbar-brand .logo {
      height: 50px; /* حجم أصغر للشاشات الصغيرة */
    }
  }

  /* تنسيق الشعار عند التمرير */

  @media screen and (max-width: 768px) {
    .navbar-nav {
      display: flex;
      flex-direction: column-reverse; /* يعكس ترتيب العناصر */
      align-items: flex-end; /* يضع العناصر على اليمين */
      text-align: right; /* يجعل النصوص بمحاذاة اليمين */
    }

    .navbar-nav .nav-item {
      width: 100%; /* يجعل العناصر تأخذ العرض بالكامل */
    }

    .navbar-toggler {
      margin-left: auto; /* يجعل زر القائمة على اليمين */
    }
  }

  @media screen and (max-width: 768px) {
    .navbar {
      background-color: transparent !important; /* جعل الشريط شفافًا */
      backdrop-filter: blur(0px); /* إزالة التمويه */
      transition: background-color 0.3s ease-in-out,
        backdrop-filter 0.3s ease-in-out;
    }
  }
  .navbar-toggler {
    color: var(--custom-btn-bg-color); /* استخدام نفس لون الأزرار */
    border: 2px solid var(--custom-btn-bg-color); /* جعل الحد بنفس اللون */
    border-radius: var(--border-radius-small); /* تدوير الحواف */
    padding: 8px 10px;
    transition: all 0.3s ease;
  }

  /* تعديل لون أيقونة الزر */
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(238, 80, 7, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  #particles-js {
    position: fixed; /* لجعل التأثير ثابتًا في الخلفية */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* لجعل التأثير خلف المحتوى */
    background-color: #0f031f; /* لون الخلفية (اختياري) */
  }

  /* تنسيق القسم */
  /* تنسيقات عامة للأقسام */

  /* تبديل ترتيب النص والصور في الأقسام المعكوسة */

  /* تنسيق النص */
  /* تنسيق المعرض */

  /* تحسين تجربة المستخدم على الشاشات الصغيرة */

  /* شبكة المعرض */
  .gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* شبكة مرنة */
    gap: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
  }

  /* عناصر الصور داخل المعرض */
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
  }

  /* تأثير عند تمرير الماوس */
  .gallery-item:hover img {
    transform: scale(1.05);
  }

  /* إخفاء الصور الإضافية في الشاشات الصغيرة */

  /* زر عرض الكل */

  /* إظهار الزر في الشاشات الصغيرة */

  /* نافذة تكبير الصورة */
  .lightbox {
    display: none; /* إخفاء النافذة عند تحميل الصفحة */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
  }

  /* الصورة داخل النافذة */
  .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
  }

  /* زر الإغلاق */
  .close-btn {
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
  }

  /* أزرار التنقل */
  .prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translate(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: black;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
  }

  .prev-btn { left: 20px; }
  .next-btn { right: 20px; }

  .prev-btn:hover, .next-btn:hover {
    background: white;
  }

  @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;700&display=swap');

  .experience-section {
    background: url('background.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    margin-top: 50px; /* يمكنك زيادة أو تقليل القيمة حسب الحاجة */
  }



  .section-title {
      font-size: 36px;
      font-weight: bold;
      color: #ffcc00;
  }

  .section-subtitle {
      font-size: 18px;
      margin: 15px 0;
  }

  .events-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
      margin-top: 30px;
  }

  .event {
      background: rgba(255, 255, 255, 0.1);
      padding: 15px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: 0.3s;
  }

  .event i {
      color: #ffcc00;
      font-size: 18px;
  }

  .event:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: scale(1.05);
  }

  .closing-text {
      margin-top: 30px;
      font-size: 18px;
      font-weight: bold;
      color: #ffcc00;
  }

  .portfolio {
    text-align: center;
    padding: 50px 0;
    background: #720f724b;
    color: white;
  }

  /* تعديلات للشاشات الصغيرة (أقل من 768px) */
  @media (max-width: 768px) {
    .gallery-container {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* أعمدة أصغر */
      gap: 8px; /* تقليل المسافة بين العناصر */
    }

    .gallery-item img {
      max-height: 300px; /* تقليل ارتفاع الصور */
    }
  }

  /* تعديلات للشاشات الصغيرة جداً (أقل من 480px) */
  @media (max-width: 480px) {
    .gallery-container {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* أعمدة أصغر */
      gap: 5px; /* تقليل المسافة بين العناصر */
    }

    .gallery-item img {
      max-height: 200px; /* تقليل ارتفاع الصور */
    }
  }

  @media (max-width: 768px) {
    .gallery-item:nth-child(n+11) { /* إخفاء الصور بدءاً من الصورة الخامسة */
      display: none;
    }
  }
  /* تنسيق عام */
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* شبكة مرنة */
    gap: 20px; /* المسافة بين العناصر */
    justify-content: center; /* توسيط العناصر أفقياً */
  }

  .category {
    text-align: center;
    transition: transform 0.3s;
    background: #f5f5f500; /* لون خلفية العنصر */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ظل خفيف */
  }

  .category img {
    width: 100%; /* عرض الصورة 100% من العنصر */
    height: 150px; /* ارتفاع ثابت للصور */
    object-fit: cover; /* تغطية المساحة دون تشويه */
    border-radius: 10px 10px 0 0; /* زوايا دائرية للأعلى فقط */
  }

  .category p {
    margin: 10px 0; /* تباعد داخلي للنص */
    font-size: 16px; /* حجم النص */
    font-weight: bold; /* نص غامق */
    color: #ffffff; /* لون النص */
  }

  .category:hover {
    transform: scale(1.05); /* تأثير التكبير عند التمرير */
  }

  /* تعديلات للشاشات الصغيرة */
  @media (max-width: 768px) {
    .categories-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* أعمدة أصغر */
      gap: 10px; /* تقليل المسافة بين العناصر */
    }

    .category img {
      height: 120px; /* تقليل ارتفاع الصور */
    }

    .category p {
      font-size: 14px; /* تقليل حجم النص */
    }
  }

  @media (max-width: 480px) {
    .categories-grid {
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* أعمدة أصغر */
      gap: 8px; /* تقليل المسافة بين العناصر */
    }

    .category img {
      height: 100px; /* تقليل ارتفاع الصور */
    }

    .category p {
      font-size: 12px; /* تقليل حجم النص */
    }
  }