/* ========================================================================== 
    فوتر
   ========================================================================== */
   .footer-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary)); /* گرادیان با پالت رنگی سایت */
    color: var(--text-light); /* رنگ متن روشن‌تر */
    padding: 50px 20px;
    text-align: center;
    border-top: 5px solid var(--accent); /* خط تاکیدی با رنگ اصلی سایت */
    position: relative;
    overflow: hidden;
    z-index: 1; /* اطمینان از اینکه بخش اصلی بالاتر از عناصر دیگر است */
}

.footer-section::before,
.footer-section::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0; /* قرار دادن در لایه پایین‌تر */
    animation: float 6s ease-in-out infinite;
    pointer-events: none; /* جلوگیری از مسدود کردن کلیک */
}

.footer-section::before {
    top: -50px;
    left: -50px;
}

.footer-section::after {
    bottom: -50px;
    right: -50px;
    animation: float-reverse 8s ease-in-out infinite;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent); /* رنگ تاکیدی برای عناوین */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* سایه برای خوانایی بهتر */
}

.footer-section p {
    color: var(--text-muted); /* رنگ متن روشن‌تر */
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* سایه برای متن */
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light); /* رنگ لینک‌ها */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent); /* رنگ لینک‌ها هنگام هاور */
    transform: scale(1.1);
}

.newsletter-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.newsletter-form input {
    width: 70%;
    max-width: 300px;
    padding: 10px;
    border: none;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.newsletter-form button {
    padding: 10px 20px;
    border: none;
    background-color: var(--accent);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 14px;
}

.newsletter-form button:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 10; /* اطمینان از اینکه لینک‌ها بالاتر از انیمیشن‌ها هستند */
}

.social-icons a {
    color: var(--text-light);
    font-size: 20px;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer; /* اطمینان از کلیک‌پذیری */
    touch-action: manipulation; /* رفع مشکلات لمس در موبایل */
    z-index: 3; /* اطمینان از بالاتر بودن لایه */
    padding: 5px; /* افزایش فضای کلیک‌پذیری */
}

.social-icons a:hover {
    background: var(--accent);
    transform: scale(1.2);
    color: var(--text-light);
}

.social-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-icon-img:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* انیمیشن برای نمایش فوتر */
.footer-section {
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* انیمیشن‌های شناور */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}

/* ریسپانسیو برای دستگاه‌های کوچک */
@media (max-width: 768px) {
    .footer-section .row {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .social-icon-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .social-icon-img {
        width: 35px;
        height: 35px;
    }
}