/**
 * ملف تصميم الفوتر المبهر
 * Stunning Footer Design
 */

/* ========== الفوتر الرئيسي ========== */
.footer {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: var(--white);
    overflow: hidden;
}

/* خلفية متحركة للفوتر */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232ECC71' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float-pattern 20s linear infinite;
}

@keyframes float-pattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* موجة علوية للفوتر */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231a1a1a' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

/* ========== القسم العلوي من الفوتر ========== */
.footer-top {
    padding: 80px 0 50px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

/* ========== قسم معلومات الشركة ========== */
.footer-about {
    padding-inline-end: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
}

.footer-logo {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
}

/* غلاف صورة اللوجو - يحتوي اللمعة */
.footer-logo-img-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 15px;
    flex-shrink: 0;
    margin-inline-end: 15px;
    box-shadow: 0 4px 15px rgba(212, 170, 64, 0.3);
}

.footer-logo img {
    height: 60px;
    display: block;
    filter: brightness(1) invert(0);
    transition: transform 0.3s ease;
    opacity: 1;
    border-radius: 15px;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #D4AA40, #BF9835, #BF9835) border-box;
    padding: 3px;
    position: relative;
    z-index: 1;
}

.footer-logo:hover img {
    transform: rotate(-5deg) scale(1.1);
}

/* إزالة أي تأثيرات لمعة من اللوجو */
.footer-logo-img-wrap::after,
.footer-logo-img-wrap::before,
.footer-widget .footer-logo::before,
.footer-widget .footer-logo::after {
    display: none !important;
    content: none !important;
}

.footer-logo-text {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #D4AA40, #BF9835, #BF9835);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ========== أيقونات التواصل الاجتماعي ========== */
/* تنسيق خاص للعمود الأول الذي يحتوي على أيقونات السوشيال - RTL Only */
[dir="rtl"] .footer-top .col-lg-4:first-child .footer-widget {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .footer-top .col-lg-4:first-child .social-links {
    display: flex !important;
    gap: 10px;
    direction: rtl !important;
    justify-content: flex-start !important;
    text-align: right !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Social Links Base Styles */
.social-links {
    display: flex !important;
    gap: 10px;
    width: 100% !important;
}

/* RTL Social Links */
[dir="rtl"] .social-links {
    direction: rtl !important;
    justify-content: flex-start !important;
    text-align: right !important;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none !important; /* إزالة الخط تحت الأيقونات */
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #D4AA40, #BF9835, #A58230);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(212, 170, 64, 0.3);
    text-decoration: none !important; /* إزالة الخط عند الhover أيضاً */
}

/* إضافة CSS عام لإزالة خط من جميع الروابط في الفوتر */
.footer a {
    text-decoration: none !important;
}

.footer a:hover {
    text-decoration: none !important;
}

/* ========== قوائم الفوتر ========== */
.footer-widget h4 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.footer-widget h4::before {
    display: none !important;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #D4AA40, #BF9835);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(212, 170, 64, 0.4);
    animation: footerLineGlow 3s ease-in-out infinite;
}

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

@keyframes footerLineGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(212, 170, 64, 0.4);
        width: 50px;
    }
    50% {
        box-shadow: 0 2px 12px rgba(212, 170, 64, 0.7);
        width: 55px;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* تنسيق طبيعي للقوائم - RTL Only */
[dir="rtl"] .footer-widget {
    text-align: right;
    direction: rtl;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
}

/* جعل الروابط تبدأ من أقصى اليمين في العمودين الوسطيين - RTL Only */
[dir="rtl"] .footer-top .col-lg-2 .footer-widget,
[dir="rtl"] .footer-top .col-lg-3 .footer-widget {
    text-align: right !important;
    direction: rtl !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

[dir="rtl"] .footer-top .col-lg-2 .footer-widget .footer-links,
[dir="rtl"] .footer-top .col-lg-3 .footer-widget .footer-links {
    margin-right: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: right !important;
    display: block !important;
    width: 100% !important;
}

[dir="rtl"] .footer-top .col-lg-2 .footer-widget .footer-links li,
[dir="rtl"] .footer-top .col-lg-3 .footer-widget .footer-links li {
    text-align: right !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

[dir="rtl"] .footer-top .col-lg-2 .footer-widget .footer-links a,
[dir="rtl"] .footer-top .col-lg-3 .footer-widget .footer-links a {
    text-align: right !important;
    justify-content: flex-start !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    direction: rtl !important;
}

.footer-widget h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

/* إعطاء مساحة أكبر للتخطيط */
.footer-top .container {
    max-width: 1400px;
}

.footer-top .row {
    justify-content: space-between;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-inline-start: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    width: 100%;
}

.footer-links a::before {
    content: '';
    /* إزالة الرمز القديم لاستخدام الأيقونات الجديدة */
}

/* تنسيق الأيقونات في روابط الفوتر */
.footer-links a i {
    color: #D4AA40;
    margin-left: 8px; /* مسافة أصغر بين الأيقونة والنص */
    font-size: 14px;
    transition: all 0.3s ease;
    width: 18px; /* عرض أصغر قليلاً */
    text-align: center;
    display: inline-block;
}

.footer-links a:hover i {
    color: #BF9835;
    transform: scale(1.1);
}

/* Base Footer Links Style */
.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* RTL Footer Links */
[dir="rtl"] .footer-links a {
    flex-direction: row;
    text-align: right !important;
    direction: rtl !important;
    justify-content: flex-start !important;
}

/* LTR Footer Links */
[dir="ltr"] .footer-links a {
    flex-direction: row;
    text-align: left !important;
    direction: ltr !important;
    justify-content: flex-start !important;
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-inline-start: 10px;
}

.footer-links a:hover::before {
    transform: rotate(45deg);
}

/* ========== معلومات الاتصال ========== */
.footer .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.footer .contact-item {
    display: flex !important;
    align-items: flex-start;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    gap: 15px; /* مسافة بين الأيقونة والنص */
}

.footer .contact-item {
    background: transparent !important;
}

.footer .contact-item i {
    width: 40px;
    height: 40px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #D4AA40 !important;
    font-size: 16px;
    margin-left: 5px;
}

.footer .contact-item span {
    flex: 1;
    line-height: 1.6;
}

/* تنسيق رابط الهاتف */
.footer .contact-item .phone-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    flex: 1;
}

.footer .contact-item .phone-link:hover {
    color: #D4AA40 !important;
    text-decoration: none !important;
}

.footer .contact-item .phone-link span {
    direction: ltr;
    display: inline-block;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #D4AA40, #BF9835, #A58230);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 15px;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

.contact-icon i {
    color: var(--white);
    font-size: 18px;
}

.contact-text {
    line-height: 1.6;
}

.contact-text strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

/* ========== النشرة البريدية ========== */
.newsletter-widget {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-green);
}

.newsletter-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #D4AA40, #BF9835, #A58230);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.newsletter-btn:hover::before {
    width: 200%;
    height: 200%;
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 170, 64, 0.3);
}

/* ========== القسم الأوسط من الفوتر ========== */
.footer-middle {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #D4AA40, #BF9835, #A58230);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: count-up 2s ease-out;
}

@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== القسم السفلي من الفوتر ========== */
.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom-copyright {
    flex: 1;
}

.footer-bottom-links-wrap {
    flex: 1;
}

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

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

.copyright a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: var(--primary-orange);
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-bottom-links a i {
    color: rgba(212, 170, 64, 0.5);
    font-size: 11px;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-green);
}

.footer-bottom-links a:hover i {
    color: rgba(212, 170, 64, 0.85);
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-bottom-row {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .footer-bottom-copyright,
    .footer-bottom-links-wrap {
        flex: none;
        width: 100%;
    }
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 15px;
    }
    .footer-bottom-links a {
        font-size: 12px;
        white-space: nowrap;
    }
    .developer-credit {
        order: 3;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-stats {
        grid-template-columns: 1fr;
    }

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

    .newsletter-form {
        flex-direction: column;
    }
}

/* ========== تأثيرات إضافية ========== */
.footer-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.footer-decoration.top-right {
    top: 100px;
    right: -100px;
}

.footer-decoration.bottom-left {
    bottom: 100px;
    left: -100px;
    animation-delay: 2s;
}

/* ========== Developer Credit - NASEY ========== */
.developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 0 16px;
}

.developer-credit .credit-line {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(191, 152, 53, 0.2) 10%,
        rgba(212, 170, 64, 0.55) 35%,
        rgba(223, 188, 85, 0.8) 50%,
        rgba(212, 170, 64, 0.55) 65%,
        rgba(191, 152, 53, 0.2) 90%,
        transparent
    );
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.developer-credit .credit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 4px 0;
}

.developer-credit .credit-text {
    font-size: 12.5px;
    color: rgba(212, 170, 64, 0.45);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.developer-credit .credit-name {
    font-size: 14px;
    color: rgba(212, 170, 64, 0.5);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.developer-credit .credit-icon {
    width: 15px;
    height: 15px;
    color: rgba(212, 170, 64, 0.35);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}

/* Hover effects */
.developer-credit .credit-link:hover .credit-text {
    color: rgba(212, 170, 64, 0.75);
}

.developer-credit .credit-link:hover .credit-name {
    color: rgba(212, 170, 64, 0.95);
    text-shadow: 0 0 14px rgba(212, 170, 64, 0.15);
}

.developer-credit .credit-link:hover .credit-icon {
    color: rgba(212, 170, 64, 0.75);
}

.developer-credit:hover .credit-line {
    width: 36px;
    background: linear-gradient(90deg,
        transparent,
        rgba(191, 152, 53, 0.3) 10%,
        rgba(212, 170, 64, 0.75) 35%,
        rgba(223, 188, 85, 1) 50%,
        rgba(212, 170, 64, 0.75) 65%,
        rgba(191, 152, 53, 0.3) 90%,
        transparent
    );
}

@media (max-width: 768px) {
    .developer-credit {
        padding: 4px 0 0;
        gap: 10px;
    }
    .developer-credit .credit-line {
        width: 24px;
    }
    .developer-credit .credit-text {
        font-size: 12px;
    }
    .developer-credit .credit-name {
        font-size: 13.5px;
        letter-spacing: 2px;
    }
    .developer-credit .credit-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .developer-credit {
        gap: 8px;
    }
    .developer-credit .credit-line {
        width: 20px;
    }
    .developer-credit .credit-text {
        font-size: 11.5px;
    }
    .developer-credit .credit-name {
        font-size: 13px;
        letter-spacing: 1.8px;
    }
    .developer-credit .credit-icon {
        width: 13px;
        height: 13px;
    }
}

/* خط متحرك في أعلى الفوتر */
.footer-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-green) 25%,
        var(--primary-orange) 50%,
        var(--primary-green) 75%,
        transparent);
    animation: slide-line 5s linear infinite;
}

@keyframes slide-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}