:root {
    --smf-blue: #1749A8;
    --smf-green: #079447;
    --smf-orange: #F47B13;
    --smf-heading: #182235;
    --smf-text: #596579;
    --smf-white: #FFFFFF;
    --smf-border: #DDE6F0;
    --smf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: clip;
}

.smf-footer {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    /* Richer, multi-stop premium background mesh */
    background: linear-gradient(135deg, #F8FBFF 0%, #FFFFFF 48%, #F2FAF6 100%);
    border-top: 1px solid var(--smf-border);
    isolation: isolate;
}

/* Enhanced Ambient Glow Blobs with blur for high-end feel */
.smf-footer::before,
.smf-footer::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.7;
    transition: transform 1s var(--smf-ease);
}

.smf-footer::before {
    top: -260px;
    left: -220px;
    background: rgba(238, 244, 255, 0.9);
}

.smf-footer::after {
    right: -240px;
    bottom: 0;
    background: rgba(237, 249, 242, 0.9);
}

.smf-footer-container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), 1280px);
    margin: 0 auto;
}

.smf-footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(160px, 0.75fr) minmax(180px, 0.85fr) minmax(250px, 1fr);
    gap: 58px;
    padding: 82px 0 68px;
}

.smf-footer-brand,
.smf-footer-column {
    min-width: 0;
}

.smf-footer-brand {
    max-width: 390px;
}

.smf-footer-logo {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 25px;
    transition: transform 0.4s var(--smf-ease);
}

.smf-footer-logo:hover {
    transform: scale(1.02);
}

.smf-footer-logo img {
    display: block;
    width: auto;
    height: 78px;
    max-width: 220px;
    object-fit: contain;
}

.smf-footer-description {
    margin: 0;
    color: var(--smf-text);
    font-size: 17px;
    line-height: 1.85;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

/* Premium Social Icons Animation */
.smf-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.smf-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid var(--smf-border);
    border-radius: 50%;
    color: var(--smf-blue);
    background: var(--smf-white);
    box-shadow: 0 8px 22px rgba(227, 234, 243, 0.7);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--smf-ease), color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Internal smooth liquid scale effect on hover */
.smf-footer-social a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--smf-blue), #12387e);
    border-radius: 50%;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.4s var(--smf-ease);
}

.smf-footer-social a:hover {
    color: var(--smf-white);
    border-color: var(--smf-blue);
    box-shadow: 0 12px 28px rgba(23, 73, 168, 0.25);
    transform: translateY(-5px) scale(1.05);
}

.smf-footer-social a:hover::after {
    transform: scale(1);
}

.smf-footer-social i {
    font-size: 22px;
    transition: transform 0.3s var(--smf-ease);
}

.smf-footer-social a:hover i {
    transform: scale(1.1);
}

.smf-footer-heading {
    position: relative;
    display: inline-block;
    margin: 3px 0 28px;
    padding-bottom: 13px;
    color: var(--smf-heading);
    font-size: 17px;
    line-height: 1.4;
}

.smf-footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--smf-blue), var(--smf-green));
    transition: width 0.4s var(--smf-ease);
}

.smf-footer-heading::before {
    content: "";
    position: absolute;
    left: 49px;
    bottom: 0;
    width: 7px;
    height: 3px;
    border-radius: 50%;
    background: var(--smf-orange);
    transition: transform 0.4s var(--smf-ease);
}

/* Interactive Heading Glow on Column Hover */
.smf-footer-column:hover .smf-footer-heading::after {
    width: 58px;
}

.smf-footer-column:hover .smf-footer-heading::before {
    transform: translateX(6px);
}

.smf-footer-links,
.smf-footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.smf-footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.smf-footer-links a,
.smf-footer-contact a,
.smf-footer-contact > li > span:last-child {
    color: var(--smf-text);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-decoration: none;
}

/* Smooth Slide and Color Shift Animation on Link Hover */
.smf-footer-links a {
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s var(--smf-ease);
}

.smf-footer-links a:hover {
    color: var(--smf-blue);
    transform: translateX(6px);
}

.smf-footer-contact a {
    transition: color 0.3s ease;
}

.smf-footer-contact a:hover {
    color: var(--smf-blue);
}

.smf-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.smf-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.smf-footer-contact li a,
.smf-footer-contact li > span:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

/* Premium Interactive Contact Icon Badge */
.smf-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid var(--smf-border);
    border-radius: 50%;
    color: var(--smf-blue);
    background: var(--smf-white);
    box-shadow: 0 4px 12px rgba(227, 234, 243, 0.6);
    transition: all 0.3s var(--smf-ease);
}

.smf-footer-contact li:hover .smf-contact-icon {
    background: var(--smf-blue);
    color: var(--smf-white);
    border-color: var(--smf-blue);
    box-shadow: 0 6px 16px rgba(23, 73, 168, 0.2);
    transform: translateY(-2px) rotate(8deg);
}

.smf-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 24px 0 28px;
    border-top: 1px solid var(--smf-border);
    color: var(--smf-text);
}

.smf-footer-bottom p {
    max-width: 100%;
    margin: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.smf-footer-bottom a {
    color: var(--smf-blue);
    overflow-wrap: anywhere;
    word-break: break-word;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Elegant Bottom Link Underline Animation */
.smf-footer-bottom a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: var(--smf-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--smf-ease);
}

.smf-footer-bottom a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.smf-footer-bottom a:hover {
    color: #12387e;
}

@media (max-width: 850px) {
    .smf-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 44px 32px;
        padding: 64px 0 52px;
    }

    .smf-footer-brand {
        max-width: none;
    }
}

@media (max-width: 650px) {
    .smf-footer-container {
        width: min(calc(100% - 32px), 1280px);
    }

    .smf-footer-main {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 38px 0 30px;
    }

    .smf-footer-description {
        line-height: 1.65;
    }

    .smf-footer-social {
        margin-top: 20px;
    }

    .smf-footer-heading {
        margin-bottom: 18px;
    }

    .smf-footer-links {
        gap: 10px;
    }

    .smf-footer-contact {
        gap: 12px;
    }

    .smf-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px 0 22px;
    }

    .smf-footer::before,
    .smf-footer::after {
        width: 360px;
        height: 360px;
    }

    .smf-footer::before {
        top: -180px;
        left: -180px;
    }

    .smf-footer::after {
        right: -180px;
        bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smf-footer * {
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
}