@font-face {
    font-family: 'Vazir';
    src: url('/static/fonts/Vazir-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('/static/fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

.footer {
    background: linear-gradient(135deg, #5e35b1, #4527a0, #7b1fa2, #ab47bc);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    color: #fff;
    padding: 50px 20px;
    direction: rtl;
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.footer-column:hover {
    transform: translateY(-5px);
}

.footer-column h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #f0f4f8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #dfe4ea;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.footer-column ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    right: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.footer-column ul li a:hover::after {
    width: 100%;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-enamad {
    text-align: center;
}

.footer-enamad a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-enamad a:hover {
    transform: scale(1.1);
}

.footer-enamad img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-icons a {
    color: #dfe4ea;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

.footer-contact p {
    font-size: 0.95rem;
    color: #dfe4ea;
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 25px;
    font-size: 0.9rem;
    color: #dfe4ea;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 15px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        min-width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-enamad img {
        max-width: 80px;
    }

    .footer-column h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 10px;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .footer-column ul li a {
        font-size: 0.9rem;
    }

    .footer-enamad img {
        max-width: 60px;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}