/**
 * FYP Portal - Landing Page: Navigation Module
 * Frosted White Glass Navbar, Sky Blue Accents, and Responsive Mobile Collapse (< 350 lines)
 */

body.landing-page {
    --home-ink: #0f172a;
    --home-muted: #475569;
    --home-primary: #0284c7;
    --home-primary-2: #0369a1;
    --home-accent: #38bdf8;
    --home-accent-2: #0ea5e9;
    --home-surface: #f8fafc;
    --home-surface-alt: #f0f9ff;
    --home-card: #ffffff;
    --home-border: #e2e8f0;
    --home-shadow: 0 20px 50px rgba(2, 132, 199, 0.08);
    --home-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --home-font-title: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    font-family: var(--home-font-body);
    font-size: 0.9375rem;
    color: var(--home-ink);
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
}

@media (min-width: 992px) {
    body.landing-page {
        zoom: 0.92;
    }
}

body.landing-page h1,
body.landing-page h2,
body.landing-page h3,
body.landing-page h4,
body.landing-page h5,
body.landing-page h6 {
    font-family: var(--home-font-title);
    letter-spacing: -0.02em;
}

/* ============================================================
   NAVBAR BASE (FROSTED WHITE GLASS + SKY BLUE BORDER)
   ============================================================ */
body.landing-page .landing-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #bae6fd;
    border-radius: 999px;
    margin: 8px auto 0;
    width: min(1200px, calc(100% - 32px));
    box-shadow:
        0 14px 35px -8px rgba(2, 132, 199, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.landing-page .landing-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.8), transparent 35%, rgba(56, 189, 248, 0.08) 70%, transparent 100%);
    opacity: 0.7;
    pointer-events: none;
}

body.landing-page .landing-nav > .container {
    position: relative;
    z-index: 1;
}

body.landing-page .landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #93c5fd;
    box-shadow:
        0 18px 40px -10px rgba(2, 132, 199, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    padding: 10px 0;
    margin-top: 8px;
    width: min(1220px, calc(100% - 32px));
    border-radius: 999px;
}

/* ============================================================
   BRAND STACK
   ============================================================ */
body.landing-page .landing-nav .navbar-brand {
    color: #0f2742;
    font-family: var(--home-font-title);
    font-weight: 800;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: none;
}

body.landing-page .landing-nav .brand-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 2px;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.15);
    border: 1px solid #e0f2fe;
    flex-shrink: 0;
}

body.landing-page .landing-nav .navbar-brand .brand-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

body.landing-page .landing-nav .navbar-brand .brand-text {
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: #0f2742;
}

body.landing-page .landing-nav .navbar-brand .brand-campus {
    align-self: flex-start;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0284c7;
    font-weight: 700;
    margin-top: 1px;
}

/* ============================================================
   TOGGLER BUTTON
   ============================================================ */
body.landing-page .landing-nav .landing-nav-toggler {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 8px 12px;
    color: #0284c7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

body.landing-page .landing-nav .landing-nav-toggler:hover,
body.landing-page .landing-nav .landing-nav-toggler:focus {
    background: #e0f2fe;
    border-color: #0284c7;
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.2);
    color: #0369a1;
    outline: none;
}

body.landing-page .landing-nav .landing-nav-toggler .toggler-bars {
    font-size: 1.05rem;
}

/* ============================================================
   NAV LINKS (HIGH CONTRAST & SKY BLUE HOVER)
   ============================================================ */
body.landing-page .landing-nav .nav-link {
    color: #334155;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 13px !important;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    text-shadow: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

body.landing-page .landing-nav .nav-link:hover {
    color: #0284c7;
    background: #f0f9ff;
    border-color: #e0f2fe;
    transform: translateY(-1px);
}

body.landing-page .landing-nav .nav-link.active {
    color: #0284c7;
    background: #e0f2fe;
    border-color: #bae6fd;
    font-weight: 700;
}

body.landing-page .landing-nav .nav-link::after {
    display: none;
}

/* ============================================================
   LOGIN & REGISTER BUTTONS (ELECTRIC SKY BLUE)
   ============================================================ */
@keyframes regShine {
    0% { transform: translateX(-120%); }
    40%, 100% { transform: translateX(220%); }
}

body.landing-page .nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #f0f9ff;
    border: 1.5px solid #93c5fd;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
    font-family: var(--home-font-title, inherit);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0284c7;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
}

body.landing-page .nav-login-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
    transform: translateY(-1px);
    color: #ffffff;
}

body.landing-page .nav-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(130deg, #38bdf8 0%, #0284c7 55%, #0369a1 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
    color: #ffffff !important;
    font-family: var(--home-font-title, inherit);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.landing-page .nav-register-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-120%);
    animation: regShine 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

body.landing-page .nav-register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.45);
    color: #ffffff !important;
}

body.landing-page .register-disabled {
    cursor: not-allowed;
    opacity: .55;
    filter: grayscale(.2);
    box-shadow: none !important;
    pointer-events: none;
}

/* ============================================================
   MOBILE RESPONSIVENESS (< 991.98px)
   ============================================================ */
@media (max-width: 991.98px) {
    body.landing-page .landing-nav,
    body.landing-page .landing-nav.scrolled {
        width: calc(100% - 20px);
        margin-top: 8px;
        padding: 8px 14px;
        border-radius: 20px;
    }

    body.landing-page .landing-nav .navbar-collapse {
        background: #ffffff;
        border: 1px solid #bae6fd;
        border-radius: 18px;
        box-shadow: 0 20px 45px rgba(2, 132, 199, 0.15), 0 0 0 1px rgba(2, 132, 199, 0.05);
        padding: 14px 12px;
        margin-top: 8px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    body.landing-page .landing-nav .nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 10px 14px !important;
        border-radius: 10px;
        font-size: 0.92rem;
        color: #334155;
        margin-bottom: 3px;
        background: transparent;
        border: 1px solid transparent;
    }

    body.landing-page .landing-nav .nav-link:hover,
    body.landing-page .landing-nav .nav-link.active {
        background: #f0f9ff;
        border-color: #bae6fd;
        color: #0284c7;
    }

    body.landing-page .landing-nav .nav-action-item {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 4px;
    }

    body.landing-page .nav-login-btn,
    body.landing-page .nav-register-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 12px 18px !important;
        font-size: 0.92rem !important;
        border-radius: 12px !important;
        margin-top: 6px !important;
    }

    body.landing-page .nav-ayat-item {
        display: none !important;
    }
}
