
/* =========================================
   FIFTH SECTION - FOOTER
   ========================================= */

/* Main Background */
.fifth .bg {
    background: #020617 !important; /* Deep dark blue/black */
    width: 100vw;
    min-height: 50vh; /* Changed from fixed 100vh for better flow */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center;
    padding: 6rem 0; /* Added spacing to push content down */
    overflow: hidden;
}

.footer-container {
    width: 100%;
    max-width: 1400px; /* Increased max-width */
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    gap: 4rem; /* Increased gap for cleaner look */
}

/* Footer Top Section */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
}

/* --- Brand Section --- */
.footer-brand {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 350px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* --- Links Section --- */
.footer-links-group {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

/* Footer Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    margin-top: auto; /* Push to bottom if flex container has height */
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* --- Responsive --- */

/* Tablet Constraint */
@media (max-width: 1024px) {
    .fifth .bg {
        height: auto;
        min-height: auto; /* Use auto height for better responsiveness */
        padding-top: 4rem;
        padding-bottom: 4rem;
        align-items: center;
        overflow-y: visible !important;
        display: flex;
    }

    .footer-container {
        height: auto;
        padding: 2rem;
        gap: 3rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links-group {
        width: 100%;
        justify-content: space-between;
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .footer-top {
        align-items: center;
        text-align: center;
    }

    .footer-links-group {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        width: 100%;
    }

    .footer-col {
        align-items: center;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
        min-width: auto;
        width: 100%;
    }

    .footer-brand p {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .footer-socials {
        justify-content: center;
    }

    .footer-brand h2{
        text-align: center;
    }
}
