/* ======================================================
   ملف الأنماط الرئيسي - styles.css
   التعليقات باللغة العربية لشرح كل قسم من التصميم
   ====================================================== */


/* المتغيرات - لتسهيل تغيير الألوان والهوية */

:root {
    --brand-50: #f2f7ff;
    --brand-100: #e4efff;
    --brand-200: #c9deff;
    --brand-300: #9ec2ff;
    --brand-400: #6ea2ff;
    --brand-500: #3b82f6;
    --brand-600: #2d6bde;
    --brand-700: #2152b7;
    --brand-800: #040f2b;
    --brand-900: #203141EF;
    --bg: #f6f7fa;
    --card: #ffffff;
    --text: #203141;
    --muted: #000000;
    --border: #e2e8f0;
    --shadow: 0 6px 24px rgba(2, 6, 23, .08);
    --section-gray: #e9edf2;
}


/* القواعد العامة */

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block
}

a {
    text-decoration: none;
    color: inherit
}


/* حاوية العرض المركزية */

.container {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 20px
}


/* الأزرار */

.btn {
    display: inline-block;
    background: var(--brand-600);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: .2s;
    box-shadow: 0 2px 10px rgba(59, 130, 246, .25)
}

.btn:hover {
    background: var(--brand-700);
    transform: translateY(-2px)
}

.btn.white {
    background: #fff;
    color: var(--brand-900)
}


/* الهيدر - شريط التنقل */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--brand-900);
    /* هنا هياخد اللون بالشفافية */
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    /* تأثير زجاجي */
    -webkit-backdrop-filter: blur(6px);
    /* دعم Safari */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* ظل للنافبار */
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .15)
}

.brand-badge span {
    font-weight: 900;
    letter-spacing: 2px
}


/* ===== روابط النافبار ===== */

.nav-links {
    display: flex;
    /* ديسكتوب */
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    font-weight: 700;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: .6px;
    position: relative;
    transition: .3s;
}

.nav-links a:hover {
    opacity: 1;
    color: #fff;
}


/* تمييز الرابط النشط */

.nav-links a.active {
    color: var(--brand-100)
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--brand-100);
    border-radius: 2px
}

.brand-logo img {
    height: 60px;
    width: auto;
    display: block;
}


/* ===== زر القائمة للموبايل ===== */

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 110;
}


/* ===== الموبايل ===== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* مخفية افتراضياً */
        flex-direction: column;
        position: absolute;
        top: 60px;
        /* تحت الهيدر */
        left: 0;
        right: 0;
        background: #222;
        padding: 15px;
        z-index: 100;
    }
    .nav-links.active {
        display: flex;
        /* تظهر عند الضغط */
    }
    .menu-toggle {
        display: block;
    }
}


/* الفوتر */

footer {
    background: var(--brand-900);
    color: #fff;
    margin-top: 64px
}

.footer-top {
    padding: 36px 0;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr)
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 12px 0;
    color: rgba(255, 255, 255, .7)
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.footer-bottom .social {
    display: flex;
    gap: 10px
}

.footer-bottom .sc {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: .2s
}

.footer-bottom .sc:hover {
    background: rgba(255, 255, 255, .22)
}

.footer-bottom .sc.fb {
    color: #1877f2
}

.footer-bottom .sc.tw {
    color: #1d9bf0
}

.footer-bottom .sc.li {
    color: #0a66c2
}

@media(max-width:640px) {
    .footer-bottom-inner {
        flex-direction: column
    }
}

@media (max-width:900px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center
    }
}


/* الهيرو - قسم الصورة الكبيرة */

.hero {
    position: relative;
    min-height: 52vh
}

.hero img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 29, 58, .62)
}

.hero .inner {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    height: 100%;
    color: #fff;
    text-align: left;
    padding: 40px 20px
}

.hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 6px;
    font-weight: 900
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(15px, 2vw, 18px)
}


/* left dark panel like screenshot */

.hero-panel {
    background: rgba(5, 10, 25, .75);
    border-left: 4px solid var(--brand-400);
    padding: 24px 22px;
    max-width: 520px;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25)
}

.hero-actions {
    margin-top: 14px
}


/* dots under hero like slider */

.hero-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0 18px
}

.hero-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cdd6e6;
    display: inline-block
}

.hero-dots .dot.active {
    background: #2d6bde
}


/* أقسام عامة */

.section {
    padding: 56px 0
}

.section h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin: 0 0 6px;
    text-align: center;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.section p.lead {
    color: var(--muted);
    margin: 0 0 20px;
    text-align: center;
}


/* خط أزرق أسفل عناوين h2 بعرض النص فقط */

.section h2::after {
    content: "";
    display: block;
    height: 3px;
    background: var(--brand-600);
    margin: 8px auto 0;
    border-radius: 2px;
    width: 50px;
}


/* تطبيق نفس الخط الأزرق على جميع عناوين h2 في الموقع */

h2 {
    display: inline-block;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    height: 3px;
    background: var(--brand-600);
    margin: 8px auto 0;
    border-radius: 2px;
    width: 50px;
}


/* فواصل بسيطة بين الأقسام */

section+section {
    border-top: 1px solid var(--border);
}


/* لون الفاصل قبل الشريط الداكن للإحصائيات */

section+.stats-bar {
    border-top-color: rgba(255, 255, 255, 0.14);
}


/* شبكة البطاقات */

.grid {
    display: grid;
    gap: 20px
}

.grid.cards {
    grid-template-columns: repeat(3, 1fr)
}

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

@media (max-width:640px) {
    .grid.cards {
        grid-template-columns: 1fr
    }
}


/* البطاقة */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(2, 6, 23, .12)
}

.card .body {
    padding: 18px
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.card .actions {
    margin-top: 14px
}

.card img {
    max-width: 100%;
    height: 200px;
    /* خلي الصور بنفس الارتفاع */
    object-fit: contain;
    /* يحافظ على تناسب الصورة */
    margin-bottom: 15px;
}


/* Integrated solutions (below services) */

.integrated {
    padding: 32px 0
}

.integrated-grid {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 22px;
    align-items: center
}

.integrated-about {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow)
}

.integrated-about h3 {
    margin: 0 0 6px;
    font-weight: 800;
    color: var(--brand-800)
}

.integrated-about h4 {
    margin: 0 0 8px;
    color: var(--brand-700)
}

.integrated-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.integrated-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s
}

.integrated-card:hover {
    transform: translateY(-3px)
}

.integrated-card .icon {
    font-size: 24px;
    margin-bottom: 8px
}

.integrated-card .title {
    font-weight: 700;
    color: var(--brand-800)
}

@media(max-width:900px) {
    .integrated-grid {
        grid-template-columns: 1fr
    }
}


/* فورم التواصل */

.form {
    display: grid;
    gap: 10px
}

.form label {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937
}

.form input,
.form textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit
}

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

.layout-2 {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr
}

@media (max-width:900px) {
    .layout-2 {
        grid-template-columns: 1fr
    }
}


/* تبويبات صفحة المنتجات */

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap
}

.product-tabs .tab-btn {
    background: var(--brand-600);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s
}

.product-tabs .tab-btn:hover {
    background: var(--brand-700)
}

.product-tabs .tab-btn.active {
    background: var(--brand-800)
}

.tab-content {
    display: none;
    animation: fadeIn .5s ease-in-out
}

.tab-content.active {
    display: block
}

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


/* مساحات صغيرة */

.center {
    text-align: center
}

.small {
    font-size: 13px;
    color: var(--muted)
}


/* نهاية الملف */


/* ===== Stats Bar (after Our Services) ===== */

.stats-bar {
    background: var(--brand-900);
    color: #fff;
    padding: 18px 0;
    margin: 26px 0;
    border-radius: 0
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    text-align: center
}

.stat {
    padding: 6px 10px
}

.stat h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: 900;
    line-height: 1;
    color: #fff
}

.stat p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.95
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    /* أوسع شوية */
    gap: 25px;
    align-items: center;
    justify-items: center;
    /* يخليهم في النص */
    margin-bottom: 30px;
}

.client-logo {
    background: #fff;
    width: 160px;
    /* عرض ثابت */
    height: 120px;
    /* ارتفاع ثابت */
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    /* يخلي الصورة متناسبة */
    object-fit: contain;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.client-category {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--brand-800);
    text-align: left;
}

@media (max-width: 640px) {
    .client-logo {
        width: 120px;
        height: 100px;
    }
}

.product-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.product-tabs .tab-btn {
    background: #fff;
    border: 2px solid #0d47a1;
    color: #0d47a1;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.product-tabs .tab-btn:hover {
    background: #0d47a1;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-tabs .tab-btn.active {
    background: #0d47a1;
    color: #fff;
    border-color: #0d47a1;
}


/* زر القائمة يظهر فقط في الموبايل */

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* نخفيها افتراضياً */
        flex-direction: column;
        position: absolute;
        top: 60px;
        /* تحت الهيدر */
        left: 0;
        right: 0;
        background: #203141EF;
        padding: 15px;
    }
    .nav-links.active {
        display: flex;
        /* تظهر عند الضغط */
    }
    .menu-toggle {
        display: block;
    }
}


/* ===== Who We Are Section ===== */

.who-we-are {
    background: var(--section-gray);
    padding: 60px 20px;
    /* بدل 100px */
    text-align: center;
    border-radius: 16px;
    margin: 40px auto;
    /* بدل 60px */
    box-shadow: var(--shadow);
}

.who-we-are h2 {
    font-size: 2rem;
    /* بدل 2.5rem */
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
}

.who-we-are h2::after {
    content: "";
    display: block;
    width: 50px;
    /* أصغر شوية */
    height: 3px;
    background: var(--brand-600);
    margin: 10px auto 0;
    border-radius: 2px;
}

.who-we-are .lead {
    max-width: 650px;
    /* عرض أصغر */
    margin: 0 auto 10px;
    color: var(--muted);
    font-size: 1rem;
    /* أصغر */
}

.who-we-are .sub {
    font-weight: 600;
    color: var(--brand-700);
    margin-bottom: 20px;
    /* بدل 30px */
}

.cta-btn {
    padding: 12px 26px;
    /* أصغر */
    border-radius: 999px;
    background: var(--brand-600);
    transition: all .3s ease;
}

.cta-btn:hover {
    background: var(--brand-700);
    transform: translateY(-3px);
}


/* ===== Contact CTA Section ===== */

.contact-cta {
    background: var(--section-gray);
    padding: 60px 20px;
    /* بدل 80px */
    border-radius: 16px;
    margin-top: 40px;
    /* بدل 60px */
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-cta .pre-title {
    font-size: 13px;
    /* أصغر */
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--brand-700);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    /* بدل 10px */
}

.contact-cta h2 {
    font-size: 1.8rem;
    /* بدل 2rem */
    font-weight: 900;
    margin-bottom: 12px;
}

.contact-cta .lead {
    max-width: 650px;
    margin: 0 auto 20px;
    color: var(--muted);
    font-size: 1rem;
}


/* About page container */

.about-page {
    padding: 56px 0;
}


/* Top section */

.about-top h2 {
    font-size: clamp(26px, 3vw, 38px);
    color: var(--brand-800);
    margin-bottom: 12px;
    font-weight: 800;
    text-align: center;
}


/* مركز العناوين والنص في قسم About */

.about-top {
    text-align: center;
}

.about-top .lead {
    color: var(--muted);
    max-width: 880px;
    margin-bottom: 32px;
    line-height: 1.6;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* Mission / Vision split */

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.about-left,
.about-right {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.about-left:hover,
.about-right:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}


/* Colored borders */

.about-left {
    border-left: 5px solid var(--brand-600);
}

.about-right {
    border-left: 5px solid var(--brand-700);
}


/* Headings with icons */

.about-split h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-left h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f140";
    /* bullseye */
    color: var(--brand-600);
}

.about-right h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f06e";
    /* eye */
    color: var(--brand-700);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.feature-list .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-600);
    display: inline-block;
}


/* Services */

.services h4 {
    margin: 14px 0 10px;
    font-size: 1rem;
    color: var(--brand-600);
    font-weight: 700;
}

.services ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}


/* Core Values */

.about-values {
    margin-top: 50px;
    padding: 40px 24px;
    background: var(--brand-50);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.about-values h3 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-800);
    margin-bottom: 28px;
    position: relative;
}

.about-values h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-600);
    margin: 10px auto 0;
    border-radius: 2px;
}

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

.value {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.value:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.value .icon {
    font-size: 34px;
    color: var(--brand-600);
    margin-bottom: 10px;
}

.value h5 {
    font-size: 1.05rem;
    color: var(--brand-700);
    margin: 6px 0 8px;
    font-weight: 700;
}

.value p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}


/* Bottom area */

.about-extra {
    margin-top: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-left: 20px;
}

.about-extra .small {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.cta-btn {
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-600), var(--brand-700));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: linear-gradient(90deg, var(--brand-700), var(--brand-800));
    transform: translateY(-3px);
}


/* Responsive */

@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
    }
    .about-extra {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
}


/* ===== Scroll Animations ===== */


/* Base animation classes */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}


/* Staggered animations for cards */

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}


/* Smooth scroll behavior */

html {
    scroll-behavior: smooth;
}


/* ===== Legacy Animations ===== */

@keyframes fadeInUp {
    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);
    }
}

.animate-fadeInUp {
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
}

.animate-fadeInLeft {
    opacity: 0;
    animation: fadeInLeft 0.9s ease forwards;
}

.animate-fadeInRight {
    opacity: 0;
    animation: fadeInRight 0.9s ease forwards;
}


/* تأخير للأنيميشن */

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}


/* ===== Product Modal ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.modal-image {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 16px 0 0 16px;
}

.modal-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

.modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-details h2 {
    font-size: 28px;
    color: var(--brand-800);
    margin: 0;
    font-weight: 800;
}

.modal-details h2::after {
    width: 50px;
    height: 3px;
    background: var(--brand-600);
    margin: 10px 0 0 0;
    border-radius: 2px;
}

.modal-details p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.product-specs,
.product-features {
    margin-top: 10px;
}

.product-specs h3,
.product-features h3 {
    font-size: 18px;
    color: var(--brand-700);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.product-specs ul,
.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs li,
.product-features li {
    padding: 5px 0;
    color: var(--text);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.product-specs li::before,
.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-600);
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 12px 20px;
}


/* Mobile Responsive */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-image {
        border-radius: 16px 16px 0 0;
        padding: 20px;
    }
    .modal-details {
        padding: 20px;
    }
    .modal-actions {
        flex-direction: column;
    }
    .modal-actions .btn {
        flex: none;
    }
}

.section.container {
    text-align: center;
    padding: 50px 20px;
}

.section.container h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #111;
}

.section.container .lead {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.grid.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.card i {
    font-size: 50px;
    color: #1d4ed8;
    /* أزرق */
    margin-bottom: 20px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #111;
}

.card p {
    font-size: 14px;
    color: #555;
}


/* الحالة الافتراضية: موبايل (3 أعمدة) */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: center;
    justify-items: center;
    margin-top: 30px;
}


/* الصور */

.brands-grid img {
    max-width: 90px;
    max-height: 65px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}


/* hover effect */

.brands-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* تابلت: 4 أعمدة */

@media (min-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .brands-grid img {
        max-width: 100px;
        max-height: 70px;
    }
}


/* كمبيوتر: 8 أعمدة */

@media (min-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 25px;
    }
    .brands-grid img {
        max-width: 120px;
        max-height: 80px;
    }
}

.fa-facebook {
    font-size: 30px;
    color: #1877f2;
    transition: 0.3s;
    padding-top: 10px;
}

.fa-facebook:hover {
    color: #0d5fca;
}