<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>منتجاتنا</title>
    <style>
        /* أنماط صفحة المنتجات */
        .products-page {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 5%;
        }

        .products-intro {
            text-align: center;
            margin-bottom: 3rem;
        }

        .products-intro h2 {
            font-size: 2.2rem;
            color: #2c3e50;
            margin-bottom: 1rem;
        }

        .products-intro p {
            font-size: 1.1rem;
            color: #7f8c8d;
            max-width: 800px;
            margin: 0 auto;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .product-card {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            padding: 1.5rem;
            text-align: center;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .product-image {
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .product-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .product-card h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: #2c3e50;
        }

        .specs-btn {
            background-color: #e74c3c;
            color: white;
            border: none;
            padding: 0.7rem 1.5rem;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s ease;
            margin: 1rem 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
        }

        .specs-btn:hover {
            background-color: #c0392b;
        }

        .specs-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-out;
            text-align: right;
            padding: 0 1rem;
            background: #f8f9fa;
            border-radius: 0 0 8px 8px;
            margin: 0 -1.5rem -1.5rem;
        }

        .specs-content.active {
            max-height: 500px;
            padding: 1rem;
            margin-top: 1rem;
            border-top: 1px solid #eee;
        }

        .specs-content ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .specs-content li {
            margin-bottom: 0.5rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid #eee;
        }

        .specs-content li:last-child {
            border-bottom: none;
        }

        .specs-content li strong {
            color: #e74c3c;
            margin-left: 0.5rem;
        }

        /* تأثيرات الحركة */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* طبقة العوامات الومضية */
        .floating-flash-layer {
            position: relative;
            height: 250px;
            overflow: hidden;
            z-index: 1;
            background: transparent;
            margin: 2rem 0;
        }

        /* نمط الصور العائمة */
        .floating-flash-layer img.float {
            position: absolute;
            width: 60px;
            opacity: 0.7;
            animation: floatAround 12s ease-in-out infinite, flashPulse 3s ease-in-out infinite;
        }

        /* تحديد مواقع بدء عشوائية */
        .floating-flash-layer img:nth-child(1) { top: 20%; left: 10%; }
        .floating-flash-layer img:nth-child(2) { top: 40%; left: 30%; }
        .floating-flash-layer img:nth-child(3) { top: 60%; left: 70%; }
        .floating-flash-layer img:nth-child(4) { top: 30%; left: 85%; }

        /* تأثير الوميض */
        @keyframes flashPulse {
            0%, 100% { opacity: 0.6; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.1); }
        }

        /* حركة العوم */
        @keyframes floatAround {
            0%   { transform: translate(0, 0) rotate(0deg); }
            25%  { transform: translate(10px, -10px) rotate(5deg); }
            50%  { transform: translate(-10px, 10px) rotate(-5deg); }
            75%  { transform: translate(5px, -5px) rotate(3deg); }
            100% { transform: translate(0, 0) rotate(0deg); }
        }

        /* تأخيرات متداخلة */
        .delay0 { animation-delay: 0s; }
        .delay1 { animation-delay: 2s; }
        .delay2 { animation-delay: 4s; }
        .delay3 { animation-delay: 6s; }

        /* التجاوب مع أحجام الشاشات */
        @media (max-width: 768px) {
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .floating-flash-layer {
                height: 200px;
            }
            
            .floating-flash-layer img.float {
                width: 50px;
            }
        }

        @media (max-width: 480px) {
            .products-intro h2 {
                font-size: 1.8rem;
            }
            
            .product-card {
                padding: 1rem;
            }
            
            .floating-flash-layer {
                height: 150px;
            }
            
            .floating-flash-layer img.float {
                width: 40px;
            }
        }
    </style>
</head>
<body>
    <div class="products-page">
        <div class="products-intro">
            <h2>منتجاتنا المتطورة</h2>
            <p>اكتشف مجموعة منتجاتنا عالية الجودة المصممة لتلبية احتياجاتك بأفضل أداء وأحدث التقنيات</p>
        </div>
        
        <!-- طبقة العوامات الومضية -->
        <div class="floating-flash-layer">
            <img src="https://via.placeholder.com/60" class="float delay0" alt="عائم">
            <img src="https://via.placeholder.com/60" class="float delay1" alt="عائم">
            <img src="https://via.placeholder.com/60" class="float delay2" alt="عائم">
            <img src="https://via.placeholder.com/60" class="float delay3" alt="عائم">
        </div>
        
        <div class="products-grid">
            <!-- بطاقة منتج 1 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://via.placeholder.com/300" alt="المنتج 1">
                </div>
                <h3>المنتج المتقدم</h3>
                <p>وصف مختصر للمنتج وأهم مميزاته العامة.</p>
                <button class="specs-btn">عرض المواصفات</button>
                <div class="specs-content">
                    <ul>
                        <li>الميزة الأولى: <strong>قيمة الميزة</strong></li>
                        <li>الميزة الثانية: <strong>قيمة الميزة</strong></li>
                        <li>الميزة الثالثة: <strong>قيمة الميزة</strong></li>
                        <li>الميزة الرابعة: <strong>قيمة الميزة</strong></li>
                    </ul>
                </div>
            </div>
            
            <!-- بطاقة منتج 2 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://via.placeholder.com/300" alt="المنتج 2">
                </div>
                <h3>المنتج الاحترافي</h3>
                <p>وصف مختصر للمنتج وأهم مميزاته العامة.</p>
                <button class="specs-btn">عرض المواصفات</button>
                <div class="specs-content">
                    <ul>
                        <li>الميزة الأولى: <strong>قيمة الميزة</strong></li>
                        <li>الميزة الثانية: <strong>قيمة الميزة</strong></li>
                        <li>الميزة الثالثة: <strong>قيمة الميزة</strong></li>
                        <li>الميزة الرابعة: <strong>قيمة الميزة</strong></li>
                    </ul>
                </div>
            </div>
            
            <!-- بطاقة منتج 3 -->
            <div class="product-card">
                <div class="product-image">
                    <img src="https://via.placeholder.com/300" alt="المنتج 3">
                </div>
                <h3>المنتج المتميز</h3>
                <p>وصف مختصر للمنتج وأهم مميزاته العامة.</p>
                <button class="specs-btn">عرض المواصفات</button>
                <div class="specs-content">
                    <ul>
                        <li>الميزة الأولى: <strong>قيمة الميزة</strong></li>
                        <li>الميزة الثانية: <strong>قيمة الميزة</strong></li>
                        <li>الميزة الثالثة: <strong>قيمة الميزة</strong></li>
                        <li>الميزة الرابعة: <strong>قيمة الميزة</strong></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <script>
        // تفعيل أزرار عرض المواصفات
        document.querySelectorAll('.specs-btn').forEach(button => {
            button.addEventListener('click', () => {
                const specsContent = button.nextElementSibling;
                specsContent.classList.toggle('active');
                
                // تغيير نص الزر
                if (specsContent.classList.contains('active')) {
                    button.textContent = 'إخفاء المواصفات';
                } else {
                    button.textContent = 'عرض المواصفات';
                }
            });
        });
    </script>
</body>
</html>