/* Mobile-First Responsive Styles */

/* تحسينات عامة للشاشات الصغيرة */
@media (max-width: 767px) {
    /* تحسين الهيدر والقائمة */
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.8rem 0;
        text-align: center;
        width: 100%;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    
    .hamburger-box {
        width: 24px;
        height: 20px;
        display: inline-flex;
        position: relative;
    }
    
    .hamburger-inner {
        display: block;
        top: 50%;
        margin-top: -2px;
    }
    
    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 24px;
        height: 2px;
        background-color: #333;
        border-radius: 4px;
        position: absolute;
        transition-property: transform;
        transition-duration: 0.15s;
        transition-timing-function: ease;
    }
    
    .hamburger-inner::before,
    .hamburger-inner::after {
        content: "";
        display: block;
    }
    
    .hamburger-inner::before {
        top: -8px;
    }
    
    .hamburger-inner::after {
        bottom: -8px;
    }
    
    /* Active state */
    .hamburger.active .hamburger-inner {
        transform: rotate(45deg);
        transition-delay: 0.12s;
        transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    
    .hamburger.active .hamburger-inner::before {
        top: 0;
        opacity: 0;
        transition: top 0.1s ease, opacity 0.1s 0.12s ease;
    }
    
    .hamburger.active .hamburger-inner::after {
        bottom: 0;
        transform: rotate(-90deg);
        transition: bottom 0.1s ease, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    
    /* تحسين الأقسام الرئيسية */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* تحسين الأزرار */
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0.5rem 0.5rem 0.5rem 0;
    }
    
    /* تحسين البطاقات */
    .card {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* تحسين النماذج */
    .form-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* تحسين التذييل */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* تحسين أزرار وسائل التواصل */
    .social-links {
        justify-content: center;
    }
}

/* تحسينات للشاشات المتوسطة */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .card {
        width: calc(50% - 1rem);
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* تحسينات إضافية */
@media (hover: hover) {
    .nav-links a:hover {
        color: #3b82f6;
        transform: translateY(-2px);
    }
    
    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* تحسينات لشاشات اللمس */
@media (pointer: coarse) {
    .cta-button {
        padding: 1rem 2rem;
        min-width: 120px;
    }
    
    input, textarea, button, select, a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
}
