/* ==========================================================================
   Imboni CyberTech Ltd — Brand Stylesheet
   Palette: Dark Navy, Royal Blue, White, Cyan + subtle gradients
   Supports Bootstrap 5 light/dark themes via [data-bs-theme].
   ========================================================================== */

:root {
    --imb-navy: #0a1633;
    --imb-navy-2: #0d1f47;
    --imb-royal: #1e50ff;
    --imb-royal-2: #2563eb;
    --imb-cyan: #22d3ee;
    --imb-cyan-2: #06b6d4;
    --imb-white: #ffffff;
    --imb-slate: #64748b;

    --imb-gradient: linear-gradient(135deg, var(--imb-royal) 0%, var(--imb-cyan) 100%);
    --imb-gradient-navy: linear-gradient(135deg, var(--imb-navy) 0%, var(--imb-navy-2) 60%, #12306e 100%);

    --imb-radius: 1rem;
    --imb-shadow: 0 10px 40px -12px rgba(10, 22, 51, 0.25);

    /* Bootstrap theme overrides (light) */
    --bs-primary: var(--imb-royal);
    --bs-primary-rgb: 30, 80, 255;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: #1b2437;
    --bs-body-bg: #f6f8fc;
    --bs-link-color: var(--imb-royal-2);
    --bs-link-hover-color: var(--imb-cyan-2);
}

[data-bs-theme="dark"] {
    --bs-body-bg: #060d20;
    --bs-body-color: #d7e0f2;
    --bs-emphasis-color: #ffffff;
    --bs-border-color: rgba(255, 255, 255, 0.1);
    --imb-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
    --bs-link-color: var(--imb-cyan);
}

body {
    font-family: var(--bs-body-font-family);
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* ---------- Typography helpers ---------- */
.display-hero {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.text-gradient {
    background: var(--imb-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 5rem 0;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--imb-cyan-2);
}

/* ---------- Buttons ---------- */
.btn-brand {
    background: var(--imb-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 24px -8px rgba(30, 80, 255, 0.6);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 30px -8px rgba(30, 80, 255, 0.7);
}

.btn-outline-brand {
    border: 1.5px solid var(--imb-royal);
    color: var(--imb-royal);
    font-weight: 600;
}

.btn-outline-brand:hover {
    background: var(--imb-royal);
    color: #fff;
}

[data-bs-theme="dark"] .btn-outline-brand {
    border-color: var(--imb-cyan);
    color: var(--imb-cyan);
}

[data-bs-theme="dark"] .btn-outline-brand:hover {
    background: var(--imb-cyan);
    color: var(--imb-navy);
}

/* ---------- Navbar ---------- */
.navbar-imboni {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(10, 22, 51, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-imboni.scrolled {
    box-shadow: var(--imb-shadow);
}

[data-bs-theme="dark"] .navbar-imboni {
    background: rgba(6, 13, 32, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--imb-gradient);
    color: #fff;
    font-weight: 800;
}

.navbar-brand .brand-name {
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--imb-gradient-navy);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.25), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(30, 80, 255, 0.35), transparent 45%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 75%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* ---------- Service image marquee (hero) ---------- */
.marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee + .marquee {
    margin-top: 1rem;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: imb-marquee-left 45s linear infinite;
}

.marquee-track.reverse {
    animation-name: imb-marquee-right;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes imb-marquee-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes imb-marquee-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.marquee-item {
    flex: 0 0 auto;
    width: 260px;
    height: 155px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.marquee-item:hover img {
    transform: scale(1.08);
}

.marquee-item .marquee-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(transparent, rgba(10, 22, 51, 0.9));
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* ---------- Glass cards ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--imb-radius);
    box-shadow: var(--imb-shadow);
}

[data-bs-theme="dark"] .glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-imboni {
    border: 1px solid rgba(10, 22, 51, 0.08);
    border-radius: var(--imb-radius);
    background: var(--bs-body-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.card-imboni:hover {
    transform: translateY(-6px);
    box-shadow: var(--imb-shadow);
    border-color: rgba(30, 80, 255, 0.3);
}

[data-bs-theme="dark"] .card-imboni {
    background: #0b1428;
    border-color: rgba(255, 255, 255, 0.07);
}

.icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: var(--imb-gradient);
}

/* ---------- Stats counters ---------- */
.stat-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1;
}

/* ---------- Reveal-on-scroll animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html, body {
        scroll-behavior: auto;
    }
}

/* ---------- Footer ---------- */
.footer-imboni {
    background: var(--imb-navy);
    color: #c3cfe8;
}

.footer-imboni a {
    color: #c3cfe8;
    text-decoration: none;
}

.footer-imboni a:hover {
    color: var(--imb-cyan);
}

/* ==========================================================================
   Admin panel
   ========================================================================== */
.admin-body {
    background: var(--bs-body-bg);
}

.admin-sidebar {
    width: 264px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--imb-navy);
    color: #c3cfe8;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.25s ease;
}

.admin-sidebar .nav-link {
    color: #aebada;
    border-radius: 0.6rem;
    padding: 0.6rem 0.9rem;
    margin: 0.1rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-sidebar .nav-link.active {
    background: var(--imb-gradient);
    color: #fff;
}

.admin-sidebar .nav-section {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: #5f6f95;
    padding: 1rem 1.4rem 0.35rem;
}

.admin-content {
    margin-left: 264px;
    min-height: 100vh;
}

.admin-topbar {
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color, rgba(10, 22, 51, 0.08));
    position: sticky;
    top: 0;
    z-index: 1030;
}

.stat-card {
    border-radius: var(--imb-radius);
    border: 1px solid rgba(10, 22, 51, 0.08);
    background: var(--bs-body-bg);
    padding: 1.25rem 1.4rem;
    height: 100%;
}

[data-bs-theme="dark"] .stat-card {
    background: #0b1428;
    border-color: rgba(255, 255, 255, 0.07);
}

.stat-card .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
}

/* ---------- Auth pages ---------- */
.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bs-body-bg);
}

.auth-aside {
    background: var(--imb-gradient-navy);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@media (max-width: 767.98px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    .auth-aside {
        display: none;
    }
}

/* Status-badge helpers reused across admin tables */
.badge-status {
    font-weight: 600;
    padding: 0.35em 0.7em;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
