/* ==========================================================================
   Main Footer Section
   ========================================================================== */

.site-footer {
    position: relative;
    background-color: #070d1a;
    padding: 110px 0 0;
    overflow: hidden;
    z-index: 1;
}

.site-footer__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

/* Custom Grid for Footer (as fallback for lack of global grid) */
.site-footer .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.site-footer .row > div {
    padding-left: 15px;
    padding-right: 15px;
}

/* Default Desktop: 4 columns */
.site-footer .col-xl-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.site-footer .col-xl-2 { flex: 0 0 16.6666%; max-width: 16.6666%; }
.site-footer .col-xl-3 { flex: 0 0 25%; max-width: 25%; }

@media (max-width: 1199px) {
    /* Large Tablet: 2x2 grid */
    .site-footer .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    /* Mobile: 1 column */
    .site-footer .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Decorative Shapes */
.footer-shape-1 {
    position: absolute;
    top: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(110, 84, 243, 0.25) 0%, transparent 80%);
    transform: rotate(59deg);
    z-index: -1;
    animation: img-bounce-two 15s infinite linear;
}

.footer-shape-2 {
    position: absolute;
    bottom: 30px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: linear-gradient(225deg, rgba(110, 84, 243, 0.15) 0%, transparent 80%);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    z-index: -1;
    animation: float-bob-y 7s infinite ease-in-out;
}

/* Widget Styles */
.footer-widget {
    margin-bottom: 40px;
}

.footer-widget__logo {
    margin-bottom: 30px;
}

.footer-widget__title {
    font-family: 'Barlow', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 35px;
    position: relative;
    text-transform: capitalize;
}

.footer-widget__text {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.875; /* Closer to 30px if 16px base */
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    margin-bottom: 30px;
    max-width: 320px;
}

/* Social Icons */
.footer-widget__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-widget__social a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 14px;
    transition: all 400ms ease;
    overflow: hidden;
    z-index: 1;
}

.footer-widget__social a:before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: "";
    background-color: #6e54f3;
    transform: scale(0);
    transition: all 400ms ease;
    z-index: -1;
}

.footer-widget__social a:hover {
    color: #ffffff;
    border-color: #6e54f3;
}

.footer-widget__social a:hover:before {
    transform: scale(1);
}

/* Lists */
.footer-widget__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget__links li {
    margin-bottom: 12px;
}

.footer-widget__links li a {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 300ms ease;
    display: inline-block;
    text-decoration: none;
}

.footer-widget__links li a:hover {
    color: #6e54f3;
    padding-left: 5px;
}

/* Contact Info */
.footer-widget__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget__contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-widget__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    transition: all 400ms ease;
}

.footer-widget__contact li:hover .footer-widget__contact-icon {
    background-color: #6e54f3;
    border-color: #6e54f3;
}

.footer-widget__contact-text {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-widget__contact-text a {
    color: inherit;
    transition: all 300ms ease;
    text-decoration: none;
}

.footer-widget__contact-text a:hover {
    color: #6e54f3;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    margin-top: 70px;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom__copyright {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom__copyright a {
    color: #6e54f3;
    text-decoration: none;
}

.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-bottom__links a {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 300ms ease;
    text-decoration: none;
}

.footer-bottom__links a:hover {
    color: #6e54f3;
}

/* Animations */
@keyframes img-bounce-two {
    0% { transform: rotate(59deg) translateY(0); }
    50% { transform: rotate(59deg) translateY(-30px); }
    100% { transform: rotate(59deg) translateY(0); }
}

@keyframes float-bob-y {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Responsive Overrides */
@media (max-width: 1199px) {
    .site-footer {
        padding: 90px 0 0;
    }
}

@media (max-width: 991px) {
    /* Better spacing for tablet - 2 columns */
    .footer-widget {
        margin-bottom: 50px;
    }
    .footer-bottom__inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 70px 0 0;
    }
    .footer-widget {
        text-align: left;
    }
    .footer-widget__text {
        max-width: 100%;
    }
    .footer-bottom__links {
        gap: 15px;
        justify-content: center;
        width: 100%;
    }
    .footer-bottom__copyright {
        width: 100%;
    }
}
