/* ================================================
   Modern Footer Styles - Fekr Tany
   Clean, Professional & Responsive Design
   ================================================ */

/* Footer Main Container */
.footer-modern {
    background: linear-gradient(135deg, #19374B 0%, #2C3E50 50%, #19374B 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

/* Decorative Wave */
.footer-wave {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    z-index: 1;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Footer Background Pattern */
.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(95, 207, 229, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(69, 183, 209, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* Container */
.footer-modern .container {
    position: relative;
    z-index: 2;
}

/* Main Footer Content */
.footer-main {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding: 50px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Section */
.footer-brand {
    padding-right: 20px;
}

[dir="rtl"] .footer-brand {
    padding-right: 0;
    padding-left: 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 150px;
    width: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 14px;
}

/* CTA Button in Footer */
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #45B7D1, #5FCFE5);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(69, 183, 209, 0.3);
    margin-bottom: 15px;
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(69, 183, 209, 0.4);
    background: linear-gradient(135deg, #5FCFE5, #45B7D1);
}

.footer-cta-btn i {
    font-size: 16px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #e5893e;
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(69, 183, 209, 0.4);
    border-color: transparent;
}

.social-link i {
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* Footer Titles */
.footer-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2.5px;
    background: #e5893e;
    border-radius: 3px;
}

[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

/* Footer Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li:last-child {
    margin-bottom: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 3px 0;
}

.footer-menu a i {
    font-size: 10px;
    color: #e5893e;
    transition: transform 0.3s ease;
    order: 1;
}

[dir="rtl"] .footer-menu a i {
    order: 2;
}

.footer-menu a:hover {
    color: #e5893e;
    padding-left: 5px;
}

[dir="rtl"] .footer-menu a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-menu a:hover i {
    transform: translateX(3px);
}
/* Contact Info */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 6px 0;
}

.footer-contact-list li:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(69, 183, 209, 0.15), rgba(95, 207, 229, 0.15));
    border-radius: 8px;
    color: #5FCFE5;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(69, 183, 209, 0.2);
}

.contact-text {
    flex: 1;
    padding-top: 2px;
}

.contact-text a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-size: 14px;
}

.contact-text a:hover {
    color: #e5893e;
}

.contact-text span {
    color: rgba(255, 255, 255, 0.85);
    display: block;
    font-size: 14px;
}

.contact-text small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    display: block;
    margin-top: 3px;
}contact-text small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

/* Working Hours */
.footer-hours {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
}

.footer-hours p {
    margin: 0 0 6px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
}

.footer-hours p:last-child {
    margin-bottom: 0;
}

.footer-hours strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-hours i {
    color: #5FCFE5;
    margin-right: 6px;
}

[dir="rtl"] .footer-hours i {
    margin-right: 0;
    margin-left: 6px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

.footer-copyright strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-credits span {
    color: rgba(255, 255, 255, 0.5);
}

.developer-link {
    color: #5FCFE5;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: #45B7D1;
    gap: 8px;
}

.developer-link i {
    font-size: 16px;
}

/* ================================================
   Responsive Design
   ================================================ */

/* Tablet - Large */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        padding: 45px 0 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        max-width: 600px;
    }

    [dir="rtl"] .footer-brand {
        padding-left: 0;
    }
}

/* Tablet - Small */
@media (max-width: 768px) {
    .footer-modern {
        margin-top: 50px;
    }

    .footer-wave {
        top: -35px;
        height: 50px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 30px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-desc {
        text-align: center;
    }

    .footer-cta-btn {
        display: inline-flex;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    [dir="rtl"] .footer-title::after {
        right: 50%;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-menu {
        text-align: center;
    }

    .footer-menu a {
        justify-content: center;
    }
/* Mobile */
@media (max-width: 480px) {
    .footer-modern {
        margin-top: 40px;
    }

    .footer-wave {
        top: -25px;
        height: 40px;
    }

    .footer-main {
        gap: 25px;
        padding: 35px 0 25px;
    }

    .footer-logo-img {
        height: 40px;
    }

    .footer-desc {
        font-size: 13px;
    }

    .footer-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 13px;
    }

    .footer-title {
        font-size: 16px;
        text-align: center;
        margin-bottom: 15px;
    }

    .footer-menu a {
        font-size: 13px;
    }

    .footer-menu li {
        margin-bottom: 8px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .contact-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .contact-text a,
    .contact-text span {
        font-size: 13px;
    }

    .footer-hours {
        padding: 12px;
        font-size: 12px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-copyright,
    .footer-credits {
        font-size: 12px;
    }

    .footer-credits {
/* Extra Small Devices */
@media (max-width: 360px) {
    .footer-logo-img {
        height: 38px;
    }

    .footer-main {
        gap: 22px;
        padding: 30px 0 20px;
    }

    .footer-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .social-link {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .footer-menu li {
        margin-bottom: 7px;
    }
}       height: 40px;
    }

    .footer-main {
        gap: 30px;
        padding: 35px 0 30px;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 20px;
/* ================================================
   RTL Specific Adjustments
   ================================================ */

/* RTL Menu Alignment */
[dir="rtl"] .footer-menu {
    text-align: right;
}

[dir="rtl"] .footer-menu a {
    flex-direction: row-reverse;
    text-align: right;
}

/* RTL Contact List */
[dir="rtl"] .footer-contact-list {
    direction: rtl;
}

[dir="rtl"] .footer-contact-list li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .contact-text {
    text-align: right;
}

/* RTL Footer Credits */
[dir="rtl"] .footer-credits {
    flex-direction: row-reverse;
}

[dir="rtl"] .developer-link {
    flex-direction: row-reverse;
}

/* RTL CTA Button */
[dir="rtl"] .footer-cta-btn {
    flex-direction: row-reverse;
}

/* RTL Social Links Alignment */
[dir="rtl"] .footer-social {
    justify-content: flex-start;
}

/* RTL Brand Section */
[dir="rtl"] .footer-brand {
    text-align: right;
}

[dir="rtl"] .footer-desc {
    text-align: right;
}

/* Mobile RTL Adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .footer-brand {
        text-align: center;
    }

    [dir="rtl"] .footer-desc {
        text-align: center;
    }

    [dir="rtl"] .footer-social {
        justify-content: center;
    }

    [dir="rtl"] .footer-menu {
        text-align: center;
    }

    [dir="rtl"] .footer-menu a {
        text-align: center;
    }

    [dir="rtl"] .contact-text {
        text-align: center;
    }
}   flex-direction: row-reverse;
}

[dir="rtl"] .footer-credits {
    flex-direction: row-reverse;
}

[dir="rtl"] .developer-link {
    flex-direction: row-reverse;
}

/* ================================================
   Print Styles
   ================================================ */
@media print {
    .footer-modern {
        background: #2C3E50;
        margin-top: 20px;
        page-break-inside: avoid;
    }

    .footer-wave,
    .footer-social,
    .footer-cta-btn {
        display: none;
    }

    .footer-main {
        padding: 30px 0;
    }
}

/* ================================================
   Accessibility Improvements
   ================================================ */

/* Focus Styles */
.footer-menu a:focus,
.social-link:focus,
.footer-cta-btn:focus,
.contact-text a:focus,
.developer-link:focus {
    outline: 2px solid #5FCFE5;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .footer-modern *,
    .footer-modern *::before,
    .footer-modern *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .footer-modern {
        background: #000000;
        border-top: 3px solid #45B7D1;
    }

    .footer-title::after {
        background: #5FCFE5;
    }

    .social-link,
    .contact-icon {
        border: 2px solid #5FCFE5;
    }
}
