/* Global site styling */
:root {
    --page-bg: #eef2f7;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --ink: #101828;
    --muted: #667085;
    --line: rgba(16, 24, 40, 0.1);
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --accent: #14b8a6;
    --shadow-soft: 0 18px 55px rgba(16, 24, 40, 0.12);
    --shadow-hover: 0 24px 70px rgba(16, 24, 40, 0.18);
    --shadow-pop: 0 28px 80px rgba(37, 99, 235, 0.18), 0 14px 36px rgba(16, 24, 40, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.site-body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 14% 10%, rgba(37, 99, 235, 0.17), transparent 26rem),
        radial-gradient(circle at 86% 16%, rgba(20, 184, 166, 0.15), transparent 24rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(238, 242, 247, 0.9) 48%, rgba(226, 232, 240, 0.94) 100%),
        var(--page-bg);
    background-attachment: fixed;
    font-feature-settings: "kern";
}

body.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(142deg, transparent 0 39%, rgba(15, 23, 42, 0.18) 39.2% 58%, transparent 58.2%) 0 100% / 42rem 24rem repeat-x,
        linear-gradient(38deg, transparent 0 41%, rgba(37, 99, 235, 0.18) 41.2% 63%, transparent 63.2%) 6rem 100% / 46rem 22rem repeat-x,
        linear-gradient(150deg, transparent 0 44%, rgba(20, 184, 166, 0.16) 44.2% 64%, transparent 64.2%) 12rem 100% / 40rem 20rem repeat-x,
        linear-gradient(to top, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    opacity: 0.95;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 16%, rgba(0, 0, 0, 0.9) 100%);
}

body.site-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(16, 24, 40, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 40, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.46), transparent 78%);
}

.site-main {
    position: relative;
}

.site-main > hr {
    border: 0;
    height: 1px;
    opacity: 1;
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.35), transparent);
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding-block: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.52);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 242, 247, 0.68)),
        rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 16px 45px rgba(16, 24, 40, 0.1);
    backdrop-filter: blur(22px);
}

.site-navbar::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.34), rgba(20, 184, 166, 0.28), transparent);
}

.site-navbar-inner {
    position: relative;
    gap: 1rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 36px rgba(16, 24, 40, 0.08);
}

.site-footer {
    margin: 3rem auto 0;
    padding-inline: 1rem;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(37, 99, 235, 0.88)),
        #111827;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.site-footer .lead {
    color: rgba(255, 255, 255, 0.76);
}

.btn-custom,
.btn-primary,
.btn-success {
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn-primary,
.btn-custom.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #ffffff;
}

.btn-success,
.btn-custom.btn-success {
    background: linear-gradient(135deg, #10b981, #2563eb);
    color: #ffffff;
}

.btn-outline-secondary {
    border-radius: 999px;
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--brand-dark);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.6);
}

.btn-custom:hover,
.btn-primary:hover,
.btn-success:hover,
.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.3);
}

.card,
.feature-card,
.certificate-frame,
.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    background: var(--surface);
    box-shadow: var(--shadow-soft) !important;
    backdrop-filter: blur(14px);
}

.card,
.feature-card,
.accordion-item {
    position: relative;
    border-radius: 0.9rem !important;
    overflow: hidden;
}

.card::before,
.feature-card::before,
.accordion-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent 34%),
        linear-gradient(315deg, rgba(20, 184, 166, 0.14), transparent 30%);
    transition: opacity 220ms ease;
}

.card > *,
.feature-card > *,
.accordion-item > * {
    position: relative;
    z-index: 1;
}

.card:hover::before,
.feature-card:hover::before,
.accordion-item:hover::before {
    opacity: 1;
}

.card {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.22) !important;
    box-shadow: var(--shadow-hover) !important;
}

.card .text-muted,
.feature-card .text-muted,
.text-muted {
    color: var(--muted) !important;
}

.badge.text-bg-light,
.badge.bg-light {
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--brand-dark) !important;
}

/* about_me.html styling. */
.avatar-circle {
width: 56px;
height: 56px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.18));
color: var(--brand-dark);
letter-spacing: 1px;
box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.about-card {
transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.about-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover) !important;
}

.text-justified {
text-align: justify;
hyphens: auto;
text-align-last: left;
}

.about-hero-shell {
position: relative;
padding: clamp(0.45rem, 1.2vw, 0.75rem);
border-radius: 1.5rem;
background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(236, 253, 245, 0.48)),
    rgba(255, 255, 255, 0.58);
box-shadow: var(--shadow-soft);
backdrop-filter: blur(14px);
}

.about-hero-shell::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
padding: 1px;
background: linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(20, 184, 166, 0.28), rgba(255, 255, 255, 0.58));
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
mask-composite: exclude;
pointer-events: none;
}

.about-hero {
min-height: clamp(22rem, 48vw, 34rem);
border-radius: 1.2rem;
background: rgba(15, 23, 42, 0.08);
isolation: isolate;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 1.4rem 3.6rem rgba(15, 23, 42, 0.18);
}

.about-hero-img {
position: absolute;
inset: 0;
height: 100%;
min-height: 100%;
object-fit: cover;
object-position: center 45%;
filter: saturate(1.08) contrast(1.04);
transform: scale(1.01);
}

.about-hero::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.22) 48%, rgba(15, 23, 42, 0.08)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.62), transparent 58%);
pointer-events: none;
}

.about-hero::after {
content: "";
position: absolute;
inset: auto 0 0;
z-index: 2;
height: 42%;
background:
    linear-gradient(142deg, transparent 0 39%, rgba(255, 255, 255, 0.16) 39.2% 58%, transparent 58.2%) 0 100% / 34rem 13rem repeat-x,
    linear-gradient(38deg, transparent 0 42%, rgba(20, 184, 166, 0.16) 42.2% 62%, transparent 62.2%) 4rem 100% / 38rem 12rem repeat-x;
opacity: 0.56;
pointer-events: none;
}

.about-hero-overlay {
position: absolute;
inset: 0;
z-index: 3;
padding: clamp(1rem, 3vw, 2rem);
}

.about-hero-copy {
max-width: min(34rem, 88%);
}

.about-hero-kicker {
display: inline-flex;
width: fit-content;
margin-bottom: 0.7rem;
padding: 0.35rem 0.7rem;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.04em;
text-transform: uppercase;
background: rgba(255, 255, 255, 0.16);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
backdrop-filter: blur(10px);
}

.about-hero-copy p {
max-width: 32rem;
font-size: clamp(1.45rem, 3vw, 2.35rem);
font-weight: 800;
line-height: 1.08;
letter-spacing: 0;
text-shadow: 0 0.8rem 2rem rgba(2, 6, 23, 0.38);
}

.about-hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.72),
    rgba(15, 23, 42, 0.18),
    rgba(0, 0, 0, 0)
);
}

/* all_projects.html styling */
.project-card-link {
display: block;
height: 100%;
color: inherit;
text-decoration: none;
}

.project-card-link:hover,
.project-card-link:focus {
color: inherit;
text-decoration: none;
}

.project-card {
cursor: pointer;
isolation: isolate;
border-radius: 1rem !important;
background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    var(--surface);
transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.project-card:hover {
transform: translateY(-8px) scale(1.015);
box-shadow: var(--shadow-pop) !important;
border-color: rgba(37, 99, 235, 0.32) !important;
}

.current-project-card {
display: grid;
grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
overflow: hidden;
background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.82)),
    var(--surface);
box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.14) !important;
}

.current-project-card .project-card-media {
height: 100%;
min-height: 21rem;
}

.current-project-card .project-card-img {
border-radius: 1rem 0 0 1rem !important;
}

.current-project-card .project-card-body {
justify-content: center;
min-height: 21rem;
}

.current-project-badge {
display: inline-flex;
align-items: center;
width: fit-content;
margin-bottom: 1rem;
padding: 0.45rem 0.8rem;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.04em;
text-transform: uppercase;
color: #065f46;
background: rgba(16, 185, 129, 0.14);
box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.18);
}

.current-project-card .project-name {
font-size: 1.65rem;
}

.current-project-card .card-text {
font-size: 1.02rem;
}

.project-card-media {
position: relative;
overflow: hidden;
background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(37, 99, 235, 0.08));
}

.project-card-img {
position: absolute;
inset: 0;
height: 100%;
width: 100%;
opacity: 0;
filter: saturate(0.98) contrast(1.02);
transition: opacity 700ms ease, transform 360ms ease, filter 360ms ease;
}

.project-card-slide.is-active {
opacity: 1;
}

.project-card:hover .project-card-img {
transform: scale(1.075);
filter: saturate(1.12) contrast(1.06);
}

.project-card-placeholder,
.about-hero-placeholder {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: rgba(15, 23, 42, 0.54);
font-size: 0.9rem;
font-weight: 800;
background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(236, 253, 245, 0.44)),
    linear-gradient(142deg, transparent 0 40%, rgba(15, 23, 42, 0.08) 40.2% 56%, transparent 56.2%) 0 100% / 22rem 10rem repeat-x,
    linear-gradient(38deg, transparent 0 42%, rgba(37, 99, 235, 0.1) 42.2% 61%, transparent 61.2%) 4rem 100% / 24rem 9rem repeat-x;
}

.project-card-placeholder span {
position: relative;
z-index: 1;
padding: 0.45rem 0.75rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.58);
box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.project-card-body {
display: flex;
flex-direction: column;
min-height: 14rem;
}

.project-card .card-title {
transition: color 180ms ease, transform 180ms ease;
}

.project-card:hover .card-title {
color: var(--brand-dark);
transform: translateX(2px);
}

.project-name,
.carousel-project-name,
.project-detail-title {
letter-spacing: 0;
}

.project-name {
position: relative;
display: inline;
font-size: 1.18rem;
line-height: 1.25;
color: var(--ink);
background-image: linear-gradient(135deg, var(--ink), var(--brand-dark));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}

.project-name::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -0.28rem;
height: 0.18rem;
border-radius: 999px;
background: linear-gradient(135deg, var(--brand), var(--accent));
opacity: 0.75;
transform: scaleX(0.46);
transform-origin: left;
transition: transform 200ms ease, opacity 200ms ease;
}

.project-card:hover .project-name::after {
opacity: 1;
transform: scaleX(1);
}

.project-card-action {
display: inline-flex;
align-items: center;
width: fit-content;
margin-top: auto;
padding: 0.45rem 0.8rem;
border-radius: 999px;
font-size: 0.88rem;
font-weight: 700;
color: var(--brand-dark);
background: rgba(37, 99, 235, 0.08);
box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
transform: translateY(4px);
opacity: 0.78;
transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, color 200ms ease;
}

.project-card:hover .project-card-action {
opacity: 1;
color: #ffffff;
background: linear-gradient(135deg, var(--brand), var(--accent));
transform: translateY(0);
}

@media (max-width: 991.98px) {
    .current-project-card {
        display: block;
    }

    .current-project-card .project-card-media {
        min-height: 0;
    }

    .current-project-card .project-card-img {
        border-radius: 1rem 1rem 0 0 !important;
    }

    .current-project-card .project-card-body {
        min-height: 15rem;
    }

    .current-project-card .project-name {
        font-size: 1.35rem;
    }
}

@media (max-width: 575.98px) {
    .current-project-card {
        border-radius: 0.9rem !important;
        box-shadow: var(--shadow-soft) !important;
    }

    .current-project-card .project-card-media {
        max-height: 13rem;
    }

    .current-project-card .project-card-body {
        min-height: 0;
        padding: 1.1rem !important;
    }

    .current-project-badge {
        margin-bottom: 0.7rem;
        padding: 0.34rem 0.62rem;
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }

    .current-project-card .project-name {
        font-size: 1.16rem;
    }

    .current-project-card .card-text {
        font-size: 0.94rem;
    }
}


/* base.html styling */
.nav-link.nav-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--ink);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nav-link.nav-cta:hover {
    background-color: rgba(255, 255, 255, 0.72);
    color: var(--brand-dark);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14), 0 10px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.nav-link.nav-cta.active {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.26);
}

.navbar-brand-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-brand {
    padding-left: 0.55rem !important;
}

.site-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12), 0 8px 18px rgba(37, 99, 235, 0.2);
}

.site-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
}

.site-brand.active .site-brand-mark {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(2, 6, 23, 0.16);
}

.site-navbar .navbar-toggler {
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    padding: 0.48rem 0.62rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.site-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.18);
}

@media (max-width: 768px) {
    .site-navbar {
        padding-block: 0.55rem;
    }

    .site-navbar-inner {
        border-radius: 1.25rem;
        padding: 0.55rem 0.7rem;
    }

    .navbar-brand-group {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .navbar-toggler {
        margin-left: auto;
    }

    .navbar .navbar-brand.nav-cta {
        display: inline-flex;
        align-items: center;
        padding: 0.35rem 0.55rem;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
        font-size: 0.82rem;
    }

    .navbar .navbar-collapse {
        margin-top: 0.65rem;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(37, 99, 235, 0.1);
    }

    .navbar .navbar-nav {
        gap: 0.35rem;
    }

    .navbar .nav-link.nav-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.55rem 0.9rem;
        font-size: 0.95rem;
    }

    .navbar .nav-item.nav-right {
        align-self: flex-end;
    }

    .navbar .nav-item.nav-right .nav-link.nav-cta {
        justify-content: flex-end;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .navbar-brand-group {
        flex-wrap: nowrap;
    }

    .site-brand span:last-child {
        display: none;
    }

    .navbar .navbar-brand.nav-cta {
        font-size: 0.75rem;
        padding: 0.3rem 0.45rem;
    }
}

/* certificates.html styling */
.cert-page-heading {
margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.cert-category-section {
margin-top: clamp(1.35rem, 3vw, 2rem);
}

.cert-section-header {
position: relative;
}

.cert-section-header::before {
content: "";
position: absolute;
inset: 12% -0.75rem auto;
z-index: -1;
height: 3.6rem;
border-radius: 999px;
background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
filter: blur(18px);
}

.cert-toggle {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
width: 100%;
min-height: 5rem;
padding: 0.85rem 1rem;
border: 1px solid rgba(255, 255, 255, 0.7);
border-radius: 1.1rem;
color: var(--ink);
background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(236, 253, 245, 0.62)),
    rgba(255, 255, 255, 0.74);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 1rem 2.8rem rgba(16, 24, 40, 0.1);
text-align: left;
transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.cert-toggle:hover,
.cert-toggle:focus {
border-color: rgba(37, 99, 235, 0.25);
box-shadow: var(--shadow-hover);
color: var(--ink);
transform: translateY(-2px);
}

.cert-toggle:focus-visible {
outline: 0;
box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.16), var(--shadow-hover);
}

.cert-toggle:not(.collapsed) {
border-color: rgba(20, 184, 166, 0.28);
background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.12)),
    rgba(255, 255, 255, 0.82);
}

.cert-toggle-main {
display: flex;
align-items: center;
gap: 0.9rem;
min-width: 0;
}

.cert-toggle-mark {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 2.85rem;
height: 2.85rem;
border-radius: 0.9rem;
font-size: 1rem;
font-weight: 900;
color: #ffffff;
background: linear-gradient(135deg, var(--brand), var(--accent));
box-shadow: 0 0.75rem 1.6rem rgba(37, 99, 235, 0.22);
}

.cert-toggle-text {
display: grid;
gap: 0.15rem;
min-width: 0;
}

.cert-toggle-title {
font-size: clamp(1.1rem, 2vw, 1.45rem);
font-weight: 900;
line-height: 1.15;
letter-spacing: 0;
}

.cert-toggle-subtitle {
font-size: 0.9rem;
font-weight: 700;
color: var(--muted);
}

.cert-toggle-meta {
display: inline-flex;
align-items: center;
gap: 0.6rem;
flex: 0 0 auto;
}

.cert-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 2.25rem;
height: 2.25rem;
padding-inline: 0.55rem;
border-radius: 999px;
font-size: 0.9rem;
font-weight: 900;
color: var(--brand-dark);
background: rgba(37, 99, 235, 0.09);
box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.cert-chevron {
position: relative;
width: 2.25rem;
height: 2.25rem;
border-radius: 999px;
background: rgba(15, 23, 42, 0.06);
box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.cert-chevron::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 0.55rem;
height: 0.55rem;
border-right: 2px solid var(--brand-dark);
border-bottom: 2px solid var(--brand-dark);
transform: translate(-50%, -62%) rotate(45deg);
transition: transform 180ms ease;
}

.cert-toggle:not(.collapsed) .cert-chevron::before {
transform: translate(-50%, -36%) rotate(225deg);
}

.cert-card {
transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.cert-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover) !important;
}

/* Pop frame */
.certificate-frame {
background: rgba(255, 255, 255, 0.92);
padding: 0.9rem;
border-radius: 1rem;
border: 1px solid rgba(37, 99, 235, 0.12);
box-shadow: var(--shadow-soft);
}

/* Slight hover zoom on thumbnail */
.certificate-img {
border-radius: 0.75rem;
transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}
.certificate-img:hover {
transform: scale(1.02);
box-shadow: 0 .5rem 1.25rem rgba(16, 24, 40, 0.2);
filter: saturate(1.08);
}

/* In fullscreen modal, give it more breathing room */
.modal-frame {
display: flex;
align-items: center;
justify-content: center;
width: min(980px, calc(100vw - 2rem));
height: auto;
min-height: 0;
margin: 0 auto 1.5rem;
padding: clamp(0.5rem, 2vw, 1rem);
border-radius: 1rem;
background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(2, 6, 23, 0.46);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1.25rem 3rem rgba(0,0,0,.18);
backdrop-filter: blur(12px);
}

.modal-frame img {
display: block;
width: min(100%, 820px) !important;
height: auto !important;
max-width: 100%;
max-height: none;
object-fit: contain;
border-radius: 0.9rem;
}

.modal-fullscreen .modal-content {
background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.24), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
color: #ffffff;
}

.modal-fullscreen .modal-header,
.modal-fullscreen .modal-footer {
border-color: rgba(255, 255, 255, 0.12);
background: rgba(15, 23, 42, 0.74);
backdrop-filter: blur(14px);
}

.modal-fullscreen .modal-title,
.modal-fullscreen .text-muted {
color: rgba(255, 255, 255, 0.84) !important;
}

.modal-fullscreen .btn-close {
display: none;
}

.modal-fullscreen .modal-footer .btn {
border: 0;
border-radius: 999px;
padding-inline: 1.1rem;
font-weight: 800;
}

.modal-fullscreen .modal-body {
display: block;
overflow-y: auto;
background: transparent;
padding: 1.25rem 1rem 2rem;
-webkit-overflow-scrolling: touch;
}

.modal-fullscreen .modal-body .container {
width: min(1100px, 100%);
}

.modal-fullscreen .modal-body p {
max-width: min(980px, 100%);
margin: 1.5rem auto 0 !important;
}

.section-line {
flex-grow: 1;
height: 2px;
background: linear-gradient(
to right,
rgba(37, 99, 235, 0.45),
rgba(20, 184, 166, 0.08)
);
}

/* detail.html styling */
.detail-carousel,
.projects-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.15), transparent 22rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
    box-shadow: var(--shadow-pop);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.detail-carousel::before,
.projects-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 34%),
        linear-gradient(315deg, rgba(20, 184, 166, 0.1), transparent 34%);
}

.detail-carousel .carousel-inner,
.detail-carousel .carousel-item,
.projects-carousel .carousel-inner,
.projects-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.detail-carousel .carousel-inner,
.projects-carousel .carousel-inner {
    position: relative;
    z-index: 1;
}

.detail-carousel-frame,
.projects-carousel-frame {
    width: 100%;
    padding: clamp(1rem, 2vw, 1.6rem) !important;
}

.detail-image,
.projects-carousel-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 1rem !important;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(37, 99, 235, 0.06)),
        rgba(255, 255, 255, 0.58);
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.16) !important;
}

.carousel-arrow {
    top: 50%;
    z-index: 4;
    width: clamp(2.75rem, 5vw, 3.35rem);
    height: clamp(2.75rem, 5vw, 3.35rem);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 16px 38px rgba(16, 24, 40, 0.24);
    backdrop-filter: blur(14px);
    opacity: 1;
    transform: translateY(-50%);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.carousel-arrow:hover {
    background: rgba(37, 99, 235, 0.9);
    box-shadow: 0 20px 46px rgba(37, 99, 235, 0.28);
    transform: translateY(-50%) scale(1.06);
}

.carousel-control-prev.carousel-arrow {
    left: clamp(0.75rem, 2vw, 1.25rem);
}

.carousel-control-next.carousel-arrow {
    right: clamp(0.75rem, 2vw, 1.25rem);
}

.carousel-arrow .carousel-control-prev-icon,
.carousel-arrow .carousel-control-next-icon {
    width: 1.15rem;
    height: 1.15rem;
    background-size: 100% 100%;
}

.detail-carousel .carousel-indicators,
.projects-carousel .carousel-indicators {
    z-index: 5;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.detail-carousel .carousel-indicators [data-bs-target] {
    width: 0.65rem;
    height: 0.65rem;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
    opacity: 0.72;
    transition: width 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.detail-carousel .carousel-indicators .active {
    width: 1.75rem;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    opacity: 1;
}

.detail-carousel {
    max-width: 680px;
}

.detail-carousel-frame {
    aspect-ratio: 16 / 10;
}

.detail-image {
    cursor: zoom-in;
}

.detail-layout {
    column-gap: 2.5rem;
}

@media (max-width: 767.98px) {
    .detail-media-col {
    margin-bottom: 1.5rem;
    }
}

.detail-description {
    text-align: justify;
    hyphens: auto;
    text-align-last: left;
}

.detail-modal-image {
    --lightbox-scale: 0.985;
    --lightbox-x: 0px;
    --lightbox-y: 0px;
    --lightbox-enter-x: 0px;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.9rem;
    opacity: 0;
    transform: translate3d(var(--lightbox-x), var(--lightbox-y), 0) scale(var(--lightbox-scale));
    transform-origin: center center;
    transition: opacity 180ms ease, transform 180ms ease;
    will-change: transform;
}

.detail-modal-image.is-loaded {
    --lightbox-scale: 1;
    opacity: 1;
}

.detail-modal-image.is-animating {
    animation: lightbox-image-enter 240ms ease-out both;
}

@keyframes lightbox-image-enter {
    from {
        opacity: 0;
        transform: translate3d(calc(var(--lightbox-x) + var(--lightbox-enter-x)), var(--lightbox-y), 0) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translate3d(var(--lightbox-x), var(--lightbox-y), 0) scale(var(--lightbox-scale));
    }
}

@media (prefers-reduced-motion: reduce) {
    .detail-modal-image.is-animating {
        animation: none;
    }
}

#detailImageModal .modal-dialog {
    width: min(1180px, calc(100vw - 2rem));
    max-width: none;
    margin-inline: auto;
}

#detailImageModal {
    z-index: 1065;
}

.modal-backdrop {
    z-index: 1050;
}

.image-lightbox .modal-dialog {
    min-height: calc(100vh - 2rem);
}

.image-lightbox-content {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.25rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.24), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    box-shadow: 0 34px 90px rgba(2, 6, 23, 0.58);
    overflow: hidden;
}

.image-lightbox-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(88vh, 900px);
    padding: clamp(0.75rem, 2vw, 1.25rem);
}

.image-lightbox-topbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
}

.image-lightbox-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.image-lightbox-title {
    max-width: min(620px, 62vw);
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-lightbox-counter {
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
    font-weight: 700;
}

.image-lightbox-close {
    flex: 0 0 auto;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.24);
}

.image-lightbox-close:hover {
    color: #0f172a;
    transform: translateY(-1px);
}

.image-lightbox-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(72vh, 720px);
    min-height: 0;
    padding: clamp(0.5rem, 2vw, 1rem);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(2, 6, 23, 0.46);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: zoom-out;
}

.image-lightbox-frame .detail-modal-image {
    cursor: default;
}

.image-lightbox-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.5rem, 5vw, 3.25rem);
    height: clamp(2.5rem, 5vw, 3.25rem);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: background-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.image-lightbox-control:hover {
    background: rgba(37, 99, 235, 0.88);
    transform: translateY(-50%) scale(1.06);
}

.image-lightbox-control span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding-bottom: 0.18rem;
    font-size: clamp(2.1rem, 5vw, 2.8rem);
    line-height: 1;
}

.image-lightbox-prev {
    left: clamp(0.85rem, 2vw, 1.5rem);
}

.image-lightbox-next {
    right: clamp(0.85rem, 2vw, 1.5rem);
}

/* index.html styling */
.portfolio-hero {
    position: relative;
    isolation: isolate;
    margin: 1rem 0 0;
    border-radius: 1.25rem;
    overflow: hidden;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.54)),
        linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.portfolio-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -45% 35%;
    z-index: -1;
    height: 18rem;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 68%);
}

.portfolio-hero-content {
    display: grid;
    grid-template-columns: minmax(8.5rem, 0.35fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 980px;
    margin-inline: auto;
}

.portfolio-profile-wrap {
    position: relative;
    display: grid;
    place-items: center;
    justify-self: center;
    width: clamp(13rem, 20vw, 17rem);
    aspect-ratio: 4 / 5;
    border-radius: 2.1rem;
    padding: 0.28rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.12));
    box-shadow: 0 24px 56px rgba(37, 99, 235, 0.12);
}

.portfolio-profile-wrap::after {
    content: "";
    position: absolute;
    inset: -1.1rem;
    z-index: -1;
    border-radius: 2.8rem;
    background:
        radial-gradient(circle at 40% 28%, rgba(255, 255, 255, 0.76), transparent 42%),
        radial-gradient(circle at 65% 72%, rgba(37, 99, 235, 0.13), transparent 58%),
        radial-gradient(circle at 30% 82%, rgba(20, 184, 166, 0.1), transparent 54%);
    filter: blur(1px);
}

.portfolio-profile-img,
.portfolio-profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 1.85rem;
}

.portfolio-profile-img {
    display: block;
    object-fit: cover;
    object-position: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.portfolio-profile-placeholder {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 800;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(20, 184, 166, 0.86)),
        var(--accent-gradient);
}

.portfolio-hero-copy {
    min-width: 0;
}

.portfolio-hero .lead {
    max-width: 760px;
    margin-inline: auto;
    color: var(--muted);
}

.feature-card {
    min-height: 100%;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.22) !important;
    box-shadow: var(--shadow-hover) !important;
}

.featured-carousel-section {
    margin-block: 3rem 1rem;
}

.projects-carousel {
    max-width: 920px;
}

.projects-carousel-frame {
    aspect-ratio: 16 / 9;
}

.projects-carousel-image-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.projects-carousel-image-link:hover,
.projects-carousel-image-link:focus {
    color: inherit;
    text-decoration: none;
}

.projects-carousel-image-link:hover .projects-carousel-image,
.projects-carousel-image-link:focus .projects-carousel-image {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 24px 58px rgba(37, 99, 235, 0.24) !important;
}

.projects-carousel-image {
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.projects-carousel-image-link:hover .projects-carousel-image {
    filter: saturate(1.08) contrast(1.04);
}

.projects-carousel .carousel-indicators [data-bs-target] {
    width: 0.65rem;
    height: 0.65rem;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
    opacity: 0.72;
    transition: width 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.projects-carousel .carousel-indicators .active {
    width: 1.75rem;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    opacity: 1;
}

.carousel-project-name-wrap {
    position: absolute;
    inset: auto auto clamp(1.25rem, 4vw, 2.25rem) 50%;
    z-index: 3;
    width: min(86%, 620px);
    padding: 0.7rem 1.15rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 45px rgba(2, 6, 23, 0.28);
    text-align: center;
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.carousel-project-name {
position: relative;
display: inline-block;
font-size: clamp(1rem, 2vw, 1.35rem);
font-weight: 900;
color: #ffffff;
text-shadow: 0 10px 26px rgba(2, 6, 23, 0.45);
}

.carousel-project-name::after {
content: "";
display: block;
width: 70%;
height: 0.18rem;
margin: 0.3rem auto 0;
border-radius: 999px;
background: linear-gradient(135deg, var(--brand), var(--accent));
}

.project-detail-title {
display: inline-block;
position: relative;
padding: 0.2rem 0.25rem 0.45rem;
color: var(--ink);
text-shadow: 0 12px 34px rgba(37, 99, 235, 0.12);
}

.project-detail-title::before {
content: "";
position: absolute;
inset: 10% -4% 18%;
z-index: -1;
border-radius: 999px;
background: radial-gradient(circle, rgba(255, 255, 255, 0.56), transparent 68%);
filter: blur(18px);
}

.project-detail-title::after {
content: "";
display: block;
width: min(70%, 18rem);
height: 0.22rem;
margin: 0.55rem auto 0;
border-radius: 999px;
background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* resume.html styling */
.resume-page {
padding-top: 2.25rem !important;
}

.resume-header {
max-width: 760px;
margin-inline: auto;
}

.resume-intro-card {
margin-bottom: 0.5rem;
}

.resume-intro-card .card-body {
font-size: clamp(1rem, 1.45vw, 1.18rem);
line-height: 1.75;
}

.resume-accordion {
display: grid;
gap: 1rem;
}

.resume-card {
transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.resume-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-hover) !important;
}

.resume-accordion .accordion-item {
margin-bottom: 0 !important;
border-radius: 1rem !important;
overflow: hidden;
}

.accordion-button {
    min-height: 4.25rem;
    padding: 1rem 1.25rem;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62)),
        rgba(255, 255, 255, 0.76);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.accordion-button::after {
    width: 1.15rem;
    height: 1.15rem;
    padding: 0.8rem;
    border-radius: 999px;
    background-color: rgba(37, 99, 235, 0.08);
    background-position: center;
    background-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.accordion-button:not(.collapsed) {
    color: var(--brand-dark);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(20, 184, 166, 0.08)),
        rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 -1px 0 rgba(37, 99, 235, 0.12);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.16);
}

.resume-section-title {
position: relative;
display: inline-flex;
align-items: center;
gap: 0.65rem;
}

.resume-section-title::before {
content: "";
display: inline-block;
width: 0.72rem;
height: 0.72rem;
border-radius: 999px;
background: linear-gradient(135deg, var(--brand), var(--accent));
box-shadow: 0 0 0 0.32rem rgba(37, 99, 235, 0.08);
}

.resume-accordion .accordion-body {
padding: 1rem 1rem 1.25rem !important;
background: rgba(255, 255, 255, 0.34);
}

.resume-entry-body {
display: grid;
gap: 1rem;
}

.resume-entry-body h3 {
line-height: 1.35;
}

.resume-entry-body .badge {
width: fit-content;
font-weight: 700;
}

.list-group-item {
    background: transparent;
}

.collapse-toggle {
    color: var(--ink) !important;
    transition: color 160ms ease;
}

.collapse-toggle:hover {
    color: var(--brand-dark) !important;
}

/* contact.html styling */
.contact-page {
padding-top: 2.25rem !important;
}

.contact-card {
overflow: hidden;
}

.contact-form .form-label {
font-weight: 800;
color: var(--ink);
}

.contact-form .form-control {
border: 1px solid rgba(37, 99, 235, 0.16);
border-radius: 0.9rem;
padding: 0.85rem 1rem;
background: rgba(255, 255, 255, 0.78);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.contact-form .form-control:focus {
border-color: rgba(37, 99, 235, 0.45);
box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.contact-form textarea.form-control {
resize: vertical;
min-height: 12rem;
}

.contact-card .alert {
border: 0;
border-radius: 0.9rem;
font-weight: 700;
}

@media (max-width: 768px) {
    body.site-body {
        background-attachment: scroll;
    }

    .portfolio-hero {
        border-radius: 1rem;
    }

    .portfolio-hero-content {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .portfolio-profile-wrap {
        width: clamp(10.5rem, 48vw, 12.5rem);
        border-radius: 1.65rem;
    }

    .portfolio-hero .display-4 {
        font-size: 2.35rem;
    }

    .about-hero-shell {
        padding: 0.35rem;
        border-radius: 1.1rem;
    }

    .about-hero {
        min-height: clamp(20rem, 72vw, 28rem);
        border-radius: 0.9rem;
    }

    .about-hero-img {
        object-position: center center;
    }

    .about-hero::before {
        background:
            linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.12) 64%),
            linear-gradient(90deg, rgba(15, 23, 42, 0.44), rgba(15, 23, 42, 0.12));
    }

    .about-hero-overlay {
        padding: 1rem;
    }

    .about-hero-copy {
        max-width: 100%;
    }

    .site-footer {
        margin-top: 2rem;
    }

    .resume-page {
        padding-top: 1.5rem !important;
    }

    .resume-intro-card .card-body {
        line-height: 1.65;
    }

    .resume-accordion {
        gap: 0.85rem;
    }

    .cert-toggle {
        align-items: flex-start;
        min-height: 0;
        padding: 0.85rem;
        border-radius: 0.95rem;
    }

    .cert-toggle-main {
        gap: 0.7rem;
    }

    .cert-toggle-mark {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 0.75rem;
    }

    .cert-toggle-subtitle {
        font-size: 0.82rem;
    }

    .cert-toggle-meta {
        gap: 0.4rem;
    }

    .cert-count,
    .cert-chevron {
        min-width: 2rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.82rem;
    }

    .accordion-button {
        min-height: 3.7rem;
        padding: 0.9rem 1rem;
    }

    .detail-carousel,
    .projects-carousel {
        border-radius: 1rem;
    }

    .detail-carousel-frame,
    .projects-carousel-frame {
        padding: 0.75rem !important;
    }

    .detail-carousel-frame {
        aspect-ratio: 4 / 3;
    }

    .projects-carousel-frame {
        aspect-ratio: 4 / 3;
    }

    .carousel-arrow {
        width: 2.55rem;
        height: 2.55rem;
    }

    #detailImageModal {
        overflow: hidden;
    }

    #detailImageModal .modal-dialog {
        position: fixed;
        inset: 0;
        display: block;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        min-height: 100vh;
        margin: 0;
        overflow: hidden;
    }

    .image-lightbox .modal-dialog {
        min-height: 100dvh;
    }

    .image-lightbox-content {
        height: 100dvh;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        overflow: hidden;
    }

    .image-lightbox-body {
        display: block;
        height: 100dvh;
        min-height: 100dvh;
        padding: 0;
        overflow: hidden;
    }

    .image-lightbox-topbar {
        position: absolute;
        inset: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) auto max(0.75rem, env(safe-area-inset-left));
        width: auto;
        margin-bottom: 0;
        pointer-events: none;
    }

    .image-lightbox-frame {
        width: 100vw;
        height: 100dvh;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        cursor: default;
        overflow: hidden;
        touch-action: none;
    }

    .image-lightbox-title {
        max-width: 52vw;
        text-shadow: 0 2px 12px rgba(2, 6, 23, 0.65);
    }

    .image-lightbox-meta,
    .image-lightbox-close {
        pointer-events: auto;
    }

    .image-lightbox-counter {
        background: rgba(255, 255, 255, 0.18);
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
        backdrop-filter: blur(12px);
    }

    .image-lightbox-close {
        padding: 0.5rem 0.85rem;
        font-size: 0.86rem;
    }

    .image-lightbox-control {
        display: none;
    }

    .detail-modal-image {
        width: auto;
        height: auto;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        transition: opacity 180ms ease;
        user-select: none;
        -webkit-user-drag: none;
    }

    .modal-frame {
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0 auto 1.25rem;
        padding: 0.35rem;
    }

    .modal-frame img {
        display: block;
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        max-height: none;
        margin: 0 auto;
    }

    .modal-fullscreen .modal-header {
        align-items: flex-start;
        padding: 1rem;
    }

    .modal-fullscreen .modal-title {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .modal-fullscreen .modal-header .text-muted {
        font-size: 0.9rem;
    }

    .modal-fullscreen .modal-body {
        display: block;
        overflow-y: auto;
        padding: 0.75rem 0.75rem 1.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .modal-fullscreen .modal-body .container {
        width: 100%;
        padding-inline: 0;
    }

    .modal-fullscreen .modal-body p {
        margin-top: 1rem !important;
    }
}

@media (max-width: 480px) {
    .btn-lg {
        width: 100%;
    }

    .portfolio-hero .display-4 {
        font-size: 2rem;
    }

    .card-body,
    .feature-card {
        padding: 1.15rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
    }

    .project-card:hover,
    .project-card:hover .project-card-img,
    .card:hover,
    .feature-card:hover,
    .about-card:hover,
    .cert-card:hover,
    .resume-card:hover {
        transform: none;
    }
}
