/**
 * ==========================================================================
 * ملف: base.css
 * المسار: /base.css
 * الوظيفة: الستايلات الأساسية المشتركة — نمط SaaS حي مع Micro-Interactions
 * الإصدار: 2.0.0
 * تاريخ التحديث: 2026-03-13
 * ==========================================================================
 * ملاحظة: هذا الملف لا يحتوي على ألوان - الألوان تأتي من ملف الثيم
 * ==========================================================================
 */


/* =================================================================
   1. إعادة التعيين والأساسيات
   ================================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--cream); }

body {
    font-family: 'Zain', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); border-radius: 10px; }

img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }


/* =================================================================
   2. Keyframes والحركات العامة
   ================================================================= */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.8); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes floatP { 0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; } 25% { transform: translate(30px, -50px) scale(1.5); opacity: 0.25; } 50% { transform: translate(-20px, -90px) scale(1); opacity: 0.15; } 75% { transform: translate(40px, -40px) scale(2); opacity: 0.2; } }
@keyframes gridMove { to { transform: translate(80px, 80px); } }
@keyframes iconGlow { 0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } }
@keyframes rotateBorder { to { transform: rotate(360deg); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes glowLine { 0% { left: -40%; } 100% { left: 140%; } }
@keyframes slideInFromBottom { from { opacity: 0; transform: translateY(60px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }


/* =================================================================
   3. شريط التنقل (Navigation)
   ================================================================= */

.nav {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 20px 60px;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 14px 60px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; font-weight: 900; color: var(--primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-logo:hover { transform: scale(1.05); filter: brightness(1.15); }

.nav-links { display: flex; gap: 35px; list-style: none; }

.nav-links a {
    color: var(--text-mid); text-decoration: none;
    font-size: 0.92rem; font-weight: 600;
    position: relative; padding: 5px 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.lang-switch {
    background: var(--white); border: 1px solid var(--border);
    color: var(--text-dark); padding: 8px 20px; border-radius: 50px;
    font-family: 'Poppins', sans-serif; font-size: 0.85rem;
    cursor: pointer; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden;
}
.lang-switch:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
    transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 28px; height: 2px; background: var(--text-dark); transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* =================================================================
   4. القائمة الجانبية للموبايل
   ================================================================= */

.mobile-menu {
    position: fixed; top: 0; width: 100%; height: 100vh;
    background: var(--cream);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 35px;
    z-index: 999;
    transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu a {
    color: var(--text-dark); text-decoration: none;
    font-size: 1.5rem; font-weight: 700;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); opacity: 0.7;
}
.mobile-menu a:hover { color: var(--primary); opacity: 1; transform: scale(1.05); }


/* =================================================================
   5. بانر الصور (Hero Banner)
   ================================================================= */

.hero-banner { position: relative; width: 100%; height: 400px; margin-top: 70px; overflow: hidden; border-bottom: 3px solid var(--primary); }
.hero-banner-track { display: flex; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); direction: ltr; }
.hero-banner-slide { min-width: 100%; height: 100%; }
.hero-banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(180deg, transparent 0%, var(--cream) 100%); z-index: 2; }

.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.85); border: 1px solid var(--border);
    color: var(--text-dark); font-size: 1.2rem; cursor: pointer;
    z-index: 3; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.banner-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-50%) scale(1.15); box-shadow: var(--gold-glow); }
.banner-arrow-left { left: 20px; }
.banner-arrow-right { right: 20px; }

.hero-banner-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; background: var(--cream-2); border: 2px dashed var(--border); }
.hero-banner-placeholder-icon { font-size: 3rem; opacity: 0.4; animation: breathe 3s ease-in-out infinite; }
.hero-banner-placeholder-text { color: var(--text-light); font-size: 1rem; font-weight: 600; text-align: center; }
.hero-banner-placeholder-text span { display: block; font-size: 0.8rem; font-weight: 400; margin-top: 5px; color: var(--primary); }


/* =================================================================
   6. القسم الرئيسي (Hero)
   ================================================================= */

.hero { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 80px 60px; background: var(--cream); }
.hero.hero-with-image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero.hero-with-image .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(250,247,242,0.85) 0%, rgba(250,247,242,0.7) 40%, rgba(250,247,242,0.85) 100%); z-index: 1; }

.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 20% 50%, rgba(184,134,11,0.06) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(184,134,11,0.04) 0%, transparent 50%), radial-gradient(ellipse at 50% 90%, rgba(184,134,11,0.03) 0%, transparent 50%); }
.hero-grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(184,134,11,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(184,134,11,0.03) 1px, transparent 1px); background-size: 80px 80px; animation: gridMove 25s linear infinite; }

.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.particle { position: absolute; border-radius: 50%; opacity: 0.15; animation: floatP var(--dur, 18s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.particle.gold { background: var(--primary); }
.particle.green { background: #6B8E4E; }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); padding: 10px 26px; border-radius: 50px; margin-bottom: 35px; font-size: 0.88rem; color: var(--primary); font-weight: 600; animation: fadeInDown 1s ease 0.3s both; box-shadow: var(--shadow-sm); transition: all 0.4s; }
.hero-badge:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hero-badge .dot { width: 8px; height: 8px; background: #6B8E4E; border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

.hero-icon { width: 110px; height: 110px; margin: 0 auto 35px; position: relative; animation: breathe 4s ease-in-out infinite; }
.hero-icon-inner { width: 100%; height: 100%; border-radius: 28px; border: 1.5px solid rgba(184,134,11,0.2); display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; overflow: hidden; background: var(--white); box-shadow: var(--shadow-md); transition: all 0.5s; }
.hero-icon-inner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(184,134,11,0.08), rgba(184,134,11,0.02)); z-index: 0; }
.hero-icon svg { position: relative; z-index: 1; filter: drop-shadow(0 0 15px rgba(184,134,11,0.2)); }
.hero-icon::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 160%; height: 160%; border-radius: 50%; background: radial-gradient(circle, rgba(184,134,11,0.06) 0%, transparent 70%); animation: iconGlow 4s ease-in-out infinite; }

.hero h1 { font-size: 4rem; font-weight: 900; line-height: 1.15; margin-bottom: 8px; animation: fadeInUp 1s ease 0.5s both; color: var(--text-dark); }
.hero h1 .highlight { color: var(--primary); }
.hero-en { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text-light); font-weight: 400; margin-bottom: 22px; letter-spacing: 3px; animation: fadeInUp 1s ease 0.65s both; direction: ltr; }
.hero p { font-size: 1.1rem; color: var(--text-mid); max-width: 620px; margin: 0 auto 45px; animation: fadeInUp 1s ease 0.8s both; line-height: 1.9; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 1s ease 0.95s both; }


/* =================================================================
   7. الأزرار
   ================================================================= */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; padding: 16px 42px; border: none; border-radius: 60px;
    font-family: 'Zain', sans-serif; font-size: 1rem; font-weight: 700;
    cursor: pointer; position: relative; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none; display: inline-flex; align-items: center; gap: 10px; z-index: 1;
}
.btn-primary::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255,255,255,0.25); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); transform: translate(-50%, -50%); z-index: -1; }
.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transform: skewX(-20deg); animation: glowLine 4s ease-in-out infinite; z-index: 0; }
.btn-primary:hover { transform: translateY(-4px); box-shadow: var(--gold-glow), 0 10px 30px rgba(0,0,0,0.15); }
.btn-primary:active { transform: translateY(-1px); transition-duration: 0.1s; }
.btn-primary .arrow { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); display: inline-block; }

.btn-outline {
    background: var(--white); color: var(--text-dark); padding: 16px 42px;
    border: 1px solid var(--border); border-radius: 60px;
    font-family: 'Zain', sans-serif; font-size: 1rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-flex; align-items: center; gap: 10px;
    position: relative; overflow: hidden;
}
.btn-outline::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0; background: var(--primary); transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1); z-index: -1; opacity: 0.06; }
.btn-outline:hover::before { height: 100%; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.btn-outline:active { transform: translateY(-1px); transition-duration: 0.1s; }


/* =================================================================
   8. شريط الماركي المتحرك
   ================================================================= */

.marquee-strip { padding: 18px 0; background: var(--accent); overflow: hidden; position: relative; }
.marquee-strip::before, .marquee-strip::after { content: ''; position: absolute; top: 0; width: 80px; height: 100%; z-index: 2; pointer-events: none; }
.marquee-strip::before { left: 0; background: linear-gradient(90deg, var(--accent), transparent); }
.marquee-strip::after { right: 0; background: linear-gradient(-90deg, var(--accent), transparent); }
.marquee-track { display: flex; gap: 60px; animation: marquee 30s linear infinite; width: max-content; }
.marquee-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.7); white-space: nowrap; font-weight: 600; }
.marquee-item span { color: var(--primary-light); font-size: 1.1rem; }


/* =================================================================
   9. الإحصائيات
   ================================================================= */

.stats-strip { position: relative; padding: 80px 60px; background: var(--white); }
.stats-grid { display: flex; flex-wrap: wrap; gap: 30px; max-width: 1200px; margin: 0 auto; justify-content: center; }

.stat-item {
    text-align: center; padding: 40px 20px; border-radius: 24px;
    background: var(--cream); border: 1px solid var(--border-light);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden; flex: 0 1 250px;
}
.stat-item::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.stat-item:hover::before { opacity: 1; width: 100px; }
.stat-item:hover { transform: translateY(-10px); border-color: rgba(184,134,11,0.2); box-shadow: var(--shadow-lg); }

.stat-icon { font-size: 2rem; margin-bottom: 10px; display: block; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.stat-item:hover .stat-icon { transform: scale(1.2); }
.stat-number { font-size: 2.8rem; font-weight: 900; color: var(--primary); line-height: 1.2; transition: all 0.4s; }
.stat-item:hover .stat-number { text-shadow: 0 0 20px rgba(184,134,11,0.2); }
.stat-label { font-size: 0.92rem; color: var(--text-mid); font-weight: 600; margin-top: 5px; }
.stat-en { font-family: 'Poppins', sans-serif; font-size: 0.72rem; color: var(--text-light); direction: ltr; margin-top: 2px; }


/* =================================================================
   10. العناوين والأقسام المشتركة
   ================================================================= */

.section { padding: 120px 60px; max-width: 1400px; margin: 0 auto; }
.section-full { padding: 120px 60px; }
.section-header { text-align: center; margin-bottom: 80px; }

.section-label { display: inline-flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 15px; }
.section-label::before, .section-label::after { content: ''; width: 30px; height: 1px; background: var(--primary); opacity: 0.4; transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.section-header:hover .section-label::before, .section-header:hover .section-label::after { width: 50px; opacity: 0.7; }
.section-title { font-size: 2.8rem; font-weight: 900; margin-bottom: 12px; color: var(--text-dark); }
.section-title-en { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text-light); font-weight: 400; letter-spacing: 3px; direction: ltr; }
.section-subtitle { font-size: 1.05rem; color: var(--text-mid); max-width: 600px; margin: 15px auto 0; }


/* =================================================================
   11. من نحن (About)
   ================================================================= */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-visual { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: var(--cream-2); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.about-visual:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.about-visual-inner { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; }
.about-visual-emoji { font-size: 5rem; animation: breathe 5s ease-in-out infinite; }
.about-visual-text { font-size: 1rem; color: var(--primary); font-weight: 700; letter-spacing: 2px; }
.about-visual::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, rgba(184,134,11,0.08), transparent, transparent); animation: rotateBorder 10s linear infinite; z-index: 1; }
.about-visual::after { content: ''; position: absolute; inset: 2px; background: var(--cream-2); border-radius: 22px; z-index: 1; }

.about-badge { position: absolute; bottom: 20px; right: 20px; z-index: 3; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 15px 25px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md); transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.about-badge:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-badge .num { font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.about-badge .txt { font-size: 0.82rem; color: var(--text-mid); line-height: 1.4; }

.about-text h3 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; line-height: 1.4; color: var(--text-dark); }
.about-text p { font-size: 1.02rem; color: var(--text-mid); margin-bottom: 16px; line-height: 1.9; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.about-feature { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--cream); border: 1px solid var(--border-light); border-radius: 14px; font-size: 0.88rem; font-weight: 600; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); color: var(--text-dark); }
.about-feature:hover { border-color: var(--primary); background: var(--cream-2); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }


/* =================================================================
   12. الخدمات (Services)
   ================================================================= */

.services-section { background: var(--white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1400px; margin: 0 auto; }

.service-card {
    background: var(--cream); border: 1px solid var(--border-light); border-radius: 24px;
    padding: 40px 28px; text-align: center;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0; transition: opacity 0.5s; }
.service-card:hover::before { opacity: 1; }
.service-card::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: radial-gradient(circle, rgba(184,134,11,0.04), transparent 70%); border-radius: 50%; transform: translate(-50%, -50%); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); z-index: 0; }
.service-card:hover::after { width: 300px; height: 300px; }
.service-card:hover { transform: translateY(-12px); border-color: rgba(184,134,11,0.2); box-shadow: var(--shadow-lg); }

.service-icon-wrap { width: 80px; height: 80px; border-radius: 22px; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-size: 2.2rem; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); position: relative; z-index: 1; }
.service-card:hover .service-icon-wrap { transform: scale(1.1) rotate(5deg); box-shadow: var(--gold-glow); background: rgba(184,134,11,0.08); border-color: var(--primary); }

.service-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); position: relative; z-index: 1; }
.service-card .en-name { font-family: 'Poppins', sans-serif; font-size: 0.73rem; color: var(--primary); margin-bottom: 12px; direction: ltr; letter-spacing: 1px; position: relative; z-index: 1; }
.service-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.8; position: relative; z-index: 1; }


/* =================================================================
   13. سلايدر الصور (Slider)
   ================================================================= */

.slider-section { padding: 80px 60px; background: var(--accent); position: relative; overflow: hidden; }
.slider-container { max-width: 1200px; margin: 0 auto; position: relative; }
.slider-header { text-align: center; margin-bottom: 50px; }
.slider-header h2 { font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.slider-header p { color: rgba(255,255,255,0.6); font-size: 1rem; }

.slider-track-wrapper { overflow: hidden; border-radius: 20px; }
.slider-track { display: flex; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.slider-slide { min-width: 100%; position: relative; }
.slider-slide img { width: 100%; height: 500px; object-fit: cover; border-radius: 20px; }
.slider-slide .slide-placeholder { width: 100%; height: 500px; background: linear-gradient(135deg, #2A2A2A, #1A1A1A); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.slider-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1.2rem; cursor: pointer; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
.slider-btn:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.15); box-shadow: 0 0 20px rgba(184,134,11,0.3); }

.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); border: none; cursor: pointer; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.slider-dot.active { background: var(--primary); width: 30px; border-radius: 5px; box-shadow: 0 0 10px rgba(184,134,11,0.4); }
.slider-counter { color: rgba(255,255,255,0.5); font-family: 'Poppins', sans-serif; font-size: 0.85rem; }


/* =================================================================
   14. المشاريع (Projects)
   ================================================================= */

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1400px; margin: 0 auto; }

.project-card { border-radius: 24px; overflow: hidden; border: 1px solid var(--border-light); background: var(--white); transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); position: relative; }
.project-card:hover { transform: translateY(-10px); border-color: rgba(184,134,11,0.2); box-shadow: var(--shadow-lg); }
.project-card:hover img { transform: scale(1.05); }

.project-visual { height: 200px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; overflow: hidden; transition: background 0.5s; }
.project-visual::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--white)); }
.project-card:hover .project-visual { background: rgba(184,134,11,0.06); }

.project-body { padding: 28px; }
.project-body h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: var(--text-dark); transition: color 0.3s; }
.project-card:hover .project-body h4 { color: var(--primary); }
.project-body .en-name { font-family: 'Poppins', sans-serif; font-size: 0.73rem; color: var(--primary); margin-bottom: 10px; direction: ltr; letter-spacing: 1px; }
.project-body p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.7; }


/* =================================================================
   15. الشهادات (Certificates)
   ================================================================= */

.certs { padding: 80px 60px; background: var(--cream-2); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.certs-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.cert-item { display: flex; align-items: center; gap: 15px; padding: 22px 30px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.cert-item:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cert-icon { font-size: 1.8rem; transition: transform 0.4s; }
.cert-item:hover .cert-icon { transform: scale(1.15) rotate(5deg); }
.cert-text { font-weight: 700; font-size: 0.92rem; color: var(--text-dark); }
.cert-text-en { font-family: 'Poppins', sans-serif; font-size: 0.72rem; color: var(--text-light); direction: ltr; }


/* =================================================================
   16. التواصل (Contact)
   ================================================================= */

.contact-section { position: relative; overflow: hidden; background: var(--cream); }
.contact-bg-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 30% 50%, rgba(184,134,11,0.04) 0%, transparent 50%), radial-gradient(ellipse at 70% 50%, rgba(107,142,78,0.03) 0%, transparent 50%); }
.contact-content { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px auto; max-width: 900px; }

.contact-card { display: flex; align-items: center; gap: 15px; padding: 24px 28px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.contact-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card .c-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--cream); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.contact-card:hover .c-icon { background: rgba(184,134,11,0.08); border-color: var(--primary); transform: scale(1.05); }
.contact-card .c-label { font-size: 0.78rem; color: var(--text-light); margin-bottom: 2px; }
.contact-card .c-value { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); }
.contact-card .c-value-en { font-family: 'Poppins', sans-serif; font-size: 0.7rem; color: var(--text-light); direction: ltr; }


/* =================================================================
   17. الفوتر (Footer)
   ================================================================= */

.footer { padding: 80px 60px 30px; background: var(--accent); color: #fff; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand .logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--primary-light); margin-bottom: 15px; display: block; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.8; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; color: var(--primary-light); }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; padding: 5px 0; font-size: 0.88rem; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.footer-col a:hover { color: var(--primary-light); }

.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); font-size: 0.85rem; font-weight: 700; }
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-4px) scale(1.1); box-shadow: 0 8px 20px rgba(184,134,11,0.3); }


/* =================================================================
   18. زر العودة للأعلى
   ================================================================= */

.scroll-top { position: fixed; bottom: 30px; left: 30px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 900; opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); z-index: 100; box-shadow: var(--gold-glow); }
.scroll-top.visible { opacity: 1; visibility: visible; animation: slideInFromBottom 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.scroll-top:hover { transform: translateY(-5px) scale(1.1); box-shadow: var(--gold-glow), 0 10px 30px rgba(0,0,0,0.15); }


/* =================================================================
   19. Scroll Animations
   ================================================================= */

.fade-in { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.service-card, .project-card, .stat-item { opacity: 0; transform: translateY(40px); }
.service-card.visible, .project-card.visible, .stat-item.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* =================================================================
   20. دعم RTL / LTR
   ================================================================= */

html[dir="rtl"] .nav-links a::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
html[dir="rtl"] .mobile-menu { right: -100%; }
html[dir="rtl"] .mobile-menu.open { right: 0; }
html[dir="rtl"] .about-feature:hover { transform: translateX(-5px); }
html[dir="rtl"] .footer-col a:hover { transform: translateX(-5px); }
html[dir="rtl"] .contact-card .c-info { text-align: right; }
html[dir="rtl"] .btn-primary:hover .arrow { transform: translateX(-8px); }

html[dir="ltr"] .nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
html[dir="ltr"] .mobile-menu { left: -100%; }
html[dir="ltr"] .mobile-menu.open { left: 0; }
html[dir="ltr"] .about-feature:hover { transform: translateX(5px); }
html[dir="ltr"] .footer-col a:hover { transform: translateX(5px); }
html[dir="ltr"] .contact-card .c-info { text-align: left; }
html[dir="ltr"] .btn-primary:hover .arrow { transform: translateX(8px); }


/* =================================================================
   21. التصميم المتجاوب (Responsive)
   ================================================================= */

@media (max-width: 1024px) {
    .hero-banner { height: 300px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .slider-slide img, .slider-slide .slide-placeholder { height: 350px; }
}

@media (max-width: 768px) {
    .hero-banner { height: 220px; margin-top: 60px; }
    .nav { padding: 15px 25px; }
    .nav.scrolled { padding: 12px 25px; }
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .hero { padding: 100px 25px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-en { font-size: 1rem; }
    .hero-icon { width: 85px; height: 85px; }
    .section, .section-full { padding: 80px 25px; }
    .section-title { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-features { grid-template-columns: 1fr; }
    .services-grid, .projects-grid { grid-template-columns: 1fr; }
    .stats-grid { justify-content: center; }
    .stat-item { flex: 0 1 calc(50% - 15px); }
    .stats-strip { padding: 50px 25px; }
    .certs { padding: 50px 25px; }
    .contact-cards { grid-template-columns: 1fr; max-width: 400px; }
    .footer { padding: 60px 25px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .slider-section { padding: 60px 25px; }
    .slider-slide img, .slider-slide .slide-placeholder { height: 250px; }

    /* Reduce motion on mobile for performance */
    .service-card::after, .btn-primary::after { display: none; }
    .service-card:hover, .project-card:hover, .stat-item:hover, .contact-card:hover, .cert-item:hover { transform: translateY(-5px); }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .marquee-track { animation: none; }
}
