/* style.css - النسخة المستقرة */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; scroll-behavior: smooth; }
:root { --primary: #003366; --secondary: #0055aa; --light: #f8f9fa; --dark: #212529; }
body { background: var(--light); color: var(--dark); direction: rtl; line-height: 1.6; overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 60px 0; }
a { text-decoration: none; color: inherit; }

/* القائمة */
header { background: #fff; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
nav ul { list-style: none; display: flex; gap: 20px; }
nav a { font-weight: 600; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--secondary); }
.btn-nav { background: var(--primary); color: #fff !important; padding: 8px 20px; border-radius: 5px; }

/* الهيرو */
.hero {
    background-image: url('../assets/images/hero4.jpeg');
    background-size: cover; background-position: center; height: 100vh;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    text-align: center; color: #fff; position: relative; padding-top: 80px; padding-bottom: 20px;
}
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,51,102,0.85), rgba(0,0,0,0.5)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; margin: auto; }
.hero h1 { font-size: 2.8rem; margin-bottom: 15px; font-weight: 800; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* شريط الشركات الزجاجي */
.hero-footer {
    position: relative; z-index: 2; width: 90%; max-width: 1100px; margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5); border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); padding: 15px 30px;
}
.trusted-by { color: var(--primary); font-weight: 900; margin-bottom: 10px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.trusted-by::before, .trusted-by::after { content: ''; display: block; width: 30px; height: 3px; background: linear-gradient(90deg, var(--secondary), transparent); border-radius: 10px; }
.trusted-by::before { transform: rotate(180deg); }

.clients-slider-mini { overflow: hidden; white-space: nowrap; width: 100%; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.slider-track { display: flex; align-items: center; gap: 50px; width: max-content; animation: scroll 25s linear infinite; }
.slide img { height: 40px; width: auto; filter: grayscale(100%); opacity: 0.7; transition: 0.3s; cursor: pointer; }
.slide img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

/* الأزرار والعناصر */
.btn { padding: 12px 30px; border-radius: 50px; font-weight: bold; display: inline-block; margin: 5px; transition: 0.3s; }
.btn-primary { background: var(--secondary); color: #fff; border: 2px solid var(--secondary); }
.btn-primary:hover { background: transparent; color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }

.page-header { background: linear-gradient(135deg, var(--primary), #001f3f); padding: 120px 0 60px; text-align: center; color: #fff; margin-bottom: 50px; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; color: var(--primary); font-weight: 800; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--secondary); margin: 10px auto 0; }

.features-grid, .services-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature, .service-card { background: #fff; padding: 30px; text-align: center; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.feature i, .service-card i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 15px; }

/* المعرض */
.portfolio-item { height: 280px; overflow: hidden; border-radius: 10px; position: relative; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-info { position: absolute; bottom: 0; width: 100%; background: rgba(0,51,102,0.9); color: #fff; padding: 15px; transform: translateY(100%); transition: 0.3s; }
.portfolio-item:hover .portfolio-info { transform: translateY(0); }

/* الفوتر */
footer { background: #002244; color: #ccc; text-align: center; padding: 40px 0; }
.social-icons a { color: #fff; font-size: 1.5rem; margin: 0 10px; transition: 0.3s; }
.social-icons a:hover { color: var(--secondary); }
.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: #fff; width: 60px; height: 60px; border-radius: 50%; text-align: center; line-height: 60px; font-size: 35px; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

/* تحسينات الموبايل للقائمة والهيرو */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 1rem; }
    nav ul { flex-direction: column; width: 100%; text-align: center; margin-top: 15px; gap: 10px; }
    .hero { height: auto; min-height: 100vh; padding-top: 160px; }
    .hero h1 { font-size: 2rem; }
    .hero-footer { padding: 10px; } /* تصغير الحواف */
    .slider-track { gap: 30px; }
}}

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; } }