/*==================================================
FOOTER
==================================================*/

.footer {
    position: relative;
    overflow: hidden;
    padding: 100px 0 30px;
    background: linear-gradient(
        180deg,
        var(--surface),
        var(--body)
    );
    border-top: 1px solid var(--border-primary);
    --scan-left: -120%;
    --scan-transition: none;
}

/*==================================================
TOP GLOW
==================================================*/

.footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 217, 255, .12),
        rgba(108, 99, 255, .05),
        transparent 72%
    );
    pointer-events: none;
}

/*==================================================
GRID — THREE REMAINING COLUMNS
==================================================*/

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 70px;
    z-index: 2;
}

/*==================================================
COLUMN
==================================================*/

.footer-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-column h3 {
    margin-bottom: 28px;
    font-size: 1.3rem;
    color: var(--white);
}

/*==================================================
LOGO
==================================================*/

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-column p {
    line-height: 1.9;
    margin-bottom: 28px;
    color: var(--text-light);
}

/*==================================================
LINKS
==================================================*/

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-column ul a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-column ul a:hover {
    color: var(--primary);
    text-shadow: var(--glow-primary);
    transform: translateX(6px);
}

/*==================================================
SOCIAL
==================================================*/

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-social a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--primary);
    transition: .35s;
}

.footer-social a:hover {
    transform: translateY(-6px);
    background: var(--primary);
    color: var(--body);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

/*==================================================
BOTTOM
==================================================*/

.footer-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    z-index: 2;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
}

/*==================================================
BACK TO TOP
==================================================*/

.back-to-top {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition:
        opacity .35s,
        transform .35s,
        visibility .35s,
        background .35s,
        color .35s,
        box-shadow .35s;
}

.back-to-top:hover {
    transform: translateY(-6px);
    background: var(--primary);
    color: var(--body);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*==================================================
SCAN EFFECT
==================================================*/

.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: var(--scan-left);
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 232, 255, .10),
        transparent
    );
    transform: skewX(-25deg);
    transition: var(--scan-transition);
    pointer-events: none;
}

/*==================================================
RESPONSIVE FOOTER
==================================================*/

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 75px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 30px;
        margin-bottom: 50px;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer {
        padding-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-column:first-child {
        grid-column: auto;
    }

    .footer-logo {
        font-size: 1.25rem;
    }

    .footer-bottom {
        gap: 20px;
        align-items: center;
    }

    .back-to-top {
        flex-shrink: 0;
        width: 46px;
        height: 46px;
    }
}
