:root {
    --primary: #4b8bff;
    --primary-2: #2dd4bf;
    --surface: #0f172a;
    --muted: #94a3b8;
    --card: rgba(255, 255, 255, 0.08);
    --stroke: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --text: #e2e8f0;
    --heading: #ffffff;
}

* { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(77, 139, 255, 0.12), transparent 30%),
                radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.15), transparent 25%),
                #0b1224;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sticky footer layout for public pages */
body.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page > main {
    flex: 1 0 auto;
}

body.page .site-footer {
    margin-top: auto;
}

h1, h2, h3, .brand-title {
    font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--heading);
    letter-spacing: 0.2px;
}

h1 {
    font-weight: 800;
}

.site-header {
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--stroke);
    position: sticky;
    top: 0;
    z-index: 20;
}

.navbar-brand { color: #fff; min-width: 0; }
.navbar-nav .nav-link { color: var(--muted); font-weight: 600; }
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: #fff; }

.brand-logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
    border: none;
    background: transparent;
    object-fit: contain;
    display: block;
}

.logo-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: inline-block;
}

.brand-text {
    min-width: 0;
    overflow: hidden;
}

.brand-title {
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 575.98px) {
    .navbar-brand {
        gap: 10px;
        flex: 1 1 auto;
    }
    .brand-logo {
        height: 34px;
    }
    /* Constrain brand text so toggler remains visible */
    .navbar .brand-text { max-width: calc(100vw - 70px); }
    .navbar-toggler { margin-left: auto; flex: 0 0 auto; }
    .navbar .btn {
        padding-inline: 10px;
        margin-top: 8px;
    }
    .navbar-nav {
        gap: 0.35rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none;
    box-shadow: 0 8px 30px rgba(75, 139, 255, 0.25);
}

.btn-outline-secondary {
    color: #e2e8f0;
    border-color: var(--stroke);
}

.hero {
    background: linear-gradient(135deg, rgba(75, 139, 255, 0.16), rgba(45, 212, 191, 0.12));
    border: 1px solid var(--stroke);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
}

.hero::before {
    width: 260px; height: 260px;
    left: -60px; top: -60px;
    background: radial-gradient(circle, rgba(75,139,255,0.6), transparent 60%);
}

.hero::after {
    width: 220px; height: 220px;
    right: -40px; bottom: -40px;
    background: radial-gradient(circle, rgba(45,212,191,0.5), transparent 60%);
}

.glass-card,
.info-card,
.status-card,
.status-tile {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.info-card:hover,
.status-tile:hover {
    transform: translateY(-2px);
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.status-tile small { color: var(--muted); }

.icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.04);
}

.site-footer {
    border-top: 1px solid var(--stroke);
    background: radial-gradient(circle at 15% 20%, rgba(75,139,255,0.08), transparent 35%), radial-gradient(circle at 80% 10%, rgba(45,212,191,0.12), transparent 32%), rgba(15, 23, 42, 0.85);
    color: var(--muted);
    border-radius: 28px 28px 0 0;
}

.site-footer a {
    color: #e2e8f0;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .footer-links {
    display: grid;
    gap: 6px;
}
.site-footer .btn-outline-secondary { border-color: var(--stroke); }
.site-footer .btn-outline-secondary:hover { background: rgba(255,255,255,0.08); }

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

.brand-logo-sm {
    height: 36px;
}

.badge {
    border-radius: 999px;
    font-weight: 600;
}

.nav-link.active {
    color: #fff;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.lead { color: #cbd5e1; }

.text-muted { color: #9fb1c8 !important; }

.progress {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.list-group-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
    color: #e2e8f0;
}

/* Specialists */
.neon-badge {
    background: linear-gradient(135deg, rgba(75,139,255,0.2), rgba(45,212,191,0.2));
    color: #cfe5ff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 10px;
}

.spec-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.32);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    position: relative;
}
.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.38);
    border-color: rgba(75,139,255,0.45);
}
.spec-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(75,139,255,0.22), rgba(45,212,191,0.18));
    filter: blur(24px);
    opacity: 0.25;
    z-index: -1;
}
.spec-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 15%, rgba(75,139,255,0.18), transparent 35%),
                radial-gradient(circle at 80% 80%, rgba(45,212,191,0.16), transparent 30%);
    opacity: 0.8;
    pointer-events: none;
}
.spec-card {
    position: relative;
    overflow: hidden;
}

.spec-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.16);
    background: radial-gradient(circle at 30% 30%, rgba(75,139,255,0.35), rgba(15,23,42,0.8));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35), 0 0 0 6px rgba(75,139,255,0.12);
}
.spec-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-fallback {
    color: #cbd5e1;
    font-size: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}
.chip-accent {
    background: linear-gradient(135deg, rgba(75,139,255,0.16), rgba(45,212,191,0.14));
    border-color: rgba(75,139,255,0.35);
    color: #dbeafe;
}
.chip-ghost {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    color: #cbd5e1;
}
.chip-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.18);
    color: #dbeafe;
}

.spec-meta i { opacity: 0.85; }
.spec-meta span { color: #cbd5e1; }

.spec-hero {
    position: relative;
    overflow: hidden;
}
.spec-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(45,212,191,0.14), transparent 40%),
                radial-gradient(circle at 10% 80%, rgba(75,139,255,0.18), transparent 45%);
    pointer-events: none;
    opacity: 0.9;
}

/* Mission & Vision cards */
.stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: 0 12px 38px rgba(0,0,0,0.3);
}
.glass-card.subtle {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

