﻿.site-footer {
    position: relative;
    background: linear-gradient(135deg, #0a1d37 0%, #0f3460 30%, #16213e 70%, #1e5f9e 100%);
    color: white;
    overflow: hidden;
    padding: 9rem 0 4rem;
    margin-top: 8rem;
    isolation: isolate;
}

.stars-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(100,220,255,1);
    opacity: 0;
    animation: twinkle-move 14s infinite ease-in-out;
}


    .star:nth-child(1) {
        width: 2px;
        height: 2px;
        top: 12%;
        left: 10%;
        animation-delay: 0s;
        animation-duration: 16s;
    }

    .star:nth-child(2) {
        width: 4px;
        height: 4px;
        top: 28%;
        left: 72%;
        animation-delay: 2s;
        animation-duration: 20s;
    }

    .star:nth-child(3) {
        width: 2px;
        height: 2px;
        top: 55%;
        left: 18%;
        animation-delay: 4s;
        animation-duration: 18s;
    }

    .star:nth-child(4) {
        width: 3px;
        height: 3px;
        top: 68%;
        left: 88%;
        animation-delay: 1s;
        animation-duration: 22s;
    }

    .star:nth-child(5) {
        width: 5px;
        height: 5px;
        top: 22%;
        left: 48%;
        animation-delay: 6s;
        animation-duration: 24s;
    }

    .star:nth-child(6) {
        width: 2px;
        height: 2px;
        top: 82%;
        left: 22%;
        animation-delay: 3s;
        animation-duration: 17s;
    }

    .star:nth-child(7) {
        width: 3px;
        height: 3px;
        top: 42%;
        left: 82%;
        animation-delay: 7s;
        animation-duration: 21s;
    }

    .star:nth-child(8) {
        width: 4px;
        height: 4px;
        top: 15%;
        left: 58%;
        animation-delay: 5s;
        animation-duration: 19s;
    }

    .star:nth-child(9) {
        width: 2px;
        height: 2px;
        top: 65%;
        left: 32%;
        animation-delay: 8s;
        animation-duration: 23s;
    }

    .star:nth-child(10) {
        width: 3px;
        height: 3px;
        top: 50%;
        left: 78%;
        animation-delay: 2.5s;
        animation-duration: 20s;
    }

    .star:nth-child(11) {
        width: 4px;
        height: 4px;
        top: 32%;
        left: 26%;
        animation-delay: 9s;
        animation-duration: 25s;
    }

    .star:nth-child(12) {
        width: 2px;
        height: 2px;
        top: 76%;
        left: 64%;
        animation-delay: 1.5s;
        animation-duration: 18s;
    }

    .star:nth-child(13) {
        width: 3px;
        height: 3px;
        top: 38%;
        left: 90%;
        animation-delay: 4.5s;
        animation-duration: 22s;
    }

    .star:nth-child(14) {
        width: 4px;
        height: 4px;
        top: 60%;
        left: 14%;
        animation-delay: 7.5s;
        animation-duration: 21s;
    }

    .star:nth-child(15) {
        width: 3px;
        height: 3px;
        top: 48%;
        left: 54%;
        animation-delay: 0.5s;
        animation-duration: 19s;
    }

    .star:nth-child(16) {
        width: 2px;
        height: 2px;
        top: 8%;
        left: 42%;
        animation-delay: 3.5s;
        animation-duration: 20s;
    }

    .star:nth-child(17) {
        width: 3px;
        height: 3px;
        top: 88%;
        left: 78%;
        animation-delay: 6.5s;
        animation-duration: 23s;
    }

    .star:nth-child(18) {
        width: 2px;
        height: 2px;
        top: 35%;
        left: 5%;
        animation-delay: 10s;
        animation-duration: 18s;
    }

    .star:nth-child(19) {
        width: 4px;
        height: 4px;
        top: 70%;
        left: 45%;
        animation-delay: 4s;
        animation-duration: 26s;
    }

    .star:nth-child(20) {
        width: 3px;
        height: 3px;
        top: 18%;
        left: 88%;
        animation-delay: 8s;
        animation-duration: 21s;
    }

@keyframes twinkle-move {
    0%,100% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(.5);
    }

    15% {
        opacity: .9;
        transform: translateY(-30px) translateX(-15px) scale(1.2);
    }

    50% {
        opacity: .4;
        transform: translateY(-90px) translateX(30px) scale(1.4);
    }

    85% {
        opacity: .95;
        transform: translateY(-160px) translateX(-20px) scale(.9);
    }

    100% {
        opacity: 0;
        transform: translateY(-200px) translateX(40px) scale(.5);
    }
}

.z-top {
    position: relative;
    z-index: 5;
}

/* عنوان‌ها */
.footer-title {
    font-size: 1.65rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 2.8rem;
}

   /* .footer-title::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 6px;
        background: linear-gradient(90deg, #00eaff, #1a5fb4, #00eaff);
        border-radius: 50px;
        box-shadow: 0 0 30px #00eaff;
    }*/

/* لوگو */
.footer-logo {
    height: 70px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.5));
    transition: all .6s cubic-bezier(.34,1.56,.64,1);
}

.glow-hover:hover .footer-logo {
    transform: translateY(-12px) scale(1.18) rotate(4deg);
    filter: drop-shadow(0 25px 50px rgba(26,95,180,.9));
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.footer-link-card {
    background: rgba(10, 29, 55, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.2px solid rgba(0, 234, 255, 0.25);
    color: #e0f4ff;
    padding: 1rem 0.8rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 234, 255, 0.15);
}

    .footer-link-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -150%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 234, 255, 0.3), transparent);
        transition: 0.8s;
    }

    .footer-link-card:hover::before {
        left: 150%;
    }

    .footer-link-card::after {
        content: '';
        position: absolute;
        inset: 4px;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(0,234,255,0.1), transparent 60%);
        opacity: 0;
        transition: opacity 0.4s;
    }

    .footer-link-card:hover::after {
        opacity: 1;
    }

    .footer-link-card:hover {
        transform: translateY(-10px) scale(1.08);
        background: rgba(26, 95, 180, 0.7);
        color: #ffffff;
        border-color: #00eaff;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 234, 255, 0.6);
        text-shadow: 0 0 12px rgba(0, 234, 255, 0.8);
    }

.social-floating {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
    text-decoration:none;
}

    .social-icon:hover {
        transform: translateY(-12px) scale(1.22);
        box-shadow: 0 18px 35px rgba(0,0,0,.5);
        border-color: transparent;
    }

    .social-icon.telegram {
        color: #229ed9;
    }

    .social-icon.instagram {
        color: #e4405f;
    }

    .social-icon.whatsapp {
        color: #25d366;
    }

    .social-icon.twitter {
        color: #1da1f2;
    }

.footer-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1a5fb4, transparent);
    opacity: .6;
    margin: 4.5rem 0;
}

@media (max-width: 992px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .site-footer {
        padding: 6rem 0 3rem;
    }

    .footer-title {
        font-size: 1.45rem;
    }

        .footer-title::after {
            width: 80px;
            height: 5px;
        }
}
