/* ==========================================
   1. المتغيرات الملكية المستوحاة من الشعار الجديد
========================================== */
:root {
    --primary-color: #5b1c55;     /* البنفسجي الفخم والعميق اللامع بالشعار */
    --primary-dark: #3a1036;      /* درجة أغمق للبنفسجي لخلفيات الفوتر والهيدر */
    --primary-light: #fdf5fc;     /* خلفية فاتحة جداً مائلة للزهري والأرجواني الفاتح */
    
    /* ألوان هويات ومساطر الطباعة العالمية (CMYK) */
    --cmyk-cyan: #00aeef;         /* السيان المشرق */
    --cmyk-magenta: #ec008c;      /* الماجينتا الجذاب */
    --cmyk-yellow: #fff200;       /* الأصفر الصريح */
    --cmyk-black: #231f20;        /* الأسود الفحمي */
    
    --text-dark: #2d1f2b;         /* لون نص داكن مريح ومطعم بلمحة بنفسجية */
    --text-muted: #735e70;        /* نص فرعي رمادي بنفسجي */
}

/* ==========================================
   2. الإعدادات العامة والخطوط
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* تنسيقات عناوين الأقسام المشتركة */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .sub-title {
    display: block;
    font-size: 0.95rem;
    color: var(--cmyk-magenta);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, var(--cmyk-cyan), var(--cmyk-magenta));
    margin: 10px auto 0 auto;
    border-radius: 10px;
}

/* ==========================================
   3. الهيدر وشريط التنقل الزجاجي (Glassmorphism)
========================================== */
header {
    background-color: rgba(58, 16, 54, 0.9); /* خلفية بنفسجية داكنة شفافة */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(236, 0, 140, 0.2);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    object-fit: contain;
    padding: 3px;
    border: 2px solid var(--cmyk-cyan);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover img {
    transform: scale(1.08) rotate(5deg);
    border-color: var(--cmyk-magenta);
    box-shadow: 0 0 15px rgba(236, 0, 140, 0.4);
}

.logo-text h1 {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 700;
}

.logo-text .en-text {
    font-size: 0.8rem;
    color: var(--cmyk-cyan);
    font-weight: 600;
    display: block;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #f1e7f0;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

nav ul li a i {
    font-size: 0.85rem;
    color: var(--cmyk-cyan);
    transition: transform 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--cmyk-cyan), var(--cmyk-magenta));
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #ffffff;
}

nav ul li a:hover i {
    transform: scale(1.2);
}

nav ul li a:hover::after {
    width: 100%;
}

/* الأزرار العلوية السريعة */
.quick-contact {
    display: flex;
    gap: 12px;
}

.quick-contact a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-call {
    background: linear-gradient(135deg, var(--cmyk-cyan), var(--primary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.25);
}

.btn-call:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
}

/* ==========================================
   4. الواجهة الرئيسية الإبداعية (Hero Section)
========================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #240521 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 140px 0;
    overflow: hidden;
}

/* دوائر غامرة ملوّنة مستوحاة من أيقونة الطباعة بالشعار */
.hero-circles span {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
}
.hero-circles .c-cyan { width: 300px; height: 300px; background-color: var(--cmyk-cyan); top: -50px; right: -50px; }
.hero-circles .c-magenta { width: 350px; height: 350px; background-color: var(--cmyk-magenta); bottom: -100px; left: -50px; }
.hero-circles .c-yellow { width: 200px; height: 200px; background-color: var(--cmyk-yellow); top: 40%; right: 25%; }

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e4d5e2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-main {
    text-decoration: none;
    background: linear-gradient(90deg, var(--cmyk-magenta), var(--primary-color));
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(236, 0, 140, 0.3);
    transition: all 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(236, 0, 140, 0.5);
}

.btn-main i {
    transition: transform 0.3s ease;
}

.btn-main:hover i {
    transform: translateX(-6px);
}

.btn-sub {
    text-decoration: none;
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-sub:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--cmyk-cyan);
}

/* ==========================================
   5. قسم من نحن (About Section)
========================================== */
section {
    padding: 100px 0;
}

.about-section {
    background-color: #ffffff;
    border-radius: 40px 40px 0 0;
    position: relative;
    margin-top: -30px;
    z-index: 10;
}

.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-lead {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text {
    font-size: 1.1rem;
    color: #4a3b47;
    margin-bottom: 50px;
}

.about-section strong {
    color: var(--cmyk-magenta);
}

.why-us h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 35px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.why-item {
    background-color: var(--primary-light);
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid rgba(91, 28, 85, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-item:hover {
    transform: translateY(-8px);
    background-color: #ffffff;
    border-color: var(--cmyk-cyan);
    box-shadow: 0 15px 35px rgba(91, 28, 85, 0.08);
}

.why-icon-box {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px rgba(91, 28, 85, 0.06);
}

.why-item i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.why-item:hover .why-icon-box i {
    color: var(--cmyk-magenta);
}

.why-item h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
}

.why-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================
   6. قسم الخدمات بستايل المطابع ومجال الألوان
========================================== */
.services-section {
    background-color: var(--primary-dark);
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 45px 30px;
    text-align: center;
    border-radius: 24px;
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}

/* ميزات بصرية تدل على ألوان الطباعة الفنية */
.service-card.border-cyan { border-top-color: var(--cmyk-cyan); }
.service-card.border-magenta { border-top-color: var(--cmyk-magenta); }
.service-card.border-yellow { border-top-color: #d1c700; }

.service-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.service-card .icon-box.color-cyan i { color: var(--cmyk-cyan); }
.service-card .icon-box.color-magenta i { color: var(--cmyk-magenta); }
.service-card .icon-box.color-yellow i { color: var(--cmyk-yellow); }

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(10deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* ==========================================
   7. قسم المنتجات الاحترافي (Products Section)
========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(91, 28, 85, 0.03);
    border: 1px solid rgba(91, 28, 85, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(91, 28, 85, 0.12);
    border-color: rgba(236, 0, 140, 0.2);
}

.product-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.08); /* تأثير تكبير الصورة الاحترافي عند التمرير */
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.product-card .btn-order {
    justify-content: center;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.product-card .btn-order:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
}

/* ==========================================
   8. قسم اتصل بنا التفاعلي (Contact Section)
========================================== */
.contact-section {
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-item {
    background-color: var(--primary-light);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(91, 28, 85, 0.04);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--cmyk-magenta);
    box-shadow: 0 15px 30px rgba(91, 28, 85, 0.06);
    background-color: #ffffff;
}

.contact-icon {
    width: 65px;
    height: 65px;
    background-color: rgba(236, 0, 140, 0.08);
    color: var(--cmyk-magenta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: rotateY(180deg);
}

.contact-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.contact-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.contact-item .link-highlight {
    color: var(--cmyk-cyan);
    border-bottom: 1px dashed var(--cmyk-cyan);
    padding-bottom: 2px;
}

.contact-item a:hover {
    color: var(--cmyk-magenta);
}

/* ==========================================
   9. تذييل الصفحة الملكي (Footer)
========================================== */
footer {
    background-color: #240521;
    color: white;
    padding: 60px 0 30px 0;
    text-align: center;
    border-top: 3px solid var(--cmyk-magenta);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-brand h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--cmyk-cyan);
}

.footer-separator {
    width: 100px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    color: #a496a2;
}

/* ==========================================
   10. شاشات الجوال والتجاوب المرن (Responsive)
========================================== */
@media (max-width: 992px) {
    header {
        position: static; /* إلغاء التثبيت لتوفير مساحة الرؤية على الجوال */
    }
    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .quick-contact {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    .hero {
        padding: 90px 0;
    }
    .hero-content h2 {
        font-size: 1.9rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .btn-main, .btn-sub {
        width: 85%;
        justify-content: center;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 15px;
    }
    .product-img-box {
        height: 160px;
    }
    .product-info {
        padding: 12px;
    }
    .product-card h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    .product-card .btn-order {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}