/* ==================== Footer Section ==================== */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--body-font-color-dark, #ccc);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.site-footer a {
    color: var(--body-font-color-dark, #ccc);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: black;
}

.site-footer a:hover {
    color: var(--primary-color, #007bff);
    text-decoration: none;
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 40px;
}

.widget-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: none;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #007bff), rgba(0, 123, 255, 0.5));
    border-radius: 2px;
}

/* Contact Cards */
.contact-card {
    /* background: #fff; */
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color, #007bff);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.contact-card:hover::before {
    transform: scaleY(1);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 14px;
    color: var(--primary-color, #007bff);
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-card:hover .contact-card-icon {
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, rgba(0, 123, 255, 0.8) 100%);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.contact-card-content {
    flex: 1;
}

.contact-card-label {
    color: #2c3e50;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 0.3px;
}

.contact-card-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card-link {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-right: 0;
}

.contact-card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color, #007bff);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card-link:hover {
    color: var(--primary-color, #007bff);
    padding-right: 8px;
}

.contact-card-link:hover::after {
    width: 100%;
}

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

.footer-menu li {
    margin-bottom: 14px;
    padding: 0;
    position: relative;
}

.footer-menu li::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color, #007bff);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-menu li:hover::before {
    opacity: 1;
    right: -20px;
}

.footer-menu li a {
    display: inline-block;
    color: var(--body-font-color-dark, #b0b0b0);
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
}

.footer-menu li a::before {
    content: '→';
    margin-left: 10px;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

.footer-menu li a:hover {
    color: #fff;
    padding-right: 20px;
    transform: translateX(-5px);
}

.footer-menu li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Company Info */
.footer-company {
    text-align: center;
    padding: 20px 0;
}

.footer-logo-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    position: relative;
}

.footer-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.footer-logo-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-img:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
    border-color: var(--primary-color, #007bff);
}

.company-name {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.footer-company:hover .company-name {
    color: var(--primary-color, #007bff);
    text-shadow: 0 2px 15px rgba(0, 123, 255, 0.3);
}

.company-slogan {
    color: var(--body-font-color-dark, #b0b0b0);
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Subfooter */
.subfooter {
    margin-top: 70px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.subfooter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color, #007bff), transparent);
}

.subfooter-content {
    text-align: center;
    position: relative;
}

.copyright-text {
    color: var(--body-font-color-dark, #888);
    font-size: 14px;
    margin: 0;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.developer-link {
    color: var(--primary-color, #007bff);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0 2px;
}

.developer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color, #007bff);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.developer-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.developer-link:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .site-footer {
        padding: 60px 0 0;
    }

    .footer-widget {
        margin-bottom: 35px;
    }

    .widget-title {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .contact-card {
        padding: 20px;
        margin-bottom: 18px;
    }

    .contact-card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 22px;
    }

    .company-name {
        font-size: 26px;
    }

    .footer-logo-img {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 50px 0 0;
    }

    .footer-logo-img {
        width: 100px;
        height: 100px;
        padding: 15px;
    }

    .footer-logo-wrapper::before {
        width: 120px;
        height: 120px;
    }

    .widget-title {
        font-size: 17px;
        margin-bottom: 20px;
    }

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

    .footer-menu li a {
        font-size: 14px;
        padding: 6px 0;
    }

    .contact-card {
        padding: 18px;
        margin-bottom: 18px;
        flex-direction: row;
        text-align: right;
    }

    .contact-card-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 20px;
    }

    .contact-card-items {
        align-items: flex-start;
    }

    .company-name {
        font-size: 24px;
    }

    .company-slogan {
        font-size: 15px;
    }

    .subfooter {
        margin-top: 50px;
        padding: 25px 0;
    }

    .copyright-text {
        font-size: 13px;
    }

    /* في الشاشات الصغيرة جداً، اجعل القائمة والمنتجات في عمود واحد */
    .site-footer .col-lg-4 .row.g-4 .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .site-footer .col-lg-4 .row.g-4 .col-6:last-child {
        margin-bottom: 0;
    }
}

/* RTL Support */
[dir="rtl"] .footer-menu li a::before {
    content: '←';
    margin-left: 0;
    margin-right: 8px;
}

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

[dir="rtl"] .widget-title::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .contact-card-link:hover {
    padding-right: 0;
    padding-left: 5px;
}

