.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;
} 



/* =========================================
   NEW AI INTERACTIVE HERO (شاشة الذكاء الاصطناعي)
========================================= */
.ai-interactive-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    /* خلفية متدرجة خفيفة بدل الصورة لتبريز الشاشة الزجاجية */
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 87, 34, 0.08), transparent 50%),
                      radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.08), transparent 50%);
    overflow: hidden;
    border-bottom: 1px solid #1e293b;
    /* padding: 100px 0 60px 0;  */
}

/* التخطيط المنقسم (نص يمين، شاشة يسار) */
.hero-split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* مساحة أكبر للنص شوية */
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============ 1. تنسيق النصوص (الجزء الأيمن) ============ */
.tech-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.tech-badge span {
    color: var(--accent-orange);
    margin-left: 10px;
    font-size: 0.8rem;
    animation: blinkDot 1s infinite; /* نقطة بتنور وتطفي */
}
@keyframes blinkDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-text-content h1 {
    font-size: 4rem;
    color: var(--pure-white);
    margin-bottom: 20px;
    line-height: 1.3;
}
.hero-text-content p {
    font-size: 1.25rem;
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 90%;
}
.hero-actions {
    display: flex;
    gap: 20px;
}
/* زرار ثانوي مفرغ */
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s ease;
}
.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(255, 87, 34, 0.05);
}

/* ============ 2. الشاشة التفاعلية (الجزء الأيسر) ============ */
.hero-visual-content {
    position: relative;
    padding: 20px; /* مساحة للكرات المضيئة */
}

/* تصميم الشاشة الزجاجية 3D */
.ai-terminal-glass {
    background: rgba(13, 20, 36, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255, 87, 34, 0.15);
    position: relative;
    z-index: 2;
    /* إعطاء الشاشة لفة 3D شيك جداً */
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
/* لما الماوس يقف عليها تتعدل وتبقى مواجهة للعميل */
.ai-terminal-glass:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* رأس الشاشة (زراير القفل والتكبير) */
.terminal-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-header .dot {
    width: 12px; height: 12px; border-radius: 50%; margin-left: 8px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-header .title {
    margin-right: 15px; color: #64748b; font-family: monospace; font-size: 0.95rem;
}

/* جسم الشاشة (الكود اللي بيتكتب) */
.terminal-body {
    padding: 40px 30px;
    font-family: 'Courier New', Courier, monospace; /* خط المبرمجين */
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 2.2;
    min-height: 280px;
}
/* إخفاء النص في البداية لعمل أنيميشن الكتابة */
.terminal-body p {
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    width: 0;
}

/* أنيميشن الكتابة متتابع (كل سطر بعد التاني) */
.typing-text-1 { animation: typingAI 2s steps(40, end) forwards; }
.typing-text-2 { animation: typingAI 2s steps(40, end) 2s forwards; }
.typing-text-3 { animation: typingAI 2s steps(40, end) 4s forwards; color: var(--accent-orange) !important; font-weight: bold; }
.typing-text-4 { animation: typingAI 2s steps(40, end) 6s forwards; color: #27c93f !important; }

@keyframes typingAI {
    from { width: 0 }
    to { width: 100% }
}

/* خط مسح الليزر داخل الشاشة */
.terminal-scanner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(255, 87, 34, 0.4);
    box-shadow: 0 0 15px var(--accent-orange);
    animation: scanTerminal 4s linear infinite;
    pointer-events: none;
}
@keyframes scanTerminal {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* كرات مضيئة عائمة في الخلفية (بتعطي عمق 3D للتصميم) */
.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(70px); z-index: 1;
}
.orb-1 {
    width: 250px; height: 250px; background: var(--accent-orange);
    top: -50px; right: -50px; opacity: 0.25;
    animation: floatOrb 6s infinite alternate;
}
.orb-2 {
    width: 300px; height: 300px; background: #3b82f6;
    bottom: -50px; left: -50px; opacity: 0.15;
    animation: floatOrb 8s infinite alternate-reverse;
}
@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* ============ 3. التجاوب مع الموبايل ============ */
@media (max-width: 992px) {
    .hero-split-layout {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 40px;
    }
    .tech-badge { margin: 0 auto 20px; }
    .hero-text-content h1 { font-size: 3rem; }
    .hero-text-content p { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .ai-terminal-glass { transform: none; margin-top: 40px; }
    .terminal-body { font-size: 0.9rem; padding: 25px 20px; }
}
/* =========================================
   DEV GRID & ANIMATED GLOW CARDS
========================================= */
.dev-grid {
    display: grid;
    /* كارتين في الصف في الشاشات الكبيرة عشان المساحة تكون مريحة */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

/* تغليف الكارت (مهم جداً لعمل الإطار الدوار) */
.dev-card-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 3px; /* سمك الإطار المضيء */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05); /* لون الإطار العادي قبل الـ Hover */
    transition: all 0.4s ease;
}

/* الخدعة: العنصر اللي بيلف في الخلفية (الإطار الدوار) */
.dev-card-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    /* تدرج لوني دائري (برتقالي وأزرق وشفاف) */
    background: conic-gradient(transparent, transparent, transparent, var(--accent-orange), #3b82f6);
    transform: translate(-50%, -50%) rotate(0deg);
    animation: spinBorder 4s linear infinite;
    opacity: 0; /* مخفي في البداية */
    transition: opacity 0.4s ease;
}

/* الكارت الداخلي (الأسود) اللي بيغطي الـ Wrapper وبيسيب بس الحواف */
.dev-card-inner {
    position: relative;
    background: #090e17; /* أسود/كحلي قاتم */
    border-radius: 17px; /* أصغر شوية من الغلاف */
    padding: 40px;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* تأثير الـ Hover على الغلاف كله */
.dev-card-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 87, 34, 0.2);
}

/* إظهار الإطار الدوار عند الوقوف بالماوس */
.dev-card-wrapper:hover::before {
    opacity: 1;
}

/* حركة الدوران المستمرة للإطار */
@keyframes spinBorder {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* =========================================
   DEV CARD CONTENT STYLES
========================================= */
.dev-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.dev-icon i {
    font-size: 2.5rem;
    color: #3b82f6; /* لون أزرق تكنولوجي */
    transition: all 0.4s ease;
}

.dev-card-wrapper:hover .dev-icon {
    background: rgba(255, 87, 34, 0.15);
    border-color: var(--accent-orange);
}

.dev-card-wrapper:hover .dev-icon i {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.dev-card-inner h3 {
    font-size: 1.6rem;
    color: var(--pure-white);
    margin-bottom: 15px;
}

/* تظبيط الموبايل للـ Grid الخاص بالبرمجة */
@media (max-width: 768px) {
    .dev-grid {
        grid-template-columns: 1fr;
    }
    .dev-card-inner {
        padding: 30px 20px;
    }
}
.text-cyan { color: #00f3ff !important; }

/* =========================================
   CYBER IDE HERO (محرر الأكواد)
========================================= */
.dev-cyber-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #030610; /* أزرق داكن جداً يميل للأسود */
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding: 100px 0 60px 0;
}

/* خلفية المخطط الهندسي (Blueprint Grid) */
.blueprint-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.6;
}

/* زرار التاج البرمجي */
.cyber-badge {
    display: inline-block;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 8px 20px;
    border-radius: 5px; /* حواف حادة مش دائرية */
    color: #00f3ff;
    font-family: monospace;
    font-size: 1.1rem;
    margin-bottom: 25px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* --- شكل الـ IDE 3D --- */
.ide-window {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 30px rgba(0, 243, 255, 0.1);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.ide-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.ide-header {
    background: #161b22;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
    border-radius: 10px 10px 0 0;
}

.ide-dots span {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-left: 6px;
    background: #ff5f56;
}
.ide-dots span:nth-child(2) { background: #ffbd2e; }
.ide-dots span:nth-child(3) { background: #27c93f; }

.ide-title {
    margin: 0 auto;
    color: #8b949e;
    font-family: monospace;
    font-size: 0.9rem;
}

.ide-body {
    padding: 30px 25px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c9d1d9;
    direction: ltr; /* الكود دايماً من الشمال لليمين */
    text-align: left;
}
/* =========================================
   HOLOGRAPHIC TECH MODULES (الوحدات الهولوغرامية)
========================================= */
.hologram-grid {
    display: grid;
    /* بيقسم الكروت أوتوماتيك بعرض 140 بيكسل للكارت */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.holo-module {
    position: relative;
    background: rgba(255, 255, 255, 0.03); /* لون أفتح شوية من الخلفية */
    border: 1px solid rgba(255, 255, 255, 0.15); /* إطار واضح ومقروء */
    border-radius: 15px;
    padding: 35px 15px;
    text-align: center;
    overflow: hidden;
    cursor: crosshair; 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: perspective(500px) translateZ(0); 
    backdrop-filter: blur(10px); /* إضافة تأثير زجاجي خفيف */
}

/* تأثير "التشغيل" لما الماوس يقف على الكارت */
.holo-module:hover {
    /* بنستخدم الـ CSS Variable اللي حطناه في الـ HTML عشان نلون كل كارت بلونه */
    border-color: var(--brand-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 
                inset 0 -20px 40px -20px var(--brand-color), /* إضاءة من تحت */
                0 0 20px rgba(255, 255, 255, 0.05);
    transform: perspective(500px) translateZ(20px) translateY(-5px); /* الكارت بيطلع لبره */
}

.holo-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.5); /* بقت واضحة جداً للعين ومريحة */
    margin-bottom: 15px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative;
    z-index: 2;
}

/* الأيقونة تنور وتطير لفوق كأنها هولوغرام */
.holo-module:hover .holo-icon {
    color: var(--brand-color);
    transform: scale(1.2) translateY(-10px);
    filter: drop-shadow(0 10px 15px var(--brand-color));
}

.holo-title {
    color: #cbd5e1; /* لون مقروء جداً يبرز الكلام */
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.holo-module:hover .holo-title {
    color: var(--pure-white);
    text-shadow: 0 0 10px var(--brand-color);
}

/* خط ليزر خفيف بيمسح الكارت (Scanner) */
.holo-scanline {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-color);
    box-shadow: 0 0 15px var(--brand-color);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.holo-module:hover .holo-scanline {
    opacity: 1;
    animation: holoScan 2s linear infinite;
}

@keyframes holoScan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

/* التجاوب مع الموبايل */
@media (max-width: 768px) {
    .hologram-grid {
        /* كارتين جنب بعض في الموبايل */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .holo-module { padding: 25px 10px; }
    .holo-icon { font-size: 2.5rem; }
    .holo-title { font-size: 0.85rem; }
}
/* =========================================
   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) {
    .cta-banner h2 { font-size: 2rem; }
}
 
/* =========================================
   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-features {
        grid-template-columns: 1fr; /* عمود واحد في الموبايل */
        text-align: right; /* نرجع النقط يمين حتى لو الكارت وسطي */
    }
    
}



/* قائمة مميزات كل خدمة */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* تقسيم النقط لعمودين */
    gap: 15px;
}

 /* =========================================
   NEW TECH BULLET POINTS (مؤشرات النيون الجديدة)
========================================= */

/* تنسيق القائمة نفسها */
.service-features {
    list-style: none; /* إلغاء النقاط الافتراضية */
    padding: 0;
    margin: 20px 0 0 0;
    display: grid;
    /* جعلناها عمود واحد في الموبايل وعمودين في الشاشات الأكبر */
    grid-template-columns: 1fr; 
    gap: 15px;
}

@media (min-width: 768px) {
    .service-features {
        grid-template-columns: repeat(2, 1fr); /* عمودين في الشاشات الكبيرة */
    }
}

/* تنسيق العنصر الواحد في القائمة */
.service-features li {
    position: relative; /* مهم جداً عشان المؤشر */
    padding-right: 30px; /* مساحة فاضية على اليمين عشان نحط فيها المؤشر */
    color: #cbd5e1; /* لون النص العادي */
    font-size: 1.05rem;
    line-height: 1.7;
    transition: all 0.3s ease;
    display: flex; /* لضمان محاذاة النص بشكل سليم */
    align-items: flex-start;
}

/* رسم مؤشر النيون باستخدام الـ CSS (بدل الأيقونة) */
.service-features li::before {
    content: ''; /* عنصر فارغ */
    position: absolute;
    right: 0; /* تثبيته في بداية السطر (يمين) */
    top: 10px; /* محاذاة رأسية مع أول سطر نص */
    width: 12px;
    height: 12px;
    background: var(--accent-orange); /* اللون البرتقالي الأساسي */
    
    /* السحر هنا: تحويل المربع لشكل ماسي وتدوير الحواف */
    transform: rotate(45deg); 
    border-radius: 3px; 
    
    /* تأثير التوهج النيون */
    box-shadow: 0 0 10px var(--accent-orange), 
                0 0 20px rgba(255, 87, 34, 0.5);
                
    /* أنيميشن نبض خفيف للمؤشر */
    animation: techPulse 2s infinite alternate;
    transition: all 0.3s ease;
}

/* تأثير عند مرور الماوس على النقطة */
.service-features li:hover {
    color: var(--pure-white); /* النص يبيض */
    transform: translateX(-5px); /* حركة خفيفة لليسار */
}

/* المؤشر ينور أكتر لما نقف على النقطة */
.service-features li:hover::before {
    background: #fff; /* قلب المؤشر يبقى أبيض */
    box-shadow: 0 0 15px var(--accent-orange), 
                0 0 30px var(--accent-orange),
                0 0 45px var(--accent-orange); /* توهج أقوى */
}
