html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

html[data-bs-theme="light"] {
    color-scheme: only light;
}

html[data-bs-theme="dark"] {
    color-scheme: dark;
}

body {
    margin-bottom: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 75%, #000 100%), url(../assets/img/bg-masthead.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    min-height: 100vh; /* fallback */
    min-height: 100svh;
}

.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;
}

/** Site General - Customized Scrollbar - Start */
/* Theme colors inherit from Bootstrap's theme attribute. */
:root,
[data-bs-theme="light"] {
    --scroll-track: #e7e7e7;
    --scroll-thumb: #595959;
    --scroll-thumb-hover: #404040;
}

[data-bs-theme="dark"] {
    --scroll-track: #292d30;
    --scroll-thumb: #9a9fa4;
    --scroll-thumb-hover: #bec3c7;
}

.jcweb-main {
    scrollbar-color: auto;
    scrollbar-width: auto;
}

.jcweb-main::-webkit-scrollbar {
    width: 12px;
    height: 12px; /* Horizontal scrollbar */
}

.jcweb-main::-webkit-scrollbar-track {
    background: var(--scroll-track);
    border-radius: 999px;
    box-shadow: inset 0 0 4px rgb(0 0 0 / 20%);
}

.jcweb-main::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border: 2px solid var(--scroll-track);
    border-radius: 999px;
}

.jcweb-main::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thumb-hover);
}

.jcweb-main::-webkit-scrollbar-corner {
    background: var(--scroll-track);
}

/** Site General - Customized Scrollbar - End */

/** Site General - Start */

.jcweb-main::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: #e7e7e7;
    border: 1px solid #cacaca;
    box-shadow: inset 0 0 6px rgb(from var(--bs-gray-dark) r g b / 0.4) !important;
}

.jcweb-main::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: rgb(from var(--bs-light) r g b / 0.4) !important;
}

#exp-card {
    background-color: rgb(from var(--bs-gray-dark) r g b / 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
}

.jcweb-frost-bg {
    background-color: rgb(from var(--bs-body-bg) r g b / 0.3) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
}

[data-bs-theme="light"] .jcweb-frost-bg {
    background-color: rgb(from var(--bs-body-bg) r g b / 0.5) !important;
}

.jcweb-masthead h1 {
    font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 2.5rem;
    line-height: 2.5rem;
    letter-spacing: 0.8rem;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.jcweb-frost-bg nav button {
    border: none !important;
}


footer.jcweb-frost-bg {
    color: var(--bs-body-color);
}

.skill-badge {
    transition: background-color 0.15s ease;
}

@media (hover: hover) {
    .skill-badge:hover {
        background-color: #495057 !important;
    }
}
/** Site General - End */
/** Site Toggle - Start */

.site-logo {
    display: block;
    width: clamp(5rem, 10vw, 7rem);
    max-width: 100%;
}

.site-personal-img {
    display: block;
    /* width: clamp(7rem, 15vw, 10rem);*/
    height: auto;
    max-width: 100%;
}

.site-logo-dark {
    display: none;
}

[data-bs-theme="dark"] .site-logo-light {
    display: none;
}

[data-bs-theme="dark"] .site-logo-dark {
    display: block;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--bs-body-color);
    background-color: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

    .theme-toggle:hover {
        color: var(--bs-emphasis-color);
        background-color: var(--bs-secondary-bg);
    }

    .theme-toggle:focus-visible {
        outline: 3px solid var(--bs-primary);
        outline-offset: 2px;
    }

.theme-icon-dark {
    display: none;
}

[data-bs-theme="dark"] .theme-icon-light {
    display: none;
}

[data-bs-theme="dark"] .theme-icon-dark {
    display: inline-block;
}
/* Site Toggle - End */

#site-footer {
    position: fixed;
}
/* Site - Experience - Begin */

#experience-statement {
    text-align: justify;
}
/* Site - Experience - End */
/* Site - Azure - Begin */
/* Light editor palette */
:root {
    --editor-bg: #ffffff;
    --editor-chrome: #f3f3f3;
    --editor-text: #202020;
    --editor-muted: #616161;
    --editor-border: #d4d4d4;
    --editor-accent: #0078d4;
}
/* Dark editor palette */
[data-bs-theme="dark"] {
    --editor-bg: #1e1e1e;
    --editor-chrome: #252526;
    --editor-text: #d4d4d4;
    --editor-muted: #aaaaaa;
    --editor-border: #454545;
    --editor-accent: #3794ff;
}
/* Reusable carousel row */
.content-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding: 0.25rem 0 1rem;
    max-width: 100%;
    overscroll-behavior-x: contain;
}

.content-card {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

    .content-card .card-title,
    .content-card .card-text {
        overflow-wrap: anywhere;
    }

@media (max-width: 991.98px) {
    .content-card {
        flex-basis: calc((100% - 1.25rem) / 2);
    }
}

@media (max-width: 575.98px) {
    .content-card {
        flex-basis: 100%;
    }
}
/* Shared editor */
.editor-dialog {
    width: min(1000px, 94vw);
    max-width: 94vw;
    max-height: 85vh;
    padding: 0;
    overflow: hidden;
    color: var(--editor-text);
    background: var(--editor-bg);
    border: 1px solid var(--editor-border);
    border-radius: 0.5rem;
    box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 35%);
}

    .editor-dialog[open] {
        display: flex;
        flex-direction: column;
    }

    .editor-dialog::backdrop {
        background: rgb(0 0 0 / 60%);
    }

.editor-titlebar,
.editor-tabs {
    flex-shrink: 0;
    background: var(--editor-chrome);
}

.editor-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
}

    .editor-titlebar h2 {
        margin: 0;
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

.editor-close {
    padding: 0.25rem 0.5rem;
    color: var(--editor-text);
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    cursor: pointer;
}

    .editor-close:hover {
        background: var(--editor-border);
    }

.editor-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    background: var(--editor-bg);
    border-top: 2px solid var(--editor-accent);
    font-size: 0.85rem;
}

.editor-json-icon {
    color: var(--editor-accent);
}

.editor-content {
    min-height: 0;
    overflow: auto;
    padding: 1.25rem;
}

    .editor-content pre {
        margin: 0;
        color: inherit;
        font-family: Consolas, "Cascadia Code", monospace;
        font-size: 0.875rem;
        line-height: 1.6;
        tab-size: 2;
    }

.editor-statusbar {
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 0.3rem 1rem;
    color: var(--editor-muted);
    border-top: 1px solid var(--editor-border);
    font-size: 0.75rem;
}

.editor-description {
    margin: 0.5rem 0 0;
    max-width: 75ch;
    color: var(--editor-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.editor-titlebar {
    align-items: flex-start;
}

.code-thumbnail {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: var(--editor-bg);
    color: var(--editor-text);
    border-bottom: 1px solid var(--editor-border);
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.code-thumbnail-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--editor-chrome);
    border-bottom: 1px solid var(--editor-border);
    font-size: 0.7rem;
}

.code-thumbnail pre {
    overflow: hidden;
    margin: 0;
    padding: 0.75rem;
    color: inherit;
    font-family: Consolas, "Cascadia Code", monospace;
    font-size: 0.65rem;
    line-height: 1.5;
    white-space: pre;
}

.code-thumbnail::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3rem;
    background: linear-gradient( to bottom, transparent, var(--editor-bg) );
    pointer-events: none;
}
/* Site - Azure - End */
/* Keep the navigation button visible in both themes, without a background image. */
.site-navbar .navbar-toggler {
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
    min-width: 44px;
    min-height: 44px;
}

.site-navbar .navbar-toggler-icon {
    position: relative;
    background-image: none;
}

    .site-navbar .navbar-toggler-icon::before {
        content: "";
        position: absolute;
        left: 10%;
        right: 10%;
        top: calc(50% - 1px);
        height: 2px;
        background: currentColor;
        box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
    }

@media (max-width: 575.98px) {
    .site-navbar > .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    .site-navbar .navbar-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        margin-right: 0;
    }

    .site-navbar .navbar-toggler {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .site-navbar .container > .d-flex {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin-left: 0 !important;
    }

    .site-navbar .theme-toggle {
        margin-left: 0 !important;
    }

    .site-navbar .navbar-collapse {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }
}