footer {
    background-color: var(--secondary);
    padding: 30px 40px 20px 40px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    font-family: inherit;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Updated for 4 columns */
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-section h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

.footer-section p {
    color: white;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-section a:hover {
    color: rgb(247, 247, 247);
    opacity: 1;
    transform: translateX(5px);
}

.footer-section .socials {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-section .socials a {
    opacity: 1;
}

.footer-section .socials img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Make icons white if they aren't already */
}

.footer-section .socials a:hover {
    transform: none; /* Reset the translate from generic link hover */
}

.footer-section .socials a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    color: white;
    opacity: 0.6;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-section.about {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    footer {
        padding: 40px 20px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section.about {
        grid-column: span 1;
    }

    .footer-section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section a:hover {
        transform: translateX(0) scale(1.05);
    }
}