/* Prevent horizontal scroll */
html, body {
    margin: 0 !important;   
    padding: 0  !important;
    width: 100% !important;
    font-size: 17px !important;
    overflow-x: hidden;
}

/* -------- Wrapper Handling -------- */
.box-layout {
    position: relative !important;
    min-height: 100vh !important;
}

/* All page sections above footer */
section {
    position: relative;
    z-index: 10;
}

/* ============================================
   DESKTOP FOOTER BEHAVIOR (Fixed at bottom)
   ============================================ */
@media (min-width: 992px) {

    /* Spacer to push page content up */
    #footer-spacer {
        height: 395px; /* adjust depending footer height */
        width: 100%;
    }

    #footer footer .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

    /* Footer fixed at bottom */
    #footer footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1 !important;

        /* Initially hidden */
        opacity: 0;
        display: none !important;

        transition: opacity .2s ease-in-out;
    }
    #footer footer .row:last-of-type {
    margin-bottom: 0 !important;
}

#footer footer {
    padding-bottom: 0px !important;  /* reduce bottom padding for perfect height */
}

    /* Reveal when JS adds .show-footer */
    #footer footer.show-footer {
        display: block !important;
        opacity: 1 !important;
    }
}

/* ============================================
   MOBILE FOOTER (Normal scroll)
   ============================================ */
@media (max-width: 991px) {

    #footer footer {
        position: relative !important;
        width: 100% !important;
        display: block !important;
        opacity: 1 !important;
    }

    #footer-spacer {
        display: none !important;
        height: 0 !important;
    }
}

/* ============================================
   FOOTER GENERAL STYLES (your dark gradient footer)
   ============================================ */

#footer footer {
    background: linear-gradient(
    180deg,
    #1A1A1A 0%,
    #0F2624 45%,
    #094039 100%
) !important;
    color: #e6eef6 !important;
    font-family: 'Poppins', Inter, system-ui !important;
}

/* Paragraphs */
#footer footer p {
    color: rgba(230,238,246,0.9) !important;
}

/* Links */
#footer footer a {
    color: rgba(230,238,246,0.85) !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

#footer footer a:hover {
    opacity: 1 !important;
}

/* Footer Columns */
#footer footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#footer footer ul li {
    margin-bottom: 8px !important;
}

/* Social Icons */
#footer footer a[aria-label] {
    transition: transform .2s ease !important;
}

#footer footer a[aria-label]:hover {
    transform: translateY(-3px) !important;
}

/* ============================================
   RESPONSIVE – MOBILE footer structure
   ============================================ */
@media (max-width: 768px) {

    /* Stack columns */
    #footer footer .row > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 26px !important;
    }

    /* Paragraph width adjustment */
    #footer footer p {
        width: 95% !important;
        line-height: 1.45 !important;
        font-size: 15px !important;
    }

    /* AWS Partner Logo */
    .footer-partner-icon img {
        height: 60px !important;
        width: auto !important;
    }
}

/* ============================================
   AWS PARTNER ICON
   ============================================ */
 /* AWS Column Styling */
        .footer-aws {
            display:flex;
            align-items:flex-start;
            justify-content:center;
            padding-top:10px;
        }

        .footer-aws .aws-img {
            height:120px;
            width:auto;
            border-radius:8px;
            padding:8px;
            background:rgba(255,255,255,0.03);
            box-shadow:0px 6px 14px rgba(0,0,0,0.4);
            transition:transform 0.2s ease;
        }

        .footer-aws .aws-img:hover {
            transform:translateY(-4px) scale(1.02);
        }

        @media (max-width:768px) {
            .footer-aws {
                justify-content:flex-start;
                margin-left:12px;
            }

            .footer-aws .aws-img {
                height:65px;
            }
        }