/* Modern Footer */
.modern-footer {
    position: relative;
    background: #1a1a1a;
    color: #fff;
    padding-top: 80px;
}

.footer-main {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
}

/* Company Column */
.company-column {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
}

.company-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #527c0d;
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Columns */
.footer-column {
    position: relative;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #527c0d;
    border-radius: 3px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-links a i {
    font-size: 10px;
    color: #527c0d;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #527c0d;
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX({{ app()->getLocale() == 'ar' ? '-3px' : '3px' }});
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(82, 124, 13, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #527c0d;
    font-size: 16px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-item a:hover {
    color: #527c0d;
}

/* Footer Bottom */
.footer-bottom {
    background: #111;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright,
.developer {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.developer a {
    color: #527c0d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer a:hover {
    color: #6a9b11;
}

/* Decorative Shape */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    transform: translateY(-99%);
    z-index: 1;
    overflow: hidden;
    line-height: 0;
}

.footer-decoration svg {
    display: block;
    width: 100%;
    height: 100%;
    color: #1a1a1a;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    {{ app()->getLocale() == 'ar' ? 'left' : 'right' }}: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse-float 2s ease-in-out infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.phone-btn {
    background: linear-gradient(135deg, #527c0d 0%, #3d5e0a 100%);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.location-btn {
    background: linear-gradient(135deg, #527c0d 0%, #3d5e0a 100%);
}

.floating-tooltip {
    position: absolute;
    {{ app()->getLocale() == 'ar' ? 'right' : 'left' }}: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    {{ app()->getLocale() == 'ar' ? 'right' : 'left' }}: calc(100% + 10px);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    {{ app()->getLocale() == 'ar' ? 'right' : 'left' }}: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #527c0d 0%, #3d5e0a 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(82, 124, 13, 0.4);
}

/* Animations */
@keyframes pulse-float {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .company-column {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .floating-actions {
        {{ app()->getLocale() == 'ar' ? 'left' : 'right' }}: 20px;
        bottom: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .floating-tooltip {
        display: none;
    }

    .back-to-top-btn {
        {{ app()->getLocale() == 'ar' ? 'right' : 'left' }}: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer-logo img {
        max-width: 150px;
    }

    .footer-title {
        font-size: 18px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* RTL Support */
[dir="rtl"] .footer-title::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .footer-links a:hover {
    padding-right: 5px;
    padding-left: 0;
}
