html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html,
body {
    height: 100%;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

/*kkk*/
/*kkk*/
/*kkk*/

/* Shared theme (matches cover) */
.theme-bg {
    background: radial-gradient(1200px circle at 10% 10%, rgba(13, 110, 253, .18), transparent 45%),
    radial-gradient(900px circle at 90% 30%, rgba(32, 201, 151, .18), transparent 50%),
    radial-gradient(900px circle at 60% 90%, rgba(111, 66, 193, .18), transparent 55%),
    linear-gradient(180deg, #f8f9fa, #ffffff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cover-nav {
    background: rgba(255, 255, 255, 0.95);
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .cover-nav {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.5);
    }
}

.cover-nav .navbar-brand {
    letter-spacing: -0.01em;
}

.cover-nav .nav-link {
    font-weight: 500;
}

.cover-nav .nav-link:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .cover-nav .navbar-collapse {
        margin-top: .75rem;
    }

    .cover-nav .navbar-nav .nav-link {
        padding: .6rem 0;
    }
}

/* Cover CTA tweaks */
.cover-cta {
    margin-top: 1.5rem;
    align-items: center;
}

/* Make CTAs consistent & slightly wider for better visual weight */
.cover-cta .btn {
    min-width: 11rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.85rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

/* Smaller screens: full-width stacked */
@media (max-width: 576px) {
    .cover-cta {
        gap: .75rem;
    }

    .cover-cta .btn {
        min-width: 0;
        width: 100%;
    }
}

/* Primary (tweak of your existing color) */
.cover-cta .btn-primary {
    background-color: #1b6ec2; /* keep your brand color */
    border-color: #1861ac;
    color: #fff;
    box-shadow: 0 10px 30px rgba(27, 110, 194, 0.12);
}

.cover-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(27, 110, 194, 0.14);
}

/* Ghost / subtle button that blends with the page */
.cover-cta .btn-ghost {
    background: rgba(255, 255, 255, 0.6);
    color: rgba(13, 110, 253, 0.95); /* accent color for text */
    border: 1px solid rgba(13, 110, 253, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cover-cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* Slightly larger text for clarity */
.cover-cta .btn-lg {
    font-size: 1.05rem;
    line-height: 1.1;
}

/* ---- 
    FOOTER 
---- */

.theme-footer {
    padding: 1.25rem 0;
    color: rgba(33, 37, 41, .7);
}

.theme-footer a {
    color: rgba(33, 37, 41, .75);
    text-decoration: none;
}

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

/* ---- 
    HOMEPAGE 
---- */

.work-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(33, 37, 41, .10);
    background: rgba(255, 255, 255, .70);
    color: rgba(33, 37, 41, .72);
    font-weight: 600;
    font-size: .8rem;
    white-space: nowrap;
}

.icon-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, .85);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
    flex: 0 0 auto;
}

.link-soft {
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    color: rgba(13, 110, 253, .95);
    text-decoration: none;
}

.link-soft:hover {
    text-decoration: underline;
}

/* Featured grids (same structure you already use) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* NEW: What I Do cards */
.what-card h3 {
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.what-card p {
    margin-bottom: 0;
    line-height: 1.65;
}

.mini {
    font-size: .85rem;
    color: rgba(33, 37, 41, .68);
}

/* NEW: How I Work steps */
.step {
    position: relative;
    padding-left: 1.2rem;
}

.step:before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: rgba(32, 201, 151, .85);
    box-shadow: 0 0 0 .2rem rgba(32, 201, 151, .14);
}

.step h4 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.step p {
    margin: .35rem 0 0;
    color: rgba(33, 37, 41, .72);
    line-height: 1.65;
}

/* NEW: “Now” / Status strip */
.status-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.status-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(33, 37, 41, .10);
    background: rgba(255, 255, 255, .70);
    flex: 0 0 auto;
}

.status-title {
    font-weight: 650;
    letter-spacing: -0.01em;
}

.status-text {
    color: rgba(33, 37, 41, .72);
    line-height: 1.65;
    margin: .15rem 0 0;
}

/* NEW: CTA band */
.cta-band {
    background: rgba(255, 255, 255, .70);
    border: 1px solid rgba(33, 37, 41, .08);
}

.cta-band .btn {
    border-radius: .9rem;
    padding: .75rem 1rem;
}

.btn-soft {
    background: rgba(13, 110, 253, .09);
    border: 1px solid rgba(13, 110, 253, .22);
    color: rgba(13, 110, 253, .95);
    font-weight: 700;
}

.btn-soft:hover {
    background: rgba(13, 110, 253, .12);
    border-color: rgba(13, 110, 253, .28);
    color: rgba(13, 110, 253, 1);
}

.btn-ghost {
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(33, 37, 41, .10);
    color: rgba(33, 37, 41, .78);
    font-weight: 650;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .80);
    border-color: rgba(33, 37, 41, .14);
}

/* ---- 
    SHARED STYLES 
---- */

/* Typography rhythm */
.page-title {
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-lead {
    line-height: 1.65;
    max-width: 60rem;
}

/* Section spacing */
.section {
    padding: 2.25rem 0;
}

@media (min-width: 992px) {
    .section {
        padding: 3rem 0;
    }
}

/* Cards */
.card-soft {
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(33, 37, 41, .08);
}

.pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(33, 37, 41, .12);
    background: rgba(255, 255, 255, .65);
    color: rgba(33, 37, 41, .72);
    font-weight: 500;
}

.pill-big {
    border-radius: 999px;
    border: 1px solid rgba(33,37,41,.12);
    background: rgba(255,255,255,.75);
    padding: .45rem 1rem;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(33,37,41,.78);
    white-space: nowrap;
}

.kicker {
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .75rem;
    color: rgba(33, 37, 41, .65);
}

.muted {
    color: rgba(33, 37, 41, .72);
}

.soft-divider {
    height: 1px;
    background: rgba(33, 37, 41, .06);
    margin: 0;
    border: 0;
}

/* Featured label */
.featured {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, .25);
    background: rgba(13, 110, 253, .07);
    color: rgba(13, 110, 253, .95);
    font-weight: 600;
}

/* ---- 
    PROJECTS 
---- */

.project-card {
    border-radius: 1.25rem;
    overflow: hidden;
}

.project-title {
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.project-meta {
    font-size: .9rem;
    color: rgba(33, 37, 41, .65);
}

.project-summary {
    line-height: 1.6;
    max-width: 70ch;
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-tile {
    border: 1px solid rgba(33, 37, 41, .08);
    background: rgba(255, 255, 255, .55);
    border-radius: .9rem;
    padding: .9rem 1rem;
    height: 100%;
}

.detail-title {
    font-weight: 650;
    margin: 0 0 .45rem 0;
    color: rgba(33, 37, 41, .92);
    font-size: .95rem;
}

.tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.toggle-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: var(--bs-primary);
    cursor: pointer;
}

.toggle-link:hover {
    text-decoration: underline;
}

.toggle-link:focus-visible {
    outline: none;
    text-decoration: underline;
}

.chev {
    display: inline-block;
    transition: transform .15s ease;
}

.is-open .chev {
    transform: rotate(180deg);
}

.details-wrap {
    border-top: 1px solid rgba(33, 37, 41, .08);
    margin-top: 1rem;
    padding-top: 1rem;
}

/* ---- 
    ARTICLES 
---- */

/* Small featured article card */
.article-small-title {
    line-height: 1.25;
}

/* List article card */
.article-list-card h3 {
    line-height: 1.25;
}

.article-meta {
    font-size: .85rem;
    color: rgba(33, 37, 41, .65);
}

/* Article detail */
.article-detail-title {
    letter-spacing: -0.015em;
    line-height: 1.05;
}

.article-detail-meta {
    font-size: .9rem;
    color: rgba(33, 37, 41, .65);
}

.article-detail-body {
    line-height: 1.8;
    max-width: 60rem;
}

.article-detail-body h2,
.article-detail-body h3 {
    margin-top: 2rem;
    margin-bottom: .75rem;
}

.article-detail-body p {
    margin-bottom: 1rem;
}

.article-detail-body code {
    font-size: .85em;
}

/* ---- Prism integration: match site design ---- */

.article-detail-body pre[class*="language-"] {
    border: 1px solid rgba(33, 37, 41, 0.10);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin: 1.5rem 0;
    overflow-x: auto;

    /* keep Prism's background + colors (do NOT set background/color here) */
}

/* Ensure consistent code font without changing token colors */
.article-detail-body pre[class*="language-"] > code[class*="language-"],
.article-detail-body :not(pre) > code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.90em;
    line-height: 1.55;

    /* keep Prism text styling (avoid color/text-shadow overrides) */
}

/* Optional: slightly nicer inline code pill without affecting Prism tokens */
.article-detail-body :not(pre) > code {
    padding: 0.15em 0.35em;
    border-radius: 0.35rem;
    border: 1px solid rgba(33, 37, 41, 0.10);
    background: rgba(248, 249, 250, 0.9);
}

/* Optional: consistent selection inside code blocks (doesn't affect token colors) */
.article-detail-body pre[class*="language-"] ::selection {
    background: rgba(13, 110, 253, 0.18);
}


.show-more-link {
    background: none;
    border: none;
    padding: 0;

    font-weight: 500;
    color: var(--bs-primary);
    cursor: pointer;
    text-decoration: none;

    /* inherit typography so it blends into content */
    font-family: inherit;
    font-size: inherit;
}

.show-more-link:hover {
    text-decoration: underline;
}

.show-more-link:focus-visible {
    outline: none;
    text-decoration: underline;
}

.show-more-link:disabled {
    color: rgba(33, 37, 41, 0.4);
    cursor: default;
    text-decoration: none;
}


/* ---- 
    LOGOUT LINK 
---- */

.logout-link {
    background: none;
    border: none;
    padding: 0;

    font: inherit;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.logout-link:hover {
    text-decoration: underline;
}

.logout-link:focus-visible {
    outline: none;
    text-decoration: underline;
}

/* ---- 
    EXPERIENCE TIMELINE + FAUX MODAL (BLAZOR-DRIVEN) 
---- */

.timeline-wrap {
    position: relative;
    padding: .5rem 0 2rem;
}

.timeline-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(33, 37, 41, .10);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(13, 110, 253, .95);
    box-shadow: 0 10px 25px rgba(13, 110, 253, .18);
    border: 3px solid rgba(255, 255, 255, .9);
    top: 1.25rem;
}

.timeline-item {
    position: relative;
    margin: 1.25rem 0;
}

.timeline-card .btn.card-clickable {
    display: block;
    text-align: inherit;
    color: inherit;
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
}

.timeline-card .btn.card-clickable:focus {
    outline: none;
    box-shadow: none;
}

.timeline-card .btn.card-clickable:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
    border-radius: .5rem;
}

.timeline-card .btn.card-clickable .h5,
.timeline-card .btn.card-clickable .muted,
.timeline-card .btn.card-clickable .badge {
    color: inherit;
}

.timeline-card .read-more {
    margin-top: .75rem;
}

.timeline-card .read-more .btn {
    padding: .325rem .75rem;
    font-size: .9rem;
}

@media (min-width: 992px) {
    .timeline-card::before {
        content: "";
        position: absolute;
        top: 1.65rem;
        width: 28px;
        height: 2px;
        background: rgba(33, 37, 41, .10);
    }

    .timeline-item.left .timeline-card::before {
        right: -28px;
    }

    .timeline-item.right .timeline-card::before {
        left: -28px;
    }
}

@media (max-width: 991.98px) {
    .timeline-wrap::before {
        left: 14px;
        transform: none;
    }

    .timeline-dot {
        left: 14px;
        transform: none;
    }
}

/* Faux modal */
.modal-faux-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(33, 37, 41, .55);
    display: flex;
    align-items: center; /* desktop center */
    justify-content: center; /* desktop center */
    padding: 1rem;
    overflow: hidden;
    overscroll-behavior: none;
}

.modal-faux {
    width: 100%;
    max-width: 992px;
    outline: none;
}

.modal-faux-backdrop .modal-dialog {
    width: 100%;
    margin: 0;
    max-height: calc(100vh - 3rem);
    max-height: calc(100dvh - 3rem);
}

.modal-faux-backdrop .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
}

.modal-faux-backdrop .modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.modal-faux-backdrop .modal-body p,
.modal-faux-backdrop .modal-body li,
.modal-faux-backdrop .modal-body a {
    overflow-wrap: anywhere;
}

/* Mobile: allow scrolling + avoid centering issues */
@media (max-width: 991.98px) {
    .modal-faux-backdrop {
        align-items: flex-start; /* key: top-align so content can flow */
        overflow-y: auto; /* key: let overlay scroll */
        -webkit-overflow-scrolling: touch;
        padding: 1rem;
    }
}

.modal-surface {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35),
    0 10px 30px rgba(15, 23, 42, 0.18);
}

/* Body scroll lock (note your class name uses hyphens) */
.modal-open-scroll-lock {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}

/* --- NEW CORE SKILL DESIGN --- */
.skill-section-title {
    margin-bottom: 1.5rem;
}
.skill-track {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.skill-track-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    color: rgba(33,37,41,.6);
}
.skill-chip {
    border-radius: 999px;
    background: rgba(248,249,250,.85);
    border: 1px solid rgba(33,37,41,.06);
    padding: .35rem .85rem;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}
.skill-chip span.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,.18);
}
.skill-category {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: rgba(33,37,41,.6);
    margin-bottom: .35rem;
}
.skill-grid {
    row-gap: 1.25rem;
}
.skill-grid h3 {
    font-size: 1rem;
    margin-bottom: .4rem;
}