@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Inter:wght@400;500;600;700;800&display=swap');

/* Design Tokens & Variables */
:root {
    --qblue: #0F75BD;
    --qblue-dark: #071B3B;
    --qblue-light: #e7f3fd;
    --qred: #EE3F46;
    --qred-light: #fee9ea;
    --qgold: #d4af37;
    --qgold-light: #fdf8e6;
    --qnavy: #0a1e42;
    --mainText: #12233d;
    --mutedText: #5f6f85;
    --mainBg: #f8fbff;
    --borderColor: #d6e6f6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--mainBg);
    color: var(--mainText);
    margin: 0;
    padding: 0;
    width: 100%;
}

header {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(15, 117, 189, 0.1) !important;
    backdrop-filter: blur(12px);
}

section {
    position: relative;
}

.qi-footer {
    position: relative;
    width: 100%;
    color: #e2e8f0;
    background: #04154b;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.qi-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(4, 21, 75, 0.92) 0%, rgba(3, 16, 58, 0.95) 100%),
        url('/images/footer.png') center/cover no-repeat;
    z-index: 0;
}

.qi-footer__overlay {
    display: none;
}

.qi-footer__container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
}

.qi-footer__top {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
}

.qi-footer__logo {
    width: 180px;
    max-width: 100%;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.qi-footer__desc {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 300px;
}

.qi-footer__links,
.qi-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qi-footer__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qi-footer__links li {
    margin-bottom: 0.75rem;
}

.qi-footer__links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.qi-footer__links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.qi-footer__links i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.qi-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
}

.qi-footer__contact i {
    color: #3b82f6;
    margin-top: 0.25rem;
}

.qi-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.qi-footer__bottom p {
    margin: 0;
    font-size: 0.813rem;
    color: #64748b;
}

.qi-footer__social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qi-footer__social span {
    font-size: 0.813rem;
    font-weight: 600;
    color: #94a3b8;
    margin-right: 0.5rem;
}

.qi-footer__social a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.qi-footer__social a:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .qi-footer__top {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    .qi-footer__brand {
        grid-column: span 3;
        max-width: 100%;
        text-align: center;
    }
    .qi-footer__desc {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .qi-footer__container {
        padding: 2rem 1.5rem 1rem;
    }
    .qi-footer__top {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .qi-footer__brand {
        grid-column: span 2;
    }
    .qi-footer__bottom {
        flex-direction: column;
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .qi-footer__top {
        grid-template-columns: 1fr; /* 1 column for all sections */
        gap: 2rem;
    }
    .qi-footer__brand {
        grid-column: span 1; 
        text-align: left;
        margin-bottom: 1rem;
    }
    .qi-footer__desc {
        margin-left: 0;
        margin-right: 0;
    }
    .qi-footer__title::after {
        margin-left: 0;
        margin-right: auto;
    }
    .qi-footer__links a {
        justify-content: flex-start;
    }
    .qi-footer__contact li {
        justify-content: flex-start;
    }
}
