/* ===========================
        PAGE LAYOUT & STICKY FOOTER
=========================== */

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    padding-bottom: 0 !important;
    min-height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ===========================
        FOOTER
=========================== */

.footer {
    background: #0f172a;
    color: #ffffff;
    padding: 36px 20px;
    margin-top: auto;
    margin-bottom: 0 !important;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Outer Bordered Box */
.footer-box {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 26px;
    box-sizing: border-box;
}

/* Top Centered Header */
.footer-header {
    text-align: center;
}

.footer-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-title a:hover {
    color: #38bdf8;
}

/* Middle Columns (Left & Right) */
.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding: 4px 8px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-left {
    text-align: left;
    align-items: flex-start;
}

.footer-col-right {
    text-align: left;
    align-items: flex-start;
}

/* Column Links & Text */
.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.footer-tagline {
    margin: 0;
    color: #94a3b8;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.footer-heading {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.4px;
}

.footer-social-link {
    gap: 8px;
}

.footer-social-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.footer-social-link:hover .footer-social-icon {
    transform: scale(1.15);
}

/* Bottom Centered Meta */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-copy {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-dev {
    margin: 0;
    font-size: 0.84rem;
    color: #64748b;
}

/* ===========================
    MOBILE BOTTOM NAVIGATION & RESPONSIVENESS
=========================== */

.mobile-bottom-nav,
.mobile-home-nav {
    display: none;
}

@media (max-width: 680px) {
    body {
        padding-bottom: 0 !important;
    }

    .footer {
        padding: 22px 14px;
        margin-bottom: 0 !important;
    }

    .footer-box {
        padding: 22px 18px;
        border-radius: 10px;
        gap: 20px;
    }

    .footer-title {
        font-size: 1.25rem;
        letter-spacing: 1.5px;
    }

    .footer-middle {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 0;
    }

    .footer-col-left,
    .footer-col-right {
        align-items: center;
        text-align: center;
    }

    .footer-link:hover {
        transform: translateY(-2px);
    }

    .mobile-bottom-nav,
    .mobile-home-nav {
        display: none;
    }
}

