@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');
/* Font display optimization */
@font-face {
    font-family: 'Cairo';
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    font-display: swap;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ألوان مشابهة لموقع ignitebh.com - تصميم داكن احترافي */
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5a;
    --secondary-color: #00a8e8;
    --secondary-dark: #0088c7;
    --secondary-light: #33b8e8;
    --accent-color: #ffd23f;
    --accent-dark: #ffc700;
    --accent-light: #ffdd5f;
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;
    --bg-dark-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-light: #334155;
    --text-light: #ffffff;
    --text-medium: #b3b3b3;
    --text-dark: #666666;
    --gradient-1: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    --gradient-2: linear-gradient(135deg, #00a8e8 0%, #33b8e8 100%);
    --gradient-3: linear-gradient(135deg, #ffd23f 0%, #ffdd5f 100%);
    --gradient-4: linear-gradient(135deg, #ff6b35 0%, #00a8e8 50%, #ffd23f 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --gradient-card: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-colored: 0 10px 40px rgba(255, 107, 53, 0.3);
    --shadow-blue: 0 10px 40px rgba(0, 168, 232, 0.3);
    --shadow-yellow: 0 10px 40px rgba(255, 210, 63, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for sticky navbar */
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    position: relative !important;
    /* Force dark background immediately to prevent white/gray boxes */
    background: #0f172a !important;
    background-color: #0f172a !important;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

body {
    font-family: 'Cairo', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
    overflow-x: hidden;
    background: var(--bg-dark) !important;
    background-color: var(--bg-dark) !important;
    position: relative;
    /* Prevent white/gray boxes on load */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* Force dark background on all sections during load */
body:not(.lang-loaded) section,
body:not(.lang-loaded) .container,
body:not(.lang-loaded) .page-header,
body:not(.lang-loaded) .navbar {
    background: #0f172a !important;
    background-color: #0f172a !important;
}

/* Make body background transparent on homepage */
body:has(.hero-video) {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* إزالة الظل من body وhtml عند وجود الفيديو */
body:has(.hero-video),
body:has(.hero-video) *,
html:has(.hero-video),
html:has(.hero-video) * {
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    text-shadow: none !important;
    drop-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 232, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 210, 63, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    pointer-events: none;
    z-index: -1;
}

/* Animated Background Elements for Recruitment Company */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Floating Job Icons */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 20 L60 35 L80 35 L65 45 L70 65 L50 55 L30 65 L35 45 L20 35 L40 35 Z' fill='rgba(255,107,53,0.1)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='30' fill='rgba(0,168,232,0.1)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='30' y='30' width='40' height='40' fill='rgba(255,210,63,0.1)'/%3E%3C/svg%3E");
    background-size: 200px 200px, 150px 150px, 180px 180px;
    background-position: 10% 20%, 80% 60%, 50% 80%;
    background-repeat: no-repeat;
    animation: floatingIcons 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

@keyframes floatingIcons {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(5deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) translateX(-15px) rotate(-5deg);
        opacity: 0.25;
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(3deg);
        opacity: 0.3;
    }
}

/* Hide body::before on homepage to show video clearly */
body:has(.hero-video)::before {
    display: none !important;
    background: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* LTR specific styles for header - moved after .nav-wrapper general rule */

[dir="ltr"] .logo,
[dir="ltr"] a.logo,
[dir="ltr"] .navbar .logo,
[dir="ltr"] .nav-wrapper .logo {
    order: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: translateX(-10px) !important; /* تحريك 75% إلى اليمين (من -40px إلى -10px) */
    animation: none !important;
}

@keyframes logoSlideInLTR {
    0% {
        opacity: 0;
        transform: translateX(-12rem) translateY(-30px) scale(0.8) !important;
    }
    100% {
        opacity: 1;
        transform: translateX(-12rem) translateY(0) scale(1) !important;
    }
}

[dir="ltr"] .logo:hover,
[dir="ltr"] a.logo:hover,
[dir="ltr"] .navbar .logo:hover,
[dir="ltr"] .nav-wrapper .logo:hover {
    transform: scale(1.05) translateX(-10px) !important; /* تحريك 75% إلى اليمين */
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.6)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) !important;
}

[dir="ltr"] .logo:active,
[dir="ltr"] a.logo:active,
[dir="ltr"] .navbar .logo:active,
[dir="ltr"] .nav-wrapper .logo:active {
    transform: scale(1.02) translateX(-10px) !important; /* تحريك 75% إلى اليمين */
    transition: all 0.1s ease !important;
}

[dir="ltr"] .logo:hover .logo-image {
    transform: scale(1.15) rotate(-5deg) !important;
    filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.5)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
    animation: logoImagePulse 0.6s ease-in-out !important;
    width: 223px !important;
    height: 223px !important;
    min-width: 223px !important;
    min-height: 223px !important;
    max-width: 223px !important;
    max-height: 223px !important;
}

[dir="ltr"] .logo-text,
[dir="ltr"] .logo .logo-text,
[dir="ltr"] a.logo .logo-text,
[dir="ltr"] .navbar .logo .logo-text,
[dir="ltr"] .nav-wrapper .logo .logo-text {
    margin-right: 0;
    margin-left: 0;
    transform: translateX(-50px) !important; /* تحريك 25px إلى اليمين (من -75px إلى -50px) */
    flex-direction: column-reverse !important;
}

[dir="ltr"] .logo:hover .logo-text,
[dir="ltr"] a.logo:hover .logo-text,
[dir="ltr"] .navbar .logo:hover .logo-text,
[dir="ltr"] .nav-wrapper .logo:hover .logo-text {
    transform: translateY(-2px) translateX(-50px) !important; /* تحريك 25px إلى اليمين */
}

/* Same font sizes as RTL for consistency */
[dir="ltr"] .logo-en {
    font-size: 1rem !important; /* Same as RTL */
}

[dir="ltr"] .logo-ar {
    font-size: 1.3rem !important; /* Same as RTL */
}

/* محاذاة اسم الشركة العربي في منتصف الكلمة الإنجليزية في الهيدر الإنجليزي فقط */
[dir="ltr"] .logo-text {
    align-items: center !important;
}

[dir="ltr"] .nav-menu {
    order: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-40px) !important;
}

[dir="ltr"] .language-selector {
    order: 2 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.navbar .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Navigation */
.navbar {
    background: transparent !important; /* Transparent background */
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000;
    padding: 1rem 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    padding-top: 1rem !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform 0.15s ease-out !important;
    will-change: transform;
}

/* Hide navbar when scrolling down - مثل موقع blink22.com - حركة سريعة */
.navbar.navbar-hidden {
    transform: translateY(-100%) !important;
    transition: transform 0.25s ease-out !important;
}

/* Force override any conflicting styles - قواعد قوية */
nav.navbar.navbar-hidden,
body .navbar.navbar-hidden,
html body .navbar.navbar-hidden,
.navbar.navbar-hidden.navbar-hidden,
.navbar.navbar-hidden.scrolled,
.navbar.navbar-hidden .nav-wrapper {
    transform: translateY(-100%) !important;
    transition: transform 0.25s ease-out !important;
}

/* Ensure navbar is visible when not hidden */
.navbar:not(.navbar-hidden) {
    transform: translateY(0) !important;
    transition: transform 0.25s ease-out !important;
}

/* Force visible state */
.navbar:not(.navbar-hidden).scrolled,
.navbar:not(.navbar-hidden) .nav-wrapper {
    transform: translateY(0) !important;
}

.navbar.scrolled {
    background: transparent; /* Keep transparent when scrolled */
    box-shadow: none;
    border-bottom: none;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 0 0 0 0.5rem !important;
    margin: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 60px !important;
    max-height: 60px !important;
    transform: none;
    background-color: transparent !important;
    border-radius: 0;
    box-sizing: border-box;
    overflow: visible;
    /* Remove transition to prevent flickering */
    transition: none !important;
}

/* Show nav-wrapper background when scrolled on homepage - MUST be before hide rule */
/* Disabled to prevent gray flickering - always keep transparent */
body:has(.hero-video) .navbar .container .nav-wrapper.show-on-scroll,
body.has-hero-video .navbar .container .nav-wrapper.show-on-scroll,
body:has(.hero-video) .nav-wrapper.show-on-scroll,
body.has-hero-video .nav-wrapper.show-on-scroll,
.nav-wrapper.show-on-scroll {
    background-color: transparent !important;
}

/* Hide nav-wrapper background on homepage initially - Lower specificity */
/* Disabled to prevent gray flickering - always keep transparent */
body:has(.hero-video) .navbar .container .nav-wrapper:not(.show-on-scroll),
body.has-hero-video .navbar .container .nav-wrapper:not(.show-on-scroll),
body:has(.hero-video) .nav-wrapper:not(.show-on-scroll),
body.has-hero-video .nav-wrapper:not(.show-on-scroll) {
    background-color: transparent !important;
}

/* Force transparent background on all pages to prevent gray flickering */
.nav-wrapper,
.navbar .container .nav-wrapper,
.navbar .nav-wrapper {
    background-color: transparent !important;
    background: transparent !important;
}

/* LTR specific styles for header - Same padding as RTL but mirrored */
[dir="ltr"] .nav-wrapper,
[dir="ltr"] .navbar .container .nav-wrapper,
[dir="ltr"] .navbar .nav-wrapper {
    transform: none !important; /* Same as RTL */
    margin-left: 0 !important;
    justify-content: flex-start !important;
    padding: 0 0 0 0.5rem !important; /* Same as RTL (padding-left) */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 900;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
    order: -1;
    margin-right: 0;
    margin-left: 0;
    transform: translateX(40px);
    animation: none;
    padding: 0;
    background-color: transparent !important;
    border-radius: 0;
    min-height: fit-content;
    overflow: visible;
    box-sizing: border-box;
}

.logo:hover {
    transform: scale(1.05) translateX(40px);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.6)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.logo:active {
    transform: scale(1.02) translateX(40px);
    transition: all 0.1s ease;
}

.logo-image,
img.logo-image,
.logo img.logo-image,
a.logo img.logo-image,
.nav-wrapper .logo img.logo-image,
.navbar .logo img.logo-image {
    width: 223px !important;
    height: 223px !important;
    min-width: 223px !important;
    min-height: 223px !important;
    max-width: 223px !important;
    max-height: 223px !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: logoImageFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo:hover .logo-image,
.logo:hover img.logo-image,
a.logo:hover img.logo-image {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.5)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: logoImagePulse 0.6s ease-in-out;
    width: 223px !important;
    height: 223px !important;
    min-width: 223px !important;
    min-height: 223px !important;
    max-width: 223px !important;
    max-height: 223px !important;
}

.logo:active .logo-image,
.logo:active img.logo-image,
a.logo:active img.logo-image {
    transform: scale(1.05) rotate(-2deg);
    width: 223px !important;
    height: 223px !important;
    min-width: 223px !important;
    min-height: 223px !important;
    max-width: 223px !important;
    max-height: 223px !important;
}

.logo i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-right: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
    align-items: flex-start;
    transform: translateX(50px);
    gap: 0;
}

.logo:hover .logo-text {
    transform: translateY(-2px) translateX(50px);
}

.logo-ar {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoTextFadeIn 1s ease-out 0.3s both;
}

.logo:hover .logo-ar {
    transform: scale(1.05);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.logo-en {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    margin-top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoTextFadeIn 1s ease-out 0.5s both;
}

/* Always show both Arabic and English names on all pages */
.logo-ar {
    display: block !important;
}

.logo-en {
    display: block !important;
}

.logo:hover .logo-en {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.4));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 1;
    transform: translateX(40px);
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color) !important;
    font-weight: 900 !important;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    font-size: 1.1rem;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.language-selector {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    transform: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.lang-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* إخفاء زر اللغة النشط - إخفاء زر "ع" عند العربية وزر "EN" عند الإنجليزية */
[dir="rtl"] .lang-btn[data-lang="ar"] {
    display: none !important;
    position: relative !important;
    right: 15px !important;
}

[dir="ltr"] .lang-btn[data-lang="en"] {
    display: none !important;
}

/* تحريك زر EN فقط في العربية - تحريكه 20 بكسل إلى اليمين */
[dir="rtl"] .lang-btn[data-lang="en"] {
    position: relative !important;
    left: 20px !important;
    transform: none !important;
}

/* تحريك زر ع إلى اليسار في الإنجليزية */
[dir="ltr"] .lang-btn[data-lang="ar"] {
    position: relative !important;
    left: -15px !important;
    transform: translateX(-40px) !important;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: 0;
}

.lang-btn:hover::before {
    opacity: 0.2;
}

.lang-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    border-color: rgba(255, 107, 53, 0.4);
}

.lang-btn.active {
    color: #ffffff;
    background: var(--gradient-1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5), 
                0 0 20px rgba(255, 107, 53, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px) scale(1.05);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 53, 0.6);
}

.lang-btn.active::before {
    opacity: 0;
}

.lang-btn span {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: visible !important;
    z-index: 1;
    box-sizing: border-box !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Full Screen Video Background - Fullscreen optimized */
.hero-video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1;
    opacity: 1;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    will-change: transform;
    transform: translateZ(0) scale(1.25);
    -webkit-transform: translateZ(0) scale(1.25);
    outline: none !important;
    display: block !important;
    pointer-events: none;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    /* تحسينات الأداء */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    /* تحسين التحميل */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* تقليل استهلاك الموارد */
    contain: layout style paint;
}

.hero-video-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.5) 100%);
    z-index: 2;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.hero-background-image {
    display: none; /* Hidden when video is present */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('../hero-background.jpg.jpg'); */ /* File not found - using gradient fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    opacity: 0.3;
    animation: backgroundFade 20s ease-in-out infinite;
}

@keyframes backgroundFade {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Fallback background if image not found */
.hero-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, #4a148c 0%, #1a237e 50%, #0d47a1 100%),
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 168, 232, 0.4) 0%, transparent 50%);
    z-index: -1;
}

.hero-background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at bottom left, rgba(255, 107, 53, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(0, 168, 232, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at top center, rgba(255, 210, 63, 0.3) 0%, transparent 50%);
    z-index: -1;
    animation: organicShapes 15s ease-in-out infinite;
}

@keyframes organicShapes {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }
}

.hero::before {
    display: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.hero::after {
    display: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* إزالة الظل من جميع العناصر المتعلقة بالفيديو */
.hero-video,
.hero-video *,
.hero-video-overlay,
.hero-video-overlay *,
.hero section,
.hero section * {
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    text-shadow: none !important;
    drop-shadow: none !important;
}

/* إزالة الظل من video element مباشرة */
video.hero-video,
video.hero-video * {
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    text-shadow: none !important;
    drop-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    padding-bottom: 100px;
}

/* Enable pointer events for interactive elements inside hero-content */
.hero-content * {
    pointer-events: auto;
}

.hero-text-wrapper {
    width: 100%;
}

/* Hero Image Container */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-illustration {
    width: 100%;
    height: auto;
    max-height: 600px;
    filter: drop-shadow(0 20px 60px rgba(255, 107, 53, 0.3));
    animation: heroImageFloat 6s ease-in-out infinite;
    transition: transform 0.1s ease-out, filter 0.3s ease;
    will-change: transform;
}

/* Hero Image Animations */
@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.02);
    }
    50% {
        transform: translateY(0) translateX(0) scale(1);
    }
    75% {
        transform: translateY(20px) translateX(-10px) scale(1.02);
    }
}

/* Globe Pulse Animation */
.globe-pulse {
    animation: globePulse 3s ease-in-out infinite;
}

@keyframes globePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* People Floating Animations */
.person-float {
    animation: personFloat 3s ease-in-out infinite;
}

.person-float-delay {
    animation: personFloat 3s ease-in-out infinite 0.5s;
}

.person-float-delay2 {
    animation: personFloat 3s ease-in-out infinite 1s;
}

@keyframes personFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.people-group-1 {
    animation: groupMove 4s ease-in-out infinite;
}

.people-group-2 {
    animation: groupMove 4s ease-in-out infinite 0.3s;
}

.people-group-3 {
    animation: groupMove 4s ease-in-out infinite 0.6s;
}

.people-group-4 {
    animation: groupMove 4s ease-in-out infinite 0.9s;
}

@keyframes groupMove {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(5px) translateY(-5px);
    }
    50% {
        transform: translateX(0) translateY(0);
    }
    75% {
        transform: translateX(-5px) translateY(5px);
    }
}

/* Logo Animations */
@keyframes logoSlideIn {
    0% {
        opacity: 0;
        transform: translateX(12rem) translateY(-30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(12rem) translateY(0) scale(1);
    }
}

@keyframes logoImageFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes logoImagePulse {
    0%, 100% {
        transform: scale(1.15) rotate(5deg);
    }
    50% {
        transform: scale(1.2) rotate(7deg);
    }
}

@keyframes logoTextFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Connection Lines Animation */
.connection-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-in-out infinite;
}

.connection-line-delay {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-in-out infinite 0.5s;
}

.connection-line-delay2 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-in-out infinite 1s;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.3;
    }
}

/* Building Pulse */
.building-pulse {
    animation: buildingPulse 2s ease-in-out infinite;
}

@keyframes buildingPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

/* Sparkles Animation */
.sparkle-1 {
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-2 {
    animation: sparkle 2s ease-in-out infinite 0.4s;
}

.sparkle-3 {
    animation: sparkle 2s ease-in-out infinite 0.8s;
}

.sparkle-4 {
    animation: sparkle 2s ease-in-out infinite 1.2s;
}

.sparkle-5 {
    animation: sparkle 2s ease-in-out infinite 1.6s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Wave Animation */
.wave-animation {
    animation: waveMove 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    animation: flipInX 1.2s ease, glow 3s ease-in-out 1.2s infinite alternate;
    position: relative;
    z-index: 3;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-title:hover {
    animation: shakeTitle 0.5s ease-in-out;
}

.hero-tagline {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(255, 107, 53, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: bounceIn 1s ease 0.3s backwards, glow 3s ease-in-out 1.3s infinite alternate;
    position: relative;
    z-index: 3;
    color: var(--white);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-tagline:hover {
    animation: shakeTitle 0.5s ease-in-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    animation: slideInFromRight 1s ease 0.5s backwards;
    position: relative;
    z-index: 3;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-subtitle:hover {
    animation: shakeText 0.5s ease-in-out;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
    position: relative;
    z-index: 3;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-colored);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    animation: shakeButton 0.5s ease-in-out;
    box-shadow: var(--shadow-colored), 0 0 30px rgba(255, 107, 53, 0.5);
    filter: brightness(1.1);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s;
}

.btn-secondary:hover {
    animation: shakeButton 0.5s ease-in-out;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.section-title:hover {
    animation: shakeTitle 0.5s ease-in-out;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-2);
    border-radius: 10px;
    animation: expandWidth 1s ease;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 50%;
    transform: translateX(50%);
    width: 150px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 10px;
    opacity: 0.3;
}

/* Features Section */
.features {
    background: transparent;
    backdrop-filter: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Responsive: Show 4 columns on desktop, 2 on tablets, 1 on mobile */
@media screen and (max-width: 1024px) and (min-width: 601px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: transparent;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    transform-origin: center;
    opacity: 0;
}

/* Feature Cards Entrance Animations */
.feature-card:nth-child(1) {
    animation: slideInFromLeft 0.8s ease-out 0.2s forwards, featureCardFloat 6s ease-in-out 1s infinite;
}

.feature-card:nth-child(2) {
    animation: slideInFromRight 0.8s ease-out 0.4s forwards, featureCardFloat 6s ease-in-out 1.2s infinite;
}

.feature-card:nth-child(3) {
    animation: slideInFromTop 0.8s ease-out 0.6s forwards, featureCardFloat 6s ease-in-out 1.4s infinite;
}

.feature-card:nth-child(4) {
    animation: slideInFromBottom 0.8s ease-out 0.8s forwards, featureCardFloat 6s ease-in-out 1.6s infinite;
}

.feature-card:nth-child(5) {
    animation: rotateInFromTop 0.8s ease-out 1s forwards, featureCardFloat 6s ease-in-out 1.8s infinite;
}

.feature-card:nth-child(6) {
    animation: rotateInFromBottom 0.8s ease-out 1.2s forwards, featureCardFloat 6s ease-in-out 2s infinite;
}

.feature-card::before {
    display: none;
}

.feature-card:hover {
    animation: shake 0.5s ease-in-out;
    box-shadow: none;
    border: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.2rem;
    position: relative;
    transition: var(--transition);
    box-shadow: none;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: none;
}

.feature-icon::after {
    display: none;
}

.feature-card:hover .feature-icon::after {
    display: none;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-card h3:hover {
    animation: shakeText 0.5s ease-in-out;
}

.feature-card p {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-card p:hover {
    animation: shakeText 0.5s ease-in-out;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Statistics Section */
.statistics {
    background: transparent !important;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.statistics::before {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.stat-card {
    text-align: center;
    padding: 2.5rem;
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 20px;
    border: none !important;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: statCardPulse 4s ease-in-out infinite;
    transform-origin: center;
    box-shadow: none !important;
    opacity: 0;
}

/* Stat Cards Entrance Animations */
.stat-card:nth-child(1) {
    animation: slideInFromLeft 0.8s ease-out 0.2s forwards, statCardPulse 4s ease-in-out 1s infinite;
}

.stat-card:nth-child(2) {
    animation: slideInFromRight 0.8s ease-out 0.4s forwards, statCardPulse 4s ease-in-out 1.2s infinite;
}

.stat-card:nth-child(3) {
    animation: rotateInFromTop 0.8s ease-out 0.6s forwards, statCardPulse 4s ease-in-out 1.4s infinite;
}

.stat-card:nth-child(4) {
    animation: rotateInFromBottom 0.8s ease-out 0.8s forwards, statCardPulse 4s ease-in-out 1.6s infinite;
}

.stat-card::before {
    display: none;
}

.stat-card:hover {
    animation: shakeStat 0.5s ease-in-out;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.stat-card:hover::before {
    display: none;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd23f 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(255, 210, 63, 0.5);
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stat-label:hover {
    animation: shakeText 0.5s ease-in-out;
}

.stat-number {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stat-number:hover {
    animation: shakeText 0.5s ease-in-out;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: transparent;
    padding: 0;
    border-radius: 20px;
    box-shadow: none;
    transition: var(--transition);
    border-top: none;
    border-image: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    animation: serviceCardSlide 8s ease-in-out infinite;
    transform-origin: center;
    opacity: 0;
}

/* Service Cards Entrance Animations */
.service-card:nth-child(1) {
    animation: slideInFromLeft 0.8s ease-out 0.2s forwards, serviceCardSlide 8s ease-in-out 1s infinite;
}

.service-card:nth-child(2) {
    animation: slideInFromRight 0.8s ease-out 0.4s forwards, serviceCardSlide 8s ease-in-out 1.2s infinite;
}

.service-card:nth-child(3) {
    animation: slideInFromTop 0.8s ease-out 0.6s forwards, serviceCardSlide 8s ease-in-out 1.4s infinite;
}

.service-card:nth-child(4) {
    animation: slideInFromBottom 0.8s ease-out 0.8s forwards, serviceCardSlide 8s ease-in-out 1.6s infinite;
}

.service-card:nth-child(5) {
    animation: rotateInFromTop 0.8s ease-out 1s forwards, serviceCardSlide 8s ease-in-out 1.8s infinite;
}

.service-card:nth-child(6) {
    animation: rotateInFromBottom 0.8s ease-out 1.2s forwards, serviceCardSlide 8s ease-in-out 2s infinite;
}

.service-image-wrapper {
    width: 100%;
    height: 200px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-image-wrapper::before {
    display: none;
}

.service-illustration {
    width: 100%;
    height: 100%;
    max-width: 350px;
    opacity: 0.9;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: svgFloat 6s ease-in-out infinite;
}

@keyframes svgFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(10px) rotate(-2deg);
    }
}

.service-card:hover .service-illustration {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 20px 50px rgba(255, 107, 53, 0.4));
}

.service-card .service-content {
    padding: 0 2.5rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card .service-icon {
    margin: -30px auto 1.5rem;
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Person Bounce Animation */
.person-bounce {
    animation: personBounce 2s ease-in-out infinite;
}

.person-bounce-delay {
    animation: personBounce 2s ease-in-out infinite 0.5s;
}

@keyframes personBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Person Float Animation */
.person-float {
    animation: personFloat 3s ease-in-out infinite;
}

.person-float-delay {
    animation: personFloat 3s ease-in-out infinite 0.5s;
}

@keyframes personFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

/* Sparkle Animation */
.sparkle-1 {
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-2 {
    animation: sparkle 2s ease-in-out infinite 0.3s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.service-card::before {
    display: none;
}

.service-card:hover {
    animation: shakeService 0.5s ease-in-out;
    box-shadow: none;
}

.service-card:hover::before {
    display: none;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: none;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: none;
    border: none;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: none;
}

.service-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-card h3:hover {
    animation: shakeText 0.5s ease-in-out;
}

.service-card p {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-card p:hover {
    animation: shakeText 0.5s ease-in-out;
}

.service-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* Testimonials */
.testimonials {
    background: transparent;
    backdrop-filter: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: transparent;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: none;
    position: relative;
    border: none;
    transition: var(--transition);
    overflow: hidden;
    animation: testimonialCardFloat 7s ease-in-out infinite;
    transform-origin: center;
    opacity: 0;
}

/* Testimonial Cards Entrance Animations */
.testimonial-card:nth-child(1) {
    animation: slideInFromLeft 0.8s ease-out 0.2s forwards, testimonialCardFloat 7s ease-in-out 1s infinite;
}

.testimonial-card:nth-child(2) {
    animation: slideInFromRight 0.8s ease-out 0.4s forwards, testimonialCardFloat 7s ease-in-out 1.2s infinite;
}

.testimonial-card:nth-child(3) {
    animation: rotateInFromTop 0.8s ease-out 0.6s forwards, testimonialCardFloat 7s ease-in-out 1.4s infinite;
}

.testimonial-card:nth-child(4) {
    animation: rotateInFromBottom 0.8s ease-out 0.8s forwards, testimonialCardFloat 7s ease-in-out 1.6s infinite;
}

.testimonial-card::before {
    display: none;
}

.testimonial-card:hover {
    animation: shakeTestimonial 0.5s ease-in-out;
    box-shadow: none;
    border: none;
}

.testimonial-rating {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-text:hover {
    animation: shakeText 0.5s ease-in-out;
}

.testimonial-author strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-author strong:hover {
    animation: shakeText 0.5s ease-in-out;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-author span:hover {
    animation: shakeText 0.5s ease-in-out;
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: transparent;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: none;
    border-image: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: none;
    opacity: 0;
}

/* Cert Cards Entrance Animations */
.cert-card:nth-child(1) {
    animation: slideInFromLeft 0.8s ease-out 0.2s forwards;
}

.cert-card:nth-child(2) {
    animation: slideInFromRight 0.8s ease-out 0.4s forwards;
}

.cert-card:nth-child(3) {
    animation: rotateInFromTop 0.8s ease-out 0.6s forwards;
}

.cert-card::before {
    display: none;
}

.cert-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: none;
}

.cert-card:hover::before {
    display: none;
}

.cert-card i {
    font-size: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
    transition: var(--transition);
}

.cert-card:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.5));
}

.cert-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    display: block !important; /* Show footer on all pages */
    background: var(--bg-dark);
    color: var(--white);
    padding: 0.75rem 0 0.375rem; /* Reduced by 25% */
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    font-size: 0.75rem;
    margin-top: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem; /* Reduced by 25% */
    margin-bottom: 0.75rem; /* Reduced by 25% */
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.footer-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: fit-content;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced by 25% */
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.375rem; /* Reduced by 25% */
    position: relative;
    z-index: 1;
}

.footer-logo-image {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo-text .logo-ar,
.footer-logo-text .logo-en {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-logo-text .logo-en {
    font-size: 0.75rem;
    opacity: 0.8;
}

.footer-logo span {
    background: linear-gradient(135deg, #fff 0%, #ffd23f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo i {
    background: linear-gradient(135deg, #ffd23f 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.footer-col p {
    opacity: 0.9;
    margin-bottom: 0.375rem; /* Reduced by 25% */
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.375rem; /* Reduced by 25% */
}

.social-links a {
    width: 21px; /* Reduced by 25% */
    height: 21px; /* Reduced by 25% */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-links a:hover::before {
    width: 100px;
    height: 100px;
}

.social-links a i {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
}

.footer-col h4 {
    margin-bottom: 0.375rem; /* Reduced by 25% */
    color: var(--white);
    font-weight: 700;
    font-size: 0.75rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.225rem; /* Reduced by 25% */
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.75rem;
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced by 25% */
    margin-bottom: 0.375rem; /* Reduced by 25% */
}

.contact-info i {
    color: var(--secondary-color);
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.contact-info a:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.75rem; /* Reduced by 25% */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.7rem;
    display: block !important;
    visibility: visible !important;
}

.footer-bottom p {
    display: block !important;
    visibility: visible !important;
    opacity: 0.8 !important;
    color: var(--text-light) !important;
}

/* Scroll Reveal */
.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Elements */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-width 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 40px;
    height: 40px;
    border-width: 3px;
    background: rgba(255, 107, 53, 0.2);
    animation: electricShake 0.15s ease-in-out infinite;
    box-shadow: 
        0 0 10px rgba(255, 107, 53, 0.8),
        0 0 20px rgba(255, 107, 53, 0.6),
        0 0 30px rgba(255, 107, 53, 0.4),
        inset 0 0 10px rgba(255, 107, 53, 0.3);
}

/* Animation for electric shake - تأثير كهربائي */
@keyframes electricShake {
    0%, 100% {
        transform: translate(-50%, -50%) translateX(0) translateY(0) rotate(0deg);
        border-color: var(--primary-color);
        box-shadow: 
            0 0 10px rgba(255, 107, 53, 0.8),
            0 0 20px rgba(255, 107, 53, 0.6),
            0 0 30px rgba(255, 107, 53, 0.4),
            inset 0 0 10px rgba(255, 107, 53, 0.3);
    }
    10% {
        transform: translate(-50%, -50%) translateX(-3px) translateY(-2px) rotate(-2deg);
        border-color: #ff8c5a;
        box-shadow: 
            0 0 15px rgba(255, 140, 90, 0.9),
            0 0 25px rgba(255, 107, 53, 0.7),
            0 0 35px rgba(255, 107, 53, 0.5),
            inset 0 0 15px rgba(255, 140, 90, 0.4);
    }
    20% {
        transform: translate(-50%, -50%) translateX(3px) translateY(2px) rotate(2deg);
        border-color: #ff6b35;
        box-shadow: 
            0 0 12px rgba(255, 107, 53, 0.9),
            0 0 22px rgba(255, 140, 90, 0.7),
            0 0 32px rgba(255, 107, 53, 0.5),
            inset 0 0 12px rgba(255, 107, 53, 0.4);
    }
    30% {
        transform: translate(-50%, -50%) translateX(-2px) translateY(3px) rotate(-1deg);
        border-color: #ff8c5a;
        box-shadow: 
            0 0 18px rgba(255, 140, 90, 0.9),
            0 0 28px rgba(255, 107, 53, 0.7),
            0 0 38px rgba(255, 140, 90, 0.5),
            inset 0 0 18px rgba(255, 140, 90, 0.4);
    }
    40% {
        transform: translate(-50%, -50%) translateX(2px) translateY(-3px) rotate(1deg);
        border-color: #ff6b35;
        box-shadow: 
            0 0 14px rgba(255, 107, 53, 0.9),
            0 0 24px rgba(255, 140, 90, 0.7),
            0 0 34px rgba(255, 107, 53, 0.5),
            inset 0 0 14px rgba(255, 107, 53, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) translateX(-4px) translateY(1px) rotate(-3deg);
        border-color: #ff8c5a;
        box-shadow: 
            0 0 16px rgba(255, 140, 90, 0.9),
            0 0 26px rgba(255, 107, 53, 0.7),
            0 0 36px rgba(255, 140, 90, 0.5),
            inset 0 0 16px rgba(255, 140, 90, 0.4);
    }
    60% {
        transform: translate(-50%, -50%) translateX(4px) translateY(-1px) rotate(3deg);
        border-color: #ff6b35;
        box-shadow: 
            0 0 13px rgba(255, 107, 53, 0.9),
            0 0 23px rgba(255, 140, 90, 0.7),
            0 0 33px rgba(255, 107, 53, 0.5),
            inset 0 0 13px rgba(255, 107, 53, 0.4);
    }
    70% {
        transform: translate(-50%, -50%) translateX(-1px) translateY(4px) rotate(-2deg);
        border-color: #ff8c5a;
        box-shadow: 
            0 0 17px rgba(255, 140, 90, 0.9),
            0 0 27px rgba(255, 107, 53, 0.7),
            0 0 37px rgba(255, 140, 90, 0.5),
            inset 0 0 17px rgba(255, 140, 90, 0.4);
    }
    80% {
        transform: translate(-50%, -50%) translateX(1px) translateY(-4px) rotate(2deg);
        border-color: #ff6b35;
        box-shadow: 
            0 0 11px rgba(255, 107, 53, 0.9),
            0 0 21px rgba(255, 140, 90, 0.7),
            0 0 31px rgba(255, 107, 53, 0.5),
            inset 0 0 11px rgba(255, 107, 53, 0.4);
    }
    90% {
        transform: translate(-50%, -50%) translateX(-3px) translateY(2px) rotate(-1deg);
        border-color: #ff8c5a;
        box-shadow: 
            0 0 19px rgba(255, 140, 90, 0.9),
            0 0 29px rgba(255, 107, 53, 0.7),
            0 0 39px rgba(255, 140, 90, 0.5),
            inset 0 0 19px rgba(255, 140, 90, 0.4);
    }
}

/* Enhanced Card Hover Effects */
.feature-card,
.service-card,
.country-card,
.testimonial-card,
.blog-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card::before,
.service-card::before,
.country-card::before,
.testimonial-card::before,
.blog-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
    will-change: opacity, transform;
}

.feature-card:hover::before,
.service-card:hover::before,
.country-card:hover::before,
.testimonial-card:hover::before,
.blog-card:hover::before {
    opacity: 1;
}

/* Animations */
@keyframes shake {
    0%, 100% {
        transform: translate3d(0, -15px, 0) scale(1.05) rotate(2deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translate3d(-3px, -15px, 0) scale(1.05) rotate(2deg);
    }
    20%, 40%, 60%, 80% {
        transform: translate3d(3px, -15px, 0) scale(1.05) rotate(2deg);
    }
}

@keyframes shakeStat {
    0%, 100% {
        transform: translateX(0) translateY(-10px) scale(1.08);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px) translateY(-10px) scale(1.08);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px) translateY(-10px) scale(1.08);
    }
}

@keyframes shakeService {
    0%, 100% {
        transform: translateX(0) translateY(-10px) scale(1.05);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px) translateY(-10px) scale(1.05);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px) translateY(-10px) scale(1.05);
    }
}

@keyframes shakeTestimonial {
    0%, 100% {
        transform: translateX(0) translateY(-15px) scale(1.05) rotate(-1deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px) translateY(-15px) scale(1.05) rotate(-1deg);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px) translateY(-15px) scale(1.05) rotate(-1deg);
    }
}

@keyframes shakeButton {
    0%, 100% {
        transform: translateX(0) translateY(-5px) scale(1.08);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px) translateY(-5px) scale(1.08);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px) translateY(-5px) scale(1.08);
    }
}

@keyframes shakeText {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

@keyframes shakeTitle {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px) scale(1.02);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px) scale(1.02);
    }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    to {
        text-shadow: 0 4px 30px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-dark-tertiary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    background: var(--bg-dark-secondary) !important;
    color: var(--text-light) !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.form-group input[readonly],
.form-group textarea[readonly] {
    background: var(--bg-dark-secondary);
    color: var(--text-light);
    cursor: default;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Language selector - removed center alignment for mobile */

    .hero-image-container {
        opacity: 0.5;
    }

    .hero-illustration {
        max-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
        height: auto;
        padding: 2rem 0;
    }

    .hero-image-container {
        opacity: 0.3;
    }

    .hero-illustration {
        max-height: 300px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 50px 0;
    }
}

/* Page Header - Enhanced with Animations */
.page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
    color: var(--white);
    padding: 80px 0 50px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a !important;
    background-image: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
    z-index: 1;
    isolation: isolate;
    box-shadow: none !important;
    border: none !important;
    /* Add animated gradient overlay */
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite !important;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Force page-header to never show gray background */
.page-header,
section.page-header {
    background-color: #0a0a0a !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite !important;
}

/* Add floating particles effect */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 168, 232, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 210, 63, 0.05) 0%, transparent 50%);
    animation: floatParticles 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatParticles {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    33% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.7;
    }
    66% {
        transform: translateY(10px) translateX(-10px);
        opacity: 0.6;
    }
}

/* Parallax effect on scroll */
.page-header {
    will-change: transform;
}

/* Glassmorphism overlay */
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 168, 232, 0.05) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    animation: glassShimmer 10s ease-in-out infinite;
}

@keyframes glassShimmer {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

.page-header .container {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

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

.page-header h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    position: relative;
    display: inline-block;
    animation: titleGlow 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 107, 53, 0.3), 0 0 40px rgba(255, 107, 53, 0.1);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 107, 53, 0.5), 0 0 60px rgba(255, 107, 53, 0.2);
    }
}

.page-header p {
    font-size: 0.9rem !important;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
}

/* Geometric Network Background */
.geometric-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.6;
    /* Remove any background to prevent gray flickering */
    background: transparent !important;
    pointer-events: none;
    background-color: transparent !important;
    background-image: none !important;
    transition: none !important;
    animation: none !important;
    /* Force no gray color */
    color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.network-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* Remove any background to prevent gray flickering */
    background: transparent !important;
    background-color: transparent !important;
}

/* Force all SVG elements in geometric-network to be transparent */
.geometric-network svg,
.network-svg {
    background: transparent !important;
    background-color: transparent !important;
}

/* Ensure network lines and dots don't have gray backgrounds */
.network-line,
.network-dot {
    background: transparent !important;
    background-color: transparent !important;
}

.network-line {
    stroke: #FFD700;
    stroke-width: 1;
    stroke-opacity: 0.4;
    fill: none;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
    animation: linePulse 1.5s ease-in-out infinite; /* تسريع بدرجتين (من 3s إلى 1.5s) */
    transition: stroke-opacity 0.3s ease, filter 0.3s ease;
}

.network-line:nth-child(odd) {
    animation-delay: 0s;
}

.network-line:nth-child(even) {
    animation-delay: 0.75s; /* تسريع بدرجتين (من 1.5s إلى 0.75s) */
}

.network-dot {
    fill: #FFD700;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    animation: dotPulse 1s ease-in-out infinite; /* تسريع بدرجتين (من 2s إلى 1s) */
    transition: filter 0.3s ease;
}

/* حركة النبض مختلفة لكل نقطة */
.network-dot:nth-child(odd) {
    animation-delay: 0s;
}

.network-dot:nth-child(even) {
    animation-delay: 0.5s; /* تسريع بدرجتين (من 1s إلى 0.5s) */
}

@keyframes linePulse {
    0%, 100% {
        stroke-opacity: 0.3;
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
    }
    50% {
        stroke-opacity: 0.6;
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.7));
    }
}

@keyframes dotPulse {
    0%, 100% {
        r: 3;
        opacity: 0.7;
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
    }
    50% {
        r: 5;
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 1)) drop-shadow(0 0 16px rgba(255, 215, 0, 0.6));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .network-line {
        stroke-width: 0.5;
    }
    
    .network-dot {
        r: 2;
    }
    
    .geometric-network {
        opacity: 0.4;
    }
}

/* Vision & Mission */
.vision-mission {
    padding: 80px 0;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vm-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.vm-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.vm-card h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.vm-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-colored), 0 0 80px rgba(255, 107, 53, 0.7), 0 0 100px rgba(255, 107, 53, 0.5);
    border-color: var(--primary-color);
    filter: brightness(1.2);
}

.vm-card p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1rem;
}

/* Values */
.values {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-colored), 0 0 80px rgba(255, 107, 53, 0.7), 0 0 100px rgba(255, 107, 53, 0.5);
    border-color: var(--primary-color);
    filter: brightness(1.2);
}

.value-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Team */
.team {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-colored), 0 0 80px rgba(255, 107, 53, 0.7), 0 0 100px rgba(255, 107, 53, 0.5);
    border-color: var(--primary-color);
    filter: brightness(1.2);
}

.team-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

.team-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Timeline */
.timeline-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 120px;
    height: 120px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
    margin: 0 2rem;
}

.timeline-content {
    flex: 1;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-colored), 0 0 40px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-color);
}

.timeline-content p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Service Details */
.service-detail {
    padding: 80px 0;
}

.service-detail.alt-bg {
    background: var(--bg-light);
}

.service-header {
    text-align: center;
    margin-bottom: 4rem;
}

.service-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.service-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.service-intro {
    color: var(--text-light);
    font-size: 1.2rem;
}

.service-types,
.service-sectors,
.professionals-grid,
.post-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-type-card,
.sector-card,
.professional-card,
.post-service-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-type-card:hover,
.sector-card:hover,
.professional-card:hover,
.post-service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-colored), 0 0 40px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-color);
}

.service-type-card i,
.sector-card i,
.professional-card i,
.post-service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-type-card h3,
.sector-card h3,
.professional-card h3,
.post-service-card h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.service-type-card p,
.sector-card p,
.professional-card p,
.post-service-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

.service-process,
.service-requirements {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-process:hover,
.service-requirements:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored), 0 0 40px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-color);
}

.service-process h3,
.service-requirements h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.process-steps {
    list-style: none;
    counter-reset: step-counter;
}

.process-steps li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding-right: 2.5rem;
    position: relative;
    color: var(--text-medium);
    line-height: 1.8;
}

.process-steps li::before {
    content: counter(step-counter);
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.requirements-list {
    list-style: none;
}

.requirements-list li {
    padding: 0.8rem 0;
    padding-right: 2rem;
    position: relative;
    color: var(--text-medium);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--secondary-color);
}

/* Countries */
.countries {
    padding: 80px 0;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.country-card {
    background: var(--gradient-card);
    padding: 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid;
    border-image: var(--gradient-1) 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.country-image-wrapper {
    width: 100%;
    height: 180px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.country-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.country-illustration {
    width: auto;
    height: auto;
    max-width: 280px;
    max-height: 180px;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: svgFloat 6s ease-in-out infinite;
}

.country-card:hover .country-illustration {
    transform: scale(1.15) rotate(3deg);
    filter: drop-shadow(0 20px 50px rgba(255, 107, 53, 0.4));
}

.country-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-colored), 0 0 40px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-color);
}

.country-card:hover .country-flag {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 15px 40px rgba(255, 210, 63, 0.5);
}

.country-card .country-content {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.country-flag {
    font-size: 4rem;
    text-align: center;
    margin: -25px auto 1rem;
    position: relative;
    z-index: 2;
    background: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: flagPulse 3s ease-in-out infinite;
    overflow: hidden;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes flagPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.country-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.country-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.country-features {
    list-style: none;
}

.country-features li {
    padding: 0.5rem 0;
    padding-right: 2rem;
    position: relative;
    color: var(--text-light);
}

.country-features li i {
    position: absolute;
    right: 0;
    color: var(--secondary-color);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-colored), 0 0 40px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Our Clients Section */
.our-clients-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.our-clients-section .section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    justify-items: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: fit-content;
    width: 100%;
    padding: 0 2rem;
}

.client-item {
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    box-shadow: none !important;
    filter: none !important;
}

.client-item:nth-child(1) { animation-delay: 0.1s; }
.client-item:nth-child(2) { animation-delay: 0.15s; }
.client-item:nth-child(3) { animation-delay: 0.2s; }
.client-item:nth-child(4) { animation-delay: 0.25s; }
.client-item:nth-child(5) { animation-delay: 0.3s; }
.client-item:nth-child(6) { animation-delay: 0.35s; }
.client-item:nth-child(7) { animation-delay: 0.4s; }
.client-item:nth-child(8) { animation-delay: 0.45s; }
.client-item:nth-child(9) { animation-delay: 0.5s; }
.client-item:nth-child(10) { animation-delay: 0.55s; }
.client-item:nth-child(n+11) { animation-delay: 0.6s; }

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

.client-icon {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid rgba(0, 168, 232, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    animation: floatIcon 6s ease-in-out infinite;
}

.client-item:nth-child(odd) .client-icon {
    animation: floatIcon 6s ease-in-out infinite;
}

.client-item:nth-child(even) .client-icon {
    animation: floatIcon 7s ease-in-out infinite reverse;
}

.client-item:nth-child(3n) .client-icon {
    animation: floatIcon 8s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

.client-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    display: none;
}

.client-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    animation: rotateBorder 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: none;
}

.client-item:hover .client-icon::after {
    opacity: 0;
    display: none;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.client-item:hover .client-icon::before {
    width: 0;
    height: 0;
    display: none;
}

.client-item:hover .client-icon {
    transform: scale(1.5) translateY(-10px) rotate(5deg);
    border-color: var(--secondary-color);
    box-shadow: none !important;
    animation: pulseHover 0.6s ease-in-out, floatIcon 6s ease-in-out infinite;
    filter: none !important;
    width: 187.5px;
    height: 187.5px;
    z-index: 100;
    background: var(--primary-light) !important;
}

.client-icon:hover {
    box-shadow: none !important;
    filter: none !important;
}

@keyframes pulseHover {
    0%, 100% {
        transform: scale(1.5) translateY(-10px) rotate(5deg);
    }
    50% {
        transform: scale(1.55) translateY(-12px) rotate(5deg);
    }
}

/* Client Image */
.client-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: var(--transition);
    display: block;
    background: transparent;
    padding: 5px;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.client-item:hover .client-image {
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
    transform: scale(1.5) translateY(-10px) rotate(5deg);
    object-fit: contain !important;
    object-position: center !important;
}

/* Fallback when image doesn't load */
.client-name-fallback {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Hide fallback when image exists and is loaded */
.client-icon:has(.client-image:not([style*="display: none"])) .client-name-fallback {
    display: none !important;
}

.client-name-fallback .client-name-ar,
.client-name-fallback .client-name-en {
    position: relative;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--text-light);
    transition: var(--transition);
    padding: 0 5px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 50%;
}

.client-name-fallback .client-name-ar {
    font-size: 0.7rem;
}

/* Show fallback when image is not available - handled by JavaScript onerror/onload */

/* Names that are direct children (for items without images) */
.client-icon > .client-name-ar,
.client-icon > .client-name-en {
    position: absolute;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--text-light);
    transition: var(--transition);
    padding: 0 5px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 100%;
    z-index: 3;
}

.client-icon > .client-name-ar {
    font-size: 0.7rem;
}

/* Show names on hover when image exists - Image scales with icon */
.client-item:hover .client-image {
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
    transform: scale(1.5) translateY(-10px) rotate(5deg);
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.client-image:hover {
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.client-item:hover .client-name-fallback {
    display: flex !important;
    z-index: 4;
}

.client-item:hover .client-icon > .client-name-ar,
.client-item:hover .client-icon > .client-name-en {
    display: flex;
    z-index: 4;
}

.client-item:hover .client-name-ar,
.client-item:hover .client-name-en {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.4rem !important;
    transform: scale(1);
    z-index: 101;
    text-shadow: none;
    white-space: normal;
    line-height: 1.3;
}

.client-item:hover .client-name-ar {
    font-size: 1.4rem !important;
}

.client-item:hover .client-name-en {
    font-size: 1.3rem !important;
}

/* Language-specific display - JavaScript will handle this, but keep CSS as fallback */
html[dir="rtl"] .client-name-en,
html[lang="ar"] .client-name-en {
    display: none !important;
}

html[dir="ltr"] .client-name-ar,
html[lang="en"] .client-name-ar {
    display: none !important;
}

html[dir="ltr"] .client-name-en,
html[lang="en"] .client-name-en {
    display: flex !important;
}

/* Tooltip on hover */
.client-item::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--bg-card);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 168, 232, 0.3);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.client-item::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--bg-card);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1001;
}

.client-item:hover {
    box-shadow: none !important;
    filter: none !important;
}

.client-item:hover::after,
.client-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 1400px) {
    .clients-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
    
    .client-icon {
        width: 109.375px;
        height: 109.375px;
    }
    
    .client-name-ar,
    .client-name-en {
        font-size: 0.6rem;
    }
    
    .client-name-ar {
        font-size: 0.65rem;
    }
}

@media (max-width: 600px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .client-icon {
        width: 93.75px;
        height: 93.75px;
    }
    
    .client-name-ar,
    .client-name-en {
        font-size: 0.55rem;
    }
    
    .client-name-ar {
        font-size: 0.6rem;
    }
}

@media (max-width: 360px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Forms */
.request-form-section {
    padding: 80px 0;
}

.request-form,
.application-form,
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.request-form:hover,
.application-form:hover,
.contact-form:hover {
    box-shadow: var(--shadow-colored), 0 0 40px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-color);
}

.request-form h3,
.application-form h3 {
    color: var(--primary-color);
    margin: 2rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.request-form h3:first-child,
.application-form h3:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    z-index: 4;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-colored), 0 0 40px rgba(255, 107, 53, 0.3);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 107, 53, 0.1);
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
}

.faq-question i {
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Blog */
.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--gradient-card);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.blog-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-colored), 0 0 40px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-color);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-date i,
.blog-category {
    color: var(--secondary-color);
}

.blog-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* Contact */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-side h2,
.contact-form-side h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-info-list {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0.3rem 0;
}

.social-contact {
    margin-top: 2rem;
}

.social-contact h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Map */
.map-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    border: none;
    display: block;
}

/* Requirements */
.requirements {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    background: var(--bg-dark);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.requirement-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.requirement-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-colored), 0 0 80px rgba(255, 107, 53, 0.7), 0 0 100px rgba(255, 107, 53, 0.5);
    border-color: var(--primary-color);
    filter: brightness(1.2);
}

.requirement-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.requirement-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.requirement-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Tips */
.tips-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    z-index: 3;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-colored), 0 0 40px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-color);
}

.tip-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Available Jobs Section */
.available-jobs-section {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
}

.section-header-with-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    flex-wrap: nowrap;
}

.section-header-with-action .section-title {
    margin: 0;
    flex: 1;
    text-align: center;
}

/* Hide admin buttons by default - will be shown when admin is authenticated */
.action-buttons {
    display: none; /* Hidden by default, shown via JavaScript when admin logs in */
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    height: 47px;
    position: absolute;
    right: 0;
    top: 0;
}

.add-job-btn,
.delete-all-btn,
.jobs-logout-btn {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    max-width: 45px;
    max-height: 45px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.17rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    padding: 0;
    margin: 0;
    line-height: 1;
    flex-shrink: 0;
    box-sizing: border-box;
}

.add-job-btn i,
.delete-all-btn i,
.jobs-logout-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: inherit;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.add-job-btn {
    background: var(--gradient-2);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
    margin-top: 0px !important;
    align-self: flex-start;
}

.add-job-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.5);
    margin-top: 0px !important;
}

.add-job-btn:active {
    transform: scale(0.95) rotate(90deg);
    margin-top: 0px !important;
}

.add-job-btn i {
    transition: transform 0.3s ease;
}

.add-job-btn:hover i {
    transform: rotate(180deg);
}

.delete-all-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    margin-top: 2px !important;
    align-self: flex-end;
}

.delete-all-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    margin-top: 2px !important;
}

.delete-all-btn:active {
    transform: scale(0.95) rotate(90deg);
    margin-top: 2px !important;
}

.delete-all-btn i {
    transition: transform 0.3s ease;
}

.delete-all-btn:hover i {
    transform: rotate(180deg);
}

.jobs-logout-btn {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.35);
    margin-top: 1px !important;
    align-self: center;
}

.jobs-logout-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.5);
    margin-top: 1px !important;
}

.jobs-logout-btn:active {
    transform: scale(0.95);
    margin-top: 1px !important;
}

.available-jobs-section .section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.job-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 15px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-colored);
    border-color: var(--primary-color);
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    flex: 1;
}

.job-badge {
    background: var(--gradient-2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.job-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.85rem;
}

.job-detail-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.job-detail-item strong {
    color: var(--text-light);
    margin-left: 0.5rem;
}

.job-salary {
    background: rgba(0, 168, 232, 0.1);
    padding: 0.4rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border-right: 3px solid var(--secondary-color);
}

.job-salary-label {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-bottom: 0.15rem;
}

.job-salary-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.job-description {
    color: var(--text-medium);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.job-requirements {
    margin-bottom: 0.5rem;
}

.job-requirements-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.job-requirements-title i {
    color: var(--primary-color);
}

.job-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.job-requirements-list li {
    color: var(--text-medium);
    font-size: 0.8rem;
    padding-right: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.job-requirements-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: 700;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    flex-wrap: wrap;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.job-location i {
    color: var(--primary-color);
}

.job-apply-btn {
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.job-apply-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

.job-apply-btn i {
    font-size: 0.85rem;
}

/* Hide delete button on job cards by default - shown when admin is authenticated */
.job-delete-icon-btn {
    display: none; /* Hidden by default, shown via JavaScript when admin logs in */
    background: transparent !important;
    border: none !important;
    color: #ef4444 !important;
    font-size: 1.3rem !important;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    position: relative;
}

.job-delete-icon-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    transform: scale(1.15);
}

.job-delete-icon-btn:active {
    transform: scale(0.95);
}

.job-delete-icon-btn i {
    transition: transform 0.3s ease;
}

.job-delete-icon-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .job-title {
        font-size: 1.25rem;
    }
    
    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job-apply-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Job Application Page Styles */
.application-section {
    padding: 80px 0;
    min-height: auto;
    position: relative;
    overflow: visible;
    width: 100%;
    display: block;
    z-index: 10;
    background: var(--bg-dark);
}

/* Required Field Indicator - Asterisk (*) */
.application-form .form-group label::after {
    content: '';
}

.application-form .form-group label[for]:has(+ input[required])::after,
.application-form .form-group label[for]:has(+ select[required])::after,
.application-form .form-group label[for]:has(+ textarea[required])::after,
.application-form .form-group > label:has(+ div input[required])::after,
.application-form .form-group label[for*="privacy"]:has(~ input[required])::after,
.application-form .form-group label[for="city"][data-required="true"]::after,
.application-form .form-group label[data-required="true"]::after {
    content: ' *';
    color: #ec4899;
    font-weight: 700;
    position: relative;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
    .application-form .form-group label[for="firstName"]::after,
    .application-form .form-group label[for="lastName"]::after,
    .application-form .form-group label[for="email"]::after,
    .application-form .form-group label[for="phone"]::after,
    .application-form .form-group label[for="birthdate"]::after,
    .application-form .form-group label[for="gender"]::after,
    .application-form .form-group label[for="notice-period"]::after,
    .application-form .form-group label[for="residence-valid"]::after,
    .application-form .form-group label[for="sponsor-transfer-issue"]::after,
    .application-form .form-group label[for="nationality"]::after,
    .application-form .form-group label[for="country"]::after,
    .application-form .form-group label[for="city"]::after,
    .application-form .form-group label[for="education"]::after,
    .application-form .form-group label[for="position"]::after,
    .application-form .form-group label[for="experience"]::after,
    .application-form .form-group label[for="employment"]::after,
    .application-form .form-group label[for="previous-salary"]::after,
    .application-form .form-group label[for="expected-salary"]::after,
    .application-form .form-group label[for="resume"]::after,
    .application-form .form-group label[for="referral"]::after {
        content: ' *';
        color: #ec4899;
        font-weight: 700;
    }
}

.application-header {
    text-align: center;
    margin-bottom: 3rem;
}

.application-header .main-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.application-section .application-form {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 3rem;
    padding-bottom: 4rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.application-section .application-form:hover {
    box-shadow: var(--shadow-colored);
    border-color: var(--primary-color);
}

/* Responsive styles for application form */
@media (max-width: 1024px) {
    .application-section .application-form {
        max-width: 95%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .application-section {
        padding: 40px 0;
    }
    
    .application-section .application-form {
        max-width: 100%;
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .application-header .main-title {
        font-size: 2rem;
    }
    
    .form-section-title {
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .reset-btn,
    .submit-btn {
        width: 100%;
    }
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    width: 100%;
    position: relative;
    z-index: 10;
    visibility: visible;
    opacity: 1;
}

.reset-btn,
.submit-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
    position: relative;
    z-index: 10;
}

.reset-btn {
    background: var(--bg-dark-secondary);
    color: var(--text-light);
    border: 2px solid var(--bg-light);
}

.reset-btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.submit-btn {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: var(--shadow-colored);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 107, 53, 0.5);
}

.file-upload-wrapper {
    position: relative;
    margin-top: 0.5rem;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-dark-secondary);
    border: 2px dashed rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: var(--bg-dark-tertiary);
}

.file-icon {
    font-size: 2rem;
}

.file-text {
    color: var(--text-medium);
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-item label {
    margin: 0;
    color: var(--text-light);
    cursor: pointer;
}

.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.phone-input-wrapper select {
    flex: 0 0 200px;
}

.phone-input-wrapper input {
    flex: 1;
}

/* Reports Page Styles */
.reports-header {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.reports-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.reports-header p {
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--bg-dark-secondary);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    text-align: center;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.stat-card * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.stat-card .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card .label {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.controls-section {
    background: var(--gradient-card);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 0;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark-secondary);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 0.75rem 1rem;
    background: var(--bg-dark-secondary);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.table-container {
    background: var(--gradient-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--gradient-1);
}

th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--bg-dark-secondary);
}

td {
    padding: 1rem;
    color: var(--text-medium);
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.badge-info {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 0;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--gradient-1);
    color: var(--white);
}

.modal-header h2 {
    margin: 0;
    color: var(--white);
    font-weight: 800;
}

.close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.modal-body-wrapper {
    padding: 1.5rem;
    background: var(--gradient-card);
    max-height: calc(90vh - 76px);
    overflow-y: auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-item label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.detail-item .value {
    color: var(--text-light);
    font-size: 0.95rem;
    background: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-medium);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Responsive Updates */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .vm-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        right: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-year {
        margin: 0 1rem 0 0;
    }
    
    .timeline-content {
        margin-right: 4rem;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .service-header h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #ffffff;
    backdrop-filter: none;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    display: flex;
    gap: 4px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

body[dir="ltr"] .lang-switcher {
    right: auto;
    left: 20px;
}

.lang-switcher .lang-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lang-switcher .lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.lang-switcher .lang-btn:hover::before {
    left: 0;
}

.lang-switcher .lang-btn:hover {
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.lang-switcher .lang-btn.active {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

.lang-switcher .lang-btn.active::before {
    left: 0;
}

/* Custom Dropdown Styles */
.custom-country-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    /* Ensure flags container doesn't hide flags */
    overflow: visible !important;
    z-index: 1;
}

.dropdown-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 6px 0 0 6px;
    border-right: none;
    background: var(--bg-dark-secondary);
    backdrop-filter: none;
    cursor: pointer;
    min-width: 200px;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: var(--transition);
    /* Ensure flags are visible on dark background */
    filter: none !important;
    -webkit-filter: none !important;
}

.dropdown-display:hover {
    background: var(--bg-dark);
    border-color: var(--primary-color);
}

.dropdown-display .flag-emoji {
    font-size: 24px !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin-left: 4px !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    /* Ensure flags are always visible - no filters or color changes */
    filter: none !important;
    -webkit-filter: none !important;
    color: inherit !important;
    background: transparent !important;
    text-shadow: none !important;
    -webkit-text-fill-color: initial !important;
    /* Force rendering */
    transform: none !important;
    will-change: auto !important;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    margin-left: auto;
    transition: transform 0.3s;
}

.dropdown-display:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-dark-secondary);
    backdrop-filter: none;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dropdown-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    font-size: 0.95rem;
    outline: none;
    background: var(--bg-dark-secondary);
    color: var(--text-light);
}

.dropdown-search::placeholder {
    color: var(--text-medium);
}

.dropdown-search:focus {
    border-bottom-color: var(--primary-color);
}

.dropdown-options-list {
    max-height: 220px;
    overflow-y: auto;
}

.dropdown-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
}

html[dir="ltr"] .dropdown-options {
    border-radius: 0 0 6px 0;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--text-light);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.dropdown-option .flag-emoji {
    font-size: 24px !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin-left: 4px !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    /* Ensure flags are always visible - no filters or color changes */
    filter: none !important;
    -webkit-filter: none !important;
    color: inherit !important;
    background: transparent !important;
    text-shadow: none !important;
    -webkit-text-fill-color: initial !important;
    transform: none !important;
    will-change: auto !important;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.7; }
}

@keyframes rocket {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@media (max-width: 480px) {
    .lang-switcher {
        top: 10px;
        right: 10px;
        padding: 3px;
    }

    body[dir="ltr"] .lang-switcher {
        left: 10px;
    }

    .lang-switcher .lang-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Unique Card Animations */

/* Feature Card Animations */
@keyframes featureCardFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

@keyframes featureCardBounce {
    0%, 100% {
        transform: translateY(-15px) scale(1.05) rotate(2deg);
    }
    25% {
        transform: translateY(-20px) scale(1.08) rotate(3deg);
    }
    50% {
        transform: translateY(-12px) scale(1.06) rotate(1deg);
    }
    75% {
        transform: translateY(-18px) scale(1.07) rotate(2.5deg);
    }
}

/* Service Card Animations */
@keyframes serviceCardSlide {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    25% {
        transform: translateX(5px) scale(1.01);
    }
    50% {
        transform: translateX(0) scale(1);
    }
    75% {
        transform: translateX(-5px) scale(1.01);
    }
}

@keyframes serviceCardSlideHover {
    0%, 100% {
        transform: translateY(-10px) scale(1.05);
    }
    25% {
        transform: translateY(-12px) scale(1.07) translateX(3px);
    }
    50% {
        transform: translateY(-8px) scale(1.06) translateX(-3px);
    }
    75% {
        transform: translateY(-11px) scale(1.065) translateX(2px);
    }
}

/* Stat Card Animations */
@keyframes statCardPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: none;
    }
    50% {
        transform: scale(1.02);
        box-shadow: none;
    }
}

@keyframes statCardGlow {
    0%, 100% {
        transform: translateY(-10px) scale(1.08);
        box-shadow: none;
    }
    25% {
        transform: translateY(-12px) scale(1.1);
        box-shadow: none;
    }
    50% {
        transform: translateY(-8px) scale(1.09);
        box-shadow: none;
    }
    75% {
        transform: translateY(-11px) scale(1.095);
        box-shadow: none;
    }
}

/* Testimonial Card Animations */
@keyframes testimonialCardFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-6px) rotate(0.5deg);
    }
    66% {
        transform: translateY(-3px) rotate(-0.5deg);
    }
}

@keyframes testimonialCardTilt {
    0%, 100% {
        transform: translateY(-15px) scale(1.05) rotate(-1deg);
    }
    25% {
        transform: translateY(-18px) scale(1.07) rotate(-2deg);
    }
    50% {
        transform: translateY(-13px) scale(1.06) rotate(-0.5deg);
    }
    75% {
        transform: translateY(-16px) scale(1.065) rotate(-1.5deg);
    }
}

/* Card Entrance Animations */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotateInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotate(-180deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes rotateInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(180deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Hero Text Entrance Animations - New Options */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomInRotate {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes flipInX {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateX(90deg);
    }
    40% {
        transform: perspective(400px) rotateX(-20deg);
    }
    60% {
        transform: perspective(400px) rotateX(10deg);
    }
    80% {
        transform: perspective(400px) rotateX(-5deg);
    }
    100% {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg);
    }
}

@keyframes flipInY {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    40% {
        transform: perspective(400px) rotateY(-20deg);
    }
    60% {
        transform: perspective(400px) rotateY(10deg);
    }
    80% {
        transform: perspective(400px) rotateY(-5deg);
    }
    100% {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRotate {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotate(-45deg) scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: translateX(20px) rotate(5deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

@keyframes elasticIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes typewriter {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInBlur {
    0% {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes rotateScale {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    50% {
        opacity: 0.8;
        transform: rotate(90deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* ============================================
   Animated Background Elements for Recruitment
   ============================================ */

/* Floating Job Icons Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Floating Job Icons */
.floating-job-icon {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 107, 53, 0.2);
    animation: floatJobIcon 15s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.5;
}

.floating-job-icon:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    color: rgba(255, 107, 53, 0.15);
}

.floating-job-icon:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 2s;
    color: rgba(0, 168, 232, 0.15);
    animation-duration: 18s;
}

.floating-job-icon:nth-child(3) {
    bottom: 25%;
    left: 10%;
    animation-delay: 4s;
    color: rgba(255, 210, 63, 0.15);
    animation-duration: 20s;
}

.floating-job-icon:nth-child(4) {
    top: 50%;
    right: 15%;
    animation-delay: 1s;
    color: rgba(255, 107, 53, 0.15);
    animation-duration: 16s;
}

.floating-job-icon:nth-child(5) {
    bottom: 15%;
    right: 25%;
    animation-delay: 3s;
    color: rgba(0, 168, 232, 0.15);
    animation-duration: 22s;
}

.floating-job-icon:nth-child(6) {
    top: 70%;
    left: 20%;
    animation-delay: 5s;
    color: rgba(255, 210, 63, 0.15);
    animation-duration: 19s;
}

.floating-job-icon:nth-child(7) {
    top: 15%;
    right: 30%;
    animation-delay: 1.5s;
    color: rgba(255, 107, 53, 0.15);
    animation-duration: 17s;
}

.floating-job-icon:nth-child(8) {
    bottom: 30%;
    right: 10%;
    animation-delay: 3.5s;
    color: rgba(0, 168, 232, 0.15);
    animation-duration: 21s;
}

.floating-job-icon:nth-child(9) {
    top: 60%;
    left: 30%;
    animation-delay: 2.5s;
    color: rgba(255, 210, 63, 0.15);
    animation-duration: 18s;
}

.floating-job-icon:nth-child(10) {
    bottom: 40%;
    left: 25%;
    animation-delay: 4.5s;
    color: rgba(255, 107, 53, 0.15);
    animation-duration: 20s;
}

@keyframes floatJobIcon {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-40px) translateX(30px) rotate(10deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) translateX(-25px) rotate(-10deg) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-50px) translateX(20px) rotate(5deg) scale(1.05);
        opacity: 0.6;
    }
}

/* Animated Particles */
.animated-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 107, 53, 0.5);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(odd) {
    background: rgba(0, 168, 232, 0.5);
    animation-duration: 25s;
}

.particle:nth-child(3n) {
    background: rgba(255, 210, 63, 0.5);
    animation-duration: 30s;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; }
.particle:nth-child(10) { left: 15%; animation-delay: 18s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Connection Lines Animation */
.connection-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.35) 50%, 
        transparent 100%);
    animation: connectionLineMove 15s linear infinite;
    transform-origin: left center;
}

.connection-line:nth-child(odd) {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 168, 232, 0.35) 50%, 
        transparent 100%);
    animation-duration: 20s;
}

.connection-line:nth-child(3n) {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 210, 63, 0.35) 50%, 
        transparent 100%);
    animation-duration: 25s;
}

@keyframes connectionLineMove {
    0% {
        transform: translateX(-100%) scaleX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(100vw) scaleX(1);
        opacity: 0;
    }
}

/* Document Icons Floating */
.floating-document {
    position: absolute;
    font-size: 1.8rem;
    color: rgba(255, 107, 53, 0.1);
    animation: floatDocument 12s ease-in-out infinite;
    pointer-events: none;
}

.floating-document:nth-child(odd) {
    color: rgba(0, 168, 232, 0.1);
    animation-duration: 14s;
}

.floating-document:nth-child(3n) {
    color: rgba(255, 210, 63, 0.1);
    animation-duration: 16s;
}

@keyframes floatDocument {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-30px) rotate(15deg);
        opacity: 0.45;
    }
}

/* Hide animated background on homepage */
body:has(.hero-video) .animated-background,
body:has(.hero-video) .animated-particles,
body:has(.hero-video) .connection-lines {
    display: none;
}

body:has(.hero-video)::after {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-job-icon {
        font-size: 1.5rem;
        opacity: 0.2;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
    
    .floating-document {
        font-size: 1.2rem;
    }
}

/* ============================================
   إزالة الظل من الفيديو - قواعد نهائية شاملة
   ============================================ */

/* إزالة الظل من الفيديو وجميع العناصر المتعلقة به */
video.hero-video,
.hero-video,
.hero-video *,
.hero-video-overlay,
.hero-video-overlay *,
.hero section video,
.hero section .hero-video,
section.hero video,
section.hero .hero-video {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    text-shadow: none !important;
    drop-shadow: none !important;
    -webkit-drop-shadow: none !important;
}

/* إزالة الظل من body وhtml عند وجود الفيديو */
body:has(.hero-video) video,
body:has(.hero-video) .hero-video,
body:has(.hero-video) .hero-video-overlay,
html:has(.hero-video) video,
html:has(.hero-video) .hero-video,
html:has(.hero-video) .hero-video-overlay {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    text-shadow: none !important;
    drop-shadow: none !important;
    -webkit-drop-shadow: none !important;
}

/* إزالة الظل من pseudo-elements */
.hero-video::before,
.hero-video::after,
.hero-video-overlay::before,
.hero-video-overlay::after,
.hero::before,
.hero::after {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    text-shadow: none !important;
    drop-shadow: none !important;
    -webkit-drop-shadow: none !important;
}

/* Required Jobs Section */
#requiredJobsContainer {
    margin-bottom: 1rem;
}

.job-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    position: relative;
}

.job-item-content {
    position: relative;
}

.remove-job-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.remove-job-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.remove-job-btn i {
    margin-left: 0.5rem;
}

#addJobBtn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#addJobBtn i {
    font-size: 1rem;
}

/* ============================================
   Responsive Design - تحسينات شاملة لجميع الأجهزة
   ============================================ */

/* ===== Large Desktops (1400px+) ===== */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 30px;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* ===== Desktops (1200px - 1399px) ===== */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
        padding: 0 25px;
    }
}

/* ===== Laptops / Small Desktops (992px - 1199px) ===== */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Tablets Landscape & Desktop (782px+) - مثل ignitebh.com ===== */
@media screen and (min-width: 782px) {
    .container {
        padding: 0 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    /* Desktop navigation - show full menu */
    .nav-menu {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ===== Tablets Portrait / Large Phones (600px - 781px) - مثل ignitebh.com ===== */
@media screen and (min-width: 600px) and (max-width: 781px) {
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .page-header {
        padding: 60px 0 40px !important;
    }
    
    .navbar {
        padding: 0.7rem 0;
    }
    
    .logo-image {
        width: 50px !important;
        height: 50px !important;
    }
    
    .logo-text {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ===== Mobile Phones (< 600px) - مثل ignitebh.com ===== */
@media screen and (max-width: 599px) {
    /* Mobile menu toggle visible */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Hide desktop menu */
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--bg-dark);
        padding: 1rem;
        padding-bottom: 4.5rem; /* مساحة لزر اللغة في الأسفل */
        gap: 1rem;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        min-height: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    /* Language selector داخل القائمة يجب أن يظهر - نفس الموضع في كلا اللغتين */
    .nav-menu.active .language-selector,
    [dir="ltr"] .nav-menu.active .language-selector,
    [dir="rtl"] .nav-menu.active .language-selector {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        pointer-events: auto !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Language selector wrapper داخل القائمة - نفس الموضع في كلا اللغتين */
    .nav-menu.active li .language-selector {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* List item الذي يحتوي على language selector */
    .nav-menu.active li:last-child,
    .nav-menu.active li:nth-last-child(2) {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        list-style: none !important;
    }
    
    /* Language selector buttons داخل القائمة - نفس الأبعاد والتصميم في كلا اللغتين */
    .nav-menu.active .language-selector .lang-btn,
    [dir="ltr"] .nav-menu.active .language-selector .lang-btn,
    [dir="rtl"] .nav-menu.active .language-selector .lang-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important; /* إزالة margin لاستخدام gap فقط */
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        border: 1px solid rgba(255, 107, 53, 0.2) !important;
        background: rgba(255, 107, 53, 0.1) !important;
        color: var(--primary-color) !important;
        border-radius: 50% !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        align-items: center !important;
        justify-content: center !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        cursor: pointer !important;
    }
    
    /* Language selector gap داخل القائمة - نفس المسافة في كلا اللغتين */
    .nav-menu.active .language-selector,
    [dir="ltr"] .nav-menu.active .language-selector,
    [dir="rtl"] .nav-menu.active .language-selector {
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* إلغاء أي قواعد CSS أخرى قد تؤثر على المسافة */
    [dir="rtl"] .nav-menu.active .language-selector .lang-btn[data-lang="en"],
    [dir="ltr"] .nav-menu.active .language-selector .lang-btn[data-lang="ar"] {
        margin: 0 !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    /* Logo responsive on mobile */
    .logo {
        transform: none !important;
        order: -1;
    }
    
    .logo:hover {
        transform: scale(1.05) !important;
    }
    
    .logo:active {
        transform: scale(1.02) !important;
    }
    
    .logo-image,
    img.logo-image,
    .logo img.logo-image,
    a.logo img.logo-image,
    .nav-wrapper .logo img.logo-image,
    .navbar .logo img.logo-image {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .logo:hover .logo-image,
    .logo:hover img.logo-image,
    a.logo:hover img.logo-image {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .logo:active .logo-image,
    .logo:active img.logo-image,
    a.logo:active img.logo-image {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    /* Nav wrapper adjustments */
    .nav-wrapper {
        padding: 0 10px !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap;
        justify-content: space-between !important;
        align-items: center;
    }
    
    /* Logo على اليسار */
    .logo {
        order: -1;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto;
        margin-right: 0;
    }
    
    /* Logo text adjustments on mobile */
    .logo-text {
        transform: none !important;
        margin-right: 0;
        gap: 0.15rem;
    }
    
    .logo:hover .logo-text {
        transform: translateY(-2px) !important;
    }
    
    .logo-ar {
        font-size: 0.75rem !important;
        white-space: nowrap;
    }
    
    .logo-en {
        font-size: 0.65rem !important;
        white-space: nowrap;
    }
    
    /* Language selector - إخفاء من navbar العادي دائماً على الجوال */
    .language-selector {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }
    
    /* التأكد من إخفاء language-selector حتى عندما تكون القائمة مفتوحة */
    .nav-menu.active ~ .language-selector,
    .nav-wrapper .language-selector {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Mobile menu toggle على اليمين */
    .mobile-menu-toggle {
        order: 2 !important;
        margin-left: auto !important;
        flex-shrink: 0;
    }
    
    /* Nav wrapper يحتاج position relative */
    .nav-wrapper {
        position: relative !important;
    }
    
    /* Navbar يحتاج position relative أيضاً */
    .navbar {
        position: relative !important;
    }
    
    /* Container يحتاج position relative */
    .navbar .container {
        position: relative !important;
    }
}

/* ===== Phones (480px - 599px) - Android & iPhone ===== */
@media screen and (min-width: 480px) and (max-width: 599px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .hero {
        min-height: 500px;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-tagline {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 15px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .features-grid,
    .services-grid,
    .testimonials-grid,
    .stats-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .feature-card,
    .service-card,
    .testimonial-card,
    .stat-card,
    .team-card,
    .value-card {
        padding: 1.5rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .page-header {
        padding: 50px 0 30px !important;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .navbar {
        padding: 0.6rem 0;
    }
    
    .logo-image,
    img.logo-image,
    .logo img.logo-image,
    a.logo img.logo-image,
    .nav-wrapper .logo img.logo-image,
    .navbar .logo img.logo-image {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    .logo:hover .logo-image,
    .logo:hover img.logo-image,
    a.logo:hover img.logo-image {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    .logo:active .logo-image,
    .logo:active img.logo-image,
    a.logo:active img.logo-image {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .request-form,
    .application-form,
    .contact-form {
        padding: 1.5rem !important;
        margin: 0 15px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Small Phones (360px - 479px) - Small Android & iPhone SE ===== */
@media screen and (min-width: 360px) and (max-width: 479px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .hero {
        min-height: 450px;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
        padding: 0 15px;
    }
    
    .hero-tagline {
        font-size: 1.4rem;
        line-height: 1.2;
        padding: 0 15px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 15px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 0.85rem;
    }
    
    .features-grid,
    .services-grid,
    .testimonials-grid,
    .stats-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card,
    .service-card,
    .testimonial-card,
    .stat-card,
    .team-card,
    .value-card {
        padding: 1.25rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .page-header {
        padding: 40px 0 25px !important;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo-image,
    img.logo-image,
    .logo img.logo-image,
    a.logo img.logo-image,
    .nav-wrapper .logo img.logo-image,
    .navbar .logo img.logo-image {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .logo:hover .logo-image,
    .logo:hover img.logo-image,
    a.logo:hover img.logo-image {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .logo:active .logo-image,
    .logo:active img.logo-image,
    a.logo:active img.logo-image {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .request-form,
    .application-form,
    .contact-form {
        padding: 1.25rem !important;
        margin: 0 15px !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.9rem;
        padding: 10px;
    }
}

/* ===== Very Small Phones (< 360px) - Old Android Phones ===== */
@media screen and (max-width: 359px) {
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .hero {
        min-height: 400px;
        padding: 1.25rem 0;
    }
    
    .hero-title {
        font-size: 1.3rem;
        line-height: 1.2;
        padding: 0 12px;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
        line-height: 1.2;
        padding: 0 12px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 12px;
    }
    
    .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .features-grid,
    .services-grid,
    .testimonials-grid,
    .stats-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature-card,
    .service-card,
    .testimonial-card,
    .stat-card,
    .team-card,
    .value-card {
        padding: 1rem;
    }
    
    section {
        padding: 35px 0;
    }
    
    .page-header {
        padding: 35px 0 20px !important;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    .navbar {
        padding: 0.4rem 0;
    }
    
    .logo-image,
    img.logo-image,
    .logo img.logo-image,
    a.logo img.logo-image,
    .nav-wrapper .logo img.logo-image,
    .navbar .logo img.logo-image {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .logo:hover .logo-image,
    .logo:hover img.logo-image,
    a.logo:hover img.logo-image {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .logo:active .logo-image,
    .logo:active img.logo-image,
    a.logo:active img.logo-image {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .request-form,
    .application-form,
    .contact-form {
        padding: 1rem !important;
        margin: 0 12px !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.85rem;
        padding: 8px;
    }
}

/* ===== Landscape Orientation (Phones & Tablets) ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-tagline {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
}

/* ===== iPhone Specific (375px - 428px) ===== */
@media screen and (min-width: 375px) and (max-width: 428px) {
    /* iPhone 12/13/14 Pro, iPhone 14 Plus */
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===== iPad Specific (768px - 1024px) ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== High DPI Displays (Retina, etc.) ===== */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .logo-image,
    .footer-logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== Touch Devices ===== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .btn,
    .mobile-menu-toggle,
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .language-selector,
    .hero-video,
    .hero-video-overlay {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ===== Additional Responsive Fixes ===== */

/* Navbar responsive improvements */
@media screen and (max-width: 991px) {
    .nav-wrapper {
        padding: 0 15px !important;
    }
    
    .logo {
        transform: none !important;
    }
    
    .logo:hover {
        transform: scale(1.05) !important;
    }
    
    .logo:active {
        transform: scale(1.02) !important;
    }
}

@media screen and (max-width: 767px) {
    .nav-wrapper {
        padding: 0 10px !important;
        gap: 0.5rem !important;
        flex-wrap: wrap;
        justify-content: space-between !important;
    }
    
    .logo {
        flex: 0 0 auto;
        min-width: 0;
        transform: none !important;
    }
    
    .logo:hover {
        transform: scale(1.05) !important;
    }
    
    .logo:active {
        transform: scale(1.02) !important;
    }
    
    .mobile-menu-toggle {
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* Language selector order handled in mobile media query */
}

/* Footer responsive improvements */
@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        text-align: center;
    }
}

/* Hero section responsive improvements */
@media screen and (max-width: 767px) {
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-image-container {
        display: none; /* Hide on mobile for better performance */
    }
}

/* Forms responsive improvements */
@media screen and (max-width: 600px) {
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Tables responsive */
@media screen and (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    table thead {
        display: none;
    }
    
    table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 107, 53, 0.2);
        border-radius: 8px;
        padding: 1rem;
    }
    
    table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border: none;
    }
    
    table tbody td::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--primary-color);
    }
}

/* Images and media responsive */
@media screen and (max-width: 768px) {
    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .hero-video {
        width: 100% !important;
        height: 100vh !important;
        object-fit: cover;
    }
}

/* Text responsive improvements */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Spacing improvements for mobile */
@media screen and (max-width: 768px) {
    .section-title {
        margin-bottom: 2rem;
    }
    
    .feature-card,
    .service-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

/* Safe area for notched devices (iPhone X, etc.) */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    @media screen and (max-width: 768px) {
        .container {
            padding-left: max(15px, env(safe-area-inset-left));
            padding-right: max(15px, env(safe-area-inset-right));
        }
    }
}


