.main-footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--text-light);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    pointer-events: none;
}

.footer-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    color: var(--white);
}

.footer-title-ar {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    transform: translateY(-3px);
    border-color: transparent;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-section-title {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
}

body[dir="rtl"] .footer-section-title::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
    display: inline-block;
    font-size: var(--font-base);
}

.footer-links li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

body[dir="rtl"] .footer-links li a:hover {
    transform: translateX(-5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-base);
}

.footer-contact li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.footer-copyright p,
.footer-credits p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-sm);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-section:first-child {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    body[dir="rtl"] .footer-section-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: var(--font-lg);
    }
    
    .footer-title-ar {
        font-size: var(--font-base);
    }
    
    .footer-logo-img {
        height: 50px;
    }
}