 /*
Theme Name: Ternpress
Author: AI Agent
Description: Cyberpunk/Terminal style WordPress theme converted from HTML template.
Version: 1.0
Text Domain: ternpress
*/

/* --- CORE STYLES --- */
 :root {
     --bg-color: #092949;
     --text-primary: #39ff14;
     /* Hacker Green */
     --text-dim: #008f11;
     --accent-cyan: #00ffff;
     --accent-magenta: #ff00ff;
     --section-gap: 5rem;
     --font-mono: 'Fira Code', monospace;
     --font-ar: 'IBM Plex Sans Arabic', sans-serif;
     --font-eg: 'tajawal', sans-serif;

 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 body {
     background-color: var(--bg-color);
     color: var(--text-primary);
     font-family: var(--font-eg);
     overflow-x: hidden;
     font-size: 16px;
     line-height: 1.8;
     direction: rtl;
     text-align: right;
 }

 /* --- CRT EFFECT (SCANLINES) --- */
 body::before {
     content: " ";
     display: block;
     position: fixed;
     top: 0;
     left: 0;
     bottom: 0;
     right: 0;
     background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
     z-index: 999;
     background-size: 100% 2px, 3px 100%;
     pointer-events: none;
 }

 /* --- TYPOGRAPHY --- */
 h1,
 h2,
 h3 {
     font-family: var(--font-mono);
     font-weight: 700;
     text-transform: uppercase;
     margin-bottom: 1rem;
     line-height: 1.4;
 }

 h1 {
     font-size: 2.5rem;
     color: var(--accent-cyan);
     text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
 }

 h2 {
     font-size: 1.8rem;
     border-bottom: 2px dashed var(--text-dim);
     display: inline-block;
     padding-bottom: 5px;
     margin-bottom: 2rem;
 }

 .english-term {
     font-family: var(--font-mono);
     direction: ltr;
     display: inline-block;
     color: var(--accent-cyan);
     font-size: 0.9em;
     font-weight: bold;
 }

 /* .container {
    max-width: 1100px;
     margin: 0 auto;
     padding: 2rem;
     position: relative;
     z-index: 10;
 } */



 /* --- ANIMATION CLASSES --- */
 /* للعناصر التي تظهر وتختفي (صور، كروت) */
 .reveal-block {
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.8s ease-out;
     text-align: center;
     margin-top: 20px;

 }

 .reveal-block.visible {
     opacity: 1;
     transform: translateY(0);
 }

 /* للنصوص التي ستكتب حرفاً بحرف */
 .type-me {
     visibility: hidden;
     /* مخفي حتى يبدأ السكربت */
     border-left: 2px solid var(--text-primary);
     /* المؤشر */
     padding-left: 5px;
 }

 .type-me.typing {
     visibility: visible;
 }

 .cursor-blink {
     animation: blink 1s step-end infinite;
 }

 @keyframes blink {
     50% {
         border-color: transparent;
     }
 }


 /* --- LAYOUT SECTIONS --- */
 .hero-section {
     min-height: 90vh;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
 }

 

 .logo-icon {
     font-size: 3rem;
     /* يمكنك استبدال هذا بصورة SVG لطائر */
     filter: drop-shadow(0 0 5px var(--accent-cyan));
 }

 @keyframes float {

     0%,
     100% {
         transform: translateY(0);
     }

     50% {
         transform: translateY(-15px);
     }
 }

 /* Services Grid */
 .services-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 2rem;
     max-width: 1100px;
     margin: 0 auto;
 }

 .service-card {
     border: 1px solid var(--text-dim);
     background: rgba(0, 20, 0, 0.4);
     padding: 2rem;
     position: relative;
     overflow: hidden;
     transition: 0.3s;
 }

 .service-card:hover {
     border-color: var(--accent-magenta);
     box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
 }

 .service-card::before {
     content: "SYS_MODULE";
     position: absolute;
     top: 0;
     left: 0;
     background: var(--text-dim);
     color: #000;
     font-size: 0.7rem;
     padding: 2px 8px;
     font-family: var(--font-mono);
 }

 /* Image Styling */
 .cyber-img {
     width: 100%;
     border: 1px solid var(--text-primary);
     filter: grayscale(100%) sepia(100%) hue-rotate(90deg) saturate(200%) brightness(0.8);
     transition: 0.5s;
     margin-bottom: 1rem;
 }

 .cyber-img:hover {
     filter: none;
 }

 /* Buttons */
 .btn-terminal {
     margin-top: 30px;
     padding: 1rem 3rem;
     border: 2px solid var(--accent-cyan);
     color: #ffffff;
     text-decoration: none;
     font-family: var(--font-mono);
     font-weight: bold;
     transition: 0.3s;
     background: #08264b;
     font-size: 15px;
 
 }

 .btn-terminal:hover{
     background: var(--accent-cyan);
     color: #000;
     box-shadow: 0 0 20px var(--accent-cyan);
 }

 /* Speed Meter Graphic (CSS Only) */
 .speed-bar {
     width: 100%;
     height: 10px;
     background: #333;
     margin-top: 10px;
     position: relative;
 }

 .speed-fill {
     height: 100%;
     background: var(--accent-cyan);
     width: 0;
     transition: width 2s ease-out;
     box-shadow: 0 0 10px var(--accent-cyan);
 }


 #splash-screen {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: var(--bg-color);
     z-index: 9999;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: column;
     text-align: center;
     transition: opacity 0.8s ease-out, visibility 0.8s;

 }

 #splash-screen.hidden {
     opacity: 0;
     visibility: hidden;
     pointer-events: none;
 }



 body.locked {
     overflow: hidden;
 }


 .loading-title {
     font-size: 1.5rem;
     margin-top: 30px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .loading-title svg {
     width: 100px;
     height: auto;
     visibility: hidden;
     margin: 0;
 }


 .ticker-wrapper {
     width: 100%;
     overflow: hidden;
     background-color: #2c3e50;
     padding: 15px 0;
     white-space: nowrap;
     margin-top: 30px;
 }

 .ticker-track {
     display: flex;
     width: fit-content;
 }

 .ticker-item {
     color: #ffffff;
     font-size: 20px;
     font-family: 'Arial', sans-serif;
     /* بنستخدم padding-right عشان المسافة تبقى بعد الجملة مش قبلها */
     padding-right: 50px;
 }

 

 .brand-logo {
     font-family: var(--font-mono);
     font-weight: bold;
     font-size: 1.4rem;
     color: #fff;
     min-width: 200px;
     display: flex;
     align-items: center;
     justify-content: center;

 }

 /* --- تنسيق الـ Navbar --- */
 .nav-links {
     display: flex;
     list-style: none;
     gap: 2rem;
     margin: 0;
     padding: 0;
 }

 /* --- تنسيق الروابط --- */

 /* --- تنسيق الروابط --- */
 .nav-item {
     text-decoration: none;
     color: #ccc;
     font-size: 1rem;
     position: relative;
     transition: 0.3s;
     padding: 5px 10px;
     display: inline-block;
     margin: 0 12px;
 }

 /* --- إعداد الأقواس (مخفية في البداية) --- */
 .nav-item::before,
 .nav-item::after {
     position: absolute;
     opacity: 0;
     /* مخفي */
     font-family: var(--font-mono);
     color: var(--accent-cyan);
     transition: all 0.3s ease;
     top: 50%;
     transform: translateY(-50%);
     font-weight: bold;
     pointer-events: none;
 }

 /* مكان القوس اليمين وهو مخفي */
 .nav-item::before {
     content: '[';
     right: 5px;
 }

 /* مكان القوس اليسار وهو مخفي */
 .nav-item::after {
     content: ']';
     left: 5px;
 }


 /* --- السحر هنا: أمر الظهور عند Hover أو Active --- */

 /* تلوين النص */
 .nav-item:hover,
 .nav-item.active {
     color: var(--accent-cyan);
     text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
     letter-spacing: 1px;
 }

 /* إظهار وتحريك القوس اليمين */
 .nav-item:hover::before,
 .nav-item.active::before {
     opacity: 1;
     /* إظهار */
     right: -12px;
     /* تحريك للخارج */
 }

 /* إظهار وتحريك القوس اليسار */
 .nav-item:hover::after,
 .nav-item.active::after {
     opacity: 1;
     /* إظهار */
     left: -12px;
     /* تحريك للخارج */
 }

 .ternpress-link {
     text-decoration: none;
     color: var(--text-primary);
     font-size: 1.2rem;
 }

 .header-actions {
     display: flex;
     align-items: center;
     gap: 20px;
 }

 .status-indicator {
     font-family: var(--font-mono);
     font-size: 0.7rem;
     display: none;
     /* إخفاء الحالة في الشاشات الصغيرة */
 }

 /* --- زر التواصل (Glitch Button) --- */
 .btn-contact-glitch {
     position: relative;
     padding: 8px 20px;
     background: transparent;
     border: 1px solid var(--accent-magenta);
     color: #fff;
     font-family: var(--font-ar);
     font-size: 0.9rem;
     text-decoration: none;
     overflow: hidden;
     transition: 0.3s;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .btn-contact-glitch:hover {
     background: var(--accent-magenta);
     color: #000;
     box-shadow: 0 0 15px var(--accent-magenta);
 }

 /* تأثير الخط المائل المتحرك داخل الزر */
 .btn-decoration {
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
     transition: 0.5s;
     transform: skewX(-20deg);
 }

 .btn-contact-glitch:hover .btn-decoration {
     left: 100%;
     transition: 0.5s;
 }





 /* --- ANIMATION CLASSES --- */
 .reveal-block {
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.8s ease-out;
 }

 .reveal-block.visible {
     opacity: 1;
     transform: translateY(0);
 }

 .type-me {
     visibility: hidden;
     border-left: 2px solid var(--text-primary);
     padding-left: 5px;
 }

 .type-me.typing {
     visibility: visible;
 }


 .logo-frame {
     width: 120px;
     height: 120px;
     border: 2px solid var(--accent-cyan);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 2rem;
     box-shadow: 0 0 20px var(--accent-cyan);
     animation: float 4s ease-in-out infinite;
 }

 @keyframes float {

     0%,
     100% {
         transform: translateY(0);
     }

     50% {
         transform: translateY(-15px);
     }
 }

 /* Services/Values Grid */
 .services-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 2rem;
 }

 .service-card {
     border: 1px solid var(--text-dim);
     background: rgba(0, 20, 0, 0.4);
     padding: 2rem;
     position: relative;
     overflow: hidden;
     transition: 0.3s;
 }

 .service-card:hover {
     border-color: var(--accent-magenta);
     box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
 }

 .service-card::before {
     content: "SYS_VARIABLE";
     position: absolute;
     top: 0;
     left: 0;
     background: var(--text-dim);
     color: #000;
     font-size: 0.7rem;
     padding: 2px 8px;
     font-family: var(--font-mono);
 }

 /* Buttons */
 .btn-terminal {
     margin-top: 30px;
     padding: 1rem 3rem;
     border: 2px solid var(--accent-cyan);
     color: #ffffff;
     text-decoration: none;
     font-family: var(--font-mono);
     font-weight: bold;
     transition: 0.3s;
     background: #08264b;
     font-size: 15px;
     display: inline-block;
     cursor: pointer;
 }

 .btn-terminal:hover {
     background: var(--accent-cyan);
     color: #000;
     box-shadow: 0 0 20px var(--accent-cyan);
 }

 .main-header {
     padding: 15px 0;
     border-bottom: 1px solid rgba(0, 255, 255, 0.1);
     display: flex;
     justify-content: space-between;
     align-items: center;
     background: rgba(9, 41, 73, 0.95);
     backdrop-filter: blur(5px);
     position: sticky;
     top: 0;
     z-index: 1000;
     padding-left: 2rem;
     padding-right: 2rem;
 }

 .brand-logo {
     font-family: var(--font-mono);
     font-weight: bold;
     font-size: 1.4rem;
     color: #fff;
     display: flex;
     align-items: center;
 }





 .header-actions {
     display: flex;
     align-items: center;
     gap: 20px;
 }

 .btn-contact-glitch {
     position: relative;
     padding: 8px 20px;
     background: transparent;
     border: 1px solid var(--accent-magenta);
     color: #fff;
     font-family: var(--font-ar);
     font-size: 0.9rem;
     text-decoration: none;
     overflow: hidden;
     transition: 0.3s;
 }

 .btn-contact-glitch:hover {
     background: var(--accent-magenta);
     color: #000;
     box-shadow: 0 0 15px var(--accent-magenta);
 }


 footer {
     border-top: 1px solid var(--text-dim);
     background: rgba(0, 10, 20, 0.6);
     padding: 4rem 0 2rem;
     /* margin-top: 4rem; */
 }

 .footer-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 3rem;
     margin-bottom: 3rem;
     width: 80% !important;
     margin: 0 auto;
 }

 .footer-col h4 {
     color: var(--accent-cyan);
     margin-bottom: 1.5rem;
     font-family: var(--font-mono);
     border-left: 3px solid var(--accent-magenta);
     padding-left: 10px;
 }

 .contact-list {
     list-style: none;
 }

 .contact-list li {
     margin-bottom: 1rem;
     display: flex;
     align-items: center;
     gap: 10px;
     color: #ccc;
 }

 .contact-list li i {
     color: var(--text-primary);
 }

 .footer-bottom {
     text-align: center;
     border-top: 1px dashed #333;
     padding-top: 2rem;
     font-size: 0.8rem;
     color: #666;
 }

 /* --- Trust Section Specifics --- */
 .trust-item {
     display: flex;
     align-items: start;
     gap: 15px;
     margin-bottom: 2rem;
 }

 .trust-icon {
     font-size: 1.5rem;
     color: var(--accent-cyan);
     margin-top: 5px;
 }


 .about-hero-section {
     background-image: url('assets/about.png');
     background-size: cover;
     background-position: center;
     min-height: 90vh;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
 }

 .our-variables {
     width: 80% !important;
     margin: 0 auto;
 }

 /* --- تنسيق الكروت التقنية (بدلاً من trust-item) --- */
 .tech-card {
     display: flex;
     align-items: start;
     gap: 15px;
     text-align: justify;
     border: 1px solid var(--accent-cyan);

     padding: 20px;
     border-radius: 8px;
     background: rgba(0, 255, 255, 0.03);


     transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
 }

 /* --- الهوفر (تكبير + توهج) --- */
 .tech-card:hover {
     transform: scale(1.05);
     /* تكبير */
     background: rgba(0, 255, 255, 0.1);
     box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
     z-index: 10;
 }

 /* تنسيق الأيقونة */
 .tech-icon {
     font-size: 1.8rem;
     color: var(--accent-cyan);
     margin-top: 2px;
     min-width: 30px;
 }

 /* --- تنسيق الروابط في الفوتر --- */
 .footer-link {
     text-decoration: none;
     color: #bbb;
     transition: 0.3s;
     display: inline-block;
 }

 /* هذا هو الجزء الذي كان ناقصاً: ماذا يحدث عندما يكون الرابط active؟ */
 .footer-link:hover,
 .footer-link.active {
     /* <-- هنا السر */
     color: var(--accent-cyan);
     transform: translateX(-5px);
     text-shadow: 0 0 5px var(--accent-cyan);
     font-weight: bold;
     /* لتمييزه أكثر */
 }

 .services-hero {
     /* يمكنك تغيير الصورة هنا */
     background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
     background-size: cover;
     background-position: center;
     background-attachment: fixed;
     /* تأثير جميل عند السكرول */
     min-height: 60vh;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
     position: relative;
 }

 /* طبقة سوداء فوق الصورة لوضوح النص */
 .services-hero::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(9, 41, 73, 0.85);
     /* لون أزرق غامق شفاف */
     z-index: 1;
 }

 /* رفع المحتوى فوق الطبقة السوداء */
 .services-hero>* {
     position: relative;
     z-index: 2;
 }

 /* تحسين شكل الشبكة لتناسب عدد الكروت الزائد */
 .services-grid {
     margin-top: 3rem;
 }

 .social-icons a {
     color: var(--accent-cyan);
     font-size: 1.2rem;
     transition: 0.3s;
     border: 1px solid transparent;
     padding: 5px;
     border-radius: 4px;
 }

 .social-icons a:hover {
     color: #fff;
     border-color: var(--accent-magenta);
     box-shadow: 0 0 10px var(--accent-magenta);
     transform: translateY(-3px);
 }


 .hidden {
     display: none !important;
 }

/* =========================================
   Floating Background Icons (In-Place Drift)
========================================= */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    color: #39ff14;
    opacity: 0.15; /* الشفافية ثابتة هنا حتى لا تختفي */
    font-family: var(--font-mono, monospace);
    font-weight: bold;
    user-select: none;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    /* الحركة تكرر نفسها بنعومة (ease-in-out) */
    animation: floatingDrift ease-in-out infinite; 
}

/* توزيع الأيقونات في أنحاء الشاشة (top و left بدلاً من bottom) بسرعات مختلفة */
.icon-1 { top: 15%;  left: 10%; font-size: 2rem; animation-duration: 8s; }
.icon-2 { top: 74%;  left: 4%; font-size: 3rem; animation-duration: 12s; animation-direction: reverse; }
.icon-3 { top: 25%;  left: 45%; font-size: 1.5rem; animation-duration: 9s; }
.icon-4 { top: 47%;  left: 90%; font-size: 4rem; animation-duration: 15s; }
.icon-5 { top: 35%;  left: 80%; font-size: 2.5rem; animation-duration: 10s; animation-direction: reverse; }
.icon-6 { top: 85%;  left: 85%; font-size: 2rem; animation-duration: 11s; }
.icon-7 { top: 50%;  left: 12%; font-size: 3.5rem; animation-duration: 14s; }
.icon-8 { top: 20%;  left: 75%; font-size: 1.8rem; animation-duration: 7s; animation-direction: reverse; }

/* 
  الأنيميشن الجديد: يتحرك العنصرض مسافة بسيطة في اتجاه X و Y
  مع دوران خفيف جداً، ثم يعود لنقطة البداية بشكل لا نهائي
*/
@keyframes floatingDrift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(25px, -20px) rotate(8deg);
    }
    66% {
        transform: translate(-15px, 20px) rotate(-8deg);
    }
}
 /* 1. Hero Section */
 .projects-hero {
     text-align: center;
     padding: 4rem 0;
     border-bottom: 1px dashed var(--text-dim);
     margin-bottom: 3rem;

     background-image: linear-gradient(rgba(8, 38, 75, 0.85), rgba(8, 38, 75, 0.85)), url('assets/services.png');

     background-color: #08264b;
     background-size: cover;
     background-position: center;
     background-attachment: fixed;
     min-height: 60vh;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
     position: relative;
 }

 .projects-hero h1 {
     font-size: 4.5rem;
     color: #fff;
     margin-bottom: 1rem;
 }

 .projects-hero p {
     color: #bbb;
     max-width: 600px;
     margin: 0 auto;
     font-family: var(--font-ar);
 }

 /* 2. Filter Bar (Terminal Tabs) */
 .filter-container {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 15px;
     margin-bottom: 3rem;
 }

 .filter-btn {
     background: transparent;
     border: 1px solid var(--text-dim);
     color: var(--text-dim);
     padding: 10px 25px;
     font-family: var(--font-mono);
     cursor: pointer;
     transition: 0.3s;
     position: relative;
     overflow: hidden;
     font-size: 1rem;
 }

 .filter-btn:hover,
 .filter-btn.active {
     border-color: var(--accent-cyan);
     color: #000;
     background: var(--accent-cyan);
     box-shadow: 0 0 15px var(--accent-cyan);
     font-weight: bold;
 }

 /* 3. Projects Grid */
 .projects-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
     gap: 30px;
 }

 /* 4. Project Card (The Data File) */
 .project-card {
     background: rgba(0, 0, 0, 0.3);
     border: 1px solid #333;
     position: relative;
     overflow: hidden;
     transition: 0.3s;
     border-radius: 0px 0px 100px 0px;
     -webkit-border-radius: 0px 0px 100px 0px;
     -moz-border-radius: 0px 0px 100px 0px;
 }

 .project-card:hover {
     border-color: var(--accent-magenta);
     transform: translateY(-5px);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
 }

 /* الصورة */
 .card-img-holder {
     width: 100%;
     height: 250px;
     position: relative;
     overflow: hidden;
 }

 .card-img-holder img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: 0.5s;
     filter: grayscale(80%) contrast(1.2);
     /* تأثير السايبر */
 }

 .project-card:hover .card-img-holder img {
     filter: grayscale(0%);
     transform: scale(1.1);
 }

 /* طبقة البيانات فوق الصورة */
 .card-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(to top, rgba(9, 41, 73, 0.9), transparent);
     opacity: 0.8;
     transition: 0.3s;
 }

 /* المحتوى النصي */
 .card-content {
     padding: 1.5rem;
     position: relative;
     z-index: 2;
 }

 .project-category {
     font-size: 0.8rem;
     color: var(--accent-cyan);
     margin-bottom: 5px;
     display: inline-block;
     border: 1px solid var(--accent-cyan);
     padding: 2px 8px;
     text-align: center;
 }

 .project-title {
     font-size: 1.4rem;
     color: #fff;
     margin-bottom: 10px;
     font-family: var(--font-mono);
 }

 .project-desc {
     font-size: 0.9rem;
     color: #ccc;
     font-family: var(--font-ar);
     margin-bottom: 15px;
     line-height: 1.6;
 }

 .tech-stack {
     display: flex;
     gap: 10px;
     font-size: 0.8rem;
     color: var(--text-dim);
     margin-top: 10px;
     border-top: 1px dashed #333;
     padding-top: 10px;
     margin-right: 31px;
 }

 /* Animation for Filtering */
 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .project-card.animate {
     animation: fadeIn 0.5s ease-forwards;
 }

 .hidden {
     display: none;
 }



 .job-card {
     background: rgba(0, 20, 40, 0.6);
     border: 1px solid var(--text-dim);
     padding: 2rem;
     position: relative;
     transition: 0.3s;
     overflow: hidden;
     border-radius: 0px 101px 0px 0px;
     -webkit-border-radius: 0px 101px 0px 0px;
     -moz-border-radius: 0px 101px 0px 0px;
     display: flex;
     flex-direction: column;
     gap: 33px;
 }

 .job-card:hover {
     border-color: var(--text-primary);
     box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
     transform: translateY(-5px);
 }

 /* خط جانبي ملون للكارت */
 .job-card::before {
     content: '';
     position: absolute;
     top: 0;
     right: 0;
     width: 4px;
     height: 100%;
     background: var(--text-dim);
     transition: 0.3s;
 }

 .job-card:hover::before {
     background: var(--text-primary);
     box-shadow: 0 0 10px var(--text-primary);
 }

 /* حالة الوظيفة (Open / Urgent) */
 .job-status {
     position: absolute;
     top: 15px;
     left: 15px;
     font-size: 0.7rem;
     font-family: var(--font-mono);
     padding: 2px 8px;
     border: 1px solid var(--text-dim);
     color: var(--text-dim);
 }

 .job-status.urgent {
     color: var(--accent-magenta);
     border-color: var(--accent-magenta);
     animation: blink 1.5s infinite;
 }

 @keyframes blink {
     50% {
         opacity: 0.5;
     }
 }

 /* تفاصيل الوظيفة */
 .job-type {
     color: #888;
     font-size: 0.9rem;
     margin-bottom: 0.5rem;
     display: block;
     font-family: var(--font-mono);
 }

 .job-title {
     color: #fff;
     font-size: 1.5rem;
     margin-bottom: 1rem;
 }

 .job-desc {
     color: #ccc;
     font-size: 0.95rem;
     margin-bottom: 1.5rem;
     line-height: 1.6;
 }

 /* المهارات المطلوبة (Tags) */
 .skills-container {
     display: flex;
     flex-wrap: wrap;
     gap: 7px;
     margin-bottom: 2rem;
 }

 .skill-tag {
     background: rgba(255, 255, 255, 0.05);
     padding: 5px 10px;
     font-size: 0.8rem;
     color: var(--accent-cyan);
     font-family: var(--font-mono);
     border-radius: 4px;
 }

 /* زر التقديم */
 .apply-btn {
     display: block;
     width: 100%;
     padding: 12px;
     text-align: center;
     background: transparent;
     border: 1px solid var(--text-primary);
     color: var(--text-primary);
     text-decoration: none;
     font-weight: bold;
     transition: 0.3s;
     cursor: pointer;
 }

 .apply-btn:hover {
     background: var(--text-primary);
     color: #000;
     box-shadow: 0 0 15px var(--text-primary);
 }

 /* نموذج التقديم (Terminal Form) */
 .terminal-form {
     background: #000;
     border: 1px solid #333;
     padding: 2rem;
     margin-top: 4rem;
     font-family: var(--font-mono);
 }

 .form-group {
     margin-bottom: 1.5rem;
 }

 .form-label {
     display: block;
     color: var(--accent-cyan);
     margin-bottom: 5px;
 }

 .terminal-input {
     width: 100%;
     background: transparent;
     border: none;
     border-bottom: 1px solid #555;
     color: #fff;
     padding: 10px 0;
     font-family: var(--font-mono);
     outline: none;
     transition: 0.3s;
 }

 .terminal-input:focus {
     border-bottom-color: var(--text-primary);
 }



 
/* === تنسيق زر الهامبرغر === */
.hamburger {
    display: none; /* مخفي في الكمبيوتر */
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002; /* ليكون فوق القائمة المفتوحة */
}

.hamburger .hamburger-bar {
    width: 30px;
    height: 3px;
    background-color: var(--accent-cyan);
    transition: 0.3s;
    box-shadow: 0 0 5px var(--accent-cyan);
}

/* === تنسيق القائمة (الحاوية التي تجمع الروابط والزر) === */
.nav-menu {
    display: flex;
    align-items: center;
    /* gap: 20px; */
    width: 100%;
    justify-content: space-around;
    margin-right: 241px;
}

/* === ميديا كويري للموبايل (أقل من 992px) === */
@media screen and (max-width: 992px) {
    .hamburger {
        display: flex;
    } 
    .nav-menu {
        position: fixed;
        top: 0;
        right: -98%;
        width: 100%;
        height: 110vh;
        background: rgba(9, 41, 73, 0.98); /* لون الخلفية */
        backdrop-filter: blur(15px); /* تأثير ضبابي */
        flex-direction: column; /* ترتيب العناصر فوق بعض */
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1001;
        border-left: 2px solid var(--accent-cyan);
        margin-right: 0px;
    } 
    .nav-menu.active {
        right: 0;
    } 
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem; /* مسافة بين الروابط والزر */
    } 
    .nav-item {
        font-size: 1.5rem;
    } 
    .header-actions {
        display: block !important; /* ضمان ظهوره */
    }
 
    .hamburger.active .hamburger-bar:nth-child(2) { opacity: 0; }
    .hamburger.active .hamburger-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .hamburger-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero-section{
        padding: 15px;
    }

    .hero-section h1{
        font-size:27px;
    }
    
    .hero-section p{
        font-size:20px !important;
    }
    .section-title{
           font-size: 32px;
    }

    .submit-hire-btns{
        flex-direction: column !important;
    }
    
    .services-grid{
        padding: 0 50px;
    }

    .projects-hero
    {
        padding: 0 50px !important;
    }
 
    .faq-grid{
        padding: 0 14px;
    }

    .services-home-section{
        padding: 0 !important;
    }

    .ternpress-hero-sec{
        font-size: 17px;
    }
    .why-us, .why-choose-us{
        display: flex !important;
        flex-direction: column-reverse;
        padding: 10px;
    }
  
    .about-hero-section p{
        font-size: 20px !important;
    }
    .why-us-grid{
       grid-template-columns: 1fr !important; 
    }
    
    .projects-hero h1{
        font-size: 25px !important;
    }
    .terminal-form{
        padding: 10px;
    }
    #apply-section{
        padding: 10px;
    }
    .terminal-form h3{
        font-size: 16px;
    } 
    .menu-hero{
        padding: 0 0 !important;
    }
    .menu-hero h1{
        font-size: 31px !important;
    }
    .menu-hero p{
        font-size: 23px !important;
    }
    .menu-hero-btns{
        flex-direction: column-reverse;
        padding: 0 20px;
    } 
    .text-col , .process-section , .menu-specs-section{
        padding: 0 !important;
    }

    .visual-col{
        display: none;
    }
    .process-section h2{
        padding-top: 21px;
    }
    .menu-project{
        padding: 0 20px;
    }
    .projects-menu-grid{
        padding:0 20px ;
    } 
    .glitch-text{
        font-size: 32px;
    }
}

.specs-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.specs-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.spec-item h3 {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    position: relative;
    font-family: var(--font-ar);
}

.spec-item p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* تأثير الخطوط الرفيعة التي تشير للصورة */
.right .spec-item { text-align: right; border-right: 2px solid var(--accent-magenta); padding-right: 15px; }
.left .spec-item { text-align: left; border-left: 2px solid var(--accent-magenta); padding-left: 15px; }

.central-image-wrapper {
    flex: 1.5;
    text-align: center;
    position: relative;
}

.main-spec-img {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.3));
    animation: float 5s ease-in-out infinite;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

/* للموبايل */
@media (max-width: 992px) {
    .specs-container { flex-direction: column; text-align: center; }
    .right .spec-item, .left .spec-item { text-align: center; border: none; padding: 0; }
}



/* Full-Width CTA Section */
.cta-full-width-section {   
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 800px;  
    flex-direction: column;   
    background-image: 
        linear-gradient(to bottom, rgba(8, 38, 75, 0.9), rgba(8, 38, 75, 0.7)), 
        url('assets/menu2.png');
    
    background-size: cover;
    background-position: center  ;
    /* background-attachment: fixed;   */
    background-repeat: no-repeat; 
    animation: fadeInSection 2s ease-out forwards;
}


.floating-menu-img {
    width: 100%; /* تأخذ عرض السكشن كاملاً */
    height: auto;
    position: absolute; /* لتطفو وتكون تحت الكلام */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7; /* لتبدو كجزء من الخلفية وليست في المقدمة بشكل كامل */
    filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.4)); /* توهج حول الصورة */
    animation: slideUpFadeIn 6s ease-out forwards; /* انيميشن الحركة والظهور */
    z-index: 0; /* تحت الكلام */
    background-position: top;
}

.cta-overlay-content {
    position: relative;
    z-index: 1; /* ليكون الكلام فوق الصورة */
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 23px;
}

/* Keyframe Animation for the image */
@keyframes slideUpFadeIn {
    0% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.7;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-full-width-section {
        min-height: 400px;
        padding: 50px 0;
    }
    .floating-menu-img {
        bottom: -50px; /* تعديل ليتناسب مع الشاشات الأصغر */
        width: 120%; /* لتغطية العرض بالكامل مع الاحتفاظ بالتناسب */
    }
    .cta-overlay-content h2 {
        font-size: 1.8rem !important;
    }
    .cta-overlay-content p {
        font-size: 1rem;
    }
}


/* --- PROCESS SCROLL SECTION --- */
.process-section {
    padding: var(--section-gap) 20px;
    background: #051a35; /* لون مختلف قليلاً للتمييز */
    position: relative;
}

.process-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    gap: 50px;
}

/* عمود الصور (يمين) */
.visual-col {
    flex: 1;
    position: relative;
}

/* الحاوية المثبتة Sticky */
.visual-sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 20vh; /* المسافة من أعلى الشاشة */
    height: 500px; /* ارتفاع إطار الصور */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--accent-cyan);
    border-radius: 20px;
    background: rgba(0,0,0,0.5);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

 
.process-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;

    /* --- تعديل Wipe Animation ليكون رأسياً (Vertical) --- */
    /* نبدأ بقص الصورة بالكامل من الأسفل (القيمة الثالثة هي bottom) */
    /* الترتيب: inset(top right bottom left) */
    clip-path: inset(0 0 100% 0); 
    
    opacity: 0.5; 
    filter: grayscale(100%) brightness(0.7);
    
    /* ترانزيشن ناعم للحركة */
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.process-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.process-img.active {
    /* إلغاء القص ليظهر من الأعلى للأسفل */
    clip-path: inset(0 0 0 0);
    
    opacity: 1;
    filter: grayscale(0%) brightness(1);
    
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8), 
        0 0 40px rgba(0, 255, 255, 0.2),
        0 0 0 2px rgba(0, 255, 255, 0.1);
    z-index: 5;
}

.img-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--bg-color);
    color: var(--accent-cyan);
    padding: 5px 15px;
    font-family: var(--font-mono);
    border: 1px solid var(--accent-cyan);
    font-weight: bold;
}

/* عمود النصوص (يسار) */
.text-col {
    flex: 1;
    padding-bottom: 100px; /* مسافة إضافية في الأسفل */
}

.step-card {
    min-height: 80vh; /* كل خطوة تأخذ ارتفاع الشاشة تقريباً لضمان السكرول */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    opacity: 0.3; /* شفافية منخفضة للنصوص غير النشطة */
    transition: 0.5s;
    border-right: 3px solid transparent;
}

.step-card.active-step {
    opacity: 1;
    border-right-color: var(--accent-magenta);
    padding-right: 30px;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-dim);
    margin-bottom: 10px;
}

.step-card.active-step .step-number {
    color: var(--accent-magenta);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 10px var(--accent-magenta);
}

.step-card h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.step-tags {
    list-style: none;
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.step-tags li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    color: var(--accent-cyan);
}

/* --- Responsive for Mobile --- */
@media (max-width: 992px) {
    .process-container {
        flex-direction: column-reverse; /* الصور فوق النصوص في الموبايل */
    }
    
    .visual-sticky-wrapper {
        position: relative;
        top: 0;
        height: 300px;
        margin-bottom: 20px;
    }
    
    .step-card {
        min-height: auto;
        margin-bottom: 50px;
        opacity: 1; /* إلغاء الشفافية في الموبايل */
        border-bottom: 1px solid #333;
        padding-bottom: 20px;
    }
}
 



.menu-hero{
     text-align: center;
     padding:0 200px ;
     border-bottom: 1px dashed var(--text-dim);
     margin-bottom: 3rem;

     background-image:  linear-gradient(rgb(12 47 89 / 0%), rgb(8 38 75 / 59%)), url(assets/15-removebg-preview.png);

     background-color: #08264b;
     background-size: 1091px  auto;
     background-repeat: no-repeat;
     background-position: 80% center;
     background-attachment: fixed;
     min-height: 89vh;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: flex-end;
     text-align: center;
     position: relative;
 
}


.menu-hero-btns{
    display: flex;
    gap: 36px;
    justify-content: center;
    margin-top: 34px;
}
/* var(--accent-cyan); */

 .btn-terminal-2 {
     margin-top: 30px;
     padding: 1rem 3rem;
     border: 2px solid var(--accent-cyan);
     color: #ffffff;
     text-decoration: none;
     font-family: var(--font-mono);
     font-weight: bold;
     transition: 0.3s;
     background: #08264b;
     font-size: 15px;
 
 }

  .btn-terminal-2:hover{
     background: var(--accent-cyan);
     color: #000;
     box-shadow: 0 0 20px var(--accent-cyan);
 }





 /* --- CONTACT HERO --- */
.contact-hero {
    text-align: center;
    padding: 6rem 0 3rem;
    background: radial-gradient(circle at center, #0a1f35 0%, #000 100%);
    position: relative;
    border-bottom: 1px solid var(--text-dim);
}

.signal-status {
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.bars {
    display: flex;
    gap: 3px;
}

.bar {
    width: 5px;
    height: 15px;
    background: var(--text-primary);
    animation: signal 1s infinite alternate;
}
.bar:nth-child(2) { animation-delay: 0.1s; height: 10px; }
.bar:nth-child(3) { animation-delay: 0.2s; height: 18px; }
.bar:nth-child(4) { animation-delay: 0.3s; height: 12px; }

@keyframes signal {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* --- LAYOUT GRID --- */
.contact-container {
    max-width: 1200px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* العمود اليسار أعرض قليلاً للفورم */
    gap: 4rem;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- INFO CARDS (LEFT) --- */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
    padding: 20px;
    border: 1px solid transparent;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
    font-size: 21px;
}

.info-card:hover {
    border-color: var(--accent-magenta);
    background: rgba(255, 0, 255, 0.05);
    transform: translateX(-10px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #000;
    border: 1px dashed var(--accent-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-magenta);
}

.info-card h4 {
    color: #fff;
    font-family: var(--font-mono);
    margin-bottom: 5px;
}

.info-card p {
    color: #ccc;
    margin-bottom: 5px;
}

.meta-data {
    font-size: 16px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    display: block;
}

/* --- TERMINAL FORM (RIGHT) --- */
.terminal-form-style {
    background: #050f1a;
    padding: 2rem;
    border: 1px solid var(--text-dim);
    position: relative;
}

/* زخرفة الزوايا */
.terminal-form-style::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}

.terminal-form-style::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 8px;
    font-size: 17px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    padding: 10px;
    font-family: var(--font-eg); /* خط عربي للكتابة */
    transition: 0.3s;
    outline: none;
}
.input-group select option{
    color: rgb(0, 0, 0);
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-bottom-color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.05);
}

/* --- CYBER MAP (THE COOL PART) --- */
.map-section {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin-top: 4rem;
    border-top: 2px solid var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
}

/* جعل الخريطة داكنة (Dark Mode Map via CSS Filters) */
.map-section iframe {
    filter: grayscale(100%) invert(92%) contrast(83%);
    opacity: 0.7;
    transition: 0.5s;
}

.map-section:hover iframe {
    opacity: 1;
    filter: grayscale(100%) invert(92%) contrast(90%);
}

/* طبقة فوق الخريطة (Overlay) */
.map-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; /* للسماح بالتحكم في الخريطة */
    z-index: 2;
    background: linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; /* شبكة */
}

/* الخط المتحرك (Radar Scan) */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: scan 4s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

.map-status {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #000;
    color: var(--text-primary);
    padding: 5px 10px;
    font-family: var(--font-mono);
    border: 1px solid var(--text-primary);
    font-size: 0.8rem;
    animation: blink 2s infinite;
}

.crosshair {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    border: 1px dashed var(--accent-magenta);
    border-radius: 50%;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}


/* --- FEATURES EXPANSION SECTION --- */
.features-section {
    padding: var(--section-gap) 20px;
    background: #08264b; /* نفس لون خلفية الهيرو لدمج التصميم */
    overflow: hidden;
}

.features-container {
    display: flex;
    width: 100%;
    /* max-width: 1200px; */
    height: 500px; /* ارتفاع ثابت للسكشن */
    margin: 0 auto;
    gap: 10px;
}

.features-card {
    position: relative;
    flex: 0.5; /* الحجم الافتراضي (صغير) */
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1); /* حركة ناعمة جداً */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

/* الخلفية داخل الكارت */
.features-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: 0.7s;
}

/* المحتوى */
.features-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* المحتوى في الأسفل */
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* الأيقونة */
.features-icon {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    background: rgba(0,0,0,0.5);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--text-dim);
    border-radius: 50%;
    transition: 0.3s;
}

/* --- INTERACTION (HOVER & ACTIVE) --- */

/* عند الوقوف بالماوس أو الضغط */
.features-card:hover {
    flex: 3; /* يتمدد ليأخذ مساحة أكبر */
    border-color: var(--accent-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.features-card:hover .features-bg {
    opacity: 0.7;
    filter: grayscale(0%);
    transform: scale(1.1); /* زووم بسيط للخلفية */
}

.features-card:hover .vertical-title {
    opacity: 0; /* يختفي عند الفتح */
    transform: translateY(20px); /* حركة بسيطة للأسفل عند الاختفاء */
}

.features-card:hover .expanded-info {
    opacity: 1;
    transform: translateY(0);
    display: block; /* ظهور المحتوى */
}

.features-card:hover .features-icon {
    color: var(--accent-magenta);
    border-color: var(--accent-magenta);
    transform: scale(1.2);
    margin-bottom: 10px;
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 992px) {
    .features-container {
        flex-direction: column; 
        gap: 20px;
        height: 900px;
        overflow: hidden;
        padding: 0 10px;
    }

    .features-section{
        padding: 0 !important;
    }
    .features-section h2{
        padding: 0 20px;
    }

    .vertical-title {
        /* تعديلات بسيطة للموبايل */
        bottom: auto; /* إلغاء التثبيت السفلي */
        top: 30px; /* تثبيت علوي بجانب الأيقونة */
        right: 80px; /* مسافة من اليمين بجانب الأيقونة */
        text-align: right; /* محاذاة لليمين */
        width: auto; /* إلغاء العرض الكامل */
    }

    .features-icon {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    /* عند الضغط في الموبايل */
    .features-card:hover, .features-card:focus {
        height: 350px; /* يتمدد للأسفل */
    }
    
    .expanded-info {
        margin-top: 40px; /* مسافة عشان الأيقونة */
    }
}

 

/* العنوان العمودي (يظهر لما يكون الكارت مغلق) */
/* العنوان الأفقي (Horizontal Title) */
.vertical-title {
    /* إلغاء الوضع العمودي */
    writing-mode: horizontal-tb; 
    text-orientation: mixed;
    transform: none; 
    position: absolute;
    bottom: 230px;
    left: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 20px;
    letter-spacing: 1px;
    opacity: 1;
    transition: 0.3s;
    font-weight: bold;
}

/* المعلومات المخفية (تظهر عند التمدد) */
.expanded-info {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
    display: none; /* مخفي تماماً في البداية */
    width: 100%;
}

.expanded-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-magenta);
    display: inline-block;
}

.expanded-info p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* تنسيق خاص لرابط تواصل معنا */
.contact-link:hover {
    color: #000 !important; /* لون النص أسود */
    background-color: var(--accent-cyan); /* خلفية سماوي ليظهر النص */
    box-shadow: 0 0 15px var(--accent-cyan); /* توهج */
    border-radius: 4px; /* حواف ناعمة قليلاً */
}

/* --- NAME ORIGIN SECTION --- */
.name-origin-section {
    padding: var(--section-gap) 20px;
    background: linear-gradient(to bottom, #092949, #050f1a);
    position: relative;
    overflow: hidden;
}

/* خلفية شبكية خفيفة */
.name-origin-section::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background-image: radial-gradient(var(--text-dim) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    top: 0; left: 0;
}

.origin-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto 4rem;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* الكروت (البطاقات) */
.origin-card {
    flex: 1;
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid var(--text-dim);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: 0.4s ease;
    overflow: hidden;
}

/* تأثير التوهج عند الهوفر */
.origin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* تخصيص الألوان لكل جانب */
.tern-side:hover { border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(0, 255, 255, 0.1); }
.press-side:hover { border-color: var(--accent-magenta); box-shadow: 0 0 20px rgba(255, 0, 255, 0.1); }

/* الهيدر داخل الكارت */
.card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed var(--text-dim);
    padding-bottom: 1rem;
}

.card-header h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 5px;
    font-family: var(--font-mono);
}

.tern-side h3 { color: var(--accent-cyan); }
.press-side h3 { color: var(--accent-magenta); }

.phonetic {
    font-family: var(--font-mono);
    color: #888;
    font-size: 0.9rem;
}

/* الصورة داخل الكارت */
.card-visual {
    height: 180px;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: grayscale(100%) contrast(1.2);   */
    transition: 0.5s;
}

.origin-card:hover .card-visual img {
    /* filter: grayscale(0%); */ 
    transform: scale(1.1);
}

/* تأثير المسح الضوئي فوق الصورة */
.scan-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.5) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

/* المحتوى النصي */
.card-body h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-body p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.specs-list {
    list-style: none;
    padding: 0;
}

.specs-list li {
    font-family: var(--font-mono);
    font-size: 17px;
    color: var(--text-dim);
    margin-bottom: 8px;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 4px;
}

.tern-side .specs-list li { color: var(--accent-cyan); }
.press-side .specs-list li { color: var(--accent-magenta); }

/* علامة الزائد في المنتصف */
.connector {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    font-family: var(--font-mono);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* مربع القصة (Narrative Box) */
.narrative-box {
   max-width: 917px;
    margin: 0 auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--text-primary);
    padding: 2rem 4rem;
    position: relative;
    border-radius: 0 20px 0 20px
}

/* زخرفة للمربع */
.narrative-box::before {
    content: '"';
    position: absolute;
    top: -20px; right: 20px;
    font-size: 4rem;
    color: var(--text-primary);
    background: #092949; /* لإخفاء الخط خلف العلامة */
    padding: 0 10px;
    font-family: serif;
}

.narrative-box p {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.8;
}

.narrative-footer {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #333;
    padding-top: 10px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .origin-container {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .narrative-box p{
        margin-right: 6px;
    }

    .connector {
        transform: rotate(90deg); /* تدوير الزائد ليصبح بين الكروت عمودياً */
        margin: -20px 0;
    }
    
    .origin-card {
        margin-bottom: 0;
    }
}



/* === HOME HERO SECTION === */
 
 
.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-terminal.primary {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}

.btn-terminal.secondary {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-terminal.secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* System Status Bar */
.system-status {
    margin-top: 3rem;
    display: flex;
    gap: 30px;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
    border-top: 1px dashed #333;
    padding-top: 20px;
}

.system-status .value {
    color: #fff;
    margin-left: 5px;
}

.system-status .value.success { color: var(--text-primary); }
.system-status .value.warning { color: var(--accent-magenta); }

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #666;
    animation: bounce 2s infinite;
}

.scroll-down .arrow {
    width: 10px; height: 10px;
    border-right: 2px solid var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}


/* === PHILOSOPHY SECTION === */
.philosophy-section {
    padding: var(--section-gap) 0;
    width: 100%;
 
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.features-list i {
    font-size: 1.5rem;
    color: var(--accent-magenta);
    background: rgba(255,0,255,0.1);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.features-list strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.features-list div {
    color: #ccc;
    font-size: 0.95rem;
    width: 100%;
}

/* Code Window */
.code-window {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.window-header {
    background: #111;
    padding: 10px 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #333;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #888;
}

.dots { display: flex; gap: 5px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
}

.keyword { color: #cc99cd; }
.var { color: #f8c555; }
.class { color: #f08d49; }
.bool { color: #ab9df2; }
.func { color: #7ec699; }
.comment { color: #666; font-style: italic; }

/* === SERVICES HOME GRID === */
.services-home-section {
    padding: var(--section-gap) 0;
}

.services-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.srv-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.srv-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.srv-card .icon-wrapper {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.srv-card h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.srv-card p {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--accent-magenta);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.read-more:hover { gap: 10px; }

/* === METRICS SECTION === */
.metrics-section {
    padding: 4rem 0;
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.metrics-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 15, 26, 0.9);
}

.metrics-grid {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    font-family: var(--font-mono);
    /* display: block; */
    margin-right: 3px;
}

.symbol { color: var(--accent-cyan); font-size: 2rem; }

.metric-label {
    color: #ccc;
    font-size: 1rem;
    margin-top: 10px;
    display: block;
}

/* === FINAL CTA === */
.final-cta {
    padding: 6rem 0;
    text-align: center; 
}

.final-cta h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.big-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title .glitch-text { font-size: 2.5rem; }
    .split-layout { grid-template-columns: 1fr; gap: 0;}
    .metrics-grid { flex-direction: column; gap: 50px; }
}

/* === TECH STACK MARQUEE === */
.tech-stack-section {
    padding: 3rem 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

 
.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.tech-item {
    font-family: var(--font-mono);
    color: #666;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.tech-item:hover { color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-cyan); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* === FAQ SECTION === */
 

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--accent-cyan);
}

.faq-header {
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: space-between;
}

.faq-header h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
    padding: 0 15px;
}

.cmd-icon { color: var(--accent-magenta); font-family: var(--font-mono); }
.toggle-icon { color: #666; font-size: 1.5rem; transition: 0.3s; }

.faq-item.active .toggle-icon { transform: rotate(45deg); color: var(--accent-cyan); }
.faq-item.active .faq-header { border-bottom: 1px dashed #333; }

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s ease;
}

.faq-item.active .faq-body {
    max-height: 200px; /* أو قيمة أكبر حسب النص */
    padding: 20px;
}

.faq-body .output {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 2px solid var(--accent-cyan);
    padding-left: 15px;
}




/* === DIAGNOSIS SECTION === */
.diagnosis-section {
    padding: var(--section-gap) 0;
}

.diagnosis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.diag-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid;
    transition: 0.3s;
}

/* Error Card Style */
.diag-card.error-mode {
    background: rgb(187 14 14 / 30%);
    border-color: rgb(116 13 13 / 71%);
    /* width: 500px; */
}
.diag-card.error-mode .diag-header { color: #ff4444; }
.x-mark { color: #ff4444; margin-left: 10px; }

/* Success Card Style */
.diag-card.success-mode {
    background: rgba(0, 255, 255, 0.03);
    border-color: var(--accent-cyan);
    transform: scale(1.05); /* تكبير بسيط للتميز */
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}
.diag-card.success-mode .diag-header { color: var(--accent-cyan); }
.check-mark { color: var(--accent-primary); margin-left: 10px; }

.diag-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    font-family: var(--font-mono);
}

.diag-list { list-style: none; }
.diag-list li {
    margin-bottom: 15px;
    color: #ccc;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .diagnosis-grid { grid-template-columns: 1fr; padding-left: 15px;  padding-right: 15px; }
    .diag-card.success-mode { transform: scale(1); }
}
 

/*************************/
