/* 
 * SERVICES STYLES
 * This file is only loaded when users visit the Services page (templates/page-services.php)
 */


/* =========================================
   SERVICES HERO SECTION
========================================= */
.services-hero {
    position: relative;
    height: 90vh; /* طول السيكشن */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* دمج الصورة مع طبقة شفافة كحلي غامق عشان الكلام يكون واضح */
    background: linear-gradient(to right, rgba(5, 10, 20, 0.9), rgba(5, 10, 20, 0.6)), 
                url('https://plus.unsplash.com/premium_photo-1683120972279-87efe2ba252f?q=80&w=663&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    
    background-size: cover; /* عشان الصورة تغطي الشاشة كلها */
    background-position: center; /* توسيط الصورة */
    background-attachment: fixed; /* تأثير Parallax شيك جداً (الصورة ثابتة والموقع بيتحرك فوقها) */
    
    border-bottom: 1px solid #1e293b;
    overflow: hidden;
    margin-bottom: 60px;
}
 
.services-hero .hero-content {
    text-align: center;
    z-index: 2; /* عشان الكلام يكون فوق الإضاءة والصورة */
}

.services-hero h1 {
    font-size: 4.5rem;
    /* margin-bottom: 15px; */
    width: 108%;
    /* max-width: 810px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
}

.services-hero p {
    font-size: 1.4rem;
    color: #e2e8f0; /* لون أفتح شوية عشان يبان على الصورة */
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* ظل خفيف للنص لزيادة الوضوح */
}

/* تظبيط الموبايل */
@media (max-width: 768px) {
    .services-hero {
        background-attachment: scroll; /* بنلغي الـ parallax في الموبايل للأداء */
    }
}

/* =========================================
   THE 3 PILLARS CARDS
========================================= */
.pillars-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -185px; /* بيخلي الكروت تطلع فوق الهيرو سيكشن شوية (تأثير شيك) */
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
    padding-left: 60px;
    padding-right: 60px;
}

.pillar-card {
   background: rgba(13, 20, 36, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 87, 34, 0.3);
    box-shadow: 0 20px 50px rgba(255, 87, 34, 0.15); /* توهج برتقالي في الخلفية */
}

.pillar-card:hover::before {
    opacity: 1;
}
.pillar-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.pillar-icon i {
    font-size: 2rem;
    color: var(--accent-orange);
}

.pillar-card h2 {
    color: var(--pure-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pillar-card p {
    color: #a0aec0;
    line-height: 1.6;
}

/* =========================================
   SERVICES MATRIX (الخدمات التفصيلية)
========================================= */
.matrix-section {
    /* padding-bottom: 80px; */
    /* max-width: 1520px; */
    margin: 0 auto;
    padding: 0 86px;
}

/* =========================================
   CATEGORY BANNERS (العناوين بالصور)
========================================= */
.category-banner {
    position: relative;
    /* width: 100%; */
    height: 223px;
    border-radius: 20px;
    /* overflow: hidden; */
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    /* background-size: cover; */
    background-position: center;
    background-attachment: fixed;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
 
}

/* طبقة زجاجية داكنة فوق الصورة لضمان وضوح النص */
.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(5, 10, 20, 0.95) 0%, rgba(5, 10, 20, 0.6) 100%);
    backdrop-filter: blur(3px); /* بلور خفيف للصورة */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2; /* فوق الصورة والطبقة الزجاجية */
}

.banner-content h2 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    display: inline-block;
}

/* =========================================
   ستايل البراجراف الجذاب (الكبسولة الزجاجية)
========================================= */
.banner-content p {
    color: #e2e8f0; /* أبيض ناصع ومريح للعين */
    font-size: 1.15rem;
    font-weight: 400;
    margin: 15px 0 0 0;
    /* display: inline-flex; */
    align-items: center;
    padding: 8px 25px;
    background: rgba(255, 255, 255, 0.05); /* خلفية زجاجية شفافة */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* شكل بيضاوي (كبسولة) */
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    width: fit-content;
}
 
/* التأثير عند مرور الماوس على البراجراف نفسه */
.banner-content p:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 87, 34, 0.5); /* إطار برتقالي خفيف */
    transform: translateX(-5px); /* حركة خفيفة لليسار */
}

/* النقطة المضيئة (Pulse Dot) قبل النص */
.banner-content p::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    margin-left: 12px; /* مسافة على اليسار عشان إحنا عربي (RTL) */
    box-shadow: 0 0 10px var(--accent-orange);
    animation: pulseDot 2s infinite;
}

/* أنيميشن نبض النقطة البرتقالية */
@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 5px var(--accent-orange); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--accent-orange), 0 0 20px var(--accent-orange); }
    100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 5px var(--accent-orange); }
}

/* تظبيط حجمها على الموبايل */
@media (max-width: 768px) {
    .banner-content p {
        font-size: 1rem;
        padding: 6px 18px;
    }
}


/* تحديد صورة كل قسم 
  (تقدري تغيري الروابط دي بصور حقيقية من شغلكم أو صور من الإنترنت تناسبكم)
*/

/* 1. صورة قسم التسويق */
.marketing-banner {
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80');
}

/* 2. صورة قسم الإنتاج الإبداعي */
.creative-banner {
    background-image: url('https://images.unsplash.com/photo-1542744094-3a31f272c490?auto=format&fit=crop&w=1200&q=80');
}

/* 3. صورة قسم البرمجة */
.development-banner {
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1200&q=80');
}
/* 4. صورة قسم الذكاء الاصطناعي */
.ai-banner {
    background-image: url('https://plus.unsplash.com/premium_photo-1683121710572-7723bd2e235d?q=80&w=1332&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* صورة بتعبر عن الـ AI */
}

/* تجاوب البانر مع الموبايل  **/
@media (max-width: 768px) {
    .category-banner {
        height: auto; 
        width: 80%;
        background-attachment: scroll;  
    }
    .banner-content {
        width: 100%;
        padding: 20px 0px;
    }
    .banner-content h2 { font-size: 25px; }
    .industry-grid {padding: 0 50px;}
    .matrix-section {padding: 0 20px;}
}

.text-orange {
    background: linear-gradient(90deg, #ff5722 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


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

/* =========================================
   CATEGORY HEADERS (العناوين العامة للأقسام)
========================================= */
.category-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: space-around;
}

/* ستايل العناوين بالتدرج اللوني (نفس ستايل البانر) */
.category-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    display: inline-block;
}

/* ستايل الكبسولة الزجاجية المضيئة (نفس ستايل البانر) */
.category-header p {
    color: #e2e8f0; 
    font-size: 1.15rem;
    font-weight: 400;
    margin: 15px 0 0 0;
    /* display: inline-flex; */
    align-items: center;
    padding: 8px 25px;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; 
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    width: fit-content;

}

.category-header p:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 87, 34, 0.5); 
    transform: translateX(-5px); 
}

/* النقطة المضيئة (Pulse Dot) قبل النص */
.category-header p::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    margin-left: 12px; 
    box-shadow: 0 0 10px var(--accent-orange);
    animation: pulseDot 2s infinite;
}

/* تجاوب العناوين على الموبايل */
@media (max-width: 768px) {
    .category-header h2 { font-size: 1.8rem; }
    .category-header p {
        font-size: 1rem;
        padding: 6px 18px;
    }
}

/* تصميم كروت الخدمات */
.service-box {
   background: rgba(13, 20, 36, 0.4); /* خلفية شبه شفافة */
    backdrop-filter: blur(12px); /* تأثير الزجاج */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05); /* إطار خفيف جداً */
    border-radius: 20px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-box:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    /* الإضاءة الداخلية الساحرة عند الوقوف بالماوس */
    background: radial-gradient(circle at top right, rgba(255, 87, 34, 0.15) 0%, rgba(13, 20, 36, 0.6) 60%);
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0; /* خط جانبي مخفي */
    background: var(--accent-orange);
    transition: height 0.4s ease;
} 

.service-box:hover::before {
    height: 100%; /* الخط الجانبي يظهر عند الوقوف */
}

.service-box i {
    font-size: 2.2rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1); /* خلفية زرقاء خفيفة للأيقونة */
    width: 60px;
    height: 60px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-box:hover i {
    color: var(--accent-orange);
    background: rgba(255, 87, 34, 0.15);
    transform: scale(1.1);
}

.service-box h3 {
    font-size: 1.4rem;
    color: var(--pure-white);
    margin-bottom: 15px;
}

.service-box p {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================
   CTA BANNER (نهاية الصفحة)
========================================= */
.cta-banner {
    /* background: linear-gradient(135deg, var(--accent-orange), #d84315); */
    /* border-radius: 20px; */
    border: 1px solid #d84315;
    border-radius: 101px 0px 100px 0px;
    -webkit-border-radius: 101px 0px 100px 0px;
    -moz-border-radius: 101px 0px 100px 0px;
    padding: 60px 40px;
    text-align: center;
    color: var(--pure-white);
    margin-bottom: 80px;
    /* box-shadow: 0 20px 50px var(--accent-glow); */
    width: 1200px;
    margin: 0 auto 80px;
}

.cta-banner h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px #d84315;
    color: #d84315;
}

.cta-banner p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    /* color: #d84315; */
    color: rgba(255, 255, 255, 0.9);
}

/* تعديل الزرار ليناسب الخلفية البرتقالية */
.cta-banner .btn-primary {
    background: #d84315;
    color: var(--pure-white);
    box-shadow: 0 10px 20px #d84315;
}

.cta-banner .btn-primary:hover {
    background: var(--pure-white);
    color: var(--accent-orange);
}

/* =========================================
   RESPONSIVE (الموبايل)
========================================= */
@media (max-width: 768px) {
    .services-hero h1 { font-size: 3rem; }
    .services-hero p { font-size: 1.1rem; }
    .pillars-section { margin-top: 30px; padding: 0 20px;}
    .category-header h2 { font-size: 2rem; }
    .cta-banner h2 { font-size: 2rem; }
}
 
/* =========================================
   1. INDUSTRY SOLUTIONS
========================================= */
.industry-section { margin-top: 80px; margin-bottom: 80px;
    max-width: 1479px;
    margin: 0 auto; }
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.industry-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-img {
    position: absolute; width: 100%; height: 100%;
}
.card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.industry-card:hover .card-img img { transform: scale(1.1); }
.industry-content {
    position: absolute; bottom: 0; left: 0;  height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 10%, rgba(5,10,20,0.8) 50%, transparent 100%);
    padding: 30px;
    display: flex; flex-direction: column; justify-content: flex-end;
    transition: all 0.4s ease;
}
.industry-content i {
    font-size: 2.5rem; color: var(--accent-orange); margin-bottom: 15px;
    transform: translateY(20px); transition: 0.4s ease;
}
.industry-content h3 {
    font-size: 1.5rem; color: var(--pure-white); margin-bottom: 10px;
    transform: translateY(20px); transition: 0.4s ease;
}
.industry-content p {
    color: #cbd5e1; font-size: 0.95rem; line-height: 1.6;
    opacity: 0; transform: translateY(20px); transition: 0.4s ease;
}
.industry-card:hover .industry-content i,
.industry-card:hover .industry-content h3,
.industry-card:hover .industry-content p {
    transform: translateY(0); opacity: 1;
}

/* =========================================
   2. TECH STACK
========================================= */
.tech-stack-section { margin-bottom: 80px; }
.tech-wrapper {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid #1e293b;
    display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}
.tech-text { flex: 1 1 400px; }
.tech-text h2 { color: var(--pure-white); font-size: 2.2rem; margin-bottom: 15px; }
.tech-text p { color: #a0aec0; line-height: 1.8; font-size: 1.1rem; }
.tech-icons {
    flex: 1 1 400px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tech-box {
   background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tech-box::after {
    content: '';
    position: absolute;
    width: 50px; height: 50px;
    background: var(--pure-white);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s;
}

.tech-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.tech-box:hover::after {
    opacity: 0.15;  
}
.tech-box i { font-size: 2.5rem; margin-bottom: 10px; }
.tech-box span { color: var(--pure-white); font-weight: bold; font-size: 0.9rem; }

/* =========================================
   3. HOW WE WORK (WORKFLOW)
========================================= */
.workflow-section {    
    margin-bottom: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: center;
    align-items: center;
 }

.workflow-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
    margin-top: 40px; position: relative;
    max-width: 1479px;
    margin: 0 auto;
}
/* الخط الوهمي اللي بيربط الخطوات في الشاشات الكبيرة */
@media (min-width: 1024px) {
    .workflow-grid::before {
        content: ''; position: absolute; top: 35px; left: 50px; right: 50px;
        height: 2px; background: rgba(255, 87, 34, 0.2); z-index: 0;
    }
}
.step-card {
    background: var(--card-bg); border-radius: 15px; padding: 40px 25px;
    text-align: center; border: 1px solid #1e293b; position: relative; z-index: 1;
    transition: 0.4s ease;
}
.step-card:hover { border-color: var(--accent-orange); transform: translateY(-10px); }
.step-number {
    width: 70px; height: 70px; background: var(--bg-dark); border: 2px solid var(--accent-orange);
    color: var(--accent-orange); font-size: 1.5rem; font-weight: 900;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    margin: 0 auto 20px; box-shadow: 0 0 20px rgba(255,87,34,0.2);
}
.step-card:hover .step-number { background: var(--accent-orange); color: var(--pure-white); }
.step-card h3 { color: var(--pure-white); font-size: 1.3rem; margin-bottom: 15px; }
.step-card p { color: #a0aec0; font-size: 0.95rem; line-height: 1.6; }

/* =========================================
   4. FAQ ACCORDION
========================================= */
.faq-section { margin-bottom: 100px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item {
    background: var(--card-bg); border: 1px solid #1e293b; border-radius: 10px;
    margin-bottom: 15px; overflow: hidden; transition: 0.3s ease;
}
.faq-question {
    width: 100%; text-align: right; padding: 20px 25px; background: transparent; border: none;
    color: var(--pure-white); font-size: 1.1rem; font-family: 'Almarai', sans-serif; font-weight: 700;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: color 0.3s ease;
}
.faq-question i { color: var(--accent-orange); transition: transform 0.4s ease; }
.faq-item.active { border-color: var(--accent-orange); box-shadow: 0 5px 20px rgba(255,87,34,0.1); }

.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-answer p { padding: 0 25px 20px; color: #a0aec0; line-height: 1.8; margin: 0; }

/* =========================================
   CLICKABLE BANNERS STYLES
========================================= */
/* إعدادات اللينك اللي بيغلف البانر */
.clickable-banner {
    text-decoration: none; /* عشان نشيل الخط اللي تحت اللينك */
    display: block; /* مهم جداً عشان ياخد عرض الصفحة كله */
    border-radius: 20px;
    margin-bottom: 40px;
    outline: none;
}

/* إلغاء الـ margin السفلي من البانر نفسه لأن اللينك هو اللي شايله دلوقتي */
 
/* تأثير السحر عند الوقوف بالماوس (Hover) */
.clickable-banner:hover .category-banner {
     border-color: var(--accent-orange);
    box-shadow: 0 15px 40px rgba(255, 87, 34, 0.3); /* توهج برتقالي */
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-orange);
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 10px 20px var(--accent-glow);
    transition: 0.3s;
}

/* تصميم السهم الجانبي */
.banner-arrow {
    position: absolute;
    left: 40px; /* على الشمال عشان الموقع عربي */
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
    z-index: 3;
    transition: all 0.4s ease;
}

/* حركة السهم وتغيير لونه لما الماوس يقف على البانر */
.clickable-banner:hover .banner-arrow {
    color: var(--accent-orange);
    transform: translateY(-50%) translateX(-15px); /* السهم بيتحرك لليسار كأنه بيقول "ادخل هنا" */
}

/* تظبيط الموبايل */
@media (max-width: 768px) {
    .banner-arrow {
        left: 20px;
        font-size: 1.8rem;
    }
    .workflow-section{
        display: block;
        margin: 0 20px;
    }
    .cta-banner{
        width: fit-content;
        margin: 0 20px 10px 20px;
    }
    .cta-banner h2{
        font-size: 20px;
    }
    .cta-banner p{
        font-size: 14px;
    }
    .cta-banner .btn-primary{
        font-size: 15px !important;
    }
  
} 