/* Custom Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    /* إضافة تنعيم الخطوط وحركة التمرير */
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Background Video Styling */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    /* تسريع معالجة الفيديو عبر كارت الشاشة */
    transform: translateZ(0);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.85) 100%);
    z-index: -1;
    /* منع الوميض أثناء التمرير */
    backface-visibility: hidden;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* تحسين أداء الفلتر */
    will-change: backdrop-filter;
}

/* Card Transitions & Smoothness */
.group, .product-card, .news-card {
    /* تفعيل التسريع لجميع البطاقات لضمان نعومة الـ FPS */
    will-change: transform, opacity;
    transform: translateZ(0);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Gradients */
.sky-gradient {
    background: linear-gradient(135deg, #00BFFF 0%, #0096c7 100%);
    transition: all 0.3s ease;
}

.sky-gradient:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.3);
}

/* الكود المتبقي يبقى كما هو لضمان عدم فقدان التصميم */
#products .grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    width: 100%;
    max-width: 400px;
    flex: 0 1 auto;
}

.menu-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(-15px) translateZ(0);
}

.menu-item.show {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* Media Queries & Navbar */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; height: 60px; }
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s;
        padding-top: 50px;
        /* تحسين استجابة القائمة */
        will-change: left;
    }
    .nav-links.active { left: 0; }
    /* باقي أكواد الموبايل كما هي... */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    /* ضمان ثبات الهيدر أثناء التمرير السريع */
    transform: translateZ(0);
}