/* =========================================================
   FOOTER STRUCTURE
========================================================= */

.main-footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color-strong);
    padding: 100px 0 40px;
}

body.light-mode .main-footer {
    background: #ffffff;
    border-top-color: var(--border-color);
}

.footer-top {
    padding-bottom: 40px;
}

.footer-logo img {
    height: 52px;
    width: auto;
    margin-bottom: 22px;
}

.main-footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--accent));
}

.main-footer p {
    max-width: 380px;
    font-size: 14px;
}

.footer-disclaimer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.65;
    text-align: justify;
}

.footer-disclaimer h5 {
    margin: 12px 0 8px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    text-transform: uppercase;
}

.footer-disclaimer p {
    max-width: 100%;
    margin: 0 0 10px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: justify;
}

.main-footer ul li {
    margin-bottom: 14px;
}

.main-footer ul li a {
    color: var(--text-light);
    font-size: 14px;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.main-footer ul li a:hover {
    color: var(--brand-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icons a,
.social-links-row .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    font-size: 16px;
    transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.social-icons a:hover,
.social-links-row .social-link:hover {
    color: #fff;
    transform: translateY(-3px);
    filter: brightness(1.06);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

.social-icons a:nth-child(1),
.social-links-row .social-link:nth-child(1) {
    background: #0a66c2 !important;
}

.social-icons a:nth-child(2),
.social-links-row .social-link:nth-child(2) {
    background: #111827 !important;
}

.social-icons a:nth-child(3),
.social-links-row .social-link:nth-child(3) {
    background: #1877f2 !important;
}

.social-icons a:nth-child(4),
.social-links-row .social-link:nth-child(4) {
    background: #e4405f !important;
}

.social-links-row .social-link {
    font-size: 22px;
    width: 56px;
    height: 56px;
}

.social-links-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* =========================================================
   SCROLL PROGRESS & SCROLL-TO-TOP
========================================================= */

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--accent));
    z-index: var(--z-max);
    transition: width 0.1s ease;
}

.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    border: 1px solid rgba(22, 191, 243, 0.18);
    cursor: pointer;
    z-index: var(--z-high);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color var(--transition-fast);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--primary-glow-strong);
}

@media (max-width: 576px) {
    .scroll-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

}

/* =========================================================
   NATIVE WEB-ENGINE INTERFACES
========================================================= */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background-color: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--primary-hover); }

::selection { background-color: var(--primary); color: #fff; }
::-moz-selection { background-color: var(--primary); color: #fff; }
