html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --auth-bg-1: #050b18;
    --auth-bg-2: #0a1630;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(1200px 700px at 15% 10%, rgba(80, 223, 219, 0.12), transparent 65%),
        radial-gradient(1000px 600px at 90% 20%, rgba(192, 67, 229, 0.16), transparent 70%),
        linear-gradient(145deg, var(--auth-bg-1), var(--auth-bg-2));
    background-attachment: fixed;
    background-size: 140% 140%;
    animation: ambientGradientGlobal 18s ease-in-out infinite;
}

main {
    flex: 1;
    display: block;
}

.main-content {
    flex: 1;
}

.modern-footer {
    position: relative; /* ensure footer participates in normal flow */
    margin-top: auto;
    z-index: 1100;
    /* match navbar visual language: deep blue gradient, subtle translucent border */
    background: linear-gradient(90deg, rgba(12,16,35,0.95), rgba(9,17,34,0.95));
    border-top: 1px solid rgba(80,223,219,0.06);
    color: #eaf6ff;
    padding: 12px 4%;
    box-shadow: 0 -14px 48px rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

/* subtle cyan glow at the top to separate footer from page background */
.modern-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(80,223,219,0.10), rgba(74,122,255,0.06));
    filter: blur(8px);
    opacity: 0.95;
}

/* thin bright separator line for clearer demarcation */
.modern-footer::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(80,223,219,0.14), rgba(255,255,255,0.02));
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5%;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.footer-branding h3 {
    font-size: clamp(13px, 1.6vw, 18px);
    color: #eaf6ff;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.3px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.footer-logo {
    height: 42px;
    width: auto;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    transition: transform .22s ease, box-shadow .22s ease;
}

.footer-logo-link { display: inline-block; border-radius: 8px; overflow: hidden; }
.footer-logo-link:hover .footer-logo { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 30px rgba(74,122,255,0.08); }

.footer-branding p {
    font-size: clamp(10px, 0.9vw, 12px);
    color: rgba(234,246,255,0.68);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.footer-socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #eaf6ff;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.footer-socials a:hover {
    background: linear-gradient(90deg, rgba(80,223,219,0.045), rgba(74,122,255,0.045));
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 20px rgba(74,122,255,0.06);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: right;
    padding-top: 0;
}

.footer-bottom p {
    font-size: clamp(9px, 0.9vw, 11px);
    color: rgba(234,246,255,0.6);
    margin: 4px 0;
    line-height: 1.5;
}

/* subtle entry animation for footer */
.modern-footer { transform: translateY(6px); opacity: 0; animation: footerEnter .48s cubic-bezier(.2,.9,.2,1) .08s forwards; }

@keyframes footerEnter { to { transform: translateY(0); opacity: 1; } }

/* removed footer logo styles (logo deleted) */
.footer-logo, .footer-logo-link { display: none !important; }

@media screen and (max-width: 768px) {
    .modern-footer {
        padding: 12px 14px;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5%;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 1rem;
    }

    .footer-branding h3 {
        font-size: 16px;
    }

    .footer-branding p {
        font-size: 12px;
    }

    .footer-socials {
        justify-content: center;
        width: 100%;
    }

    .footer-socials a {
        width: 32px;
        height: 32px;
    }

    .footer-socials svg {
        width: 16px;
        height: 16px;
    }

    .footer-bottom {
        text-align: center;
        width: 100%;
    }

    .footer-bottom p {
        font-size: 10px;
        margin: 4px 0;
    }
}

@media screen and (max-width: 480px) {
    .modern-footer {
        padding: 10px 12px;
    }

    .footer-container {
        gap: 1rem;
    }

    .footer-branding h3 {
        font-size: 14px;
    }

    .footer-branding p {
        font-size: 11px;
    }

    .footer-socials a {
        width: 30px;
        height: 30px;
    }

    .footer-socials svg {
        width: 14px;
        height: 14px;
    }
}

@media screen and (max-width: 380px) {
    .modern-footer {
        padding: 9px 10px;
    }

    .footer-content {
        gap: 0.75rem;
    }

    .footer-branding h3 {
        font-size: 13px;
    }

    .footer-branding p,
    .footer-bottom p {
        font-size: 10px;
    }

    .footer-socials {
        gap: 8px;
    }

    .footer-socials a {
        width: 28px;
        height: 28px;
    }
}

@keyframes ambientGradientGlobal {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
