.cosmic-footer {
    position: relative;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 50px 0 30px;
    color: #fff;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Moving Stars Background */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.stars, .stars-2, .stars-3 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(2px 2px at 20px 30px, #fff, transparent),
            radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
            radial-gradient(1px 1px at 90px 40px, #fff, transparent),
            radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
            radial-gradient(2px 2px at 160px 30px, #ddd, transparent),
            radial-gradient(1px 1px at 200px 50px, rgba(255,255,255,0.7), transparent),
            radial-gradient(2px 2px at 250px 90px, #fff, transparent),
            radial-gradient(1px 1px at 300px 20px, rgba(255,255,255,0.9), transparent);
    background-repeat: repeat;
    background-size: 350px 200px;
}

.stars {
    animation: moveStars 80s linear infinite;
    opacity: 1;
}

.stars-2 {
    animation: moveStars 120s linear infinite reverse;
    opacity: 0.7;
    background-size: 400px 250px;
}

.stars-3 {
    animation: moveStars 200s linear infinite;
    opacity: 0.4;
    background-size: 500px 300px;
}

@keyframes moveStars {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-350px) translateY(-200px); }
}

/* Footer Content */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
    padding: 25px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand {
    flex-shrink: 0;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-logo .highlight {
    color: transparent;
    background: linear-gradient(90deg, #56a5fa, #d16be5);
    -webkit-background-clip: text;
    background-clip: text;
}

.footer-logo:hover {
    color: #fff;
    transform: translateY(-3px);
    text-shadow: 0 5px 15px rgba(86, 165, 250, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin: 0 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.footer-content, .footer-bottom {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cosmic-footer {
        padding: 40px 0 25px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px 25px;
        margin-bottom: 30px;
    }

    .footer-logo {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 15px 20px;
        margin: 0 10px 25px 10px;
    }

    .footer-bottom {
        margin: 0 10px;
        padding: 15px 0;
    }

    .copyright {
        font-size: 0.85rem;
    }

    .footer-logo {
        font-size: 1.6rem;
    }
}

.stars, .stars-2, .stars-3 {
    will-change: transform;
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .stars, .stars-2, .stars-3 {
        animation-duration: 300s;
    }

    .footer-logo {
        transition: none;
    }
}