/* Modern Footer Styles - Optimized */
.modern-footer {
    background: #211835;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

/* Footer Top Header (مشابه top-header هدر) */
.footer-top-header {
    color: white;
    text-align: end;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgb(42 31 65 / 83%), rgba(76, 29, 149, 0.5), rgb(172 104 172));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.footer-contact-info {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 20px;
}

/* خطوط نورونی */
.footer-top-header .neural-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.footer-top-header .neural-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    opacity: 0;
}

.footer-top-header .line-1 { top: 25%; width: 40%; }
.footer-top-header .line-2 { top: 50%; width: 60%; left: 20%; }
.footer-top-header .line-3 { top: 75%; width: 30%; left: 60%; }
.footer-top-header .line-4 { top: 90%; width: 50%; left: 10%; }

/* نقاط متحرک */
.footer-top-header .neural-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.footer-top-header .neural-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    opacity: 0;
}

.footer-top-header .dot-1 { top: 20%; left: 10%; }
.footer-top-header .dot-2 { top: 40%; left: 80%; }
.footer-top-header .dot-3 { top: 60%; left: 30%; }
.footer-top-header .dot-4 { top: 80%; left: 70%; }

/* Newsletter Section */
.footer-newsletter {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(33, 24, 53, 0.9), rgba(55, 48, 163, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.newsletter-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.newsletter-text p {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    flex: 0 0 auto;
    min-width: 300px;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ba98f3;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    border-radius: 25px;
    direction: rtl;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    background: linear-gradient(135deg, #ba98f3, #667eea);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.newsletter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(186, 152, 243, 0.4);
}

/* Main Footer Content */
.footer-main {
    padding: 60px 0 40px;
    background: radial-gradient(#21182096, transparent);
    border-radius: 50px;
    text-align: start;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: 20px;
    align-items: start;
}

.footer-column {
    position: relative;
}

/* Company Info */
.company-info {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 90px;
    width: auto;
    /* filter: brightness(0) invert(1); */
}

.company-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0 0 25px 0;
}

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

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

.social-link:hover {
    background: #ba98f3;
    transform: translateY(-2px);
    border-color: #ba98f3;
}

/* Footer Titles */
.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
    position: relative;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 2px;
    background: #ba98f3;
    border-radius: 3px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
}

.footer-links a:hover {
    color: #ba98f3;
    transform: translateY(-5px);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-item svg {
    color: #ba98f3;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

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

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-trust-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-trust-badges a {
    display: inline-flex;
    line-height: 0;
}

.footer-trust-badges img {
    height: 72px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
}

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

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

.footer-bottom-links a:hover {
    color: #ba98f3;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, auto);
    }

    .footer-logo img{
      height: 40px;
    }

    /* .company-info {
        grid-column: 1 / -1;
        max-width: 100%;
        margin-bottom: 10px;
    } */
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .footer-newsletter {
        padding: 40px 0;
    }

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

    .newsletter-text h3 {
        font-size: 1.5rem;
    }

    .newsletter-form {
        min-width: 280px;
        width: 100%;
        max-width: 400px;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        gap: 25px;
    }

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

@media (max-width: 480px) {
    /* .footer-top-header {
        display: none;
    } */

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

    .footer-column {
        text-align: center;
    }

    .footer-title::after{
      width: 100%;
    }

    .contact-info {
        align-items: center;
    }

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

/* RTL Support */
/* [dir="rtl"] .footer-links a:hover {
    transform: translateX(5px);
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .newsletter-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-bottom-content {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    [dir="rtl"] .newsletter-content {
        flex-direction: column;
    }

    [dir="rtl"] .footer-bottom-content {
        flex-direction: column;
    } 
}*/