/* Footer Styles */
.footer {
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a0f1a 50%, #050810 100%);
    padding: 120px 0 40px;
    overflow: hidden;
    color: #ffffff;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Footer Background Pattern */
.footer-decorations {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(212, 175, 55, 0.05) 20px,
        rgba(212, 175, 55, 0.05) 40px
    );
    opacity: 0.4;
}

/* Footer Content - Grid Layout */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 70px;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="ltr"] .footer-content {
    direction: ltr;
}

/* Footer Column */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.footer-column:nth-child(1).animate-fade-in {
    animation-delay: 0.1s;
}

.footer-column:nth-child(2).animate-fade-in {
    animation-delay: 0.2s;
}

.footer-column:nth-child(3).animate-fade-in {
    animation-delay: 0.3s;
}

.footer-column:nth-child(4).animate-fade-in {
    animation-delay: 0.4s;
}

.footer-column:nth-child(5).animate-fade-in {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Column */
.footer-company {
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-company-name {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 95%;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(11, 106, 50, 0.4);
}

/* Footer Column Title */
.footer-column-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 28px 0;
    padding-bottom: 14px;
    position: relative;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

[dir="ltr"] .footer-column-title::after {
    right: auto;
    left: 0;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin: 0;
}

.footer-links li i {
    opacity: 1 !important;
    visibility: visible !important;
}

.footer-column.animate-fade-in .footer-links li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFooter 0.5s ease-out forwards;
}

.footer-column.animate-fade-in .footer-links li i {
    opacity: 1 !important;
    visibility: visible !important;
}

[dir="ltr"] .footer-column.animate-fade-in .footer-links li {
    transform: translateX(20px);
}

.footer-column.animate-fade-in .footer-links li:nth-child(1) { animation-delay: 0.1s; }
.footer-column.animate-fade-in .footer-links li:nth-child(2) { animation-delay: 0.15s; }
.footer-column.animate-fade-in .footer-links li:nth-child(3) { animation-delay: 0.2s; }
.footer-column.animate-fade-in .footer-links li:nth-child(4) { animation-delay: 0.25s; }
.footer-column.animate-fade-in .footer-links li:nth-child(5) { animation-delay: 0.3s; }
.footer-column.animate-fade-in .footer-links li:nth-child(6) { animation-delay: 0.35s; }
.footer-column.animate-fade-in .footer-links li:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInFooter {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 0;
    line-height: 1.6;
}


.footer-links a i.fa-solid,
.footer-links a i.fa-angle-right {
    font-size: 14px !important;
    color: #b0b0b0 !important;
    transition: all 0.3s ease;
    order: -1;
    flex-shrink: 0;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 14px !important;
    height: 14px !important;
    margin-right: 10px;
    line-height: 1;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-links a i {
    font-size: 14px !important;
    color: #b0b0b0 !important;
    transition: all 0.3s ease;
    order: -1;
    flex-shrink: 0;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 14px !important;
    height: 14px !important;
    margin-right: 10px;
    line-height: 1;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[dir="ltr"] .footer-links a i {
    order: 1;
    transform: rotate(180deg);
    margin-right: 0;
    margin-left: 10px;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    padding-right: 8px;
    transform: translateX(-3px);
}

.footer-links a:hover i {
    color: var(--accent-color) !important;
}

[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 8px;
    transform: translateX(3px);
}

/* Footer Contact Info */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 4px 0;
    line-height: 1.7;
    font-weight: 400;
}

.contact-value:last-child {
    margin-bottom: 0;
}

.contact-value a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-value a:hover {
    color: var(--accent-color) !important;
    transform: translateX(-2px);
}

[dir="ltr"] .contact-value a:hover {
    transform: translateX(2px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
    gap: 25px;
}

.footer-bottom > * {
    flex: 0 0 auto;
}

/* Footer Language Selector */
.footer-language-selector {
    display: flex;
    align-items: center;
}

.footer-language-selector .language-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.footer-language-selector .language-selector:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 106, 50, 0.3);
}

.footer-language-selector .language-selector i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-language-selector .language-selector:hover i {
    color: #ffffff;
}

.footer-language-selector .language-selector .current-lang {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-copyright {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-weight: 400;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-legal-separator {
    color: rgba(255, 255, 255, 0.25);
    font-size: 15px;
    font-weight: 300;
}

.footer-legal-link {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer-legal-link:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.8fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer {
        padding: 60px 0 25px;
    }

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

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

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

    .footer-language-selector {
        order: 1;
    }

    .footer-copyright {
        order: 2;
    }

    .footer-legal {
        order: 3;
    }
}

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

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

    .footer-company {
        grid-column: 1;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-description {
        max-width: 100%;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

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

    .footer-links a {
        font-size: 14px;
    }

    .contact-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 30px;
        margin-bottom: 35px;
    }

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

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

    .footer-company-name {
        font-size: 20px;
    }

    .footer-tagline {
        font-size: 12px;
    }

    .footer-description {
        font-size: 14px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .footer-column-title {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 25px;
    }

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

    .footer-legal-link {
        font-size: 13px;
    }
}

