/* ============================================
   PROFESSIONAL FOOTER STYLES
   ============================================ */

/* Footer Container */
.rn-footer-area {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 25%, #4a5568 75%, #718096 100%);
    position: relative;
    overflow: hidden;
    border-top: 3px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.4);
}

.rn-footer-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.2) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 70%),
        radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.1) 0%, transparent 70%),
        linear-gradient(45deg, rgba(30, 64, 175, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Footer Widgets */
.footer-widget {
    position: relative;
    z-index: 2;
}

.footer-widget .logo {
    margin-bottom: 1.5rem;
}

.footer-logo {
    max-height: 60px;
    filter: brightness(10) !important;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(6) !important;
}

/* Widget Titles */
.widget-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.widget-title:hover::after {
    width: 100px;
}

/* Footer Description */
.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.social-share {
    gap: 0.75rem;
}

.social-share li {
    margin: 0;
}

.social-share li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-share li a:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.5);
    color: #ffffff;
}

.social-share li.facebook a:hover {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    box-shadow: 0 15px 35px rgba(24, 119, 242, 0.5);
}

.social-share li.instagram a:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 15px 35px rgba(220, 39, 67, 0.5);
}

.social-share li.linkedin a:hover {
    background: linear-gradient(135deg, #0077b5, #0a66c2);
    box-shadow: 0 15px 35px rgba(0, 119, 181, 0.5);
}

.social-share li.github a:hover {
    background: linear-gradient(135deg, #333, #24292e);
    box-shadow: 0 15px 35px rgba(51, 51, 51, 0.5);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #3b82f6;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 15px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
}

.footer-links li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-value {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-value:hover {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.author-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.3);
}

.author-link:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
    transform: scale(1.05);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* RTL Support */
[data-lang="ar"] .widget-title::after,
html[dir="rtl"] .widget-title::after,
body.rtl .widget-title::after {
    left: auto;
    right: 0;
}

[data-lang="ar"] .footer-links li a::before,
html[dir="rtl"] .footer-links li a::before,
body.rtl .footer-links li a::before {
    left: auto;
    right: -15px;
    content: '←';
}

[data-lang="ar"] .footer-links li a:hover,
html[dir="rtl"] .footer-links li a:hover,
body.rtl .footer-links li a:hover {
    padding-left: 0;
    padding-right: 15px;
}

[data-lang="ar"] .footer-links li a:hover::before,
html[dir="rtl"] .footer-links li a:hover::before,
body.rtl .footer-links li a:hover::before {
    right: 0;
    left: auto;
}

[data-lang="ar"] .contact-item:hover,
html[dir="rtl"] .contact-item:hover,
body.rtl .contact-item:hover {
    transform: translateX(-5px);
}

[data-lang="ar"] .footer-bottom-links,
html[dir="rtl"] .footer-bottom-links,
body.rtl .footer-bottom-links {
    justify-content: flex-start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-widget {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .contact-item {
        text-align: left;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    [data-lang="ar"] .widget-title::after,
    html[dir="rtl"] .widget-title::after,
    body.rtl .widget-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        align-self: center;
    }
}

/* Animation Effects */
@keyframes footerGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

.footer-widget:hover .widget-title {
    animation: footerGlow 2s ease-in-out infinite;
}

/* Glassmorphism Enhancement */
.footer-widget {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-widget:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Neon Text Effect */
.widget-title {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact-value {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.footer-links li a:focus,
.contact-value:focus,
.social-share li a:focus,
.footer-bottom-links a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}