/* تنسيقات الفوتر العصري */
:root {
    --footer-bg: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    --footer-text: #f0f0f0;
    --footer-link: #f0f0f0;
    --footer-link-hover: var(--secondary-color);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-icon-bg: rgba(255, 255, 255, 0.1);
    --footer-icon-color: var(--primary-color);
    --footer-bottom-bg: rgba(0, 0, 0, 0.2);
    --footer-transition: all 0.3s ease;
}

/* تنسيقات الفوتر الرئيسي */
.footer {
    position: relative;
    color: var(--footer-text);
    font-size: 0.95rem;
    overflow: hidden;
}

/* تنسيقات القسم العلوي */
.footer-top {
    background: var(--footer-bg);
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}

/* نمط الخلفية */
.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/subtle-pattern.svg');
    background-size: 300px;
    background-repeat: repeat;
    opacity: 0.03;
    z-index: -1;
}

/* تنسيقات الشعار */
.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 60px;
    filter: brightness(1.2);
}

/* تنسيقات العناوين */
.footer-title {
    color: var(--footer-text);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-right: 15px;
    display: inline-block;
}

.footer-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

/* تنسيقات النص */
.footer-about p {
    color: var(--footer-text);
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* تنسيقات الروابط الاجتماعية */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--footer-icon-bg);
    color: var(--footer-link);
    font-size: 1.1rem;
    transition: var(--footer-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    transition: var(--footer-transition);
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-5px);
}

.social-links a:hover::before {
    opacity: 1;
}

/* تنسيقات الروابط السريعة */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: var(--footer-link);
    text-decoration: none;
    transition: var(--footer-transition);
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    transform: translateX(-8px);
    opacity: 1;
}

.link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--footer-icon-bg);
    border-radius: 50%;
    margin-left: 10px;
    color: var(--footer-icon-color);
    transition: var(--footer-transition);
}

.footer-links a:hover .link-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotate(360deg);
}

/* تنسيقات معلومات الاتصال */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--footer-text);
    opacity: 0.9;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--footer-icon-bg);
    margin-left: 12px;
    color: var(--footer-icon-color);
    transition: var(--footer-transition);
}

.footer-contact li:hover .contact-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* تنسيقات القسم السفلي */
.footer-bottom {
    background-color: var(--footer-bottom-bg);
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.copyright {
    color: var(--footer-text);
    opacity: 0.8;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.copyright a {
    color: var(--footer-link-hover);
    text-decoration: none;
    font-weight: 600;
    transition: var(--footer-transition);
}

.copyright a:hover {
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--footer-transition);
}

.footer-bottom-links a:hover {
    color: var(--footer-link-hover);
    opacity: 1;
}

/* تنسيقات زر العودة لأعلى */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transition: all 0.4s;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    transform: translateY(-5px) scale(1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

/* تنسيقات متجاوبة */
@media (max-width: 992px) {
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-logo img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 20px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
    }
    
    .copyright {
        text-align: center;
    }
    
    .footer-title {
        margin-top: 20px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        padding: 30px 0 10px;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-bottom-links {
        gap: 15px;
    }
    
    .footer-bottom-links a, .copyright {
        font-size: 0.8rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
} 