/* التكيف مع الشاشات الصغيرة */
@media (max-width: 1200px) {
    .section-title h2 {
        font-size: 2.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .section-title p {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    .section-title p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stat-item {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .service-card {
        padding: 40px 25px;
    }
    
    .video-section,
    .quick-services,
    .stats-section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .slide-buttons {
        gap: 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter input {
        padding: 14px;
    }
    
    .footer-newsletter button {
        padding: 14px;
        width: 100%;
    }
}

@media (max-width: 400px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    .contact-info a {
        font-size: 0.9rem;
    }
}

/* دعم الشاشات الكبيرة جداً */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    
    .section-title h2 {
        font-size: 3.5rem;
    }
    
    .slide-content h2 {
        font-size: 4.5rem;
    }
}

/* دعم الوضع الأفقي في الهواتف */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        min-height: 500px;
    }
    
    .slide-content {
        padding-top: 50px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}

/* دعم الشاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* دعم نظام الألوان المظلمة */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0a0a;
        color: #e0e0e0;
    }
    
    .quick-services {
        background: #1a1a1a;
    }
    
    .service-card {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .service-card p {
        color: #b0b0b0;
    }
}

/* تحسينات للأجهزة التي تدعم اللمس */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .stat-item:hover {
        transform: none;
    }
    
    .video-container:hover {
        transform: none;
    }
}