    /* ====== CSS المحسن مع تحسينات احترافية ====== */
    
    /* متغيرات CSS محسنة */
    :root{
  /* Brand — Gold/Amber */
  --primary-color: #d3842c;        /* الأكثر استخدامًا */
  --primary-900:  #a04a0b;
  --primary-800:  #aa5814;
  --primary-700:  #b45c14;
  --primary-600:  #c07221;
  --primary-500:  #cc7c2c;
  --primary-400:  #d4842c;
  --primary-300:  #df9837;
  --primary-200:  #eab066;
  --primary-100:  #f4d1a0;

  /* Accent (أفتح قليلًا للهوفر والحدود) */
  --accent-color: #df9837;
  --accent-dark:  #c07221;

  /* Surfaces & Text */
  --light-bg:   #FFF9F2;           /* خلفية فاتحة دافئة بدل الأبيض الصِرف */
  --white:      #FFFFFF;
  --dark-bg:    #0f0f0f;           /* خلفية داكنة محايدة */
  --text-dark:  #0f2641;           /* أسود دافئ ينسجم مع الذهبي */
  --text-light: #FFFFFF;

  /* Neutrals */
  --gray-light:  #f7f3ed;
  --gray-medium: #6c757d;

  /* Effects */
  --shadow:    0 10px 30px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.15);
  --transition:       all .4s cubic-bezier(.175,.885,.32,1.275);
  --transition-fast:  all .2s ease;
  --border-radius: 15px;
  --header-height: 80px;
  --glass-bg:    rgba(255,255,255,.08);
  --glass-border:rgba(255,255,255,.18);

  /* Semantic (أبقيناها قيَميًا كما هي) */
  --success-color:#28a745;
  --error-color:  #dc3545;
  --warning-color:#ffc107;

  /* مفيدة: تدرّجات جاهزة للـCTA والخلفيات */
  --brand-gradient: linear-gradient(135deg, var(--primary-700), var(--primary-400));
  --brand-gradient-soft: linear-gradient(135deg, rgba(211,132,44,.18), rgba(255,255,255,0));
}

/* وضع داكن متناسق مع الذهبي */
[data-theme="dark"]{
  --primary-color: #e09a45;        /* إضاءة طفيفة للـCTA في الداكن */
  --accent-color:  #ffb869;

  --light-bg:   #111111;
  --white:      #1b1b1b;
  --dark-bg:    #0a0a0a;

  --text-dark:  #e9e5df;           /* نص فاتح دافئ */
  --text-light: #ffffff;

  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.45);

  --glass-bg:    rgba(255,255,255,.06);
  --glass-border:rgba(255,255,255,.12);
}

    
    [data-theme="dark"]{
  /* ألوان العلامة في الوضع الداكن */
  --primary-color: #e09a45;    /* ذهبي دافئ للأزرار والروابط الأساسية */
  --accent-color:  #ffb869;    /* أفتح قليلًا للهوفر/التأكيد */

  /* الخلفيات */
  --light-bg: #111111;
  --white:    #1b1b1b;         /* بطاقات/أسطح */
  --dark-bg:  #0a0a0a;

  /* النصوص */
  --text-dark:  #e9e5df;       /* نص رئيسي فاتح دافئ */
  --text-light: #ffffff;

  /* ظلال */
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.45);

  /* محايد */
  --gray-light:  #282828;
  --gray-medium: #b5b5b5;
}

    
    /* إعادة تعيين وتحسينات الأداء */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    html {
      scroll-behavior: smooth;
      scroll-padding-top: var(--header-height);
    }
    
    body {
      font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
      line-height: 1.7;
      color: var(--text-dark);
      background: var(--light-bg);
      overflow-x: hidden;
      text-rendering: optimizeSpeed;
      transition: background-color .3s ease, color .3s ease;
    }
    
    /* تحسينات النصوص والعناوين */
    h1, h2, h3, h4, h5, h6 {
      font-weight: 600;
      margin-bottom: 1.5rem;
      line-height: 1.2;
      color: var(--text-dark);
    }
    
    h1 {
      font-size: clamp(2.5rem, 5vw, 4.5rem);
    }
    
    h2 {
      font-size: clamp(2rem, 4vw, 3rem);
    }
    
    h3 {
      font-size: clamp(1.5rem, 3vw, 1.8rem);
    }
    
    p {
      margin-bottom: 1.5rem;
      font-size: clamp(1rem, 2vw, 1.1rem);
    }
    
    a {
      text-decoration: none;
      color: inherit;
      transition: var(--transition);
    }
    
    ul {
      list-style: none;
    }
    
    .container {
      width: 100%;
      max-width: 1320px;
      margin: 0 auto;
      padding: 0 20px;
    }
    
    /* إمكانية الوصول */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    
    button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
      outline: 2px solid var(--accent-color);
      outline-offset: 2px;
    }
    
    /* تحسينات الأزرار */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 32px;
      background: var(--primary-color);
      color: var(--white);
      border: none;
      border-radius: 50px;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
      z-index: 1;
      gap: 8px;
      text-align: center;
    }
    
    .btn::before {
      content: '';
      position: absolute;
      inset: 0 auto 0 0;
      width: 0;
      height: 100%;
      background: var(--accent-color);
      transition: var(--transition);
      z-index: -1;
    }
    
    .btn:hover {
      color: var(--text-dark);
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
    }
    
    .btn:hover::before {
      width: 100%;
    }
    
    .btn-outline {
      background: transparent;
      border: 2px solid var(--primary-color);
      color: var(--primary-color);
    }
    
    .btn-outline::before {
      background: var(--primary-color);
    }
    
    .btn-outline:hover {
      color: var(--white);
    }
    
    .btn-loading {
      pointer-events: none;
      opacity: .7;
    }
    
    .btn-loading::after {
      content: '';
      width: 16px;
      height: 16px;
      border: 2px solid transparent;
      border-top: 2px solid currentColor;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    
    /* تحسينات الأقسام */
    section {
      padding: 100px 0;
      position: relative;
    }
    
    .section-title {
      text-align: center;
      margin-bottom: 70px;
    }
    
    .section-title h2 {
      position: relative;
      display: inline-block;
      margin-bottom: 20px;
    }
    
    .section-title h2::after {
      content: '';
      position: absolute;
      bottom: -15px;
      right: 50%;
      transform: translateX(50%);
      width: 80px;
      height: 4px;
      background: linear-gradient(to right, var(--primary-color), var(--accent-color));
      border-radius: 2px;
    }
    
    .section-title p {
      max-width: 600px;
      margin: 0 auto;
      font-size: 1.2rem;
      color: var(--gray-medium);
    }
    
    /* تحسينات التحميل المسبق */
    .preloader {
      position: fixed;
      inset: 0;
      background: var(--dark-bg);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity .5s ease;
    }
    
    .preloader.hidden {
      opacity: 0;
      pointer-events: none;
    }
    
    .loader {
      width: 60px;
      height: 60px;
      border: 4px solid rgba(255, 255, 255, .2);
      border-top: 4px solid var(--accent-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      0% { transform: rotate(0); }
      100% { transform: rotate(360deg); }
    }
    
    /* تحسينات الهيدر */
    header {
      background: rgba(255, 255, 255, .95);
      box-shadow: 0 2px 20px rgba(0, 0, 0, .1);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      transition: var(--transition);
      height: var(--header-height);
      backdrop-filter: blur(10px);
    }
    
    [data-theme="dark"] header {
      background: rgba(30, 30, 30, .95);
      box-shadow: 0 2px 20px rgba(0, 0, 0, .3);
    }
    
    header.scrolled {
      padding: 5px 0;
      background: rgba(255, 255, 255, .98);
      height: 70px;
    }
    
    [data-theme="dark"] header.scrolled {
      background: rgba(30, 30, 30, .98);
    }
    
    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 100%;
    }
    
   .logo img {
    height: 60px;
    width: 100px;
    transition: var(--transition);
}


    
    .nav-menu {
      display: flex;
    }
    
    .nav-menu li {
      margin-left: 30px;
      position: relative;
    }
    
    .nav-menu a {
      font-weight: 500;
      padding: 10px 0;
      position: relative;
    }
    
    .nav-menu a::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 0;
      height: 2px;
      background: var(--accent-color);
      transition: var(--transition);
    }
    
    .nav-menu a:hover::after, .nav-menu a.active::after {
      width: 100%;
    }
    
    .header-actions {
      display: flex;
      align-items: center;
      gap: 15px;
    }
    
    .theme-toggle, .search-toggle {
      background: none;
      border: none;
      font-size: 1.2rem;
      color: var(--primary-color);
      cursor: pointer;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }
    
    .theme-toggle:hover, .search-toggle:hover {
      background: rgba(25, 64, 45, .1);
    }
    
    .search-box {
      position: absolute;
      top: 100%;
      right: 0;
      width: 300px;
      background: var(--white);
      box-shadow: var(--shadow-lg);
      border-radius: 10px;
      padding: 15px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: var(--transition);
      z-index: 1001;
    }
    
    .search-box.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    
    .search-box input {
      width: 100%;
      padding: 10px 15px;
      border: 1px solid #ddd;
      border-radius: 50px;
      font-family: inherit;
    }
    
    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--primary-color);
      z-index: 1001;
      width: 40px;
      height: 40px;
      border-radius: 4px;
      transition: var(--transition);
    }
    
    .mobile-menu-btn:hover {
      background: rgba(25, 64, 45, .1);
    }
    
    /* تحسينات قسم البطل */
    .hero.hero-cosmos {
      background: #0b1630;
      color: var(--white);
      padding: 180px 0 140px;
      overflow: hidden;
      text-align: center;
      position: relative;
      margin-top: var(--header-height);
    }
    
    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
    }
    
    .hero-video, .hero-fallback {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .hero-fallback {
      background-position: center;
      background-size: cover;
      display: none;
    }
    
    .hero-video:not([src]) + .hero-fallback, .hero-video[error] + .hero-fallback {
      display: block;
    }
    
    /* تأثيرات النجوم والسدم */
    .stars {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    
    .stars-1 {
      background-image: radial-gradient(2px 2px at 20px 30px, #fff 60%, transparent 61%), radial-gradient(1px 1px at 80px 120px, #fff 60%, transparent 61%), radial-gradient(1px 1px at 160px 60px, #fff 60%, transparent 61%);
      background-size: 200px 200px;
      opacity: .35;
      animation: starMove 120s linear infinite;
    }
    
    .stars-2 {
      background-image: radial-gradient(1.5px 1.5px at 50px 90px, #fff 60%, transparent 61%), radial-gradient(1px 1px at 140px 10px, #fff 60%, transparent 61%);
      background-size: 180px 180px;
      opacity: .25;
      animation: starMove 180s linear infinite reverse;
    }
    
    .stars-3 {
      background-image: radial-gradient(2px 2px at 110px 40px, #fff 60%, transparent 61%), radial-gradient(1px 1px at 20px 150px, #fff 60%, transparent 61%);
      background-size: 220px 220px;
      opacity: .2;
      animation: starMove 240s linear infinite;
    }
    
    @keyframes starMove {
      from { background-position: 0 0, 0 0, 0 0; }
      to { background-position: -2000px 1000px, -1500px 800px, -1200px 600px; }
    }
    
    .nebula {
      position: absolute;
      inset: -20% -20% -10% -20%;
      background: radial-gradient(60% 60% at 60% 40%, rgba(79, 215, 255, .18) 0%, rgba(79, 215, 255, 0) 60%), radial-gradient(50% 50% at 30% 60%, rgba(87, 173, 255, .16) 0%, rgba(87, 173, 255, 0) 60%), radial-gradient(40% 40% at 70% 80%, rgba(50, 110, 255, .12) 0%, rgba(50, 110, 255, 0) 60%);
      filter: blur(40px) saturate(120%);
      transform: translateZ(0);
    }
    
    .rock {
      position: absolute;
      width: 120px;
      opacity: .85;
      filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .35));
      animation: floatY 9s ease-in-out infinite;
      will-change: transform;
    }
    
    .r1 { top: 12%; right: 12%; }
    .r2 { bottom: 10%; left: 10%; width: 160px; animation-duration: 11s; animation-delay: .6s; }
    .r3 { top: 25%; left: 40%; width: 90px; animation-duration: 8s; animation-delay: 1.2s; }
    
    @keyframes floatY {
      0%, 100% { transform: translate3d(0, -6px, 0); }
      50% { transform: translate3d(0, 6px, 0); }
    }
    
    .vignette {
      position: absolute;
      inset: -2px;
      pointer-events: none;
      background: radial-gradient(80% 70% at 50% 50%, transparent 60%, rgba(0, 0, 0, .35) 100%);
    }
    
    .hero.hero-cosmos .hero-content {
      position: relative;
      z-index: 2;
    }
    
    .hero.hero-cosmos h1 {
      font-size: clamp(2rem, 4.5vw + 1rem, 5rem);
      line-height: 1.1;
      letter-spacing: .5px;
      margin-bottom: 1.5rem;
    }
    
    .hero.hero-cosmos p {
      max-width: 760px;
      opacity: .92;
      margin: 0 auto 40px;
      font-size: 1.2rem;
    }
    
    .hero-btns {
      display: flex;
      justify-content: center;
      gap: 20px;
    }
    
    /* تحسينات التمرير */
    .scroll-cue {
      position: absolute;
      bottom: 22px;
      right: 50%;
      transform: translateX(50%);
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, .4);
      background: rgba(255, 255, 255, .06);
      color: #fff;
      font-size: 22px;
      line-height: 42px;
      cursor: pointer;
      transition: var(--transition);
      z-index: 2;
      animation: bounce 2s infinite;
    }
    
    .scroll-cue:hover {
      background: rgba(255, 255, 255, .15);
      transform: translateX(50%) translateY(-3px);
    }
    
    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% { transform: translateX(50%) translateY(0); }
      40% { transform: translateX(50%) translateY(-10px); }
      60% { transform: translateX(50%) translateY(-5px); }
    }
    
    .has-parallax .rock, .has-parallax .nebula, .has-parallax .stars {
      will-change: transform;
    }
    
    /* تحسينات الخدمات */
    .services {
      background: var(--white);
      position: relative;
    }
    
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 40px;
    }
    
    .service-card {
      background: var(--white);
      border-radius: var(--border-radius);
      padding: 40px 30px;
      box-shadow: var(--shadow);
      transition: var(--transition);
      text-align: center;
      position: relative;
      overflow: hidden;
      z-index: 1;
      cursor: pointer;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    
    .service-card::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 0;
      background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
      transition: var(--transition);
      z-index: -1;
    }
    
    .service-card:hover {
      transform: translateY(-15px);
      color: var(--white);
      box-shadow: var(--shadow-lg);
    }
    
    .service-card:hover::before {
      height: 100%;
    }
    
    .service-icon {
      font-size: 3.5rem;
      margin-bottom: 25px;
      transition: var(--transition);
    }
    
    .service-card:hover .service-icon {
      transform: scale(1.2);
    }
    
    .service-card h3 {
      margin-bottom: 15px;
    }
    
    .service-card p {
      flex-grow: 1;
    }
    
    .service-features {
      margin-top: 20px;
      text-align: right;
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transition: all .4s ease;
    }
    
    .service-card.active .service-features {
      opacity: 1;
      max-height: 200px;
    }
    
    .service-features li {
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .service-features i {
      color: var(--accent-color);
    }
    
    /* تحسينات قسم من نحن */
    .about {
      background: var(--light-bg);
      position: relative;
    }
    
    .about-content {
      display: flex;
      align-items: center;
      gap: 60px;
    }
    
    .about-text {
      flex: 1;
    }
    
    .about-text p {
      margin-bottom: 25px;
    }
    
    .about-features {
      margin: 30px 0;
    }
    
    .about-feature {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
    }
    
    .about-feature i {
      color: var(--accent-color);
      margin-left: 10px;
      font-size: 1.2rem;
    }
    
    .about-image {
      flex: 1;
      border-radius: var(--border-radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      position: relative;
    }
    
    .about-image::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(45deg, var(--primary-color), transparent);
      opacity: .1;
      z-index: 1;
    }
    
    .about-image img {
      width: 100%;
      height: auto;
      display: block;
      transition: var(--transition);
    }
    
    .about-image:hover img {
      transform: scale(1.05);
    }
    
    /* تحسينات الإحصائيات */
    .stats {
      background: linear-gradient(135deg, var(--dark-bg) 0%, #132546 100%);
      color: var(--white);
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    
    .stats::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" preserveAspectRatio="none"><polygon fill="%23ffffff" fill-opacity="0.03" points="0,1000 1000,0 1000,1000"/></svg>') center/cover;
    }
    
    .stats-content {
      position: relative;
      z-index: 1;
    }
    
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 40px;
    }
    
    .stat-item {
      padding: 30px 20px;
      border-radius: 10px;
      background: rgba(255, 255, 255, .05);
      backdrop-filter: blur(10px);
      transition: var(--transition);
    }
    
    .stat-item:hover {
      transform: translateY(-10px);
      background: rgba(255, 255, 255, .1);
    }
    
    .stat-item h3 {
      font-size: 3.5rem;
      color: var(--accent-color);
      margin-bottom: 10px;
    }
    
    /* تحسينات الأعمال */
    .portfolio {
      background: var(--white);
      position: relative;
    }
    
    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 30px;
    }
    
    .portfolio-item {
      border-radius: var(--border-radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      position: relative;
      height: 300px;
      cursor: pointer;
    }
    
    .portfolio-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: var(--transition);
    }
    
    .portfolio-overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
      color: var(--white);
      padding: 30px 25px;
      transform: translateY(100%);
      transition: var(--transition);
    }
    
    .portfolio-item:hover .portfolio-overlay {
      transform: translateY(0);
    }
    
    .portfolio-item:hover img {
      transform: scale(1.1);
    }
    
    .portfolio-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    
    .portfolio-tag {
      background: var(--accent-color);
      color: var(--text-dark);
      padding: 4px 10px;
      border-radius: 20px;
      font-size: .8rem;
      font-weight: 500;
    }
    
    /* تحسينات آراء العملاء */
    .testimonials {
      background: var(--light-bg);
      position: relative;
    }
    
    .testimonials-slider {
      position: relative;
      overflow: hidden;
      max-width: 800px;
      margin: 0 auto;
    }
    
    .testimonials-container {
      display: flex;
      transition: transform .5s ease;
    }
    
    .testimonial {
      flex: 0 0 100%;
      padding: 40px;
      background: var(--white);
      border-radius: var(--border-radius);
      box-shadow: var(--shadow);
      text-align: center;
    }
    
    .testimonial-content {
      margin-bottom: 20px;
      font-style: italic;
      position: relative;
    }
    
    .testimonial-content::before, .testimonial-content::after {
      content: '"';
      font-size: 3rem;
      color: var(--accent-color);
      opacity: .3;
      position: absolute;
    }
    
    .testimonial-content::before {
      top: -20px;
      right: -10px;
    }
    
    .testimonial-content::after {
      bottom: -40px;
      left: -10px;
    }
    
    .testimonial-author {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
    }
    
    .testimonial-avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      overflow: hidden;
    }
    
    .testimonial-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .testimonial-info h4 {
      margin-bottom: 5px;
    }
    
    .testimonial-info p {
      margin: 0;
      color: var(--gray-medium);
      font-size: .9rem;
    }
    
    .testimonial-nav {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 30px;
    }
    
    .testimonial-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #ddd;
      cursor: pointer;
      transition: var(--transition);
    }
    
    .testimonial-dot.active {
      background: var(--primary-color);
      transform: scale(1.2);
    }
    
    /* تحسينات الاتصال */
    .contact {
      background: var(--light-bg);
      position: relative;
    }
    
    .contact-container {
      display: flex;
      gap: 60px;
    }
    
    .contact-info {
      flex: 1;
    }
    
    .contact-info h3 {
      margin-bottom: 30px;
      position: relative;
      padding-bottom: 15px;
    }
    
    .contact-info h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 50px;
      height: 3px;
      background: var(--accent-color);
    }
    
    .contact-details {
      margin-bottom: 40px;
    }
    
    .contact-detail {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
    }
    
    .contact-detail i {
      width: 50px;
      height: 50px;
      background: var(--primary-color);
      color: var(--white);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 15px;
      font-size: 1.2rem;
    }
    
    .contact-form {
      flex: 1;
      background: var(--white);
      padding: 40px;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow);
    }
    
    .form-group {
      margin-bottom: 25px;
    }
    
    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
    }
    
    .form-control {
      width: 100%;
      padding: 15px 20px;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-family: inherit;
      font-size: 1rem;
      transition: var(--transition);
    }
    
    .form-control:focus {
      border-color: var(--primary-color);
      outline: none;
      box-shadow: 0 0 0 3px rgba(25, 64, 45, .1);
    }
    
    textarea.form-control {
      min-height: 150px;
      resize: vertical;
    }
    
    .form-message {
      margin-top: 15px;
      padding: 10px;
      border-radius: 5px;
      display: none;
    }
    
    .form-message.success {
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }
    
    .form-message.error {
      background: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }
    
    /* تحسينات الفوتر */
    footer {
      background: linear-gradient(135deg, var(--dark-bg) 0%, #132546 100%);
      color: var(--white);
      padding: 70px 0 20px;
      position: relative;
    }
    
    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 40px;
      margin-bottom: 50px;
    }
    
  .footer-logo img {
    height: 80px;
    width: 110px;
    margin-bottom: 20px;
}
    
    .footer-logo p {
      opacity: .8;
      max-width: 300px;
    }
    
    .footer-links h4 {
      margin-bottom: 25px;
      position: relative;
      padding-bottom: 15px;
    }
    
    .footer-links h4::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 40px;
      height: 2px;
      background: var(--accent-color);
    }
    
    .footer-links ul li {
      margin-bottom: 12px;
    }
    
    .footer-links a {
      opacity: .8;
      transition: var(--transition);
    }
    
    .footer-links a:hover {
      opacity: 1;
      color: var(--accent-color);
      padding-right: 5px;
    }
    
    .social-links {
      display: flex;
      gap: 15px;
      margin-top: 20px;
    }
    
    .social-links a {
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, .1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }
    
    .social-links a:hover {
      background: var(--accent-color);
      color: var(--dark-bg);
      transform: translateY(-5px);
    }
    
    .copyright {
      text-align: center;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, .1);
      opacity: .7;
    }
    
    /* تحسينات العودة للأعلى */
    .back-to-top {
      position: fixed;
      bottom: 30px;
      left: 30px;
      width: 50px;
      height: 50px;
      background: var(--primary-color);
      color: var(--white);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: var(--transition);
      opacity: 0;
      visibility: hidden;
      z-index: 999;
      border: none;
      box-shadow: var(--shadow);
    }
    
    .back-to-top.active {
      opacity: 1;
      visibility: visible;
    }
    
    .back-to-top:hover {
      background: var(--accent-color);
      color: var(--text-dark);
      transform: translateY(-5px);
    }
    
    /* تحسينات ملفات تعريف الارتباط */
    .cookie-consent {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--dark-bg);
      color: var(--white);
      padding: 20px;
      box-shadow: 0 -5px 15px rgba(0, 0, 0, .1);
      z-index: 1000;
      display: none;
    }
    
    .cookie-consent.active {
      display: block;
    }
    
    .cookie-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .cookie-text {
      flex: 1;
      margin-left: 20px;
    }
    
    .cookie-buttons {
      display: flex;
      gap: 10px;
    }
    
    /* تحسينات الصور والإشعارات */
    .lazy-image {
      opacity: 0;
      transition: opacity .3s ease;
    }
    
    .lazy-image.loaded {
      opacity: 1;
    }
    
    .toast {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: var(--primary-color);
      color: #fff;
      padding: 15px 25px;
      border-radius: 8px;
      box-shadow: var(--shadow-lg);
      z-index: 1000;
      transform: translateX(150%);
      transition: transform .3s ease;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .toast.show {
      transform: translateX(0);
    }
    
    .toast i {
      font-size: 1.2rem;
    }
      #portfolio .jw-videos{margin-top:24px}
  #portfolio .jw-title{margin:0 0 14px;font-weight:800;color:var(--text-light,#fff)}
  #portfolio .jw-yt-grid{
    display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr))
  }
  #portfolio .jw-card{
    position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;
    background:var(--card,#1a1a1a);box-shadow:0 10px 24px rgba(0,0,0,.15);cursor:pointer
  }
  #portfolio .jw-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
  #portfolio .jw-card:hover .jw-thumb{transform:scale(1.04)}
  #portfolio .jw-badge{
    position:absolute;top:10px;right:10px;z-index:2;color:#fff;background:linear-gradient(135deg,#22c55e,#16a34a);
    font-size:12px;padding:6px 10px;border-radius:999px;box-shadow:0 6px 16px rgba(22,163,74,.35)
  }
  #portfolio .jw-play{
    position:absolute;left:12px;bottom:12px;z-index:2;display:flex;align-items:center;gap:8px;
    background:rgba(0,0,0,.6);color:#fff;padding:8px 12px;border-radius:999px;font-weight:700;backdrop-filter:blur(3px)
  }
  #portfolio .jw-play:before{
    content:"";width:0;height:0;border-left:12px solid #22c55e;border-top:8px solid transparent;border-bottom:8px solid transparent
  }
  #portfolio .jw-iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

  /* الجوال: صفّان أفقيان */
  #portfolio .jw-yt-rows{display:none;gap:14px;flex-direction:column}
  #portfolio .jw-yt-row{
    display:grid;grid-auto-flow:column;grid-auto-columns:minmax(74%,1fr);
    gap:16px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;
    scroll-snap-type:x mandatory;padding-bottom:6px;animation: jwMarquee 28s linear infinite
  }
  #portfolio .jw-yt-row::-webkit-scrollbar{display:none}
  #portfolio .jw-yt-row .jw-card{scroll-snap-align:start}
  #portfolio .jw-yt-row:nth-child(2){animation-duration:32s;animation-direction:reverse}

  @keyframes jwMarquee{0%{transform:translateX(0)}100%{transform:translateX(-30%)}}

  /* responsive */
  @media (max-width:1199px){#portfolio .jw-yt-grid{grid-template-columns:repeat(3,1fr)}}
  @media (max-width:991px){ #portfolio .jw-yt-grid{grid-template-columns:repeat(2,1fr)} }
  @media (max-width:767px){
    #portfolio .jw-yt-grid{display:none}
    #portfolio .jw-yt-rows{display:flex}
    #portfolio .jw-title{font-size:1.125rem}
  }
  @media (prefers-color-scheme:light){
    #portfolio .jw-title{color:#111}
    #portfolio .jw-card{background:#fff;box-shadow:0 10px 24px rgba(0,0,0,.08)}
  }

    /* تحسينات الاستجابة والحركة */
    @media (prefers-reduced-motion: reduce) {
      .stars, .rock, .hero-video, .service-card, .stat-item, .portfolio-item, .testimonial {
        animation: none !important;
        transition: none !important;
      }
      
      .scroll-cue {
        animation: none;
      }
    }
    
    @media (max-width: 1200px) {
      .container {
        max-width: 1140px;
      }
    }
    
    @media (max-width: 992px) {
      .about-content, .contact-container {
        flex-direction: column;
      }
      
      .hero.hero-cosmos h1 {
        font-size: 3rem;
      }
      
      .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
      }
      
      .cookie-text {
        margin-left: 0;
      }
      
      .header-actions {
        display: none;
      }
    }
    
    @media (max-width: 768px) {
      .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px 40px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, .1);
        transition: var(--transition);
        z-index: 1000;
      }
      
      .nav-menu.active {
        right: 0;
      }
      
      .nav-menu li {
        margin: 15px 0;
      }
      
      .mobile-menu-btn {
        display: block;
      }
      
      .hero.hero-cosmos h1 {
        font-size: 2.5rem;
      }
      
      .hero-btns {
        flex-direction: column;
        align-items: center;
      }
      
      .hero-btns .btn {
        width: 100%;
        max-width: 250px;
      }
      
      section {
        padding: 70px 0;
      }
      
      .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
      }
      
      .testimonial {
        padding: 25px;
      }
      
      .search-box {
        width: 250px;
      }
    }
    
    @media (max-width: 576px) {
      h1 {
        font-size: 2.2rem;
      }
      
      h2 {
        font-size: 2rem;
      }
      
      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .testimonial {
        padding: 20px;
      }
      
      .contact-form {
        padding: 25px;
      }
      
      .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
      }
      
      .social-links {
        justify-content: center;
      }
      
      .search-box {
        width: 200px;
        right: 10px;
      }
    }
    
    /* تحسينات اللمس للأجهزة الصغيرة */
    .nav-menu a, .social-links a, .cookie-buttons .btn, .testimonial-dot {
      touch-action: manipulation;
    }
