footer {
    background-color: var(--footer-bg-light);
    color: var(--footer-text-light);
    padding: 2rem 5%; /* Adjusted padding to make it less tall */
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2rem;
}

html.dark-mode footer {
    background-color: var(--footer-bg-dark);
    color: var(--footer-text-dark);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    margin-right: 0.5rem;
    filter: invert(0); /* Default for light mode footer */
}

html.dark-mode .footer-logo img {
    filter: invert(1);
}

.footer-logo span {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--logo-color-light);
}

html.dark-mode .footer-logo span {
    color: var(--logo-color-dark);
}

.footer-links, .footer-socials {
    margin-bottom: 1.5rem;
}

.footer-links h3, .footer-socials h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

html.dark-mode .footer-links h3, html.dark-mode .footer-socials h3 {
    color: var(--text-color-dark);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--footer-text-light);
    transition: color 0.3s ease;
}

html.dark-mode .footer-links ul li a {
    color: var(--footer-text-dark);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--footer-text-light);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

html.dark-mode .social-icons a {
    color: var(--footer-text-dark);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.social-icons svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--footer-text-light);
}

html.dark-mode .footer-copy {
    color: var(--footer-text-dark);
}

@media (max-width: 992px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .footer-logo, .footer-links, .footer-socials {
        margin-bottom: 2rem;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-logo span {
        font-size: 1.8rem;
    }
    .footer-logo img {
        height: 40px;
    }
    .footer-links {
        width: 100%;
        text-align: center;
    }
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .footer-links ul li {
        margin-bottom: 0.5rem;
    }
    .footer-links h3, .footer-socials h3 {
        font-size: 1.1rem;
    }
    .social-icons a {
        font-size: 1.3rem;
    }
}