.footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding-top: 4rem;
    position: relative;
}

.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(246, 195, 33, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo-text {
    margin-right: 0.5rem;
}

.footer-logo-go {
    border-bottom: 2px solid #808080;
    padding-bottom: 2px;
}

.company-desc {
    color: #999;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 195, 33, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #999;
}

.contact-details i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-details a {
    color: #999;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 1.5rem 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #999;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links a {
    color: #999;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-links {
    text-align: right;
}

[dir="rtl"] .footer-links a {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .footer-links a:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .footer-links i {
    transform: rotate(180deg);
}

[dir="rtl"] .contact-details {
    text-align: right;
}

[dir="rtl"] .contact-details li {
    flex-direction: row;
    justify-content: flex-start;
}

[dir="rtl"] .contact-details i {
    margin-left: 0.5rem;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
    justify-content: center;
}

[dir="rtl"] .footer-logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-logo-text {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .footer-bottom-links {
    flex-direction: row-reverse;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.4s;
}

@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .contact-details li {
        justify-content: flex-start;
    }

    [dir="rtl"] .footer-bottom-content {
        flex-direction: column;
        align-items: center;
    }

    [dir="rtl"] .contact-details li {
        justify-content: right;
        padding-left: 0;
        padding-right: 1rem;
    }

    [dir="rtl"] .social-links {
        justify-content: center;
    }

    [dir="rtl"] .footer-links a {
        justify-content: flex-end;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding-top: 2rem;
    }

    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-details li {
        font-size: 0.9rem;
    }

    [dir="rtl"] .footer-links a {
        justify-content: flex-end;
        padding-right: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-section {
        animation: none;
        opacity: 1;
    }
}

@media print {
    .footer {
        background-color: #fff !important;
        color: #000 !important;
    }

    .social-links,
    .footer-bottom-links {
        display: none;
    }
}