/* Mobile Optimized CSS - تحسينات خاصة بالهاتف المحمول */

/* تحسين الأداء على الهاتف */
@media (max-width: 768px) {
    /* إزالة التأثيرات الثقيلة على الهاتف */
    body::after {
        display: none !important;
    }
    
    /* تبسيط الخلفية */
    body::before {
        background: linear-gradient(135deg, #0a0b0e 0%, #1a1b23 100%) !important;
    }
    
    /* تحسين الخطوط للهاتف */
    body {
        font-size: 16px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* تحسين الهيدر */
    .header {
        padding: 0.5rem 0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.5rem !important;
        padding: 4px 8px !important;
    }
    
    /* تحسين القائمة */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 11, 14, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        margin: 0.5rem 0;
        opacity: 0;
        transform: translateX(20px);
        animation: slideInFromRight 0.3s ease forwards;
    }
    
    .nav-menu.active .nav-item {
        animation: slideInFromRight 0.3s ease forwards;
    }
    
    .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .nav-item:nth-child(5) { animation-delay: 0.5s; }
    
    @keyframes slideInFromRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-item a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .nav-item a::after {
        display: none;
    }
    
    /* تحسين الهامبرغر */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }
    
    .hamburger span {
        width: 100%;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* تحسين المحتوى الرئيسي */
    .main-container {
        padding: 80px 1rem 2rem;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* تحسين النموذج */
    .form-section {
        padding: 2rem 1rem;
    }
    
    .form-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .form-input {
        font-size: 16px; /* منع التكبير التلقائي على iOS */
        padding: 1rem;
    }
    
    /* تحسين الأزرار */
    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* تحسين العناوين */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* تحسين عرض السعر */
    .price-display {
        font-size: 2rem;
        padding: 1rem;
    }
    
    #current-price {
        font-size: 2rem;
    }
    
    /* تحسين المنتجات العائمة */
    .floating-products-trigger {
        bottom: 1rem;
        right: 1rem;
        width: 60px;
        height: 60px;
    }
    
    .floating-products {
        width: 90%;
        max-width: 350px;
        right: 1rem;
        bottom: 5rem;
    }
    
    /* تحسين البطاقات */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    /* تحسين الصور */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* تحسين النصوص */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* تحسين الفوتر */
    .footer-links {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h4 {
        text-align: center;
    }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .price-display {
        font-size: 1.8rem;
    }
    
    #current-price {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.3rem !important;
    }
    
    .floating-products-trigger {
        width: 50px;
        height: 50px;
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .floating-products {
        width: 95%;
        right: 0.5rem;
        bottom: 4rem;
    }
    
    .nav-menu {
        width: 90%;
        padding: 4rem 1.5rem 2rem;
    }
}

/* تحسين الأداء للشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .main-container {
        padding: 100px 1.5rem 2rem;
    }
}

/* تحسين التحميل البطيء للصور */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* تحسين التفاعل */
@media (hover: none) and (pointer: coarse) {
    /* إزالة التأثيرات التي تعتمد على hover على الأجهزة اللمسية */
    .nav-item a:hover::after {
        width: 0;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .cta-btn:hover {
        transform: none;
    }
}

/* تحسين الأداء للرسوم المتحركة */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 