.footer {
    width: 100%;
    background: var(--topnav);
    display: flex;
    flex-direction: column;
    justify-items: center;
    margin: 0;
}

.socials-container {
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: var(--font-family);
    margin-block: 1.5rem;
}

.social-card {
    width: 15%;
    height: 3rem;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.055);
}

.social-card:active {
    transform: scale(0.9);
}

/* icons */
.socialSvg {
    width: 20px;
    height: 20px;
    background-color: var(--fg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transition: background-color 0.3s;
}

/* hover effects */
.instagram:hover {
    background-color: #d62976;
}

.x:hover {
    background-color: #000000;
}

.facebook:hover {
    background-color: #1877F2;
}

.linkedin:hover {
    background-color: #0072b1;
}

.github:hover {
    background-color: #6cc644;
}

.social-card:hover .socialSvg {
    background-color: var(--fg-dark);
    animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.back-to-top {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    color: var(--fg);
    transition: opacity .3s;
}

.back-to-top:hover {
    opacity: .6;
}

.footer-text {
    background: var(--muted);
    color: var(--fg);
    text-align: center;
    font-family: var(--font-family);
    padding-block: 2rem;
}

.footer-nav {
    text-decoration: none;
    color: var(--fg);
}

.footer-nav a {
    text-decoration: none;
    color: var(--fg);
    font-weight: 500;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--acc, var(--fg));
}

@media (max-width: 900px) {
    .socials-container {
        gap: 0.6rem;
        padding-inline: 0.75rem;
    }

    .social-card {
        width: 3rem;
        flex: 0 0 3rem;
        height: 3rem;
    }

    .footer-text {
        padding: 1.25rem 1rem;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
    }
}

@media (max-width: 768px) {
    .socials-container {
        gap: 15px;
        margin-block: 1.25rem;
    }
    
    .social-card {
        width: 18%;
        height: 2.75rem;
    }
    
    .socialSvg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .socials-container {
        gap: 12px;
        margin-block: 1rem;
    }
    
    .social-card {
        width: 22%;
        height: 2.5rem;
        border-radius: 6px;
    }
    
    .socialSvg {
        width: 16px;
        height: 16px;
    }
    
    .back-to-top {
        font-size: 0.9rem;
    }
}