/* =========================
   المتغيرات والألوان العامة
   ========================= */

:root {
    --color-primary: #f47b20;   /* البرتقالي من الشعار */
    --color-primary-dark: #d96512;
    --color-accent: #00a6e0;    /* الأزرق من الشعار */
    --color-dark: #222222;
    --color-text: #333333;
    --color-muted: #777777;
    --color-bg: #ffffff;
    --color-section: #f7fafc;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* خط نور (تأكدي من إضافته في المشروع أو من خلال @font-face) */
body,
.font-noor {
    font-family: "Noor", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   إعدادات عامة
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    direction: rtl;
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* =========================
   الرأس / شريط التنقل
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 58px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.site-subtitle {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.main-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
    background-color: rgba(0, 166, 224, 0.08);
    color: var(--color-accent);
}

/* =========================
   الأزرار
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent));
}

.btn-secondary {
    background-color: rgba(0, 166, 224, 0.06);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: rgba(0, 166, 224, 0.12);
}

.btn-outline {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: rgba(0, 166, 224, 0.08);
}

.btn-block {
    width: 100%;
}

/* =========================
   قسم البطل (الواجهة)
   ========================= */

.hero-section {
    padding-block: 60px 40px;
    background: radial-gradient(circle at top left, rgba(0, 166, 224, 0.08), transparent 55%),
                radial-gradient(circle at top right, rgba(244, 123, 32, 0.08), transparent 55%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.hero-title {
    font-size: 2rem;
    margin: 0 0 14px;
    color: var(--color-dark);
}

.hero-text {
    margin: 0 0 18px;
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--color-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    max-width: 360px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(0, 166, 224, 0.15), rgba(244, 123, 32, 0.15));
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   الأقسام العامة
   ========================= */

.section {
    padding-block: 50px;
}

.section:nth-of-type(even) {
    background-color: var(--color-section);
}

.section-header {
    text-align: right;
    margin-bottom: 28px;
}

.section-title {
    font-size: 1.4rem;
    margin: 0 0 6px;
    color: var(--color-dark);
}

.section-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
}

/* من نحن */

.about-content {
    max-width: 750px;
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--color-text);
}

.about-content p {
    margin-top: 0;
    margin-bottom: 12px;
}

/* =========================
   الخدمات مع خلفيات صور
   ========================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* بطاقة الخدمة كخلفية مع طبقة شفافة */
.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    min-height: 190px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* الطبقة الشفافة فوق الصورة */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 28, 61, 0.82); /* درجة الشفافية */
    z-index: 0;
}

/* محتوى النص فوق الخلفية */
.service-card-content {
    position: relative;
    z-index: 1;
    padding: 18px 18px 20px;
    color: #ffffff;
}

.service-title {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #ffffff;
}

.service-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.9;
    color: #f3f4f6;
}

/* --- خلفيات مختلفة لكل خدمة ---
   استبدلي النص داخل url() برابط صورة من الإنترنت لكل خدمة.
*/

.service-card--consulting {
    /* مثال: صورة لاجتماع عمل أو استشارة */
    background-image: url("https://png.pngtree.com/thumb_back/fh260/background/20230322/pngtree-businessmen-teamwork-meeting-to-discuss-the-investment-teamwork-consulting-manage-photo-image_47884544.jpg");
}

.service-card--custom-dev {
    /* مثال: كود برمجي أو مطور يعمل على لابتوب */
    background-image: url("https://academy.hsoub.com/uploads/monthly_2021_09/614b243d5e187_---.jpg.08ab7f3ad03279bba9ac08f7f0548313.jpg");
}

.service-card--security {
    /* مثال: قفل رقمي أو شبكة سيبرانية */
    background-image: url("https://xontel.com/wp-content/uploads/2021/08/%D8%A7%D9%84%D8%A3%D9%85%D9%86-%D8%A7%D9%84%D8%B3%D9%8A%D8%A8%D8%B1%D8%A7%D9%86%D9%8A-824x431.jpg");
}

.service-card--webdev {
    /* مثال: واجهة موقع أو تصميم ويب */
    background-image: url("https://t4.ftcdn.net/jpg/04/90/33/39/360_F_490333979_EQdf0tNa0W7MdstKjrGwnjQjoxfYP2zO.jpg");
}

/* =========================
   الأنظمة والبرامج
   ========================= */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.solution-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.solution-title {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--color-dark);

    position: relative;
    padding-right: 18px; /* مساحة للنقطة من اليمين (مع اتجاه عربي) */
}

.solution-title::before {
    content: "";
    position: absolute;
    right: 0;              /* النقطة في بداية السطر من اليمين */
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;    /* دائرة صغيرة */
    background-color: #ff9800; /* برتقالي */
}

.solution-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-muted);
}


/* =========================
   قسم التواصل (عرض بيانات فقط)
   ========================= */

.contact-section {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: #ffffff;
}

.contact-inner {
    display: flex;
    justify-content: center;
}

.contact-info {
    max-width: 650px;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: #ffffff;
}

.contact-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.contact-item {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-label {
    font-weight: 600;
    margin-left: 4px;
}

.contact-text {
    font-size: 0.95rem;
}

.contact-link {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.contact-link:hover {
    text-decoration-style: dashed;
}

.contact-social {
    margin-top: 10px;
    font-size: 0.9rem;
}

.social-text {
    margin: 0 0 8px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    background-color: #ffffff;
    color: var(--color-primary);
}

/* =========================
   ذيل الصفحة
   ========================= */

.site-footer {
    background-color: #0f172a;
    color: #e5e7eb;
    padding-block: 14px;
}

.footer-inner {
    text-align: center;
    font-size: 0.8rem;
}

.footer-copy {
    margin: 0;
}

/* =========================
   تجاوبية الشاشات
   ========================= */

/* أقل من 992px */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.1fr);
    }

    .hero-media {
        order: -1;
        margin-bottom: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solutions-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 2;
        width: 100%;
    }

    .nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
    }
}

/* أقل من 768px */
@media (max-width: 768px) {
    .section {
        padding-block: 40px;
    }

    .hero-section {
        padding-block: 40px 30px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .logo-text {
        display: none; /* للحفاظ على مساحة في الجوال */
    }

    .header-inner {
        justify-content: space-between;
    }
}

/* أقل من 480px */
@media (max-width: 480px) {
    .btn {
        padding-inline: 14px;
        font-size: 0.85rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
