/* ملف التأثيرات الحركية والتنسيقات المتقدمة */

/* تأثيرات الظهور عند التمرير */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* تأثيرات متقدمة للبطاقات */
.hover-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* تأثيرات القائمة العلوية */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(13, 110, 253, 0.95) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* تأثيرات العناوين */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #0d6efd;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 120px;
}

/* تأثيرات الصور */
.gallery-img-effect {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-img-effect img {
    transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.gallery-img-effect:hover img {
    transform: scale(1.08) rotate(1deg);
}

/* زر العودة لأعلى الصفحة */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-5px);
}

/* تأثيرات النوافذ المنبثقة */
.custom-modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.custom-modal.show .custom-modal-content {
    transform: translateY(0);
}

/* تأثيرات التدرج اللوني للخلفيات */
.gradient-bg {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
}

.service-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.3);
    transform: translateY(-10px);
}

/* تأثيرات الأزرار */
.btn-custom {
    border-radius: 30px;
    padding: 10px 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: all 0.4s ease-in-out;
}

.btn-custom:hover::before {
    width: 100%;
}

/* تأثيرات العد */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: #0d6efd;
}

.counter-container {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.counter-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* تأثيرات الخرائط */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.map-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}
