/* تأثيرات الظهور من الأسفل */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* تأخير بين العناصر */
.animate-on-scroll.animate:nth-child(1) {
    transition-delay: 0.2s;
}

/* تأثيرات الظهور من الجانب (يمين أو يسار) */
.animate-on-scroll.from-left {
    transform: translateX(-50px);
}

.animate-on-scroll.from-right {
    transform: translateX(50px);
}

.animate-on-scroll.from-left.animate,
.animate-on-scroll.from-right.animate {
    transform: translateX(0);
}

/* تحسين تحميل الصفحة على الأجهزة المحمولة */
@media (max-width: 768px) {
    body:not(.no-scroll) .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    body:not(.no-scroll) .animate-on-scroll.from-left,
    body:not(.no-scroll) .animate-on-scroll.from-right {
        transform: none !important;
    }
}




/* الخطوط العمودية */
.VerticalDivider {
    width: 1px;
    height: 100%;
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.06);
    z-index: -1;
}

/* الموضع الأساسي للخطوط في الديسكتوب */
.VerticalDivider:nth-child(1) { left: 10%; }
.VerticalDivider:nth-child(2) { left: 20%; }
.VerticalDivider:nth-child(3) { left: 30%; }
.VerticalDivider:nth-child(4) { left: 40%; }
.VerticalDivider:nth-child(5) { left: 50%; }
.VerticalDivider:nth-child(6) { left: 60%; }
.VerticalDivider:nth-child(7) { left: 70%; }
.VerticalDivider:nth-child(8) { left: 80%; }
.VerticalDivider:nth-child(9) { left: 90%; }

/* على الشاشات المتوسطة - نخلي بس 5 خطوط */
@media (max-width: 1200px) {
    .VerticalDivider:nth-child(n+6) {
        display: none;
    }

    .VerticalDivider:nth-child(1) { left: 20%; }
    .VerticalDivider:nth-child(2) { left: 40%; }
    .VerticalDivider:nth-child(3) { left: 60%; }
    .VerticalDivider:nth-child(4) { left: 80%; }
    .VerticalDivider:nth-child(5) { left: 100%; }
}

/* على الشاشات الصغيرة - نوزع 5 خطوط فقط */
@media (max-width: 768px) {
    .VerticalDivider {
        display: none;
    }

    .VerticalDivider:nth-child(1),
    .VerticalDivider:nth-child(2),
    .VerticalDivider:nth-child(3),
    .VerticalDivider:nth-child(4),
    .VerticalDivider:nth-child(5) {
        display: block;
    }

    .VerticalDivider:nth-child(1) { left: 10%; }
    .VerticalDivider:nth-child(2) { left: 30%; }
    .VerticalDivider:nth-child(3) { left: 50%; }
    .VerticalDivider:nth-child(4) { left: 70%; }
    .VerticalDivider:nth-child(5) { left: 90%; }
}




/* متغيرات CSS للألوان والقيم المتكررة */
:root {
    --primary-color: #FFD01B;
    --bg-dark: #131313;
    --bg-darker: #070707;
    --bg-section: #1F1F1F;
    --text-light: #DCDCDC;
    --border-light: rgba(255, 255, 255, 0.2);
    
    --border-radius-lg: 25px;
    --border-radius-md: 15px;
    --border-radius-sm: 10px;
    
    --standard-shadow: 0 0 35px rgba(0, 0, 0, 0.4);
    --transition-standard: all 0.3s ease-in-out;
    --transtion: 0.3s ease-in-out;

    /* متغيرات التباعد للاتساق */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}



.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--text-light);
    transform: translateY(-3px);
}



/* زر واتساب */
.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;

    /* أخفيه افتراضياً */
    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366, #008330);
    color: var(--text-light);
}

/* لما ينضاف له الكلاس show */
.whatsapp-icon.show {
    opacity: 1;
    visibility: visible;
}

.whatsapp-icon:hover {
    transform: translateY(-3px);
    animation: colorChange 2s infinite alternate;
}

.whatsapp-icon:hover svg {
    animation: iconColorChange 2s infinite alternate;
}



/* ودجت واتساب */
.whatsapp-widget {
    position: fixed;
    bottom: 60px;
    left: 15px;
    width: 220px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: "Cairo", sans-serif;
    z-index: 9998;
    display: none;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0e9b42, #00802f); 
    color: white;
    padding: 10px;
}

.whatsapp-widget .close-widget {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.whatsapp-widget .close-widget:hover {
    color: red;
}

.chat-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
}

.chat-info p {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
}

.chat-info span {
    font-size: 12px;
    opacity: 0.9;
}

.chat-footer {
    padding: 10px;
    text-align: center;
}

.chat-footer a {
    background: linear-gradient(135deg, #0e9b42, #00802f);
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    font-size: 14px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}








/* قواعد متجاوبة عامة */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    /* حجم خط أساسي لحسابات rem */
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}


