/* Light / whitish footer */

#footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    --footer-bg: #ffffff;
    --footer-bg-2: #f6f7fb;                 /* slightly tinted white */
    --footer-text: #111827;                 /* near-black */
    --footer-muted: #4b5563;                /* gray */
    --footer-border: rgba(17, 24, 39, 0.12);

    background: linear-gradient(180deg, var(--footer-bg-2), var(--footer-bg));
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);

    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;

    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;

    /* subtle separation from page */
    box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06);
}

#footer .mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 9px 12px;
    border: 1px solid var(--footer-border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
}

#footer .mail img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

#footer .mail label {
    color: var(--footer-muted);
    cursor: default;
    user-select: text;
    white-space: nowrap;
}

#footer #socials {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}

#footer #socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    border-radius: 12px;

    border: 1px solid var(--footer-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
    text-decoration: none;

    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

#footer #socials a:hover {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.10);
}

#footer #socials a:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.65);
    outline-offset: 2px;
}

#footer #socials img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

@media (max-width: 520px) {
    #footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #footer .mail {
        justify-content: center;
    }

    #footer #socials {
        justify-content: center;
        margin-left: 0;
    }
}