body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111111;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    overflow-x: hidden;
    animation: fadeInPage 0.6s ease-in-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle {
    display: none;
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: right;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 260px;
    height: 100%;
    background: #fdfdfd;
    border-left: 1px solid #e0e0e0;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #25d366;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.sidebar h3 {
    font-size: 18px;
    margin: 0;
    color: #222;
}

.close-sidebar {
    display: none;
    background: #eee;
    border: none;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #444;
    font-weight: bold;
    transition: background 0.2s;
}

.close-sidebar:hover {
    background: #ddd;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.sidebar li:hover {
    transform: translateX(-3px);
}

.sidebar a {
    text-decoration: none;
    color: #0056b3;
    font-size: 16px;
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.sidebar a:hover {
    color: #25d366;
    background: #f0fdf4;
}

.sidebar a.active {
    font-weight: bold;
    color: #0056b3;
    background: #eef4fc;
    border-right: 4px solid #0056b3;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.content {
    margin-right: 280px;
    padding: 40px 40px 100px 40px;
    max-width: 800px;
    animation: fadeInContent 0.8s ease;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulsing-logo {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pulsing-logo:hover {
    transform: rotate(3deg) scale(1.05);
}

.brand-text-container {
    display: flex;
    flex-direction: column;
}

.pulsing-name {
    font-size: 22px;
    font-weight: bold;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.pulsing-name-en {
    font-size: 16px;
    font-weight: normal;
    color: #555;
    margin-top: 4px;
}

/* أزرار الهيدر العلوي بحركة الكرة وبكامل اللون */
.header-action-btns {
    display: flex;
    gap: 12px;
    align-items: center;
    animation: ballBounceDrop 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.header-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-action-btn:hover {
    transform: scale(1.1);
}

.header-action-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.header-btn-call { 
    background-color: #007bff; 
    animation: ballBounceDrop 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards, fastPulseCall 1.2s infinite 3.5s;
}

.header-btn-whatsapp { 
    background-color: #25d366; 
    animation: ballBounceDrop 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards, fastPulseWhatsapp 1.2s infinite 3.5s;
}

/* تنسيق العنوان داخل مربع أزرق أنيق وبدون حافة جانبية مختلفة */
h1 {
    font-size: 24px;
    background-color: #007bff;
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    border: none;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    animation: titleSmoothDrop 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* تنسيق وصف الصفحة ليكون في صندوق أزرق مطابق تماماً للعنوان */
.page-description {
    font-size: 17px;
    background-color: #007bff;
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    border-right: 6px solid #004085;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
    display: block;
    width: 100%;
    box-sizing: border-box;
    animation: titleSmoothDrop 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* حركة نزول وثبات المربعات الزرقاء بوضوح تام من البداية */
@keyframes titleSmoothDrop {
    0% {
        transform: translateY(-30px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* تأثير خفيف عند مرور المؤشر على المربعات الزرقاء */
h1:hover, .page-description:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
    transition: all 0.3s ease;
}

h2 {
    font-size: 20px;
    color: #1a1a1a;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.service-details-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-details-box li {
    font-size: 17px;
    color: #333;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}

.service-details-box li:hover {
    background: #ffffff;
    border-color: #25d366;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.1);
}

.service-details-box li a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

.service-details-box li a:hover {
    color: #25d366;
    text-decoration: underline;
}

/* الأزرار العائمة السفلية بحركة ارتداد الكرة وبكامل اللون والثبات */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1200;
    animation: ballBounceDropBottom 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.float-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.float-btn:hover {
    transform: scale(1.12);
}

.float-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.float-call { 
    background-color: #007bff; 
    animation: fastPulseCall 1.2s infinite;
}

.float-whatsapp { 
    background-color: #25d366; 
    animation: fastPulseWhatsapp 1.2s infinite;
}

/* تفاصيل حركات ارتداد الكرة وثبات اللون */
@keyframes ballBounceDrop {
    0% {
        transform: translateY(-200px);
        opacity: 1;
    }
    75% {
        transform: translateY(8px);
        opacity: 1;
    }
    88% {
        transform: translateY(-4px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ballBounceDropBottom {
    0% {
        transform: translateY(-85vh);
        opacity: 1;
    }
    75% {
        transform: translateY(12px);
        opacity: 1;
    }
    88% {
        transform: translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fastPulseWhatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes fastPulseCall {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.6);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 12px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active { display: block; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .sidebar {
        transform: translateX(100%);
        width: 220px;
    }
    .sidebar.active { transform: translateX(0); }
    .close-sidebar { display: flex; }
    .content {
        margin-right: 0;
        padding: 20px;
    }
}

/* =========================================
   التعديل النظيف والمخصص لإلصاق الصورة نحو اليمين 
   ========================================= */
.custom-image-container {
    text-align: right;
    width: 100%;
    margin: 40px 0 20px 0;
    box-sizing: border-box;
}

.custom-image-item {
    max-width: 100%;
    width: 140px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: inline-block;
    margin-right: 0;
    margin-left: auto;
}
