/* 
 * ABOUT US STYLES
 * This file is only loaded when users visit the About Us page (templates/page-about.php)
 */


 /* --- Hero Section (Split Layout) --- */
 /* =========================================
   Hero Section & Video Background
========================================= */
.about-hero {
    position: relative;
    height: 100vh;  
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
    flex-direction: column;
}

/* حاوية الفيديو */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* مهم جداً: يمنع العميل من الضغط على الفيديو أو إيقافه */
}

/* خدعة CSS لجعل فيديو اليوتيوب يغطي الشاشة بالكامل مثل object-fit: cover */
.video-background iframe {
    width: 100vw;
    height: 56.25vw; /* الحفاظ على نسبة العرض للارتفاع 16:9 */
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* طبقة التعتيم لجعل النص واضح */
.about-hero .overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(5, 10, 20, 0.6); /* لون كحلي داكن شفاف - زودي الـ 0.6 لو عايزاه أغمق */
    z-index: 1;
}

.hero-actions {
    position: relative;
    z-index: 2; /* لضمان ظهوره فوق طبقة التعتيم والفيديو */
    margin-top: 40px; /* مسافة جمالية بين السلايدر والزر */
}
/* تنسيق النصوص فوق الفيديو */
.hero-content {
    position: relative;
    z-index: 2; /* ليظهر فوق الفيديو والطبقة الشفافة */
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 5rem;
    color: var(--pure-white);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 87, 34, 0.5); /* إضاءة خفيفة خلف الكلمة */
}

.hero-content p {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    line-height: 1.8;
}/* --- Hero Slider & Glass Cards --- */
.heroSwiper {
    width: 100%;
    max-width: 1200px;
    padding-bottom: 50px !important; /* مساحة للنقاط السفلية */
}

.swiper-slide {
    height: auto; /* عشان كل الكروت تاخد نفس الطول */
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    color: #fff;
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    height: 100%; /* مهم جداً عشان الكروت تتساوى */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-glass-card i {
    font-size: 2.8rem;
    color: #f1c40f;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}

.hero-glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-glass-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
}

/* تنسيق نقاط السلايدر لتناسب التصميم المظلم/الزجاجي */
.swiper-pagination-bullet {
    background-color: #fff !important;
    opacity: 0.5 !important;
    width: 12px !important;
    height: 12px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #f1c40f !important;
    opacity: 1 !important;
    width: 30px !important;
    border-radius: 10px !important;
}


/* تعديل حجم النص في الموبايل */
@media (max-width: 768px) {
    .about-hero {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

.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;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px var(--accent-glow);
}

.hero-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 87, 34, 0.2);
}

/* Floating Animation للصورة */
.floating-img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- Our Story Section --- */
.our-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 80px 86px;
}

.story-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: -15px -15px 0 var(--accent-orange);
}

.accent-title {
    color: var(--accent-orange);
    font-size: 40px;
    margin-bottom: 10px;
    text-align: center;
}

.story-content h2 {
    font-size: 35px;
    color: var(--pure-white);
    margin-bottom: 20px;
    text-align: center;
}
.story-content p {
    text-align: center;
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(90deg, var(--card-bg), #0a101d);
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
}

.stat-icon {
    font-size: 2.5rem;
    color: #3b82f6;  
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.stat-item h2 {
    color: var(--accent-orange);
    font-size: 36px;
    margin-bottom: 5px;
}

/* --- Why Us Cards --- */
.why-us {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* جعلناها 4 كروت متجاورة */
    gap: 30px;
    margin: 80px 50px;
}

.why-card {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid #1e293b;
    text-align: center;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

/* تأثير الإضاءة (Neon Glow) عند التمرير */
.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,87,34,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.why-card:hover::before { opacity: 1; }

.why-card i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Contact Section & Brands (كما هي مع تعديلات بسيطة للظلال) */
/* ... (الكود القديم لقسم الـ Contact والـ Slider) ... */

@media (max-width: 900px) {
    .hero-split, .our-story { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 3.5rem; }
    .story-img img { box-shadow: 0 15px 0 var(--accent-orange); } /* تعديل ظل الصورة في الموبايل */
}

/* --- Infinite Brand Scroll --- */
.brands-wrapper {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.brands-wrapper .section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-orange); /* أو أي لون بتستخدميه للعناوين */
    font-size: 2rem;
}

.slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* استخدام Flexbox لعرض العناصر بجانب بعضها */
.slide-track {
    display: flex;
    width: calc(250px * 12); /* عرض العنصر الواحد 250 بكسل × 12 عنصر الإجمالي */
    animation: scroll 30s linear infinite;
}

 

.slide {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide span {
    font-size: 1.8rem;
    font-weight: 900;
    color: #334155; /* لون يناسب الـ Dark Mode */
    transition: color 0.3s ease, transform 0.3s ease;
    letter-spacing: 2px;
}

/* تأثير عند المرور على اسم البراند */
.slide:hover span {
    color: var(--accent-orange);
    transform: scale(1.1);
}

/* أنميشن الحركة المستمرة */
@keyframes scroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* يتحرك بمقدار نصف العناصر (6) ليعيد نفسه بسلاسة */
        transform: translateX(calc(-250px * 6)); 
    }
}

/* =========================================
   قسم تواصل معنا (Contact Section)
========================================= */

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* تقسيم القسم لنصفين متساويين */
    background: var(--card-bg); /* استخدام اللون الداكن للكروت */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 100px; /* مساحة فارغة أسفل الصفحة */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #1e293b;
    margin-left:  50px;
    margin-right:  50px;
}

.contact-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* عنوان القسم */
.contact-info h2 {
    color: var(--pure-white);
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
}

/* خط برتقالي أنيق تحت العنوان */
.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 40%; /* يبدأ من اليمين لأن الموقع عربي */
    width: 114px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

/* تفاصيل التواصل (الأيقونة + النص) */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--accent-orange);
    margin-left: 20px; /* مسافة بين الأيقونة والنص (على اليسار لأننا RTL) */
    margin-top: 5px;
    width: 30px; /* تثبيت العرض عشان كل النصوص تكون على خط واحد */
    text-align: center;
}
 
.info-item p {
    color: #a0aec0; /* لون رمادي مريح للعين */
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* أزرار السوشيال ميديا */
.social-media {
    margin-top: 20px;
    display: flex;
    gap: 15px; /* مسافة بين الأزرار */
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05); /* خلفية شفافة خفيفة */
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* تأثير الـ Hover على السوشيال ميديا */
.social-media a:hover {
    background: var(--accent-orange);
    transform: translateY(-5px); /* حركة خفيفة للأعلى */
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4); /* توهج برتقالي */
    border-color: var(--accent-orange);
}

/* =========================================
   تنسيق الخريطة (Map Box)
========================================= */
.map-box {
    width: 100%;
    min-height: 100%; /* تأخذ نفس طول قسم النصوص */
    position: relative;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* السر هنا: الفلتر ده بيعكس ألوان الخريطة عشان تبقى Dark Mode تليق مع الموقع */
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(85%);
}

/* =========================================
   التجاوب مع الموبايل (Responsive)
========================================= */
@media (max-width: 900px) {
    .contact-section {
        grid-template-columns: 1fr; /* نخلي الخريطة والنصوص تحت بعض في الموبايل */
    }
    
    .map-box {
        min-height: 350px; /* ارتفاع ثابت للخريطة في الموبايل */
    }
    
    .contact-info {
        padding: 40px 20px;
    }
}


/* =========================================
   Testimonials Section (آراء العملاء)
========================================= */
.testimonials-section {
    padding: 80px 20px;
    margin-bottom: 50px;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testi-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #1e293b;
    border-top: 4px solid var(--accent-orange); /* خط برتقالي مميز من الأعلى */
    position: relative;
    transition: 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testi-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 87, 34, 0.15); /* إضاءة برتقالية عند التمرير */
}

/* أيقونة الاقتباس (علامة التنصيص) */
.quote-icon {
    position: absolute;
    top: 30px;
    left: 30px; /* على اليسار لأن الموقع عربي */
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05); /* لون شفاف جداً كخلفية */
    z-index: 0;
}

.review-text {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-style: italic;
}

/* بيانات العميل (صورة + اسم) */
.client-info {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-orange);
    margin-left: 15px; /* مسافة من اليسار لأن الاتجاه RTL */
}

.client-details h4 {
    color: var(--pure-white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.client-details span {
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================
   Timeline Section (رحلة وتاريخ الشركة)
========================================= */
.timeline-section {
    padding: 80px 20px;
    position: relative;
    background-color: var(--bg-dark);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* الخط الرأسي المضيء في المنتصف */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--bg-dark), var(--accent-orange), var(--accent-orange), var(--bg-dark));
    top: 0;
    bottom: 0;
    right: 50%; /* في منتصف الشاشة */
    transform: translateX(50%); /* لضبط التمركز 100% */
}

/* حاوية كل محطة/نقطة زمنية */
.timeline-item {
    width: 100%;
    display: flex;
    position: relative;
    margin-bottom: 50px;
}

/* العناصر الفردية تظهر على اليمين (في الـ RTL) */
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    position: relative;
    right: -32px;
}

/* العناصر الزوجية تظهر على اليسار (في الـ RTL) */
.timeline-item:nth-child(even) {
    justify-content: flex-end;
    position: relative;
    left : -32px;
}

.timeline-item:nth-child(odd)::after { 
        right: 50%; 
        transform: translateX(100%);  
       } 

    .timeline-item:nth-child(even)::after {
      
        right: 50%;
        transform: translateX(22%); 
    }


/* الدائرة المضيئة على الخط الزمني */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--bg-dark);
    border: 4px solid var(--accent-orange);
    border-radius: 50%;
    top: 20px;
    right: 48%;
    transform: translateX(50%);
    z-index: 2;
    transition: 0.4s ease;
    box-shadow: 0 0 0px rgba(255, 87, 34, 0);
}

/* تأثير الإضاءة (Glow) للدائرة عند تمرير الماوس */
.timeline-item:hover::after {
    background-color: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-orange);
}

/* محتوى الكارت (النصوص) */
.timeline-content {
    width: 45%; /* يترك مساحة 10% في المنتصف للخط والدائرة */
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #1e293b;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: 0.4s ease;
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

/* تصميم السنة/التاريخ */
.timeline-year {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 87, 34, 0.1);
    color: var(--accent-orange);
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

/* الأيقونة الخلفية الباهتة داخل الكارت */
.timeline-icon {
    font-size: 6rem;
    color: var(--pure-white);
    position: absolute;
    bottom: 9px;
    left: 1px; /* لليسار في الاتجاه العربي */
    opacity: 0.03; /* شفافة جداً لتعطي ملمس تقني (Texture) */
    transform: rotate(-15deg);
}

.timeline-content h3 {
    color: var(--pure-white);
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.timeline-content p {
    color: #cbd5e1;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* =========================================
   التجاوب مع الموبايل (Responsive Timeline)
========================================= */
@media screen and (max-width: 768px) {
    .timeline::after {
        right: 30px; /* نقل الخط لأقصى اليمين */
        transform: translateX(50%);
    }
    
    .timeline-item::after {
        right: 30px;
        transform: translateX(50%);
    }
    
    /* جعل جميع الكروت تظهر على اليسار لتترك مساحة للخط على اليمين */
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-end;
    }
    
    .timeline-content {
        width: calc(100% - 70px); /* عرض الكارت يأخذ باقي الشاشة مطروحاً منه مساحة الخط */
        padding: 30px 20px;
    }
}

/* =========================================
   Image Gallery Scroller (Hero)
========================================= *//* =========================================
   3D Coverflow Gallery (Hero)
========================================= */
.galleryScroller {
    width: 100%;
    padding: 60px 0 60px;
    overflow: hidden;
    /* transform: scale(1.2) !important; */
}

/* مسحنا الـ linear transition عشان الحركة تبقى طبيعية في الـ 3D */
.galleryScroller .swiper-wrapper {
    display: flex !important; 
    flex-direction: row !important; 
}

.gallery-slide {
    width: 320px !important; /* عرض الكارت */
    height: 420px;
    transition: all 0.3s ease;
}

.gallery-card {
    position: relative;
    width: 380px;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 2px solid transparent; /* حدود مخفية هنظهرها للكارت النشط */
    transition: all 0.4s ease;
    transform: scale(1.2);
}

/* تمييز الكارت اللي في المنتصف (النشط) */
.swiper-slide-active .gallery-card {
    border-color: var(--accent-orange);
    box-shadow: 0 0 40px rgba(255, 87, 34, 0.4); /* توهج برتقالي قوي */
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* زووم للصورة في الكارت اللي في النص بس */
.swiper-slide-active .gallery-card img {
    transform: scale(1.05);
}

/* الطبقة الداكنة المتدرجة فوق الصورة */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 10, 20, 0.95) 0%, rgba(5, 10, 20, 0.7) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 1px;
    color: var(--pure-white);
}

.step-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); /* رقم مجوف */
    margin-bottom: -20px;
    z-index: 0;
    transition: 0.4s ease;
}

/* تلوين الرقم في الكارت النشط */
.swiper-slide-active .step-num {
    -webkit-text-stroke: 1px var(--accent-orange);
    color: rgba(255, 87, 34, 0.1);
}

.card-overlay h3 {
    font-size: 1.4rem;
    color: var(--pure-white); /* اللون الأساسي أبيض */
    margin-bottom: 10px;
    z-index: 1;
    transition: color 0.3s;
}

.swiper-slide-active .card-overlay h3 {
    color: var(--accent-orange); /* يقلب برتقالي في الكارت النشط */
}

.card-overlay p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
    z-index: 1;
    /* إخفاء النص في الكروت الجانبية وإظهاره في الكارت النشط بس */
    opacity: 0; 
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.swiper-slide-active .card-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* تجاوب السلايدر في الموبايل */
@media (max-width: 768px) {
    .gallery-slide {
        width: 260px !important;
        height: 380px;
    }
    .step-num { font-size: 2.5rem; }
    .card-overlay h3 { font-size: 1.2rem; }
}

