/* Enhanced Font Loading with Local Fallbacks */
@font-face {
    font-family: 'Tajawal-Local';
    src: local('Tajawal'), local('Tajawal-Regular'),
         url('https://fonts.gstatic.com/s/tajawal/v9/Iura6YBj_oCad4k1l_6gLuvPDQ.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal-Local';
    src: local('Tajawal Bold'), local('Tajawal-Bold'),
         url('https://fonts.gstatic.com/s/tajawal/v9/Iurf6YBj_oCad4k1nzSGC-xxPQ.woff2') format('woff2');
    font-display: swap;
    font-weight: 700;
    font-style: normal;
}

/* Font Loading Optimization Classes */
.font-loading {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Tahoma', sans-serif;
}

.fonts-loaded {
    font-family: 'Tajawal-Local', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* متغيرات CSS الأساسية - تحديد الألوان والقيم المستخدمة في الموقع */
:root {
    /* الألوان الأساسية للموقع - مزيج متنوع */
    --primary-color: #0EA5E9;        /* الأزرق السماوي الأساسي */
    --secondary-color: #10B981;      /* الأخضر الزمردي */
    --accent-color: #F97316;         /* البرتقالي */
    --accent-light: #14B8A6;         /* التيركواز */
    --dark-blue: #0C4A6E;            /* أزرق غامق */
    --deep-blue: #082f49;            /* أزرق عميق */
    --cyan-color: #22D3EE;           /* سماوي فاتح */
    --orange-color: #FB923C;         /* برتقالي فاتح */
    
    /* ألوان الخلفيات */
    --bg-primary: #0F172A;           /* الخلفية الأساسية غامقة */
    --bg-secondary: #1E293B;         /* الخلفية الثانوية */
    --bg-card: rgba(30, 41, 59, 0.3);   /* خلفية البطاقات */
    
    /* مستويات الشفافية الموحدة */
    --opacity-medium: 0.1;           /* شفافية متوسطة */
    --opacity-strong: 0.2;           /* شفافية قوية */
    --opacity-heavy: 0.3;            /* شفافية كثيفة */
    
    /* ألوان النصوص */
    --text-primary: #FFFFFF;         /* النص الأساسي الأبيض */
    --text-light: #F8FAFC;          /* النص الفاتح */
    --text-muted: #E2E8F0;          /* النص الخافت */
    
    /* زوايا الحدود المدورة */
    --border-radius: 20px;           /* الزاوية المدورة العادية */
    --border-radius-small: 12px;      /* الزاوية المدورة الصغيرة */
    --border-radius-large: 30px;     /* الزاوية المدورة الكبيرة */
    
    /* المسافات والحشو */
    --spacing-xs: 0.5rem;            /* مسافة صغيرة جداً */
    --spacing-sm: 1rem;              /* مسافة صغيرة */
    --spacing-md: 1.5rem;            /* مسافة متوسطة */
    --spacing-lg: 2rem;              /* مسافة كبيرة */
    --spacing-xl: 3rem;              /* مسافة كبيرة جداً */
    --spacing-2xl: 4rem;             /* مسافة ضخمة */
    --spacing-3xl: 6rem;             /* مسافة عملاقة */
    /* أحجام الخطوط المتدرجة - من الصغير إلى الكبير */
    --font-xs: 0.75rem;      /* خط صغير جداً - 12px */
    --font-sm: 0.875rem;     /* خط صغير - 14px */
    --font-base: 1rem;       /* خط أساسي - 16px */
    --font-lg: 1.125rem;     /* خط كبير - 18px */
    --font-xl: 1.25rem;      /* خط كبير جداً - 20px */
    --font-2xl: 1.5rem;      /* خط ضخم - 24px */
    --font-3xl: 1.875rem;    /* خط عملاق - 30px */
    --font-4xl: 2.5rem;      /* خط هائل - 40px */
    --font-5xl: 3.5rem;      /* خط عظيم - 56px */
    --font-6xl: 4rem;        /* خط جبار - 64px */
    --font-7xl: 5rem;        /* خط أسطوري - 80px */
    
    /* تأثيرات الانتقال والحركة */
    --transition: none;        /* انتقال سريع */
    --transition-slow: none;   /* انتقال بطيء */
    
    /* التدرجات اللونية المتنوعة */
    --gradient-primary: linear-gradient(135deg, #0EA5E9, #10B981, #F97316);     /* تدرج سماوي أخضر برتقالي */
    --gradient-secondary: linear-gradient(135deg, #0EA5E9, #22D3EE);   /* تدرج أزرق سماوي */
    --gradient-overlay: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(249, 115, 22, 0.2)); /* تدرج الطبقة العلوية */
    --gradient-accent: linear-gradient(135deg, #F97316, #FB923C);      /* تدرج برتقالي */
    --gradient-dark: linear-gradient(135deg, #0F172A, #1E293B);        /* تدرج غامق */
    --gradient-green: linear-gradient(135deg, #10B981, #14B8A6);       /* تدرج أخضر تيركواز */
    --gradient-cyan-blue: linear-gradient(135deg, #22D3EE, #0EA5E9);   /* تدرج سماوي أزرق */
    --gradient-blue-cyan: linear-gradient(135deg, #0EA5E9, #22D3EE);   /* تدرج أزرق سماوي */
    
    /* تأثيرات الظلال المتنوعة */
    --shadow-subtle: 0 2px 10px rgba(14, 165, 233, 0.2);      /* ظل أزرق سماوي خفيف */
    --shadow-glow: 0 8px 32px rgba(249, 115, 22, 0.3);        /* ظل برتقالي */
    --shadow-strong: 0 15px 50px rgba(15, 23, 42, 0.6);       /* ظل قوي */
    
    /* ألوان متكررة موحدة متنوعة */
    --cyan-color-medium: rgba(14, 165, 233, var(--opacity-medium));
    --blue-color: rgba(14, 165, 233, var(--opacity-medium));
    --orange-color-medium: rgba(249, 115, 22, var(--opacity-medium));
    --cyan-border: rgba(14, 165, 233, var(--opacity-heavy));
    --cyan-strong: rgba(34, 211, 238, var(--opacity-strong));
    --cyan-shadow: rgba(34, 211, 238, var(--opacity-heavy));
    --dark-bg: #333;
    --darker-bg: #0a0a0a;
    --form-bg: #1e1e1e;
}

/* تحسينات الأداء */
* {
    /* تحسينات الرندرинг */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* تحسينات التمرير */
    -webkit-overflow-scrolling: touch;
    
    /* تحسينات التحويلات */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* الأنماط العامة - إعدادات أساسية لجميع العناصر */
* {
    margin: 0;                    /* إزالة الهوامش الافتراضية */
                       /* إزالة الحشو الافتراضي */
    box-sizing: border-box;       /* حساب الحجم مع الحدود والحشو */
}

/* إعدادات الصفحة الأساسية */
body {
    font-family: 'Tajawal-Local', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;  /* خط تجوال العربي مع احتياطيات محلية */
    background: linear-gradient(135deg, #0F172A 0%, #1A0F2E 25%, #0F172A 50%, #1E293B 75%, #0F172A 100%);  /* خلفية متدرجة متنوعة */
    background-size: 400% 400%;
    color: var(--text-light);           /* لون النص الفاتح */
    line-height: 1.6;                   /* ارتفاع السطر */
    overflow-x: hidden;                 /* إخفاء التمرير الأفقي */
    position: relative;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
}

/* الحاوي الرئيسي للمحتوى */
.container {
    max-width: 1300px;                  /* العرض الأقصى */
    margin: 0 auto;                     /* توسيط الحاوي */
    padding: 0 1.5rem;                  /* حشو جانبي متجاوب */
    width: 100%;                        /* عرض كامل */
}

/* ============================================
   تحسينات شاملة لجميع أحجام الشاشات
   ============================================ */

/* ضبط أساسي لجميع العناصر */
html {
    font-size: 16px; /* حجم الخط الأساسي */
    -webkit-text-size-adjust: 100%; /* منع تغيير حجم الخط تلقائياً على iOS */
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ضبط الصور والعناصر المرئية */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* منع التمرير الأفقي على جميع الأجهزة */
body, html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ضبط العناصر المرنة */
* {
    min-width: 0;
    min-height: 0;
}

/* ============================================
   شاشة التحميل - Loading Screen
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1A0F2E 25%, #0F172A 50%, #1E293B 75%, #0F172A 100%);
    background-size: 400% 400%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    position: relative;
}

.loading-logo {
    margin-bottom: 2rem;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.loading-logo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.5),
                0 0 100px rgba(249, 115, 22, 0.3);
    object-fit: contain;
    background: transparent;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse-logo {
    0%, 100% {
    }
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    transform: rotate(0deg);
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
}

.spinner-ring:nth-child(1) {
    border-top-color: #0EA5E9;
    border-width: 4px;
}

.spinner-ring:nth-child(2) {
    border-top-color: #10B981;
    border-width: 3px;
}

.spinner-ring:nth-child(3) {
    border-top-color: #F97316;
    border-width: 2px;
}

@keyframes spin {
    0%, 100% {
    }
}

@keyframes rotateSpinner {
    0%, 100% {
    }
}

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0EA5E9, #10B981, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

@keyframes gradient-text {
    0%, 100% {
    }
}

.loading-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.loading-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(45deg, #0EA5E9, #F97316);
    opacity: 0.6;
}

.loading-particles .particle:nth-child(1) {
    left: 10%;
    top: 20%;
    background: linear-gradient(45deg, #0EA5E9, #22D3EE);
}

.loading-particles .particle:nth-child(2) {
    left: 80%;
    top: 40%;
    background: linear-gradient(45deg, #10B981, #14B8A6);
}

.loading-particles .particle:nth-child(3) {
    left: 30%;
    top: 70%;
    background: linear-gradient(45deg, #F97316, #FB923C);
}

.loading-particles .particle:nth-child(4) {
    left: 70%;
    top: 80%;
    background: linear-gradient(45deg, #0EA5E9, #10B981);
}

.loading-particles .particle:nth-child(5) {
    left: 50%;
    top: 10%;
    background: linear-gradient(45deg, #22D3EE, #F97316);
}

@keyframes float-particle {
    0%, 100% {
    }
}

@keyframes logoPulse {
    0%, 100% {
    }
}

@keyframes fadeInScale {
    0%, 100% {
    }
}

@keyframes fadeIn {
    from, to {
    }
}

@media (max-width: 768px) {
    .loading-logo img {
        width: 120px;
        height: 120px;
    }
    
    .loading-text {
        font-size: 1.5rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    /* Show video background on mobile with optimized settings */
    .global-video-bg {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
    }
    
    .global-video-bg video {
        display: block !important;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 0;
    }
    
    .fallback-bg {
        opacity: 0;
        display: none;
    }
    
    /* تحسينات الأداء على الأجهزة المحمولة */
    .service-card, .gallery-item, .stat-item {
    }
    
    .btn, .nav-links a, .filter-btn {
    }
}

/* ============================================
   شريط التنقل - محسن لجميع الأجهزة
   NAVIGATION BAR - Optimized for All Devices
   ============================================ */

/* Base Navbar Styles - الأنماط الأساسية */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 5, 25, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(14, 165, 233, 0.15);
    z-index: 1000;
    
}

.navbar.scrolled {
    background: rgba(10, 5, 25, 0.98);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5),
                0 0 50px rgba(14, 165, 233, 0.25);
    
}

/* Nav Content Container - حاوية المحتوى */
.nav-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    
    min-height: 60px;
    gap: 2rem;
}

.navbar.scrolled .nav-content {
    min-height: 55px;
}

/* Logo Styles - أنماط الشعار */
.logo {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    max-width: 100%;
}

.logo-image {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    object-fit: cover !important;
    object-position: center !important;
    flex-shrink: 0 !important;
    display: block !important;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-image {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
    object-fit: cover !important;
    object-position: center !important;
}

.logo-image:hover {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.navbar.scrolled .logo h2 {
    font-size: 1.35rem;
}

/* Navigation Links - روابط التنقل */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    
    align-items: center;
    justify-content: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 12px;
    position: relative;
    background: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    display: inline-block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0EA5E9, #22D3EE);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: #FFFFFF;
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a:active {
    transform: translateY(0);
}

/* Nav Actions - إجراءات التنقل */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

/* Unified button styles for navbar */
.nav-btn {
    background: rgba(14, 165, 233, 0.3);
    border: 2px solid rgba(14, 165, 233, 0.5);
    color: #FFFFFF;
    
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 38px;
    min-width: 38px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--accent-color);
    box-shadow: var(--box-glow-hover);
}

.language-toggle {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 40px;
    backdrop-filter: blur(10px);
}

.language-toggle:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: rgba(14, 165, 233, 0.5);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.3);
    border: 2px solid rgba(14, 165, 233, 0.5);
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 1001;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
}

.mobile-menu-toggle:hover::before {
    left: 100%;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2.5px;
    background: var(--text-light);
    margin: 3px 0;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    background: var(--text-light);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    background: var(--text-light);
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

@keyframes pulse-glow {
    0%, 100% {
    }
}

.global-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: #000;
    min-height: 100vh;
    min-width: 100vw;
    display: block !important;
    visibility: visible !important;
}

.fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    z-index: -2;
    min-width: 100%;
    min-height: 100%;
    display: none;
}

.global-video-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1 !important;
    pointer-events: none;
    z-index: 0;
    display: block !important;
    visibility: visible !important;
}

/* إزالة عناصر الفيديو غير المستخدمة لتقليل حجم الملف */

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 2.5rem;
    background: transparent;
    border-radius: 20px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: transparent;
    backdrop-filter: blur(20px);
    border-radius: 35px;
    border: 2px solid rgba(14, 165, 233, 0.5);
    z-index: -1;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, var(--font-5xl));
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: #FFFFFF;
    position: relative;
    line-height: 1.2;
    
    word-wrap: break-word;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, #FFFFFF, #E2E8F0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from, to {
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, var(--font-xl));
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    
    word-wrap: break-word;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.hero-website {
    font-size: var(--font-lg);
    color: #FFFFFF;
    margin-bottom: var(--spacing-xl);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    
    border: 2px solid rgba(14, 165, 233, 0.5);
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(10px);
}

.hero-website:hover {
    color: var(--text-light);
    border-color: var(--accent-light);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    perspective: 1000px;
}

/* Button styles - Modern Redesign */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 20px;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-height: 52px;
    width: 100%;
    max-width: 300px;
}

.btn i {
    font-size: 1.3rem;
}

.btn:hover i {
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #10B981, #0EA5E9);
    opacity: 0;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 15px 45px rgba(14, 165, 233, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(14, 165, 233, 0.1);
    color: var(--text-light);
    border: 2.5px solid var(--primary-color);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: #FFFFFF;
    border-color: var(--accent-light);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.3);
}

/* ============================
   SERVICES SECTION
   ============================ */
.services {
    
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

/* SEO content section */
.seo-content {
    
    background: transparent;
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.seo-content-item {
    background: transparent;
    padding: 2rem 1.75rem;
    border-radius: 20px;
    border: 2px solid rgba(14, 165, 233, 0.3);
    backdrop-filter: blur(15px);
    min-height: 200px;
}

.seo-content-item:hover {
    background: transparent;
    border-color: var(--accent-color);
    box-shadow: var(--box-glow-hover);
}

.seo-content-item h3 {
    color: #FFFFFF;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.seo-content-item p {
    color: #FFFFFF;
    line-height: 1.8;
    font-size: 1rem;
}

.seo-content-item strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN - جميع أحجام الأجهزة
   ============================================ */

/* Mobile Extra Small: 320px - 374px */
@media (max-width: 374px) {
    :root {
        --font-base: 0.875rem;
        --font-lg: 1rem;
        --font-xl: 1.125rem;
        --font-2xl: 1.25rem;
        --font-3xl: 1.5rem;
        --font-4xl: 1.875rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
        padding: 0 0.5rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
        min-width: auto;
        min-height: 44px;
    }
    
    .logo h2 {
        font-size: 1.125rem !important;
    }
    
    .services-grid,
    .gallery-grid,
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        min-height: 320px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
        max-width: 70px;
        max-height: 70px;
        font-size: 2rem;
        border-radius: 18px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .logo-image {
        width: 40px !important;
        height: 40px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Small: 375px - 480px */
@media (min-width: 375px) and (max-width: 480px) {
    :root {
        --font-base: 0.9375rem;
        --font-lg: 1.0625rem;
        --font-xl: 1.1875rem;
        --font-2xl: 1.375rem;
        --font-3xl: 1.625rem;
        --font-4xl: 2rem;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        padding: 0 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem !important;
        padding: 0 0.75rem;
    }
    
    .btn {
        padding: 13px 24px;
        min-height: 48px;
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 1.75rem 1.25rem;
        min-height: 340px;
    }
    
    .service-icon {
        width: 85px;
        height: 85px;
        min-width: 85px;
        min-height: 85px;
        max-width: 85px;
        max-height: 85px;
        font-size: 2.5rem;
        border-radius: 22px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .logo-image {
        width: 45px !important;
        height: 45px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }
    
    .gallery-item {
        min-height: 240px;
    }
    
    .gallery-item img {
        height: 240px;
    }
    
    .logo h2 {
        font-size: 1.25rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile Medium - Tablets Small: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --font-base: 1rem;
        --font-lg: 1.125rem;
        --font-xl: 1.25rem;
        --font-2xl: 1.5rem;
        --font-3xl: 1.875rem;
        --font-4xl: 2.25rem;
    }
    
    .container {
        max-width: 95%;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
    
    .btn {
        padding: 14px 26px;
        min-height: 50px;
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.85rem 1.5rem;
        min-height: 360px;
    }
    
    .service-icon {
        width: 95px;
        height: 95px;
        min-width: 95px;
        min-height: 95px;
        max-width: 95px;
        max-height: 95px;
        font-size: 3rem;
        border-radius: 24px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .logo-image {
        width: 48px !important;
        height: 48px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .gallery-item {
        min-height: 260px;
    }
    
    .gallery-item img {
        height: 260px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        
        background: rgba(14, 165, 233, 0.3);
    }
    
    /* Show video background on mobile */
    .global-video-bg video {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 0;
    }
    
    .fallback-bg {
        opacity: 0;
        display: none;
    }
    
    .nav-content {
        padding: 0 1rem;
        height: 65px;
    }
    
    .navbar.scrolled .nav-content {
        height: 60px;
    }
    
    .logo h2 {
        font-size: 1.4rem;
        filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.8));
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1.25rem;
    }
    
    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(25px);
        flex-direction: column;
        
        gap: 0.75rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5);
        z-index: 999;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.05rem;
        border-radius: 12px;
        background: rgba(14, 165, 233, 0.15);
        border: 1px solid rgba(14, 165, 233, 0.4);
        position: relative;
        overflow: hidden;
        min-height: 48px;
    }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
    }
    
    .nav-links a:active::before {
        left: 100%;
    }
    
    .nav-links a:active {
        background: var(--gradient-primary);
        border-color: var(--accent-color);
        box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .language-toggle {
        padding: 10px 18px;
        font-size: 0.9rem;
        border-radius: 30px;
        min-height: 50px;
        border: 2px solid rgba(14, 165, 233, 0.5);
        background: rgba(14, 165, 233, 0.3);
    }
    
    .language-toggle:active {
        background: transparent;
        box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle:active {
        background: rgba(14, 165, 233, 0.3);
    }
    
    .mobile-menu-toggle.active {
        background: var(--gradient-primary);
        border-color: var(--accent-color);
        box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    }
    
    /* Improved mobile menu spacing */
    .nav-links {
        padding: 1rem;
    }
    
    .nav-links a {
        padding: 14px 22px;
        font-size: 1.1rem;
        border-radius: 15px;
    }
    
    .seo-content {
        padding: 2rem 1rem;
    }
    
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seo-content-item {
        padding: 1.5rem 1.25rem;
        min-height: 180px;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        padding: 13px 24px;
        min-height: 48px;
        max-width: 100%;
    }
    
    .service-card {
        padding: 1.75rem 1.25rem;
        min-height: 350px;
    }
    
    .gallery-item {
        min-height: 250px;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .seo-content-item h3 {
        font-size: 1.2rem;
    }
    
    /* Improved mobile touch targets */
    .mobile-menu-toggle {
        min-height: 48px;
        min-width: 48px;
        
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 3px;
        margin: 4px 0;
    }
    
    .language-toggle {
        min-height: 48px;
        
    }
}

/* Section title styling */
.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, var(--font-4xl));
    margin-bottom: var(--spacing-2xl);
    color: #FFFFFF;
    position: relative;
    line-height: 1.3;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
    
    word-wrap: break-word;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

@keyframes expandWidth {
    from, to {
    }
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 3vw, var(--spacing-xl));
    margin-top: var(--spacing-2xl);
    
}

.service-card {
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    will-change: transform;
    min-height: 380px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.6), var(--box-glow-hover);
    background: transparent;
}

.service-card:hover::before {
    opacity: 0;
}

.service-icon {
    font-size: 3.5rem;
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    max-width: 110px;
    max-height: 110px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 28px;
    color: #FFFFFF;
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4), 
                0 0 25px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    object-fit: contain;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
}

.service-icon i {
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.5), 
                0 0 40px rgba(249, 115, 22, 0.4);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-card h3 {
    font-size: var(--font-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    line-height: 1.4;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: var(--font-md);
}

.service-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    text-shadow: var(--text-glow-accent);
}

.service-link:hover {
    color: #FFFFFF;
    text-shadow: var(--text-glow-primary);
}

/* ============================
   GALLERY SECTION
   ============================ */
.gallery {
    
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

/* Gallery filtering */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(14, 165, 233, 0.1);
    border: 2px solid rgba(14, 165, 233, 0.4);
    color: var(--text-light);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn.active::before,
.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--accent-light);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4), 
                0 0 20px rgba(16, 185, 129, 0.3);
}

.filter-btn.active {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(0.75rem, 2vw, var(--spacing-md));
    
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-height: 280px;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.fade-in-item {
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transform: scale(1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-light);
    
    transform: translateY(100%);
    z-index: 2;
}

.gallery-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
}

/* ============================
   ABOUT SECTION
   ============================ */
.about {
    
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(2rem, 4vw, var(--spacing-2xl));
    align-items: center;
    
}

.about-text h2 {
    text-align: right;
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    font-size: var(--font-lg);
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat-item {
    text-align: center;
    
    background: transparent;
    border-radius: var(--border-radius);
    border: 2px solid rgba(14, 165, 233, 0.3);
    min-width: 150px;
}

.stat-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--box-glow-hover);
}

.stat-item h3 {
    font-size: var(--font-3xl);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

.stat-item p {
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    font-size: var(--font-base);
}

.about-video img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-glow);
    margin: 0 auto;
    display: block;
}

/* ============================
   CONTACT SECTION
   ============================ */
.contact {
    
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.5rem, 3vw, var(--spacing-2xl));
    margin-top: var(--spacing-xl);
    align-items: stretch;
    
}

.contact-info,
.contact-form {
    position: relative;
    
    border-radius: var(--border-radius);
    border: 1px solid rgba(14, 165, 233, 0.25);
    background: transparent;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 45px rgba(8, 4, 25, 0.45);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    overflow: hidden;
}

.contact-info::before,
.contact-form::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.contact-info:hover,
.contact-form:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 35px 60px rgba(21, 12, 50, 0.55);
}

.contact-info-header h3,
.contact-form h3 {
    font-size: var(--font-3xl);
    margin: 0;
    color: #FFFFFF;
}

.contact-info-header p,
.contact-form p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--font-base);
    line-height: 1.8;
    margin: 0;
}

.contact-items {
    display: grid;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    
    border-radius: var(--border-radius-small);
    background: rgba(17, 10, 32, 0.5);
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.contact-item:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(28, 17, 58, 0.8);
    box-shadow: 0 12px 25px rgba(15, 6, 32, 0.4);
}

.contact-item i {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    flex-shrink: 0;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.6), 
                0 0 20px rgba(16, 185, 129, 0.4);
}

.contact-item h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #FFFFFF;
}

.contact-item p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.contact-note {
    margin-top: auto;
    
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(14, 165, 233, 0.25);
    background: rgba(18, 10, 36, 0.6);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.contact-actions .btn {
    flex: 1 1 150px;
    justify-content: center;
    min-height: 40px;
    font-size: 0.9rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    
    position: relative;
    overflow: hidden;
}

.contact-actions .btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-actions .btn span {
    font-weight: 500;
}

.contact-actions .btn:hover i {
    transform: scale(1.1);
}

.contact-actions .btn:hover span {
    transform: translateX(2px);
}

.contact-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.contact-actions .btn:hover::before {
    left: 100%;
}

.contact-benefits {
    list-style: none;
    margin: var(--spacing-sm) 0 0;
    
    display: grid;
    gap: 0.75rem;
}

.contact-benefits li {
    position: relative;
    
    border-radius: var(--border-radius-small);
    background: rgba(18, 10, 36, 0.55);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.6;
}

.contact-benefits li::before {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0014;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.contact-benefits li:hover {
    transform: translateX(-4px);
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(28, 17, 58, 0.85);
}

.contact-hours {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-align: center;
    
}

@media (max-width: 992px) {
    .contact-info,
    .contact-form {
        
    }
}

@media (max-width: 768px) {
    .contact-info,
    .contact-form {
        
    }
    .contact-actions {
        flex-direction: column;
    }
    .contact-actions .btn {
        width: 100%;
        
        gap: 0.4rem;
        min-height: 36px;
        font-size: 0.85rem;
    }
    .contact-actions .btn i {
        font-size: 0.9rem;
    }
    .contact-actions .btn span {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-benefits li {
        
    }
    .contact-note,
    .contact-hours {
        font-size: 0.9rem;
    }
    .contact-actions .btn {
        
        gap: 0.3rem;
        min-height: 32px;
        font-size: 0.8rem;
    }
    .contact-actions .btn i {
        font-size: 0.8rem;
    }
    .contact-actions .btn span {
        font-size: 0.9rem;
    }
}

/* تم إزالة العائق الدوراني من خلف نموذج الاتصال */

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    
    background: transparent;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--border-radius-small);
    color: var(--text-light);
    font-family: 'Tajawal-Local', 'Tajawal', 'Segoe UI', sans-serif;
    font-size: 1rem;
    box-shadow: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
    background: transparent;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ============================
   FOOTER SECTION
   ============================ */
.footer {
    background: transparent;
    color: var(--text-light);
    text-align: center;
    
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 50px rgba(14, 165, 233, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    
}

.footer-section {
    
    background: transparent;
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 2px solid rgba(14, 165, 233, 0.3);
}

.footer-section:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--box-glow-hover);
}

.footer-section h3,
.footer-section h4 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.footer-section p,
.footer-section li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-section a:hover {
    color: #FFFFFF;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.footer-bottom {
    text-align: center;
    
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .services-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: var(--font-5xl);
        padding: 0 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.75rem;
        min-height: 380px;
    }
    
    .service-icon {
        width: 105px;
        height: 105px;
        font-size: 3.25rem;
    }
    
    .gallery-item {
        min-height: 280px;
    }
    
    .gallery-item img {
        height: 280px;
    }
    
    .btn {
        padding: 14px 28px;
        min-height: 52px;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: 1.9rem 1.6rem;
        min-height: 370px;
    }
    
    .service-icon {
        width: 100px;
        height: 100px;
        font-size: 3.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .gallery-item {
        min-height: 270px;
    }
    
    .gallery-item img {
        height: 270px;
    }
    
    .about-content,
    .contact-content {
        gap: var(--spacing-xl);
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: var(--font-4xl);
        padding: 0 1.25rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-lg);
        padding: 0 1.25rem;
    }
    
    .btn {
        padding: 14px 27px;
        min-height: 51px;
    }
    
    .hero-content {
        padding: 2.25rem 2rem;
    }
    
    .seo-content-item {
        padding: 1.9rem 1.6rem;
        min-height: 190px;
    }
}

/* ============================
   MOBILE NAVIGATION & OPTIMIZATIONS
   ============================ */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        
        border-radius: 25px;
        background: rgba(14, 165, 233, 0.3);
        border: 2px solid rgba(14, 165, 233, 0.5);
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(10px);
    }

    .mobile-menu-toggle:hover {
        background: var(--gradient-primary);
        border-color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: var(--box-glow-hover);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #0a0a0a;
        width: 100%;
        text-align: center;
        
        box-shadow: var(--shadow-strong);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: var(--spacing-md) 0;
        transform: translateY(20px);
        opacity: 0;
        animation: slideInMobile 0.3s ease forwards;
    }

    .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links li:nth-child(4) { animation-delay: 0.4s; }

    .nav-links a {
        padding: 12px 20px;
        border-radius: var(--border-radius);
        display: block;
        margin: 0 var(--spacing-md);
        min-height: 48px;
    }

    .nav-links a:hover {
        background: var(--gradient-accent);
        transform: scale(1.05);
        box-shadow: var(--box-glow-primary);
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: var(--font-3xl);
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: var(--font-lg);
        margin-bottom: var(--spacing-lg);
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-xl);
        width: 100%;
        
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 26px;
        font-size: 1.05rem;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        letter-spacing: 0.5px;
        font-weight: 600;
    }
    
    .hero-buttons .btn:active {
        transform: translateY(0) scale(0.98);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .stats {
        justify-content: center;
        gap: var(--spacing-md);
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 120px;
        
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .section-title {
        font-size: var(--font-3xl);
        margin-bottom: var(--spacing-xl);
        text-align: center;
    }

    .service-card {
        padding: 1.75rem 1.25rem;
        min-height: 350px;
        text-align: center;
        border: 1px solid rgba(14, 165, 233, 0.4);
    }
    
    .service-icon {
        width: 90px;
        height: 90px;
        font-size: 2.75rem;
    }
    
    .gallery-item {
        min-height: 250px;
    }
    
    .gallery-item img {
        height: 250px;
    }

    .service-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent-color);
        box-shadow: var(--box-glow-primary);
    }

    .gallery-filter {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    margin-bottom: 0;
}

    .filter-btn {
        padding: 11px 22px;
        font-size: var(--font-sm);
        min-width: 80px;
        min-height: 42px;
        border-radius: var(--border-radius-large);
    }

    /* Contact form improvements */
    .contact-form input,
    .contact-form textarea {
        
        font-size: var(--font-base);
        min-height: 50px;
        border-radius: var(--border-radius);
    }

    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }
}

/* Mobile optimizations for very small screens */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: var(--font-2xl);
    }

    .section-title {
        font-size: var(--font-2xl);
    }

    .container {
        padding: 0 1.25rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        min-height: 330px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2.25rem;
    }
    
    .gallery-item {
        min-height: 240px;
    }
    
    .gallery-item img {
        height: 240px;
    }
    
    .cta-button {
        padding: 12px 22px;
        font-size: var(--font-base);
        min-height: 46px;
    }
    
    .btn {
        padding: 12px 22px;
        min-height: 46px;
    }

    .hero-subtitle {
        font-size: var(--font-sm);
    }

    /* Stats layout for very small screens */
    .stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .hero-buttons .cta-button {
        width: 100%;
        text-align: center;
    }

    .gallery-filter {
        gap: var(--spacing-xs);
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: var(--font-xs);
        min-height: 40px;
    }
    
    /* Improved mobile spacing */
    .hero-content {
        padding: 1.75rem 1.25rem;
    }
    
    .hero-title {
        padding: 0 0.75rem;
    }
    
    .section-title {
        padding: 0 1rem;
    margin-bottom: 0;
}
    
    .services-grid,
    .gallery-grid {
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        min-height: 320px;
    }
    
    .gallery-item {
        min-height: 230px;
    }
    
    .gallery-item img {
        height: 230px;
    }
}

/* Tablet: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --font-base: 1rem;
        --font-lg: 1.125rem;
        --font-xl: 1.375rem;
        --font-2xl: 1.625rem;
        --font-3xl: 2.125rem;
        --font-4xl: 2.75rem;
    }
    
    .container {
        max-width: 90%;
        
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop Small: 1025px - 1199px */
@media screen and (min-width: 1025px) and (max-width: 1199px) {
    :root {
        --font-base: 1.0625rem;
        --font-lg: 1.1875rem;
        --font-xl: 1.4375rem;
        --font-2xl: 1.75rem;
        --font-3xl: 2.375rem;
        --font-4xl: 3rem;
    }
    
    .container {
        max-width: 960px;
        
    }

    .hero-title {
        font-size: 3rem !important;
    }

    .hero-subtitle {
        font-size: 1.1875rem !important;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }

    .nav-links {
        gap: var(--spacing-md);
    }

    /* Touch-friendly navigation */
    .nav-links a {
        
        font-size: var(--font-base);
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        background: transparent;
        backdrop-filter: none;
        width: auto;
        text-align: left;
        
        border: none;
        box-shadow: none;
    }

    .nav-links li {
        margin: 0;
        transform: none;
        opacity: 1;
        animation: none;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .seo-content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media screen and (max-width: 320px) {
    .hero-title {
        font-size: var(--font-xl);
        line-height: 1.2;
        margin-bottom: var(--spacing-sm);
    }

    .section-title {
        font-size: var(--font-xl);
        margin-bottom: var(--spacing-lg);
    }
    
    .container {
        
    }

    .service-card {
        
        margin-bottom: var(--spacing-sm);
        text-align: center;
    }

    .hero-subtitle {
        font-size: var(--font-sm);
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
    }

    .hero-buttons .btn,
    .cta-button {
        
        font-size: var(--font-base);
        min-height: 48px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto var(--spacing-sm);
        display: block;
    }

    /* Enhanced mobile navigation for very small screens */
    .nav-links {
        top: 55px;
        
    }

    .nav-links a {
        
        font-size: var(--font-base);
        min-height: 44px;
        margin: 0 var(--spacing-xs);
    }

    /* Improved gallery for small screens */
    .gallery-filter {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }

    .filter-btn {
        
        font-size: var(--font-sm);
        min-width: 100px;
        min-height: 40px;
    }

    .contact-form input,
    .contact-form textarea {
        
        font-size: var(--font-base);
        border-width: 2px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .stat-item {
        
        min-width: auto;
    }

    .stat-item h3 {
        font-size: var(--font-2xl);
    }

    .stat-item p {
        font-size: var(--font-sm);
    }

    /* Float buttons adjustment */
    .float-buttons-container {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        gap: var(--spacing-xs);
    }

    .whatsapp-widget {
        width: 50px;
        height: 50px;
        font-size: var(--font-lg);
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes for gallery filtering */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInMobile {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Desktop optimizations for large screens */
/* Desktop Medium: 1200px - 1439px */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
    .global-video-bg {
        width: 100vw;
        height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    :root {
        --font-base: 1.125rem;
        --font-lg: 1.25rem;
        --font-xl: 1.5rem;
        --font-2xl: 1.875rem;
        --font-3xl: 2.5rem;
        --font-4xl: 3.25rem;
    }
    
    .container {
        max-width: 1140px;
        padding: 0 2.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem !important;
        padding: 0 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
        padding: 0 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .service-card {
        padding: 2.25rem 2rem;
        min-height: 400px;
    }
    
    .service-icon {
        width: 115px;
        height: 115px;
        font-size: 3.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .gallery-item {
        min-height: 300px;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .btn {
        padding: 15px 30px;
        min-height: 54px;
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 3rem 2.5rem;
    }
    
    .seo-content-item {
        padding: 2.25rem 2rem;
        min-height: 220px;
    }
    
    .seo-content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* Desktop Large: 1440px+ */
@media screen and (min-width: 1440px) {
    .global-video-bg {
        width: 100vw;
        height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .container {
        max-width: 1400px;
        padding: 0 3rem;
    }

    .hero {
        padding: 2rem;
    }

    .hero-title {
        font-size: 4.5rem;
        line-height: 1.1;
        margin-bottom: var(--spacing-lg);
        padding: 0 2.5rem;
    }

    .hero-subtitle {
        font-size: var(--font-xl);
        max-width: 600px;
        margin: 0 auto var(--spacing-2xl);
        padding: 0 2.5rem;
    }

    .hero-buttons {
        gap: var(--spacing-lg);
    margin-top: 0;
}

    .hero-buttons .btn {
        padding: 16px 32px;
        font-size: var(--font-lg);
        min-width: 200px;
        min-height: 56px;
    }
    
    .service-card {
        padding: 2.5rem 2.25rem;
        min-height: 420px;
    }
    
    .service-icon {
        width: 120px;
        height: 120px;
        font-size: 4rem;
    }
    
    .gallery-item {
        min-height: 320px;
    }
    
    .gallery-item img {
        height: 320px;
    }
    
    .hero-content {
        padding: 3.5rem 3rem;
    }
    
    .seo-content-item {
        padding: 2.5rem 2.25rem;
        min-height: 240px;
    }

    .hero-buttons .btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: var(--box-glow-primary);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }

    .service-card {
        
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--box-glow-primary);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }

    .gallery-item {
    }

    .gallery-item:hover {
        transform: scale(1.05);
        box-shadow: var(--box-glow-primary);
    }

    .about-content,
    .contact-content {
        gap: var(--spacing-4xl);
        align-items: center;
    }

    .stats {
        gap: var(--spacing-2xl);
        margin: var(--spacing-2xl) 0;
    }

    .stat-item {
        
        min-width: 150px;
    }

    .section-title {
        font-size: 3.5rem;
    margin-bottom: 0;
}

    .section-subtitle {
        font-size: var(--font-lg);
        max-width: 700px;
        margin: 0 auto var(--spacing-2xl);
    }

    /* Enhanced navigation for desktop */
    .nav-links {
        gap: var(--spacing-lg);
    }

    .nav-links a {
        
        border-radius: var(--border-radius-large);
        position: relative;
        overflow: hidden;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient-accent);
        z-index: -1;
    }

    .nav-links a:hover::before {
        left: 0;
    }

    .nav-links a:hover {
        transform: translateY(-2px);
        box-shadow: var(--box-glow-primary);
    }

    /* Enhanced contact form for desktop */
    .contact-form {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-form input,
    .contact-form textarea {
        
        font-size: var(--font-base);
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow);
    }
}

/* Ultra-wide screen optimizations */
/* Desktop Extra Large (2K): 1600px - 1919px */
@media screen and (min-width: 1600px) and (max-width: 1919px) {
    :root {
        --font-base: 1.25rem;
        --font-lg: 1.4375rem;
        --font-xl: 1.75rem;
        --font-2xl: 2.25rem;
        --font-3xl: 3rem;
        --font-4xl: 4.5rem;
    }
    
    .container {
        max-width: 1540px;
        
    }

    .hero-title {
        font-size: 4.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    
    .seo-content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3.5rem;
    }
    
    .section-title {
        font-size: 3.5rem !important;
    }
}

/* Desktop Ultra Wide (Full HD+): 1920px - 2559px */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    :root {
        --font-base: 1.3125rem;
        --font-lg: 1.5rem;
        --font-xl: 1.875rem;
        --font-2xl: 2.5rem;
        --font-3xl: 3.25rem;
        --font-4xl: 4.75rem;
    }
    
    .container {
        max-width: 1700px;
        
    }
    
    .hero-title {
        font-size: 5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.625rem !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3.5rem;
    }
    
    .seo-content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
    
    .section-title {
        font-size: 4rem !important;
    }
    
    .service-card {
        
    }
    
    .service-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
}

/* Desktop 4K: 2560px+ */
@media screen and (min-width: 2560px) {
    :root {
        --font-base: 1.5rem;
        --font-lg: 1.75rem;
        --font-xl: 2.25rem;
        --font-2xl: 3rem;
        --font-3xl: 4rem;
        --font-4xl: 5.5rem;
    }
    
    .container {
        max-width: 2200px;
        
    }
    
    .hero-title {
        font-size: 6rem !important;
    }
    
    .hero-subtitle {
        font-size: 2rem !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4rem;
    }
    
    .seo-content-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5rem;
    }
    
    .section-title {
        font-size: 5rem !important;
    }
    
    .service-card {
        
    }
    
    .service-icon {
        width: 140px;
        height: 140px;
        font-size: 4rem;
    }
    
    .btn {
        
        font-size: 1.625rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 5rem;
    }
}

/* ============================================
   ORIENTATION & SPECIAL DEVICES
   ============================================ */

/* Landscape Mode for Mobile - أفقي للهواتف */
@media (max-width: 926px) and (orientation: landscape) {
    .navbar {
        
    }
    
    .nav-content {
        height: 55px;
    }
    
    .logo h2 {
        font-size: 1.125rem;
    }
    
    .hero {
        min-height: auto;
        
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem !important;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.875rem !important;
    }
    
    .services-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
}

/* Portrait Mode for Tablets - عمودي للتابلت */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Foldable Devices - أجهزة قابلة للطي */
@media (min-width: 280px) and (max-width: 653px) {
    .container {
        
    }
    
    .hero-title {
        font-size: 1.625rem !important;
    }
    
    .services-grid,
    .gallery-grid,
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* High DPI Screens - شاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations - تحسينات أجهزة اللمس */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-links a,
    .service-card,
    .gallery-item,
    .filter-btn {
        -webkit-tap-highlight-color: rgba(14, 165, 233, 0.2);
        touch-action: manipulation;
    }
    
    .btn {
        min-height: 48px;
        min-width: 48px;
        
    }
    
    .nav-links a {
        min-height: 48px;
        
    }
    
    .whatsapp-float {
        min-width: 56px;
        min-height: 56px;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .gallery-item:hover,
    .btn:hover {
        transform: none;
    }
    
    /* Add active states for touch */
    .service-card:active,
    .gallery-item:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    .btn:active {
        transform: translateY(2px);
        transition: transform 0.1s;
    }
    
    /* تحسينات الأداء على الأجهزة اللمسية */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles - أنماط الطباعة */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .whatsapp-float,
    .float-buttons-container,
    .hero-buttons {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .service-card,
    .gallery-item {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ============================
   FLOAT BUTTONS
   ============================ */
.float-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    align-items: flex-end;
}

/* WhatsApp Widget - Modern Design */
.whatsapp-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-float {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 20px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4), 
                0 0 25px rgba(18, 140, 126, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: whatsappPulse 2.5s ease-in-out infinite;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #25D366, #128C7E, #25D366);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
}

.whatsapp-float:hover::before {
    opacity: 0.6;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.6), 
                0 0 40px rgba(18, 140, 126, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes whatsappPulse {
    0%, 100% {
    }
}

@keyframes pulse {
    0%, 100% {
    }
}

.whatsapp-text {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    color: white;
    
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-float:hover + .whatsapp-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* Responsive design for float buttons */
@media (max-width: 768px) {
    .float-buttons-container {
        gap: 12px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .whatsapp-text {
        bottom: 60px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .float-buttons-container {
        gap: 10px;
        bottom: 15px;
        right: 10px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .whatsapp-text {
        bottom: 55px;
        font-size: 10px;
        
    }
}

/* تحسينات الأداء على الشاشات الصغيرة */
@media (max-width: 480px) {
    .service-card, .gallery-item, .stat-item {
        transition: none;
    }
    
    .btn, .nav-links a, .filter-btn {
        transition: none;
    }
    
    .hero-content, .section-title {
        animation: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 15, 46, 0.8);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
    border: 2px solid rgba(8, 47, 73, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #0EA5E9 rgba(8, 47, 73, 0.5);
}

/* تحسينات الأداء العامة */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================
   DESIGN ENHANCEMENTS
   ============================ */

.btn, .service-card, .gallery-item, .stat-item {
    position: relative;
}

.btn::after, .service-card::after, .gallery-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.5s ease;
}

.btn:hover::after, .service-card:hover::after, .gallery-item:hover::after {
    opacity: 0.6;
}

@keyframes shimmer-effect {
    0%, 100% {
    }
}

@keyframes float-particles {
    0%, 100% {
    }
}

.hero-content, .section-title {
    position: relative;
}

.hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    animation: shimmer-effect 3s infinite;
}

h1, h2, h3, .hero-title, .section-title {
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5), 0 0 20px rgba(14, 165, 233, 0.3), 0 0 30px rgba(14, 165, 233, 0.1);
}

/* Video dark overlay for better text contrast */
.global-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 70%);
  z-index: 0;
  pointer-events: none;
}

/* Improve hero overlay readability */
.hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.6) 100%);
}

/* Gallery aspect ratio to reduce layout shifts */
.gallery-item {
  aspect-ratio: 16 / 9;
}

.gallery-item img {
  height: 100% !important;
}

/* Accessible focus-visible styles */
:focus-visible {
  outline: 2px dashed var(--accent-color);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.nav-links a:focus-visible,
.language-toggle:focus-visible,
.nav-btn:focus-visible,
.filter-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.25);
}

/* Extra interaction states */
.btn:active,
.nav-links a:active,
.language-toggle:active,
.nav-btn:active,
.filter-btn:active {
  transform: translateY(0) scale(0.98);
  filter: saturate(1.05);
}

/* Hover improvements only when device supports hover */
@media (hover: hover) {
  .btn:hover,
  .nav-links a:hover,
  .language-toggle:hover,
  .nav-btn:hover,
  .filter-btn:hover {
}
}

/* Subtle input hover feedback */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(255, 215, 0, 0.8);
  background: #1e1e1e;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Enhanced Desktop Navigation */
@media (min-width: 1024px) {
    .navbar {
        
        background: #0a0a0a;
    }
    
    .navbar.scrolled {
        
        background: #0a0a0a;
    }
    
    .nav-content {
        max-width: 1600px;
        
        height: 80px;
    }
    
    .navbar.scrolled .nav-content {
        height: 65px;
    }
    
    .logo h2 {
        font-size: 2.25rem;
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.9));
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1.75rem;
    }
    
    .nav-links {
        gap: 3rem;
    }
    
    .nav-links a {
        
        border-radius: 15px;
        font-size: 1.15rem;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        background: rgba(14, 165, 233, 0.1);
        border: 1px solid rgba(14, 165, 233, 0.4);
    }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
        transition: left 0.6s ease;
    }
    
    .nav-links a:hover::before {
        left: 100%;
    }
    
    .nav-links a:hover {
        background: var(--gradient-primary);
        transform: translateY(-4px);
        box-shadow: var(--box-glow-hover);
        border-color: var(--accent-color);
    }
    
    .nav-actions {
        gap: 2rem;
    }
    
    .language-toggle {
        
        font-size: 1.1rem;
        border-radius: 30px;
    }
}

/* Ultra-wide Desktop Navigation */
@media (min-width: 1440px) {
    .nav-content {
        max-width: 1800px;
        
        height: 85px;
    }
    
    .navbar.scrolled .nav-content {
        height: 70px;
    }
    
    .logo h2 {
        font-size: 2.5rem;
        filter: drop-shadow(0 0 25px rgba(14, 165, 233, 1));
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1.9rem;
    }
    
    .nav-links {
        gap: 3.5rem;
    }
    
    .nav-links a {
        
        font-size: 1.2rem;
        border-radius: 18px;
    }
    
    .nav-actions {
        gap: 2.5rem;
    }
    
    .language-toggle {
        
        font-size: 1.15rem;
        border-radius: 35px;
    }
}

@keyframes slideDown {
    from, to {
    }
}

@keyframes logoPulse {
    0%, 100% {
    }
}

@keyframes navLinkBounce {
    0%, 100% {
    }
}

@keyframes languageToggleShake {
    0%, 100% {
    }
}

@keyframes navbarShrink {
    from, to {
    }
}

@media (min-width: 1024px) {
    .navbar {
        animation: slideDown 0.8s ease-out;
    }
    
    .navbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(68, 68, 68, 0) 0%, rgba(25, 25, 25, 0.8) 100%);
    }
    
    .logo h2 {
        animation: logoPulse 3s ease-in-out infinite;
    }
    
    .nav-links a {
    }
    
    .nav-links a:hover {
        animation: navLinkBounce 0.6s ease-out;
    }
    
    .language-toggle {
    }
    
    .language-toggle:hover {
        animation: languageToggleShake 0.5s ease-in-out;
    }
    
    .navbar.scrolled {
        animation: navbarShrink 0.3s ease-out;
    }

.gallery-modal {
    background: #000 !important;
}

.gallery-modal .modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.gallery-modal .close-modal {
    background: #333;
    width: 42px;
    height: 42px;
    line-height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   NAVBAR RESPONSIVE OPTIMIZATION
   تحسين شريط التنقل لجميع الأحجام
   ============================================ */

/* Mobile Extra Small: 320px - 374px */
@media (max-width: 374px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 50px;
        gap: 0.5rem;
    }
    
    .logo-image {
        width: 35px !important;
        height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }
    
    .navbar.scrolled .logo-image {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }
    
    .logo h2 {
        font-size: 1rem !important;
        letter-spacing: 0.2px;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 0.9rem !important;
    }
    
    .language-toggle {
        
        font-size: 0.75rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .language-toggle .lang-text {
        display: none;
    }
    
    .language-toggle i {
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        
        min-width: 40px;
        min-height: 40px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
}

/* Mobile Small: 375px - 480px */
@media (min-width: 375px) and (max-width: 480px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 55px;
        gap: 0.75rem;
    }
    
    .logo-image {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .navbar.scrolled .logo-image {
        width: 35px !important;
        height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }
    
    .logo h2 {
        font-size: 1.125rem !important;
        letter-spacing: 0.3px;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1rem !important;
    }
    
    .language-toggle {
        
        font-size: 0.875rem;
        min-width: 45px;
        min-height: 45px;
    }
    
    .mobile-menu-toggle {
        
        min-width: 45px;
        min-height: 45px;
    }
}

/* Mobile Medium: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 60px;
        gap: 1rem;
    }
    
    .logo-image {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }
    
    .navbar.scrolled .logo-image {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }
    
    .logo h2 {
        font-size: 1.25rem !important;
        letter-spacing: 0.4px;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1.125rem !important;
    }
    
    .language-toggle {
        
        font-size: 0.9375rem;
        min-width: 48px;
        min-height: 48px;
    }
    
    .mobile-menu-toggle {
        
        min-width: 48px;
        min-height: 48px;
    }
    
    .nav-links a {
        font-size: 1.0625rem;
        
    }
}

/* Tablet Portrait: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 65px;
        gap: 1.5rem;
    }
    
    .logo h2 {
        font-size: 1.5rem !important;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1.35rem !important;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.9375rem;
        
    }
    
    .language-toggle {
        
        font-size: 1rem;
    }
}

/* Desktop Small: 1025px - 1199px */
@media (min-width: 1025px) and (max-width: 1199px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 70px;
        gap: 2rem;
    }
    
    .logo h2 {
        font-size: 1.625rem !important;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1.5rem !important;
    }
    
    .navbar.scrolled {
        
    }
    
    .navbar.scrolled .nav-content {
        min-height: 65px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 1rem;
        
    }
    
    .language-toggle {
        
        font-size: 1.0625rem;
    }
}

/* Desktop Medium: 1200px - 1439px */
@media (min-width: 1200px) and (max-width: 1439px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 75px;
        gap: 2.5rem;
    }
    
    .logo h2 {
        font-size: 1.875rem !important;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1.625rem !important;
    }
    
    .navbar.scrolled {
        
    }
    
    .navbar.scrolled .nav-content {
        min-height: 68px;
    }
    
    .nav-links {
        gap: 1.25rem;
    }
    
    .nav-links a {
        font-size: 1.0625rem;
        
    }
    
    .language-toggle {
        
        font-size: 1.125rem;
    }
}

/* Desktop Large: 1440px - 1599px */
@media (min-width: 1440px) and (max-width: 1599px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 80px;
        gap: 3rem;
    }
    
    .logo h2 {
        font-size: 2rem !important;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1.75rem !important;
    }
    
    .navbar.scrolled {
        
    }
    
    .navbar.scrolled .nav-content {
        min-height: 72px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1.125rem;
        
    }
    
    .language-toggle {
        
        font-size: 1.1875rem;
    }
}

/* Desktop 2K: 1600px - 1919px */
@media (min-width: 1600px) and (max-width: 1919px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 85px;
        gap: 3.5rem;
    }
    
    .logo h2 {
        font-size: 2.25rem !important;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 1.875rem !important;
    }
    
    .navbar.scrolled {
        
    }
    
    .navbar.scrolled .nav-content {
        min-height: 75px;
    }
    
    .nav-links {
        gap: 1.75rem;
    }
    
    .nav-links a {
        font-size: 1.1875rem;
        
    }
    
    .language-toggle {
        
        font-size: 1.25rem;
    }
}

/* Desktop Full HD+: 1920px - 2559px */
@media (min-width: 1920px) and (max-width: 2559px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 90px;
        gap: 4rem;
    }
    
    .logo h2 {
        font-size: 2.5rem !important;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 2.125rem !important;
    }
    
    .navbar.scrolled {
        
    }
    
    .navbar.scrolled .nav-content {
        min-height: 80px;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .nav-links a {
        font-size: 1.3125rem;
        
    }
    
    .language-toggle {
        
        font-size: 1.375rem;
    }
}

/* Desktop 4K: 2560px+ */
@media (min-width: 2560px) {
    .navbar {
        
    }
    
    .nav-content {
        
        min-height: 100px;
        gap: 5rem;
        max-width: 2200px;
    }
    
    .logo h2 {
        font-size: 3rem !important;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 2.5rem !important;
    }
    
    .navbar.scrolled {
        
    }
    
    .navbar.scrolled .nav-content {
        min-height: 90px;
    }
    
    .nav-links {
        gap: 2.5rem;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        
        border-radius: 15px;
    }
    
    .language-toggle {
        
        font-size: 1.5rem;
    }
}

/* Landscape Mobile Navbar - أفقي للهواتف */
@media (max-width: 926px) and (orientation: landscape) {
    .navbar {
        
    }
    
    .nav-content {
        min-height: 50px;
        gap: 1rem;
    }
    
    .logo h2 {
        font-size: 1rem !important;
    }
    
    .navbar.scrolled .logo h2 {
        font-size: 0.9375rem !important;
    }
    
    .language-toggle {
        
        font-size: 0.875rem;
    }
    
    .mobile-menu-toggle {
        
    }
    
    .nav-links {
        top: 50px;
        max-height: calc(100vh - 50px);
    }
}

/* Touch Device Navbar Optimization */
@media (hover: none) and (pointer: coarse) {
    .nav-links a {
        min-height: 48px;
        min-width: 48px;
        
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .language-toggle {
        min-height: 48px;
        min-width: 48px;
    }
    
    .mobile-menu-toggle {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* إزالة تأثيرات hover على الأجهزة اللمسية */
    .nav-links a:hover {
        transform: none;
    }
    
    /* إضافة تأثيرات active للمس */
    .nav-links a:active {
        background: rgba(14, 165, 233, 0.3);
        transform: scale(0.98);
        transition: all 0.1s;
    }
    
    .language-toggle:active {
        transform: scale(0.95);
        transition: all 0.1s;
    }
}

/* High DPI Screens - شاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo h2 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    .nav-links a {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* End of stylesheet - شركة ألعاب نارية */

/* Additional Global Responsive Utilities */

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal overflow */
* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Responsive text wrapping */
h1, h2, h3, h4, h5, h6, p, a, span, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure content doesn't overflow */
.hero-content,
.service-card,
.gallery-item,
.contact-info,
.contact-form,
.footer-section {
    max-width: 100%;
    overflow: hidden;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    a, button, .btn, .filter-btn, .nav-links a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve spacing on mobile */
    .hero {
        
    }
    
    .services,
    .gallery,
    .about,
    .contact {
        
    }
    
    /* Better video display on mobile */
    .global-video-bg {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
        z-index: 0;
    }
    
    /* Ensure logo is visible */
    .logo-image {
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    /* Better modal on mobile */
    .gallery-modal .modal-content {
        max-width: 95%;
        
    }
    
    .gallery-modal img {
        max-height: 70vh;
        width: 100%;
        object-fit: contain;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .hero-buttons {
        
    }
    
    .btn {
        font-size: 0.9rem;
        
    }
    
    .service-card {
        
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .contact-info,
    .contact-form {
        
    }
}

/* Landscape orientation improvements */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .navbar {
        
    }
}

/* Print styles */
@media print {
    .navbar,
    .whatsapp-widget,
    .mobile-menu-toggle,
    .loading-screen,
    .global-video-bg {
        display: none !important;
    }
    
    body {
        background: transparent;
        color: black;
    }
    
    .hero,
    .services,
    .gallery,
    .about,
    .contact {
        page-break-inside: avoid;
    }
}

/* Extra small devices - 320px and below */
@media screen and (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        
    }
    
    .gallery-item {
        
    }
    
    .btn {
        
        font-size: 0.875rem;
    }
    
    .nav-links a {
        
        font-size: 0.95rem;
    }
    
    .logo h2 {
        font-size: 1.1rem;
    }
    
    /* Improved small screen spacing */
    .container {
        
    }
    
    .hero-content {
        
    }
    
    .services-grid,
    .gallery-grid {
        gap: 0.75rem;
    }
    
    /* Video optimization for extra small screens */
    .global-video-bg {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
        z-index: 0;
    }
}

/* ============================================
   VIDEO BACKGROUND RESPONSIVE OPTIMIZATIONS
   تحسينات الفيديو لجميع أحجام الشاشات
   ============================================ */

/* Small devices: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .global-video-bg {
        width: 100vw;
        height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Tablets: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .global-video-bg {
        width: 100vw;
        height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Large tablets and small desktops: 1025px - 1199px */
@media (min-width: 1025px) and (max-width: 1199px) {
    .global-video-bg {
        width: 100vw;
        height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Ultra wide screens: 2560px+ */
@media screen and (min-width: 2560px) {
    .global-video-bg {
        width: 100vw;
        height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .global-video-bg {
        width: 100vw;
        height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Portrait orientation for tablets */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .global-video-bg {
        width: 100vw;
        height: 100vh;
    }
    
    .global-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* ============================================
   تحسينات شاملة لضبط أحجام الشاشات
   ============================================ */

/* ضبط الحاوي لجميع الأجهزة */
@media (max-width: 320px) {
    .container {
        max-width: 100%;
        padding: 0 0.75rem;
    }
    
    html {
        font-size: 14px;
    }
}

@media (min-width: 321px) and (max-width: 374px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    html {
        font-size: 15px;
    }
}

@media (min-width: 375px) and (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 1.25rem;
    }
    
    html {
        font-size: 15px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    html {
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 2rem;
    }
    
    html {
        font-size: 16px;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .container {
        max-width: 1140px;
        padding: 0 2rem;
    }
    
    html {
        font-size: 16px;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 2.5rem;
    }
    
    html {
        font-size: 17px;
    }
}

@media (min-width: 1440px) and (max-width: 1599px) {
    .container {
        max-width: 1400px;
        padding: 0 3rem;
    }
    
    html {
        font-size: 18px;
    }
}

@media (min-width: 1600px) and (max-width: 1919px) {
    .container {
        max-width: 1600px;
        padding: 0 3.5rem;
    }
    
    html {
        font-size: 18px;
    }
}

@media (min-width: 1920px) and (max-width: 2559px) {
    .container {
        max-width: 1800px;
        padding: 0 4rem;
    }
    
    html {
        font-size: 19px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 2400px;
        padding: 0 5rem;
    }
    
    html {
        font-size: 20px;
    }
}

/* ضبط العناصر المرئية لجميع الأجهزة */
@media (max-width: 768px) {
    img, video, iframe {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .global-video-bg,
    .global-video-bg video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }
}

/* ضبط العناصر المرنة */
@media (max-width: 480px) {
    .services-grid,
    .gallery-grid,
    .seo-content-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
}

/* ضبط الشاشات الكبيرة جداً */
@media (min-width: 1920px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ضبط الشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.8125rem !important;
    }
    
    .section-title {
        font-size: 1.25rem !important;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
        min-height: 44px;
    }
}

/* ضبط الشاشات المتوسطة */
@media (min-width: 481px) and (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* ضبط الشاشات الكبيرة */
@media (min-width: 1440px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* ضبط الشاشات العملاقة */
@media (min-width: 2560px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2.5rem;
    }
}

/* منع التمرير الأفقي على جميع الأجهزة */
@media (max-width: 100vw) {
    * {
        max-width: 100vw;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

/* ضبط العناصر العائمة */
@media (max-width: 768px) {
    .float-buttons-container {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .float-buttons-container {
        bottom: 10px;
        right: 10px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
}

/* ============================================
   تحسينات شاملة لأيقونات الصور
   ============================================ */

/* ضبط جميع الصور والأيقونات */
img, .logo-image, .service-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: auto;
}

/* تحسين جودة الأيقونات على الشاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image,
    .service-icon,
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ضبط أيقونات الخدمات لجميع الأجهزة */
@media (max-width: 360px) {
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        font-size: 1.75rem !important;
    }
    
    .service-icon i {
        font-size: 1.75rem !important;
    }
}

/* ضبط صور اللوجو لجميع الأجهزة */
@media (max-width: 360px) {
    .logo-image {
        width: 35px !important;
        height: 35px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }
    
    .navbar.scrolled .logo-image {
        width: 32px !important;
        height: 32px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
}

/* ضبط أيقونات الخدمات للشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
    .service-icon {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
        max-width: 100px;
        max-height: 100px;
        font-size: 3.25rem;
    }
}

/* ضبط أيقونات الخدمات للشاشات الكبيرة */
@media (min-width: 1025px) and (max-width: 1199px) {
    .service-icon {
        width: 105px;
        height: 105px;
        min-width: 105px;
        min-height: 105px;
        max-width: 105px;
        max-height: 105px;
        font-size: 3.5rem;
    }
}

/* ضبط أيقونات الخدمات للشاشات الكبيرة جداً */
@media (min-width: 1200px) {
    .service-icon {
        width: 110px;
        height: 110px;
        min-width: 110px;
        min-height: 110px;
        max-width: 110px;
        max-height: 110px;
        font-size: 3.5rem;
    }
}

/* ضبط صور اللوجو للشاشات الكبيرة */
@media (min-width: 1440px) {
    .logo-image {
        width: 55px !important;
        height: 55px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 55px !important;
        max-height: 55px !important;
    }
    
    .navbar.scrolled .logo-image {
        width: 45px !important;
        height: 45px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }
}

/* تحسين عرض الصور في أيقونات الخدمات */
.service-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: inherit;
    line-height: 1;
}

/* منع تشويه الصور */
.logo-image,
.service-icon,
img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* تحسين أداء الأيقونات */
.logo-image,
.service-icon {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* تحسين أيقونات الصور في loading screen */
.loading-logo img {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

@media (max-width: 480px) {
    .loading-logo img {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
        max-width: 120px;
        max-height: 120px;
    }
}

@media (max-width: 360px) {
    .loading-logo img {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
        max-width: 100px;
        max-height: 100px;
    }
}
