/* Footer */
.footer {
    background: #0D1117; /* A modern, dark background color */
    color: #C9D1D9; /* A light grey for text that's easy on the eyes */
    padding-top: 60px;
    font-size: 0.95rem;
    border-top: 4px solid;
    /* Creates a gradient top border that matches your site's theme */
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #4ECDC4 100%) 1;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column {
    flex: 1; /* Allows columns to grow and shrink evenly */
    min-width: 220px; /* Ensures columns don't get too narrow on medium screens */
}

/* Column 1: About Section */
.footer-about .footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-about p {
    line-height: 1.7;
    color: #8B949E; /* A slightly dimmer grey for descriptive text */
}

/* General Styles for All Columns */
.footer-column h4 {
    font-size: 1.1rem;
    color: #F0F6FC; /* A brighter white for headings */
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

/* Creates a decorative underline for headings */
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #8B949E;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #58A6FF; /* A vibrant blue for link hover effects */
    transform: translateX(5px);
}

/* Column 4: Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #8B949E;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #58A6FF;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}


/* Bottom Bar with Copyright */
.footer-bottom {
    background: #010409; /* An even darker background for separation */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #30363D; /* A subtle separator line */
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #8B949E;
}

/* Responsive styles for tablets */
@media (max-width: 1024px) {
    .footer-main {
        gap: 30px;
    }
    .footer-column {
        /* Creates a 2-column layout */
        flex-basis: calc(50% - 20px);
        min-width: auto;
    }
}

/*
 * Developer Note: The following section has been updated.
 * For mobile view, the layout is now more compact.
 * The 'About' and 'Follow Us' sections are full-width, while 'Quick Links' and 'Legal'
 * are arranged in a two-column grid to save vertical space.
*/
@media (max-width: 768px) {
    .footer {
        padding-top: 40px; /* Reduced top padding */
    }
    
    .footer-main {
        flex-direction: row; /* Allow wrapping */
        justify-content: center;
        text-align: center;
        gap: 20px 0; /* Vertical gap, no horizontal gap */
    }

    .footer-column h4 {
        margin-bottom: 15px; /* Reduced space below headings */
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column ul li {
        margin-bottom: 10px; /* Tighter link spacing */
    }

    /* Set specific column widths for mobile */
    .footer-about,
    .footer-social {
        flex-basis: 100%; /* Full width for these sections */
    }
    
    .footer-links,
    .footer-legal {
        flex-basis: 50%; /* Half width for link lists */
        padding: 0 10px; /* Add padding to prevent text touching */
    }

    .footer-about .footer-logo,
    .social-icons {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}