@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@800;900&display=swap');

/* إعادة تعيين أساسيات العناصر للموقع ككل */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #07111e;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

/* ----------------------------------------------------
   شريط التنقل العلوي المتغير (Navbar CSS)
------------------------------------------------------- */
.main-navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-inner-grid {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 640px) {
    .navbar-inner-grid { padding: 0 2rem; }
}

.navbar-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

/* الحالة 1: الافتراضية العلوية الشفافة */
.navbar-transparent { background-color: transparent; }
.navbar-transparent .nav-brand-title { color: #ffffff; }
.navbar-transparent .nav-brand-subtitle { color: rgba(255, 255, 255, 0.55); }
.navbar-transparent .nav-item-btn { color: rgba(255, 255, 255, 0.8); }
.navbar-transparent .nav-item-btn:hover { color: #ffffff; }
.navbar-transparent .nav-cta-call-action {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}
.navbar-transparent .nav-cta-call-action:hover { background-color: rgba(255, 255, 255, 0.22); }
.navbar-transparent .navbar-mobile-toggle { color: #ffffff; }

/* الحالة 2: النشطة بعد تمرير الصفحة والنزول لأسفل */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 24px rgba(15, 90, 168, 0.09);
    border-bottom: 1px solid rgba(15, 90, 168, 0.08);
}
.navbar-scrolled .nav-brand-title { color: #1a1a1a; }
.navbar-scrolled .nav-brand-subtitle { color: #0F5AA8; }
.navbar-scrolled .nav-item-btn { color: #444444; }
.navbar-scrolled .nav-item-btn:hover { color: #0F5AA8; }
.navbar-scrolled .nav-cta-call-action {
    background-color: #0F5AA8;
    color: #ffffff;
}
.navbar-scrolled .nav-cta-call-action:hover { background-color: #0d4f97; }
.navbar-scrolled .navbar-mobile-toggle { color: #333333; }

/* عناصر الشعار والأزرار الثابتة */
.navbar-logo-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
}
.nav-logo-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: #0F5AA8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
}
.navbar-logo-trigger:hover .nav-logo-box { box-shadow: 0 8px 12px rgba(15, 90, 168, 0.35); }
.nav-brand-title { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: 0.95rem; line-height: 1.2; }
.nav-brand-subtitle { font-size: 0.75rem; }

.navbar-desktop-links { display: none; align-items: center; gap: 0.125rem; }
@media (min-width: 1024px) { .navbar-desktop-links { display: flex; } }

.nav-item-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.875rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.25s;
}
.nav-item-btn.is-active { color: #0F5AA8 !important; background-color: rgba(15, 90, 168, 0.1); }

.navbar-cta-group { display: flex; align-items: center; gap: 0.625rem; }
.nav-cta-call-action { display: none; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 0.75rem; font-weight: 700; font-size: 0.875rem; text-decoration: none; transition: all 0.3s; }
@media (min-width: 640px) { .nav-cta-call-action { display: flex; } }

.navbar-mobile-toggle { display: block; background: none; border: none; cursor: pointer; padding: 0.5rem; border-radius: 0.75rem; font-size: 1.3rem; }
@media (min-width: 1024px) { .navbar-mobile-toggle { display: none; } }
.hidden { display: none !important; }

/* تصميم القائمة المستجيبة للهواتف */
.navbar-mobile-dropdown {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e8eef6;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 40;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.navbar-mobile-dropdown.is-open { opacity: 1; transform: translateY(0); }
.mobile-dropdown-container { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-btn { text-align: right; background: none; border: none; cursor: pointer; padding: 0.75rem 1rem; border-radius: 0.75rem; color: #333333; font-weight: 500; font-size: 0.875rem; width: 100%; font-family: 'Cairo', sans-serif; }
.mobile-nav-btn:hover { color: #0F5AA8; background-color: #f4f7fb; }
.mobile-dropdown-call-btn { margin-top: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; border-radius: 0.75rem; background-color: #0F5AA8; color: #ffffff; text-decoration: none; font-weight: 700; }

/* ----------------------------------------------------
   تنسيقات الواجهة الرئيسية (Hero Section)
------------------------------------------------------- */
.hero-advanced-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg-layer { position: absolute; inset: 0; z-index: 1; }
.hero-media-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1), opacity 2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-media-cover.is-loaded { opacity: 1; transform: scale(1); }

.hero-gradient-overlay-left { position: absolute; inset: 0; background: linear-gradient(to left, #07111e 10%, rgba(7, 17, 30, 0.6) 50%, transparent 100%); }
.hero-gradient-overlay-bottom { position: absolute; inset: 0; background: linear-gradient(to top, #07111e 5%, transparent 60%); }

.hero-content-container { position: relative; z-index: 10; width: 100%; max-width: 80rem; margin: 0 auto; padding: 8rem 1.25rem 4rem 1.25rem; }
@media (min-width: 640px) { .hero-content-container { padding: 8rem 2rem 4rem 2rem; } }
.hero-text-column { max-width: 44rem; display: flex; flex-direction: column; gap: 1.5rem; }

.location-pulse-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.15); background-color: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; backdrop-filter: blur(4px); }
.pulse-core-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background-color: #4da6ff; animation: badgePulse 2s infinite; }

.hero-main-heading { color: #ffffff; line-height: 1.2; font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: clamp(2.2rem, 5vw, 4rem); }
.highlight-cyan-text { color: #4da6ff; }
.hero-sub-description { color: rgba(255, 255, 255, 0.65); line-height: 1.8; font-size: 1.05rem; }

.warranty-flex-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 0.75rem; border: 1px solid rgba(15, 90, 168, 0.4); background-color: rgba(15, 90, 168, 0.15); backdrop-filter: blur(4px); width: fit-content; }
.warranty-badge-text { font-size: 0.875rem; color: rgba(255, 255, 255, 0.9); }
.cyan-bold-text { color: #4da6ff; font-weight: 700; }

.hero-action-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-btn-primary, .hero-btn-whatsapp, .hero-btn-phone { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: 0.75rem; font-weight: 700; font-size: 0.95rem; cursor: pointer; text-decoration: none; border: none; transition: all 0.3s; font-family: 'Cairo', sans-serif; }

.hero-btn-primary { background-color: #0F5AA8; color: #ffffff; }
.hero-btn-primary:hover { background-color: #0d4f97; transform: translateY(-2px); }
.hero-btn-whatsapp { background-color: rgba(37, 211, 102, 0.12); color: #ffffff; border: 1px solid rgba(37, 211, 102, 0.3); }
.hero-btn-whatsapp:hover { background-color: rgba(37, 211, 102, 0.22); }
.hero-btn-phone { background-color: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); }

.hero-stats-row { display: flex; gap: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); width: fit-content; }
.stat-number { font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: 1.5rem; color: #4da6ff; }
.stat-label { color: rgba(255, 255, 255, 0.45); font-size: 0.75rem; }

.hero-scroll-indicator { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: none; border: none; color: rgba(255, 255, 255, 0.3); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.chevron-animated-wrapper { animation: chevronBounce 2s infinite; }

/* ----------------------------------------------------
   التنسيقات العامة لباقي الأقسام المشتركة
------------------------------------------------------- */
.standard-section { padding: 5rem 0; width: 100%; }
.style-light { background-color: #ffffff; color: #1a1a1a; }
.style-dark { background-color: #0b1523; color: #ffffff; }

.section-container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .section-container { padding: 0 2rem; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.section-mini-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 0.5rem; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.75rem; background-color: rgba(15, 90, 168, 0.1); color: #0F5AA8; }
.style-dark .section-mini-badge { background-color: rgba(77, 166, 255, 0.15); color: #4da6ff; }

.section-title { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; line-height: 1.3; }
.section-desc { color: #555555; line-height: 1.8; font-size: 1rem; }
.style-dark .section-desc { color: rgba(255, 255, 255, 0.65); }

.section-header-center { text-align: center; max-width: 36rem; margin: 0 auto 3.5rem auto; }

/* قسم من نحن ومميزاته */
.rounded-image-decor { width: 100%; height: auto; border-radius: 1.25rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); object-fit: cover; }
.about-features-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-bullet { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.feature-bullet i { color: #0F5AA8; }

/* شبكات البطاقات (الخدمات والمراجعات) */
.cards-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .cards-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.service-card { background-color: #111e30; border: 1px solid rgba(255,255,255,0.05); padding: 2rem; border-radius: 1rem; transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); }
.card-icon-box { font-size: 2rem; color: #4da6ff; margin-bottom: 1.25rem; }
.service-card h3 { font-family: 'Tajawal', sans-serif; margin-bottom: 0.75rem; font-size: 1.2rem; }
.service-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* معرض الأعمال الحقيقي القديم */
.portfolio-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .portfolio-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.portfolio-item { position: relative; border-radius: 1rem; overflow: hidden; height: 18rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,17,30,0.9), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: opacity 0.3s; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { font-family: 'Tajawal', sans-serif; color: #ffffff; font-size: 1.1rem; }
.portfolio-overlay span { color: #4da6ff; font-size: 0.8rem; margin-top: 0.25rem; }

/* قسم لماذا نحن */
.why-us-reasons { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.reason-row { display: flex; gap: 1rem; }
.reason-icon { width: 3rem; height: 3rem; border-radius: 0.5rem; background-color: rgba(77, 166, 255, 0.1); color: #4da6ff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.reason-row h4 { font-family: 'Tajawal', sans-serif; font-size: 1.1rem; margin-bottom: 0.25rem; }
.reason-row p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* المراجعات والتقييمات */
.review-card { background-color: #f8fafc; border: 1px solid #e2e8f0; padding: 1.75rem; border-radius: 1rem; }
.stars-row { color: #ffb000; font-size: 0.9rem; margin-bottom: 1rem; }
.review-text { font-size: 0.95rem; line-height: 1.7; font-style: italic; color: #334155; margin-bottom: 1.25rem; }
.client-name { font-family: 'Tajawal', sans-serif; font-size: 1rem; color: #0F5AA8; }
.client-role { font-size: 0.75rem; color: #64748b; }

/* قسم الاتصال والنماذج التفاعلية */
.contact-channels { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.channel-item { display: flex; align-items: center; gap: 1rem; }
.channel-item i { width: 2.75rem; height: 2.75rem; border-radius: 50%; background-color: rgba(15, 90, 168, 0.2); color: #4da6ff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.channel-item h5 { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.channel-item a, .channel-item p { font-size: 1.05rem; font-weight: 700; color: #ffffff; text-decoration: none; }
.channel-item a:hover { color: #4da6ff; }

.contact-form-side { background-color: #111e30; padding: 2.5rem; border-radius: 1.25rem; border: 1px solid rgba(255,255,255,0.05); }
.interactive-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.form-group input, .form-group select, .form-group textarea { padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.1); background-color: #07111e; color: #ffffff; font-family: 'Cairo', sans-serif; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #4da6ff; }
.submit-form-btn { background-color: #0F5AA8; color: #ffffff; padding: 0.875rem; border-radius: 0.5rem; font-weight: 700; border: none; cursor: pointer; font-family: 'Cairo', sans-serif; transition: background-color 0.3s; margin-top: 0.5rem; }
.submit-form-btn:hover { background-color: #0d4f97; }

/* ----------------------------------------------------
   [قسم مدمج] تنسيقات كروت الأحياء (Neighborhoods Section)
------------------------------------------------------- */
.neighborhoods-section {
    padding: 7rem 0;
    background-color: #07111e;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .neighborhoods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .neighborhoods-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hood-card {
    background-color: #111e30;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hood-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 166, 255, 0.3);
    box-shadow: 0 10px 20px rgba(15, 90, 168, 0.15);
}

.card-top { padding: 1.25rem 1.25rem 1rem 1.25rem; }
.card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }

.icon-wrapper {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    background-color: rgba(77, 166, 255, 0.1);
    color: #4da6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.hood-card:hover .icon-wrapper {
    background-color: rgba(77, 166, 255, 0.2);
}

.hood-name {
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.25;
}

.hood-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.825rem;
    padding-right: 0.25rem;
    line-height: 1.5;
}

.divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 0 1rem;
}

.card-actions {
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

/* أزرار كروت الأحياء */
.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp-outline {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-outline:hover {
    background-color: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.btn-phone-outline-card {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-phone-outline-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* بنر العرض السفلي للأحياء */
.cta-banner {
    margin-top: 3rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #0a3d72 0%, #0F5AA8 50%, #1a7fd4 100%);
    box-shadow: 0 10px 25px -5px rgba(10, 61, 114, 0.3);
}

.cta-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cta-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
    }
}

.cta-text { color: #ffffff; text-align: center; }
@media (min-width: 640px) { .cta-text { text-align: right; } }
.cta-text h3 { font-family: 'Tajawal', sans-serif; font-weight: 900; font-size: 1.4rem; }
.cta-text p { opacity: 0.85; margin-top: 0.25rem; font-size: 0.9rem; }

.cta-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-whatsapp-solid { background-color: #25D366; color: #ffffff; padding: 0.75rem 1.5rem; border-radius: 1rem; font-weight: 700; text-decoration: none; }
.btn-whatsapp-solid:hover { background-color: #1da851; }
.btn-phone-outline { background-color: rgba(255, 255, 255, 0.15); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(4px); padding: 0.75rem 1.5rem; border-radius: 1rem; font-weight: 700; text-decoration: none; }
.btn-phone-outline:hover { background-color: rgba(255, 255, 255, 0.25); }


/* ====================================================
   [أكواد مدمجة جديدة] الأقسام الاحترافية المضافة حديثاً
======================================================= */

/* 1. قسم الإحصائيات والأرقام التنازلية الفاخرة */
.statistics-section {
    background: linear-gradient(135deg, #091322 0%, #111e30 100%);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 1024px) {
    .stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.stat-box-card {
    text-align: center;
    padding: 1.5rem;
}
.stat-counter-large {
    font-family: 'Tajawal', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #4da6ff;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-desc-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* 2. معرض المشاريع الفنية (المتغير Masonry-Like Grid) */
.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}
.filter-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
}
.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.filter-btn.active {
    background-color: #0F5AA8;
    color: #ffffff;
    border-color: #0F5AA8;
    box-shadow: 0 8px 16px rgba(15, 90, 168, 0.25);
}
.projects-masonry-grid {
    columns: 1;
    column-gap: 1.5rem;
    width: 100%;
}
@media (min-width: 640px) { .projects-masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .projects-masonry-grid { columns: 3; } }

.project-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background-color: #111e30;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 17, 30, 0.95) 0%, rgba(7, 17, 30, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.project-item:hover img { transform: scale(1.05); }
.project-item:hover .project-overlay { opacity: 1; }

.project-cat-badge {
    background-color: #0F5AA8;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    width: fit-content;
    margin-bottom: 0.5rem;
}
.project-title-text {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
}

/* 3. ألبوم صور الشغل الميداني الحقيقي الحصري */
.works-masonry-grid {
    columns: 1;
    column-gap: 1.25rem;
    width: 100%;
}
@media (min-width: 640px) { .works-masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .works-masonry-grid { columns: 4; } }

.work-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background-color: #111e30;
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: zoom-in;
}
.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.work-static-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.work-cat-badge {
    background-color: rgba(7, 17, 30, 0.75);
    backdrop-filter: blur(4px);
    color: #4da6ff;
    border: 1px solid rgba(77, 166, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
}
.work-watermark {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    direction: ltr;
    font-weight: 500;
}
.work-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 90, 168, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.work-actions-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 17, 30, 0.98) 0%, rgba(7, 17, 30, 0.8) 70%, rgba(7, 17, 30, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-item:hover .work-overlay, .work-item:hover .work-actions-overlay { opacity: 1; }

.work-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 90%;
    margin-top: 0.75rem;
}
.btn-whatsapp-sm, .btn-call-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.25rem;
    border-radius: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    transition: all 0.25s;
}
.btn-whatsapp-sm { background-color: #25D366; color: #ffffff; }
.btn-whatsapp-sm:hover { background-color: #1da851; }
.btn-call-sm { background-color: rgba(255, 255, 255, 0.08); color: #ffffff; border: 1px solid rgba(255,255,255,0.12); }
.btn-call-sm:hover { background-color: rgba(255, 255, 255, 0.18); }

/* 4. نافذة معاينة الصور المكبرة الاحترافية (Lightbox Modal) */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(7, 17, 30, 0.96);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-card-wrapper {
    background-color: #111e30;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    max-width: 44rem;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active .lightbox-card-wrapper { transform: scale(1); }

.lightbox-img-holder {
    width: 100%;
    max-height: 28rem;
    overflow: hidden;
    background-color: #07111e;
}
.lightbox-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.lightbox-meta-bar {
    padding: 1.5rem;
}
.lightbox-img-title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.lightbox-footer-actions {
    display: flex;
    gap: 0.75rem;
}
.lightbox-wa-solid-btn {
    flex: 1;
    background-color: #25D366;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background-color 0.25s;
}
.lightbox-wa-solid-btn:hover { background-color: #1da851; }

.lightbox-close-trigger {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
}
.lightbox-close-trigger:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}

/* ----------------------------------------------------
   تأثيرات السكرول والأنيميشن (Scroll Animations)
------------------------------------------------------- */
.animate-on-scroll, .fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.card-anim {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible, .fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-600 { transition-delay: 0.6s; }

/* ----------------------------------------------------
   المحاكاة الحركية للـ Framer Motion (Keyframes)
------------------------------------------------------- */
.hero-motion-div {
    opacity: 0;
    transform: translateY(20px);
    animation: motionFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.entry-delay-1 { animation-delay: 0.2s; }
.entry-delay-2 { animation-delay: 0.35s; }
.entry-delay-3 { animation-delay: 0.48s; }
.entry-delay-4 { animation-delay: 0.58s; }
.entry-delay-5 { animation-delay: 0.68s; }
.entry-delay-6 { animation-delay: 0.82s; }
.entry-delay-7 { transform: translateY(0); animation: motionFadeOnly 0.5s ease 1.1s forwards; }

@keyframes motionFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes motionFadeOnly { to { opacity: 1; } }
@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes chevronBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* --- قسم المصمم الثابت في الأسفل (Designer Static Footer) --- */
.designer-static-section {
  background: #0f172a; /* نفس الدرجة الفخمة للموقع */
  padding: 60px 20px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* الكرت المصمم طبقاً لـ Screenshot 2026-06-17 105951.png */
.designer-static-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 480px; /* أوسع قليلاً ليتناسب مع العرض الثابت */
  padding: 35px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  direction: rtl;
  margin-bottom: 40px;
}

/* شريط الشركة الممتد أسفل الموقع */
.agency-developer-bar {
  background: #090d16; /* خلفية داكنة فخمة جداً */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  width: 100%;
}

/* حاوية العناصر */
.agency-bar-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* حقوق العميل */
.client-copyrights p {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

/* نص الجملة الجذابة */
.agency-pitch-text p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f59e0b; /* لون ذهبي ناعم */
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

/* الهوية البرمجية والأزرار في اليسار */
.agency-branding-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ضبط تنسيق "تنفيذ وتطوير" مع الاسم */
.agency-meta {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03); /* كارت خلفية صغير مدمج */
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 30px; /* شكل بيضاوي انسيابي ناعم */
  gap: 10px;
}

/* كلمة: تنفيذ وتطوير */
.tech-by {
  color: #94a3b8;
  font-size: 11px; /* تصغير الخط قليلاً ليعطي فخامة */
  font-weight: 500;
  letter-spacing: 0.5px;
  border-left: 1px solid rgba(255, 255, 255, 0.15); /* خط فاصل عمودي أنيق */
  padding-left: 10px;
}

/* الاسم الإنجليزي: Eng. Ahmed Mohsen */
.agency-name {
  color: #38bdf8; /* أزرق برمجيات عصري */
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', 'Segoe UI', sans-serif; /* خط إنجليزي حاد واحترافي */
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

/* تأثير التمرير الذكي */
.agency-meta:hover .agency-name {
  color: #60a5fa;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

/* الأيقونات الكبيرة */
.agency-mini-channels {
  display: flex;
  gap: 10px;
}

.agency-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agency-icon:hover {
  color: #fff;
  transform: translateY(-4px);
}
.agency-icon.wa:hover { background: #22c55e; border-color: #22c55e; box-shadow: 0 0 15px rgba(34, 197, 94, 0.4); }
.agency-icon.call:hover { background: #0ea5e9; border-color: #0ea5e9; box-shadow: 0 0 15px rgba(14, 165, 233, 0.4); }
.agency-icon.email:hover { background: #ea4335; border-color: #ea4335; box-shadow: 0 0 15px rgba(234, 67, 53, 0.4); }

/* ========================================== */
/* التجاوب التام مع شاشات الموبايل */
/* ========================================== */
@media (max-width: 992px) {
  .agency-bar-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px 20px;
  }
  .agency-branding-wrapper {
    flex-direction: column;
    gap: 12px;
  }
}