/* --- بداية ملف style.css --- */
/* إضافة التمرير السلس وضبط المسافة العلوية للناف بار */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    /* 80px للديسك توب */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 4rem;
        /* 64px للموبايل */
    }
}

body {
    font-family: "Cairo", sans-serif;
}

.hero-pattern {
    background-color: #0c4a6e;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230ea5e9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    .hero-pattern {
        background-size: 30px 30px;
    }
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .service-card:hover {
        transform: translateY(-10px);
    }
}

/* زر الواتساب العائم - على اليسار */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 20px;
    left: 20px;
    /* على اليسار */
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* زر الاتصال العائم - على اليمين */
.call-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 20px;
    /* نفس ارتفاع الواتساب */
    right: 20px;
    /* على اليمين */
    background-color: #0ea5e9;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.call-float:hover {
    background-color: #0284c7;
    transform: scale(1.1);
}

/* Modal Style */
.modal {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

/* --- نهاية ملف style.css --- */