:root {
    --primary-bg: #0D1117;
    --card-bg: #161B22;
    --accent-blue: #1F6FEB;
    --text-primary: #C9D1D9; /* Added for consistency if needed */
    --text-secondary: #8B949E;
    --text-headlines: #F0F6FC;
    --font-body: 'Manrope', sans-serif;
    --font-headings: 'Outfit', sans-serif;
    --border-color-darker: #21262D;
    --border-radius: 8px; /* Added for consistency */
}

footer {
    background-color: var(--primary-bg);
    color: var(--text-secondary);
    font-family: var(--font-body);
    padding: 50px 3vw 30px; /* Increased top padding, adjusted bottom */
    border-top: 1px solid var(--border-color-darker);
}

.footer-content {
    max-width: 1200px; /* Max width for content */
    margin: 0 auto; /* Center content */
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between main section and copyright */
}

.footer-main {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for responsive */
    justify-content: space-between; /* Distribute space */
    gap: 30px; /* Gap between brand column and links columns */
}

.footer-brand-column {
    min-width: 180px; /* Minimum width before wrapping */
}

.footer-logo img {
    height: 40px; /* Slightly smaller logo */
    width: auto;
    margin-bottom: 15px; /* Space below logo */
}

.footer-links-columns {
    flex: 2 1 600px; /* Takes more space, allows for multiple columns */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */
    gap: 30px; /* Gap between link columns */
}

.footer-column h4 {
    font-family: var(--font-headings);
    font-size: 1rem; /* Adjusted size */
    font-weight: 600; /* Slightly less bold than typical headlines */
    color: var(--text-headlines);
    margin-bottom: 15px; /* Increased space below heading */
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 10px; /* Increased space between links */
    font-size: 0.9rem;
    font-weight: 400; /* Normal weight for links */
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-blue);
}

.footer-column a i { /* Styling for icons within links */
    margin-right: 8px;
    font-size: 1em; /* Match link font size */
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 20px;
    border-top: 1px solid var(--border-color-darker); /* Separator line for copyright */
    margin-top: 20px; /* Ensure space if footer-main is short */
}

.footer-copyright p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column; /* Stack brand and links columns */
        align-items: center; /* Center items when stacked */
        text-align: center;
        gap: 15px; /* Less space between stacked sections */
    }

    .footer-brand-column {
        margin-bottom: 0; /* Remove extra gap below logo */
    }
    
    .footer-logo img {
        margin-left: auto; /* Center logo if text-align center on parent not enough */
        margin-right: auto;
    }

    .footer-links-columns {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust for potentially wider columns on tablet */
        width: 100%; /* Take full width when stacked */
        text-align: center; /* Center text in link columns */
    }
    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center items within each column */
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-links-columns {
        grid-template-columns: 1fr; /* Single column for links on small mobile */
        gap: 20px;
    }
    .footer-column h4 {
        margin-bottom: 10px;
    }
    .footer-column a {
        margin-bottom: 8px;
    }
    footer {
        padding: 40px 5vw 20px; /* Adjust padding for mobile */
    }
}