:root {
    --primary-color: #008C8C;
    --primary-dark: #006B6B;
    --secondary-color: #F0E6D2;
    --accent-color: #D4AF37;
    --accent-light: #F2D16B;
    --dark-color: #1A3A2E;
    --light-color: #F8F9FA;
    --text-color: #333333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    text-align: right;
}

/* إصلاح الحاويات */
.container, .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

/* إصلاح صفوف البوتستراب */
.row {
    margin-left: -10px;
    margin-right: -10px;
}

.col-*, .col-md-*, .col-lg-*, .col-sm-* {
    padding-left: 10px;
    padding-right: 10px;
}

/* تصميم الشريط العلوي */
.top-bar {
    background: linear-gradient(90deg, var(--dark-color), var(--primary-dark));
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    width: 100%;
}

.top-bar a {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: white;
}

/* تصميم شريط التنقل */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: var(--transition);
    width: 100%;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--accent-color);
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* تصميم الهيرو مع الفيديو */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 80px;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    min-width: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 46, 0.85) 0%, rgba(0, 140, 140, 0.8) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0 30px;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 200px;
}

.hero-btn:hover {
    background-color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.3);
    color: var(--dark-color);
}

.hero-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn-secondary:hover {
    background-color: white;
    color: var(--dark-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.3);
}

/* تخصيص مودال Bootstrap للتواصل الاجتماعي */
.social-modal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.social-modal .modal-header {
    background: linear-gradient(90deg, var(--dark-color), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: 25px 30px;
    position: relative;
}

.social-modal .modal-title {
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-modal .btn-close {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 8px;
    background-size: 60%;
    transition: var(--transition);
}

.social-modal .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.social-modal .modal-body {
    padding: 30px;
    background-color: #f8f9fa;
}

.social-modal .modal-footer {
    background-color: #f0f0f0;
    border-top: 1px solid #e0e0e0;
    padding: 20px 30px;
    text-align: center;
}

/* تصميم روابط التواصل الاجتماعي */
.social-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.social-link-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-link-card.facebook:hover {
    border-color: #1877F2;
    background-color: rgba(24, 119, 242, 0.05);
}

.social-link-card.twitter:hover {
    border-color: #1DA1F2;
    background-color: rgba(29, 161, 242, 0.05);
}

.social-link-card.instagram:hover {
    border-color: #E4405F;
    background-color: rgba(228, 64, 95, 0.05);
}

.social-link-card.youtube:hover {
    border-color: #FF0000;
    background-color: rgba(255, 0, 0, 0.05);
}

.social-link-card.linkedin:hover {
    border-color: #0A66C2;
    background-color: rgba(10, 102, 194, 0.05);
}

.social-link-card.whatsapp:hover {
    border-color: #25D366;
    background-color: rgba(37, 211, 102, 0.05);
}

.social-link-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.social-link-icon.facebook {
    background: linear-gradient(135deg, #1877F2, #0D5FBF);
}

.social-link-icon.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0C8BD9);
}

.social-link-icon.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4, #5851DB, #405DE6);
}

.social-link-icon.youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
}

.social-link-icon.linkedin {
    background: linear-gradient(135deg, #0A66C2, #084183);
}

.social-link-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-link-info {
    flex-grow: 1;
}

.social-link-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.social-link-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.social-link-arrow {
    color: #999;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link-card:hover .social-link-arrow {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* قسم وسائل التواصل السريع */
.social-quick-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-quick-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-quick-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
}

/* تصميم الأقسام العامة */
.section {
    padding: 80px 0;
    width: 100%;
}

.section-title {
    position: relative;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

/* بطاقات المشروع */
.feature-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-15px);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 20px;
}

/* تصميم قسم الفيديو التوضيحي */
.demo-video-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.demo-video-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.video-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.video-container video {
    width: 100%;
    display: block;
    min-width: 100%;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.video-play-btn:hover {
    background-color: white;
    transform: translate(50%, -50%) scale(1.1);
}

/* تصميم خط الزمن */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    top: 0;
    bottom: 0;
    right: 50%;
    margin-right: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    right: 0;
}

.timeline-item:nth-child(even) {
    right: 50%;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-right: 5px solid var(--primary-color);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    left: -12px;
}

.timeline-item:nth-child(even)::after {
    right: -13px;
}

/* تصميم الفوتر */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f2b1f 100%);
    color: white;
    padding: 70px 0 30px;
    width: 100%;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-links h5 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.space-text{
    margin-left: 6.5px;
    margin-right: 6.5px;
}

.space-home{
    margin-right: 30px;
}

/* تصميم للأجهزة المحمولة */
@media (max-width: 992px) {
    /* إصلاح الفراغ على اليسار للأجهزة المحمولة */
    body, html {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }
    
    .container {
        padding-left: 25px;
        padding-right: 25px;
        max-width: 100%;
        width: 100%;
    }
    
    /* زيادة المسافة الداخلية للأقسام */
    .section {
        padding: 70px 0;
    }
    
    .feature-card {
        padding: 35px 25px;
        margin-bottom: 25px;
    }
    
    /* مسافة إضافية للبطاقات من الجوانب */
    .col-*, .col-md-*, .col-lg-*, .col-sm-* {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* مسافة إضافية للصفوف */
    .row {
        margin-left: -12px;
        margin-right: -12px;
    }
    
    /* إصلاح المشاكل مع المحاذاة RTL */
    html[dir="rtl"] body {
        text-align: right;
    }
    
    /* إصلاح الهيرو سكشن */
    .hero-section {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100vw;
        position: relative;
        left: 0;
        right: 0;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    /* إصلاح الفيديو */
    .video-background,
    .video-background video {
        width: 100vw !important;
        min-width: 100vw !important;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        position: absolute;
    }
    
    .hero-title {
        font-size: 2.8rem;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
        padding: 0 20px;
    }
    
    .section-title::after {
        width: 80px;
    }
    
    .timeline::after {
        right: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-right: 70px;
        padding-left: 25px;
    }
    
    .timeline-item:nth-child(even) {
        right: 0;
    }
    
    .timeline-item:nth-child(even)::after {
        right: auto;
        left: -12px;
    }

    .space-nav{
        margin-top: 3px;
        margin-bottom: 3px;
    }

    .space-home{
        margin-right: auto;
    }
    
    /* إصلاح أزرار اتصل بنا */
    .hero-buttons-contact {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 0 10px;
    }
    
    .hero-buttons-contact .hero-btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* إزالة أي هامش أو padding زائد */
    body, html {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    /* زيادة المسافة الداخلية للحاويات بشكل كبير */
    .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    
    /* مسافة إضافية للحاويات الداخلية */
    .navbar > .container,
    .top-bar > .container,
    .hero-section > .container,
    .section > .container,
    .footer > .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* زيادة مسافة البطاقات من الجوانب */
    .feature-card {
        padding: 35px 25px;
        margin-bottom: 25px;
        border-radius: 18px;
    }
    
    /* مسافة أكبر بين العناصر */
    .col-*, .col-md-*, .col-lg-*, .col-sm-* {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .row {
        margin-left: -12px;
        margin-right: -12px;
    }
    
    /* إصلاح مشكلة الفيديو */
    .video-background {
        width: 100vw !important;
        min-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .video-background video {
        width: 100vw !important;
        min-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .hero-title {
        font-size: 2.4rem;
        padding: 0 15px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 0 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 0 20px;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 16px 35px;
        font-size: 1.05rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 45px;
        padding: 0 25px;
    }
    
    .section-title::after {
        width: 70px;
    }
    
    .social-links-container {
        grid-template-columns: 1fr;
    }
    
    .social-modal .modal-header {
        padding: 20px 25px;
    }
    
    .social-modal .modal-body {
        padding: 25px;
    }

    .space-nav{
        margin-top: 3px;
        margin-bottom: 3px;
    } 
    
    .space-home{
        margin-right: auto;
    }
    
    /* إصلاح خاص لأزرار اتصل بنا */
    #contact .hero-buttons {
        flex-direction: column;
        gap: 18px;
        padding: 0 15px;
    }
    
    #contact .hero-btn {
        width: 100%;
        max-width: 320px;
        margin: 8px auto;
        padding: 16px 30px;
        font-size: 1.05rem;
    }
    
    #contact .hero-btn.me-3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* تحسين عرض بطاقات الفئة المستهدفة */
    .feature-card.text-center {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 75px;
        height: 75px;
        font-size: 1.9rem;
        margin-bottom: 22px;
    }
    
    /* مسافة إضافية للنصوص */
    p, h3, h4 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 576px) {
    /* مسافة أكبر للشاشات الصغيرة */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .navbar > .container,
    .top-bar > .container,
    .hero-section > .container,
    .section > .container,
    .footer > .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* مسافة إضافية للبطاقات */
    .feature-card {
        padding: 30px 22px;
        margin-bottom: 22px;
    }
    
    .social-link-card {
        padding: 22px;
    }
    
    .social-link-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .space-nav{
        margin-top: 3px;
        margin-bottom: 3px;
    } 
    
    .space-home{
        margin-right: auto;
    }
    
    /* تحسين أزرار اتصل بنا للشاشات الصغيرة */
    #contact .hero-btn {
        min-width: unset;
        width: 100%;
        max-width: 300px;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    #contact .hero-btn .fa-share-alt,
    #contact .hero-btn .fa-phone {
        margin-left: 6px;
        margin-right: 6px;
    }
    
    /* مسافة إضافية لقسم اتصل بنا */
    #contact .feature-card {
        padding: 35px 25px;
    }
    
    #contact .row.text-center .p-4 {
        padding: 25px 20px !important;
    }
    
    .hero-title {
        font-size: 2.2rem;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
}

/* إصلاح إضافي للفراغات في الحواف - شاشات صغيرة جداً */
@media (max-width: 480px) {
    .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    
    .hero-section > .container,
    .section > .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    
    .feature-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .hero-title {
        font-size: 2rem;
        padding: 0 8px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 12px;
    }
    
    .hero-btn {
        padding: 14px 25px;
        font-size: 1rem;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    /* تحسين خاص لأزرار اتصل بنا */
    #contact .feature-card {
        padding: 30px 22px;
    }
    
    #contact .hero-btn {
        padding: 14px 22px;
        font-size: 0.95rem;
        max-width: 280px;
    }
    
    #contact .hero-btn i {
        font-size: 0.95rem;
    }
    
    /* مسافة إضافية للفوتر */
    .footer {
        padding: 60px 0 25px;
    }
    
    .footer .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .footer-links ul li {
        margin-bottom: 8px;
    }
    
    /* مسافة إضافية للشريط العلوي */
    .top-bar .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .hero-section > .container,
    .section > .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .feature-card {
        padding: 25px 18px;
        border-radius: 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        padding: 0 5px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .hero-btn {
        padding: 13px 22px;
        font-size: 0.95rem;
        max-width: 260px;
    }
    
    /* تحسين خاص لأزرار اتصل بنا */
    #contact .feature-card {
        padding: 25px 18px;
    }
    
    #contact .hero-btn {
        padding: 13px 20px;
        font-size: 0.9rem;
        max-width: 250px;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .feature-card {
        padding: 22px 15px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-btn {
        padding: 12px 20px;
        max-width: 240px;
    }
}

/* كلاس خاص لأزرار اتصل بنا */
.hero-buttons-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .hero-buttons-contact {
        flex-direction: column;
        gap: 18px;
        padding: 0 15px;
    }
    
    .hero-buttons-contact .hero-btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}