/* Linkal AI Shared Stylesheet — White & Dark Blue Theme */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --white: #FFFFFF;
    --black: #111111;
    --bg-page: #FFFFFF;
    --card-bg: #FFFFFF;
    --navy: #0D1B3E;
    --navy-hover: #081229;
    --navy-light: #EEF4FE;
    --navy-dark: #081229;
    --blue: #0D1B3E;
    --blue-hover: #081229;
    --accent-blue: #4F8CF0;
    --button-blue: #7FAAF5;
    --sky: #DCE8FB;
    --sky-light: #EEF4FE;
    --sky-border: #D6E2F7;
    --text: #111111;
    --text-primary: #111111;
    --text-secondary: #5A6275;
    --text-muted: #5A6275;
    --border: #D6E2F7;
    --border-strong: #BDD0EF;
    --shadow: 0 4px 16px rgba(13, 27, 62, 0.05);
    --shadow-lg: 0 8px 24px rgba(13, 27, 62, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background: var(--white);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--navy);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.btn-navy,
.btn-blue {
    background: #0D1B3E;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(13, 27, 62, 0.2);
}

.btn-navy:hover,
.btn-blue:hover {
    background: #081229;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 27, 62, 0.3);
}

.btn-secondary,
.btn-outline {
    background: transparent;
    color: #0D1B3E !important;
    border: 1.5px solid #0D1B3E;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: #0D1B3E;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-white {
    background: #FFFFFF;
    color: #0D1B3E !important;
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(13, 27, 62, 0.08);
}

.btn-white:hover {
    background: #0D1B3E;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-soft {
    background: #7FAAF5;
    color: #FFFFFF !important;
    border: none;
    box-shadow: 0 4px 14px rgba(79, 140, 240, 0.25);
}

.btn-soft:hover {
    background: #4F8CF0;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.85rem 1.9rem;
    font-size: 1.02rem;
}

/* ─── NAVBAR (COMPATIBLE WITH #navbar AND .site-header) ─── */
#navbar,
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: all 0.25s ease;
    height: 70px;
}

#navbar.scrolled,
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(13, 27, 62, 0.06);
    background: rgba(255, 255, 255, 0.98);
}

.nav-inner,
.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo,
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.12);
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
}

.logo-text,
.brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #0D1B3E;
    letter-spacing: -0.03em;
    line-height: 1;
}

.nav-links,
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a,
.desktop-nav a {
    color: #111111;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.18s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.desktop-nav a:hover,
.nav-links a.active,
.desktop-nav a.active {
    color: #4F8CF0;
}

.nav-cta {
    font-size: 0.9rem;
    padding: 0.65rem 1.35rem;
}

.hamburger,
.menu-toggle-btn {
    display: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    color: #0D1B3E !important;
    padding: 0.45rem;
    border-radius: 8px;
    transition: background 0.15s ease;
    align-items: center;
    justify-content: center;
}

.hamburger:hover,
.menu-toggle-btn:hover {
    background: var(--sky-light) !important;
}

@media (max-width: 960px) {
    #navbar,
    .site-header,
    .nav-inner,
    .header-inner {
        height: 58px;
    }

    .nav-links,
    .desktop-nav,
    .nav-cta {
        display: none !important;
    }

    .hamburger,
    .menu-toggle-btn {
        display: flex !important;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .logo-text,
    .brand-name {
        font-size: 1.2rem;
    }
}

/* ─── LEFT SLIDING DRAWER ─── */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 27, 62, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

body.drawer-locked {
    overflow: hidden !important;
}

.drawer,
.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #FFFFFF;
    z-index: 2001;
    box-shadow: 8px 0 32px rgba(13, 27, 62, 0.15);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer.open,
.side-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--navy);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.drawer-close-btn:hover {
    background: var(--sky-light);
}

.drawer-nav {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.drawer-link:hover,
.drawer-link.active {
    background: var(--sky-light);
    color: var(--navy);
    transform: translateX(4px);
}

.drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* ─── SHARED FOOTER ─── */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2rem 0;
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
    transition: color 0.18s ease;
}

.footer-col a:hover {
    color: var(--navy);
}

.footer-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sky-light);
    color: var(--navy);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.footer-socials a:hover {
    background: var(--navy);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.footer-legal a:hover {
    color: var(--navy);
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 560px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ─── BACKGROUND GLOW ACCENTS ─── */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.bg-glow-center {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 232, 251, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
    top: 10%;
    left: 20%;
}

.bg-glow-top-right {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(251, 238, 221, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
    top: 5%;
    right: 5%;
}

.bg-glow-bottom-left {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(232, 245, 238, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: 5%;
    left: 5%;
}

/* ─── FIXED OVERFLOW WRAPPER FOR BACKGROUND GLOWS ─── */
.bg-glow-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* ─── MOBILE STICKY BOTTOM TASKBAR (SHARED) ─── */
.mobile-taskbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: 0.4rem 0.5rem;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(13, 27, 62, 0.08);
    justify-content: space-around;
    align-items: center;
}

.taskbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #5A6275;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    transition: color 0.15s ease;
    min-width: 58px;
    text-align: center;
}

.taskbar-btn:active {
    color: #0D1B3E;
}

.taskbar-btn.primary {
    background: #0D1B3E;
    color: #FFFFFF !important;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.2);
}

@media (max-width: 768px) {
    .mobile-taskbar {
        display: flex !important;
    }
    body {
        padding-bottom: 60px !important;
    }
}
