.footer {
    background: linear-gradient(180deg, var(--primary-color) 0%, #000 100%);
    margin-top: 80px;
}

.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(3, 99, 255, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-brand {
    max-width: 400px;
}

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

.footer-logo h3 {
    color: var(--third-color);
    font-family: "VazirBold", sans-serif;
    font-size: 32px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--third-color), var(--second-color));;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo img {
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-description {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(3, 99, 255, 0.1);
    border: 1px solid rgba(3, 99, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--third-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--third-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(3, 99, 255, 0.4);
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: white;
    font-family: "VazirBold", sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--third-color), transparent);
    border-radius: 2px;
}

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

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

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link:hover {
    color: var(--third-color);
    padding-right: 8px;
}

.footer-link::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 4px;
    height: 4px;
    background: var(--third-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.footer-link:hover::before {
    transform: translateY(-50%) scaleX(1);
}

.footer-newsletter {
    background: linear-gradient(135deg, rgba(3, 99, 255, 0.1), rgba(0, 57, 108, 0.1));
    border: 1px solid rgba(3, 99, 255, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-top: 20px;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h4 {
    color: white;
    font-family: "VazirBold", sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.newsletter-text p {
    color: #9ca3af;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(3, 99, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #6b7280;
}

.newsletter-input:focus {
    border-color: var(--third-color);
    background: rgba(0, 0, 0, 0.5);
}

.newsletter-button {
    padding: 14px 32px;
    background: var(--primary-color);
    border: 2px solid var(--second-color);
    border-radius: 8px;
    color: white;
    font-family: "VazirBold", sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 99, 255, 0.4);
}

.footer-bottom {
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.copyright {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: 24px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.badge svg {
    color: var(--third-color);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }

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

    .newsletter-content {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .newsletter-form {
        max-width: 100%;
    }

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

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

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

    .footer-badges {
        flex-direction: column;
        align-items: center;
    }
}
