html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    background: #252b34;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #4da3ff;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* =========================================================
   IDE-inspired application shell
   ========================================================= */

.topbar {
    height: 40px;
    font-size: 0.84rem;
    background: #171b22 !important;
    border-bottom: 1px solid #303744;
}

    .topbar > .container-fluid {
        height: 100%;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .topbar .brand {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono", monospace;
        letter-spacing: 0.06em;
        color: #ffffff;
    }

    .topbar a {
        color: #ffffff !important;
    }

        .topbar a:hover {
            color: #ffffff !important;
        }

    .topbar .text-white-50 {
        color: #b9c2ce !important;
    }

    .topbar .text-success {
        color: #4cc38a !important;
    }


/* =========================================================
   Application shell
   ========================================================= */

.app-shell {
    height: calc(100vh - 40px);
    overflow: hidden;
    background: #252b34;
}


/* =========================================================
   Explorer
   ========================================================= */

.explorer {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 100%;
    overflow-y: auto;
    background: #202630;
    border-right: 1px solid #303744;
    padding: 0.65rem 0.5rem;
}

    .explorer h6 {
        margin: 0 0 0.65rem 0.35rem;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono", monospace;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        color: #c8d0da;
        text-transform: uppercase;
    }

    .explorer .nav-link {
        color: #e3e8ef;
        padding: 0.32rem 0.5rem;
        border-radius: 4px;
    }

        .explorer .nav-link:hover {
            color: #ffffff;
            background: #2c3543;
        }

        .explorer .nav-link.active {
            color: #ffffff;
            background: #3a506f;
            font-weight: 600;
        }

/* disclosure-group consolidated below */

.child-list {
    margin-top: 0.12rem;
}

    .child-list.collapsed {
        display: none;
    }

    .child-list .text-muted {
        color: #bdc7d3 !important;
    }

.disclosure-toggle {
    border: none;
    background: transparent;
    color: #c0cad6;
    padding: 0 0.25rem;
}

    .disclosure-toggle:hover {
        color: #ffffff;
    }

    .disclosure-toggle .chev {
        display: inline-block;
        transform-origin: center;
        transition: transform 120ms linear;
    }

    .disclosure-toggle[aria-expanded="false"] .chev {
        transform: rotate(-90deg);
    }


/* =========================================================
   Main workspace
   ========================================================= */

.workspace {
    height: 100%;
    overflow-y: auto;
    /*
       Main workspace is intentionally lighter than the Explorer,
       but remains part of the dark application theme.
    */
    background: #252c36;
    padding: 0.65rem 0.75rem 2rem;
    -webkit-overflow-scrolling: touch;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: #e7ecf2;
}


/*
   Page content remains dark rather than becoming a white card.
   It is slightly lighter than the Explorer so the workspace
   still has a clear visual hierarchy.
*/

.page-content {
    width: 100%;
    max-width: 1500px;
    margin: 0;
    background: #252c36;
    color: #e7ecf2;
    padding: 1rem 1.5rem 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}


/* Main page typography */

.workspace h1,
.workspace h2,
.workspace h3,
.workspace h4,
.workspace h5,
.workspace h6 {
    color: #f5f7fa;
}

.workspace p,
.workspace .lead {
    color: #dde3ea;
}

.workspace .text-muted {
    color: #aeb8c5 !important;
}

.workspace .small.text-muted {
    color: #aeb8c5 !important;
}

.workspace a {
    color: #63aaff;
}

    .workspace a:hover {
        color: #8bc1ff;
    }

.workspace .btn-primary,
.workspace .btn-primary:hover,
.workspace .btn-primary:focus,
.workspace .btn-primary:active {
    color: #ffffff;
}
/*
   Existing Bootstrap border utility classes were designed
   for a light page. Tone them down for the dark workspace.
*/

.page-content .border-top,
.page-content .border-bottom {
    border-color: #46505e !important;
}


/* Tighter first section so the page begins near the workspace edge */


.page-content section {
    scroll-margin-top: 1rem;
}


/* =========================================================
   Back to top
   ========================================================= */

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 1050;
    display: none;
    background: #202630;
    border-color: #596575;
    color: #e3e8ef;
    opacity: 0.92;
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
}

    .back-to-top:hover {
        background: #3a506f;
        border-color: #718198;
        color: #ffffff;
    }

    .back-to-top.show {
        display: inline-block;
    }


/* =========================================================
   Mobile Explorer / Offcanvas
   ========================================================= */

.offcanvas {
    background: #202630;
    color: #e3e8ef;
}

.offcanvas-header {
    border-bottom: 1px solid #303744;
}

.offcanvas-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono", monospace;
    color: #ffffff;
}

.offcanvas .btn-close {
    filter: invert(1);
}

.offcanvas .nav-link {
    color: #e3e8ef;
}

    .offcanvas .nav-link:hover {
        color: #ffffff;
        background: #2c3543;
    }

    .offcanvas .nav-link.active {
        color: #ffffff;
        background: #3a506f;
    }


/* =========================================================
   Responsive layout
   ========================================================= */

@media (max-width: 1199.98px) {
    .workspace {
        padding-right: 0.5rem;
    }

    .page-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 991.98px) {
    .explorer {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .workspace {
        padding: 0.4rem;
    }

    .page-content {
        padding: 0.75rem 1rem 2rem;
    }
}
.disclosure-group {
    margin-top: 0.15rem;
    padding-bottom: 0.15rem;
}
/* =========================================================
   Explorer tree groups
   ========================================================= */

.explorer-parent-row {
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 4px;
}

    .explorer-parent-row:hover {
        background: #2c3543;
    }

    .explorer-parent-row:has(.explorer-parent-link.active) {
        background: #3a506f;
    }


/*
   Parent text aligns with Home / About / Skills / etc.
   The row owns the active background, not the link itself.
*/
.explorer .explorer-parent-link {
    flex: 1;
    min-width: 0;
    padding: 0.32rem 0.5rem;
    color: #e3e8ef;
    background: transparent !important;
}

    .explorer .explorer-parent-link:hover {
        color: #ffffff;
        background: transparent !important;
    }

    .explorer .explorer-parent-link.active {
        color: #ffffff;
        background: transparent !important;
        font-weight: 600;
    }


/*
   Move the disclosure button BEFORE the link visually,
   regardless of its position in the Razor markup.

   Its negative left margin means it protrudes to the left
   without pushing Work / Projects to the right.
*/
.explorer-parent-row .disclosure-toggle {
    order: -1;
    width: 1.25rem;
    flex: 0 0 1.25rem;
    margin-left: -1.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #c0cad6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .explorer-parent-row .disclosure-toggle:hover {
        color: #ffffff;
        background: transparent;
    }

    .explorer-parent-row .disclosure-toggle:focus,
    .explorer-parent-row .disclosure-toggle:active {
        box-shadow: none;
    }

    .explorer-parent-row .disclosure-toggle .chev {
        display: inline-block;
        font-size: 0.7rem;
        transform-origin: center;
        transition: transform 120ms linear;
    }

    .explorer-parent-row .disclosure-toggle[aria-expanded="false"] .chev {
        transform: rotate(-90deg);
    }


/*
   Children sit underneath the parent label.
*/
.child-list {
    margin-top: 0.05rem;
    margin-left: 1.1rem;
}

    .child-list.collapsed {
        display: none;
    }

.explorer-child {
    color: #bdc7d3;
    padding: 0.12rem 0.5rem;
    font-size: 0.875rem;
}
/*Resume Viewer*/
.resume-viewer {
    border: 1px solid #46505e;
    border-radius: 4px;
    background: #1b2028;
    overflow: hidden;
}

.resume-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.4rem 0.75rem;
    background: #202630;
    border-bottom: 1px solid #46505e;
}

    .resume-toolbar .btn {
        color: #e3e8ef;
        border-color: #596575;
    }

        .resume-toolbar .btn:hover {
            color: #ffffff;
            background: #3a506f;
        }

.resume-zoom-label {
    min-width: 4.5rem;
    color: #bdc7d3;
    font-size: 0.85rem;
    text-align: center;
}

.resume-document {
    width: 100%;
    min-height: 70vh;
    padding: 1rem;
    background: #292929;
    overflow-x: auto;
}

.resume-page {
    display: block;
    margin: 0 auto 1rem;
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

    .resume-page:last-child {
        margin-bottom: 0;
    }

@media (max-width: 767.98px) {
    .resume-toolbar {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .resume-document {
        min-height: 0;
        padding: 0.5rem;
    }
}
/*Homepage*/
.home-work-list {
    margin-left: 1rem;
}

@media (max-width: 767.98px) {
    .home-work-list {
        margin-left: 0;
    }
}