@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

.presentation-wrapper {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.pres-header-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 30px;
    text-align: center;
}

.lang-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #2d2d2d;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    display: none; /* إخفاء الزر لأننا نستخدم زر اللغة الرئيسي للموقع */
}
.lang-toggle-btn:hover { background: #FFA500; color: #000; }

.presentation-container {
    width: 100%;
    max-width: 900px;
    min-height: 480px;
    min-height: 650px;
    height: auto;
    position: relative;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.presentation-container h1 {
    font-size: 26px;
    font-weight: 900;
    color: #FFA500;
    margin-bottom: 10px;
}

.presentation-container p {
    font-size: 16px;
    color: var(--gray);
    max-width: 620px;
    line-height: 1.6;
}

.ai-badge {
    background: linear-gradient(45deg, #007bff, #00ffcc);
    color: black;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
}

/* --- نظام عرض شاشات التطبيق الحقيقية (Real Mockups) --- */
.visual-mockup {
    width: 100%;
    height: 350px; /* زيادة الطول لاستيعاب الإطار العريض الجديد */
    height: 480px; /* زيادة الطول لاستيعاب الإطار العريض الجديد */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.app-screen-container {
    width: 90%;
    max-width: 680px; /* تحويل الإطار من هاتف إلى عرض عريض */
    height: 330px;
    height: 450px;
    background: #000;
    border-radius: 12px;
    position: relative;
    border: 6px solid #333; /* إطار شاشة أكثر وضوحاً */
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان ملائمة الصورة المأخوذة سكرين شوت بالكامل داخل الإطار */
    opacity: 0.85;
    transition: opacity 0.3s;
}

.slide-img {
    width: 100%;
    height: 300px;
    object-fit: cover; /* تجعل الصورة تمتد لتملأ المساحة بشكل احترافي كخلفية */
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.5s ease;
}

/* تفاعل الليزر فوق صورة الـ AI الحقيقية */
.laser-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #00ffcc;
    box-shadow: 0 0 14px #00ffcc;
    top: 0;
    animation: scanReal 3s infinite ease-in-out;
}

/* تفاعل إشعار السلة فوق شاشة الكاشير الحقيقية */
.cart-badge-real {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFA500;
    color: #000;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    animation: badgePopReal 2.5s infinite ease-in-out;
}

@media (max-width: 768px) {
    .presentation-wrapper {
        padding: 20px 10px;
    }

    .presentation-container {
        width: 95%;
        margin: 0 auto;
        min-height: 420px;
        min-height: 520px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .presentation-container h1 {
        font-size: 20px;
    }

    .presentation-container p {
        font-size: 14px;
        padding: 0 10px;
    }

    .app-screen-container {
        width: 95%;
        height: 220px;
        height: 280px;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }
}

/* زر الدعم في الهيدر بجانب زر اللغة */
.btn-support-header {
    background: rgba(255, 165, 0, 0.1);
    color: #FFA500;
    border: 1px solid #FFA500;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.btn-support-header:hover {
    background: #FFA500;
    color: #000;
}
/* وهج خفيف فوق شاشة التقارير ليعطي إيحاء تكنولوجي جذاب */
.chart-overlay-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(255, 165, 0, 0.2), transparent);
    pointer-events: none;
}

/* --- أدوات التحكم السفلي --- */
.controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}
.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; background-color: var(--border); border-radius: 50%; transition: all 0.3s; }
.dot.active { background-color: #FFA500; width: 30px; border-radius: 6px; }

/* --- الحركات الأنيميشن المحدثة --- */
@keyframes scanReal {
    0%, 100% { top: 5%; }
    50% { top: 90%; }
}
@keyframes badgePopReal {
    0%, 40% { opacity: 0; transform: scale(0.5) translateY(10px); }
    55% { opacity: 1; transform: scale(1.1) translateY(0); }
    70%, 100% { opacity: 0; transform: scale(1) translateY(-10px); }
}
.animate-bounce-slow {
    animation: floatScreen 4s infinite ease-in-out;
}

@keyframes floatScreen {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- تنسيق زر دخول لوحة التحكم --- */
.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: #000 !important;
    font-weight: 900;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-dashboard:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.5);
    filter: brightness(1.1);
}

.btn-dashboard::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    left: -100%;
}

.btn-dashboard:hover::after {
    left: 100%;
}
/* تحريك الأيقونة عند تمرير الماوس */
.btn-dashboard i {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.btn-dashboard:hover i {
    transform: translateX(5px);
}

[dir="rtl"] .btn-dashboard:hover i {
    transform: translateX(-5px);
}