/* Snow Background Enhancement */

/* خلفية ثلجية ناعمة مع نمط دقيق */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: -1;
}

/* تأثير ثلجي خفيف متحرك */
@keyframes snowDrift {
    0% {
        background-position: 0% 0%, 100% 100%;
    }
    50% {
        background-position: 100% 50%, 0% 50%;
    }
    100% {
        background-position: 0% 0%, 100% 100%;
    }
}

body {
    animation: snowDrift 60s ease-in-out infinite;
}

/* تحسين الكروت على الخلفية الثلجية */
.card,
.custom-card,
.glass-stat-card,
.feature-card-3d,
.job-card-modern {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

/* تحسين الـ navbar على الخلفية الثلجية */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* تحسين الـ footer */
.footer {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* تأثير ثلجي على hover للكروت */
.glass-stat-card:hover,
.feature-card-3d:hover,
.job-card-modern:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.12) !important;
}


/* تحسين الـ stats section على الخلفية الثلجية */
.stats-section {
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.05) 50%,
        transparent
    );
}

/* تحسين الأقسام */
.features-section,
.jobs-section,
.cta-section {
    position: relative;
}

/* خطوط فاصلة ناعمة بين الأقسام */
.features-section::before,
.jobs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.05) 50%,
        transparent
    );
}

/* تحسين الـ CTA على الخلفية الثلجية */
.cta-container {
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* نقاط ثلجية صغيرة متناثرة (اختياري) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle, rgba(240, 242, 245, 0.3) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    pointer-events: none;
    opacity: 0.3;
    z-index: -1;
}

/* تحسين الـ alerts على الخلفية الثلجية */
.alert {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background: rgba(236, 253, 245, 0.95) !important;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(254, 242, 242, 0.95) !important;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: rgba(239, 246, 255, 0.95) !important;
    border-color: rgba(59, 130, 246, 0.2);
}

.alert-warning {
    background: rgba(255, 251, 235, 0.95) !important;
    border-color: rgba(245, 158, 11, 0.2);
}

/* تحسين الـ forms على الخلفية الثلجية */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.08);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* تحسين الـ tables */
.table {
    background: rgba(255, 255, 255, 0.98);
}

/* تحسين الـ Pagination على الخلفية الثلجية */
.pagination {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Responsive */
@media (max-width: 768px) {
    body::after {
        opacity: 0.2;
        background-size: 30px 30px, 50px 50px;
    }
    
    .pagination {
        padding: 10px 15px;
    }
}
