/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bs-primary-rgb: 78, 115, 223; /* Example primary color */
    --bs-secondary-rgb: 133, 135, 150;
    --bs-success-rgb: 28, 200, 138;
    --bs-info-rgb: 54, 185, 204;
    --bs-warning-rgb: 246, 194, 62;
    --bs-danger-rgb: 231, 74, 59;
    --bs-light-rgb: 248, 249, 252;
    --bs-dark-rgb: 40, 42, 54; /* Darker shade */

    --bs-body-font-family: 'Poppins', sans-serif;
    --bs-body-bg: #f0f2f5; /* Lighter grey background */
    --bs-body-color: #4f5464;
    --link-color: #4e73df;
    --link-hover-color: #2e59d9;

    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --card-hover-shadow: 0 0.35rem 2rem 0 rgba(58, 59, 69, 0.25);
}

/* Home page redesign */
.home-hero {
    --home-green: #0b7a3c;
    --home-green-bright: #2fd477;
    --home-gold: #ffc107;
    position: relative;
    margin-top: -2rem;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(11, 122, 60, 0.12), transparent 42%),
        linear-gradient(135deg, #151824 0%, #202431 58%, #181b27 100%);
    color: #fff;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to right, #000, transparent 72%);
}

.home-hero-container {
    position: relative;
    z-index: 2;
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: 0;
}

.home-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.home-hero-glow-one {
    top: -15rem;
    right: -10rem;
    width: 38rem;
    height: 38rem;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.13), transparent 68%);
}

.home-hero-glow-two {
    bottom: -18rem;
    left: 18%;
    width: 34rem;
    height: 34rem;
    background: radial-gradient(circle, rgba(47, 212, 119, 0.11), transparent 70%);
}

.home-eyebrow,
.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--home-gold, #b78100);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-eyebrow {
    margin-bottom: 1.5rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 193, 7, 0.28);
    border-radius: 50rem;
    background: rgba(255, 193, 7, 0.07);
}

.home-hero-copy h1 {
    max-width: 780px;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: clamp(2.75rem, 5.7vw, 5.35rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.99;
}

.home-hero-copy h1 span {
    display: block;
    background: linear-gradient(100deg, var(--home-green-bright), #80edbd 55%, var(--home-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero-lead {
    max-width: 660px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.8;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.home-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.45rem;
    border: 1px solid var(--home-gold);
    background: var(--home-gold);
    color: #171923;
}

.home-primary-action:hover,
.home-primary-action:focus-visible {
    border-color: #ffd65c;
    background: #ffd65c;
    color: #171923;
}

.home-text-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.home-text-action:hover {
    color: var(--home-gold);
    text-decoration: none;
}

.home-text-action i,
.home-feature-link i,
.home-section-heading > a i {
    transition: transform 0.2s ease;
}

.home-text-action:hover i,
.home-feature-link:hover i,
.home-section-heading > a:hover i {
    transform: translateX(0.25rem);
}

.home-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.home-tech-list li {
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 600;
}

.home-portrait-stage {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-portrait-grid {
    position: absolute;
    width: min(25rem, 88%);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.home-portrait-grid::before,
.home-portrait-grid::after {
    content: '';
    position: absolute;
    inset: 10%;
    border: 1px dashed rgba(255, 193, 7, 0.2);
    border-radius: 50%;
}

.home-portrait-grid::after {
    inset: 24%;
    border-style: solid;
    border-color: rgba(47, 212, 119, 0.2);
}

.home-portrait-frame {
    width: min(19rem, 68vw);
    aspect-ratio: 0.86;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10rem 10rem 1.4rem 1.4rem;
    background: linear-gradient(145deg, rgba(47, 212, 119, 0.18), rgba(255, 193, 7, 0.1));
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.38);
}

.home-portrait-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 16, 24, 0.34), transparent 42%);
}

.home-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.92) contrast(1.04);
}

.home-floating-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 3;
    position: absolute;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.65rem;
    background: rgba(31, 35, 48, 0.86);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.home-floating-card-code { top: 17%; left: -1%; }
.home-floating-card-data { right: -1%; bottom: 17%; }

.floating-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.4rem;
    background: rgba(255, 193, 7, 0.13);
    color: var(--home-gold);
}

.home-floating-card span:last-child {
    display: flex;
    flex-direction: column;
}

.home-floating-card small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.59rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-floating-card strong {
    color: #fff;
    font-size: 0.78rem;
}

.home-portrait-caption {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    position: absolute;
    z-index: 3;
    bottom: 2.7rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-portrait-caption i {
    width: 0.23rem;
    height: 0.23rem;
    border-radius: 50%;
    background: var(--home-gold);
}

.home-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
}

.home-proof-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.4rem 1.5rem;
}

.home-proof-item + .home-proof-item { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.home-proof-item > i { color: var(--home-gold); font-size: 1.35rem; }
.home-proof-item span { display: flex; flex-direction: column; }
.home-proof-item strong { color: #fff; font-size: 0.82rem; }
.home-proof-item small { color: rgba(255, 255, 255, 0.48); font-size: 0.69rem; }

.home-section {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.home-section-heading h2,
.home-feature-copy h2 {
    max-width: 720px;
    margin: 0.55rem 0 0;
    color: #202431;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.home-section-heading > p {
    max-width: 460px;
    margin: 0;
    color: #626878;
    line-height: 1.75;
}

.home-capabilities { background: #f3f5f7; }

.home-capability-card {
    height: 100%;
    min-height: 355px;
    padding: 1.55rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e4e8;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 0.8rem 2rem rgba(24, 28, 39, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-capability-card::after {
    content: '';
    position: absolute;
    right: -3rem;
    bottom: -4rem;
    width: 9rem;
    height: 9rem;
    border: 1px solid rgba(11, 122, 60, 0.09);
    border-radius: 50%;
}

.home-capability-card:hover {
    border-color: rgba(11, 122, 60, 0.35);
    transform: translateY(-0.5rem);
    box-shadow: 0 1.25rem 2.8rem rgba(24, 28, 39, 0.11);
}

.capability-number {
    position: absolute;
    top: 1.25rem;
    right: 1.35rem;
    color: #a8aeb8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.capability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 2.4rem;
    border-radius: 0.65rem;
    background: #e9f6ef;
    color: #0b6b35;
    font-size: 1.35rem;
}

.home-capability-card h3 {
    margin-bottom: 0.8rem;
    color: #202431;
    font-size: 1.1rem;
}

.home-capability-card p {
    color: #68707f;
    font-size: 0.88rem;
    line-height: 1.7;
}

.home-capability-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.home-capability-card li {
    padding: 0.32rem 0.5rem;
    border-radius: 0.3rem;
    background: #f2f4f6;
    color: #5d6471;
    font-size: 0.64rem;
    font-weight: 600;
}

.home-feature { background: #fff; }

.home-feature-shell {
    overflow: hidden;
    border-radius: 1.1rem;
    background: #171b27;
    box-shadow: 0 2rem 4.5rem rgba(22, 26, 37, 0.16);
}

.home-feature-image {
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.home-feature-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(23, 27, 39, 0.6));
}

.home-feature-image img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.home-feature-shell:hover .home-feature-image img { transform: scale(1.025); }

.home-feature-badge {
    position: absolute;
    z-index: 2;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.55rem 0.75rem;
    border-radius: 50rem;
    background: rgba(23, 27, 39, 0.9);
    color: #fff;
    font-size: 0.69rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.home-feature-badge i { margin-right: 0.35rem; color: #ffc107; }

.home-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: clamp(2.25rem, 5vw, 4.25rem);
}

.home-feature-copy .home-section-kicker { color: #ffc107; }
.home-feature-copy h2 { color: #fff; }
.home-feature-copy > p { margin: 1.4rem 0; color: rgba(255, 255, 255, 0.64); line-height: 1.8; }

.home-feature-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 2rem; }
.home-feature-tags span { padding: 0.4rem 0.6rem; border: 1px solid rgba(255,255,255,.12); border-radius: .3rem; color: rgba(255,255,255,.66); font-size: .65rem; font-weight: 600; }

.home-feature-link { display: inline-flex; align-items: center; gap: .65rem; align-self: flex-start; color: #fff; font-weight: 600; }
.home-feature-link:hover { color: #ffc107; text-decoration: none; }

.home-selected-work { background: #f3f5f7; }
.home-section-heading-centered { align-items: center; }
.home-section-heading > a { display: inline-flex; align-items: center; gap: .55rem; flex-shrink: 0; color: #0b6b35; font-weight: 600; }

.home-work-card { height: 100%; overflow: hidden; border: 1px solid #e0e4e8; border-radius: .85rem; background: #fff; box-shadow: 0 .8rem 2rem rgba(24,28,39,.05); }
.home-work-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: #e7eaed; }
.home-work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.home-work-image > span { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; position: absolute; right: 1rem; bottom: 1rem; border-radius: 50%; background: #ffc107; color: #171923; transform: translateY(.5rem); opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.home-work-card:hover .home-work-image img { transform: scale(1.045); }
.home-work-card:hover .home-work-image > span { opacity: 1; transform: translateY(0); }
.home-work-copy { padding: 1.4rem; }
.home-work-copy small { color: #0b6b35; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-work-copy h3 { margin: .5rem 0 .6rem; color: #202431; font-size: 1.15rem; }
.home-work-copy p { margin: 0; color: #69717f; font-size: .86rem; line-height: 1.7; }

@media (max-width: 991.98px) {
    .home-hero-container { padding-top: 4.5rem; }
    .home-portrait-stage { margin-top: 1rem; }
    .home-section-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .home-feature-image::after { background: linear-gradient(to bottom, transparent 70%, rgba(23,27,39,.7)); }
}

@media (max-width: 767.98px) {
    .home-hero-copy h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .home-hero-lead { font-size: .98rem; }
    .home-portrait-stage { min-height: 420px; }
    .home-floating-card-code { left: 0; }
    .home-floating-card-data { right: 0; }
    .home-proof-strip { grid-template-columns: 1fr; margin-top: 2rem; }
    .home-proof-item + .home-proof-item { border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
    .home-section { padding: 4.5rem 0; }
    .home-capability-card { min-height: 0; }
    .home-feature-image img { min-height: 300px; }
    .home-section-heading-centered > a { margin-top: .5rem; }
}

@media (max-width: 420px) {
    .home-hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .home-portrait-stage { min-height: 380px; }
    .home-portrait-frame { width: 15rem; }
    .home-floating-card { padding: .55rem .65rem; }
    .home-floating-card-code { top: 15%; }
    .home-floating-card-data { bottom: 15%; }
    .home-portrait-caption { bottom: 1.9rem; }
}

[data-bs-theme="dark"] .home-capabilities,
[data-bs-theme="dark"] .home-selected-work { background: #282a36; }

[data-bs-theme="dark"] .home-feature { background: #30323f; }

[data-bs-theme="dark"] .home-section-heading h2 { color: #f8f8f2; }
[data-bs-theme="dark"] .home-section-heading > p { color: rgba(248,248,242,.68); }
[data-bs-theme="dark"] .home-section-kicker { color: #ffc107; }
[data-bs-theme="dark"] .home-section-heading > a,
[data-bs-theme="dark"] .home-work-copy small { color: #50fa7b; }

[data-bs-theme="dark"] .home-capability-card,
[data-bs-theme="dark"] .home-work-card {
    border-color: rgba(255,255,255,.08);
    background: #343746;
}

[data-bs-theme="dark"] .home-capability-card h3,
[data-bs-theme="dark"] .home-work-copy h3 { color: #f8f8f2; }

[data-bs-theme="dark"] .home-capability-card p,
[data-bs-theme="dark"] .home-work-copy p { color: rgba(248,248,242,.66); }

[data-bs-theme="dark"] .home-capability-card li { background: rgba(255,255,255,.07); color: rgba(248,248,242,.7); }

/* Shared interior page system */
.page-hero {
    position: relative;
    margin-top: -2rem;
    overflow: hidden;
    background: linear-gradient(120deg, #171a26, #262a37);
    color: #fff;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to right, #000, transparent 78%);
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -12rem;
    right: -7rem;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,193,7,.16), transparent 68%);
}

.page-hero-inner {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.page-kicker,
.content-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #b78100;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-hero .page-kicker { color: #ffc107; }

.page-hero h1 {
    margin: .65rem 0 .8rem;
    color: #fff;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: .95;
}

.page-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.67); font-size: clamp(1rem, 1.7vw, 1.15rem); line-height: 1.75; }
.page-hero-mark { color: rgba(255,255,255,.035); font-size: clamp(5rem, 13vw, 12rem); font-weight: 700; letter-spacing: -.08em; line-height: .8; user-select: none; }
.page-section { padding: clamp(4.5rem, 8vw, 7rem) 0; }

.surface-card {
    border: 1px solid #e0e4e8;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(24,28,39,.06);
}

/* Education */
.education-journey { background: #f3f5f7; }
.education-path { position: relative; max-width: 1050px; margin: 0 auto; }
.education-path::before { content: ''; position: absolute; top: 0; bottom: 0; left: 7.5rem; width: 1px; background: linear-gradient(#ffc107, rgba(11,122,60,.25)); }
.education-card { display: grid; grid-template-columns: 6rem 4rem 1fr; gap: 1.5rem; align-items: start; position: relative; margin-bottom: 2rem; }
.education-card:last-child { margin-bottom: 0; }
.education-card-date { display: flex; flex-direction: column; align-items: flex-end; padding-top: 1.15rem; color: #626977; font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.education-card-date i { width: 1.5rem; height: 1px; margin: .28rem 0; background: #ffc107; }
.education-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; z-index: 1; border: 4px solid #f3f5f7; border-radius: 50%; background: #171b27; color: #ffc107; font-size: 1.1rem; }
.education-card-copy { padding: 1.6rem 1.75rem; border: 1px solid #e0e4e8; border-radius: .85rem; background: #fff; box-shadow: 0 .8rem 2rem rgba(24,28,39,.05); }
.education-card-copy h2 { margin: .4rem 0 .65rem; color: #202431; font-size: 1.35rem; }
.education-card-copy > p:last-child { margin: 0; color: #68707f; line-height: 1.7; }
.education-meta { display: flex; flex-wrap: wrap; gap: .65rem; color: #747b88; font-size: .75rem; }
.education-meta span { padding: .15rem .4rem; border-radius: .25rem; background: #e9f6ef; color: #0b6b35; font-weight: 700; }

/* School work */
.schoolwork-gallery { background: #f3f5f7; }
.study-card { height: 100%; overflow: hidden; border: 1px solid #e0e4e8; border-radius: 1rem; background: #fff; box-shadow: 0 1rem 2.5rem rgba(24,28,39,.06); }
.study-card-image { aspect-ratio: 16/9; overflow: hidden; position: relative; background: #dfe3e7; }
.study-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,19,28,.48), transparent 55%); }
.study-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.study-card:hover .study-card-image img { transform: scale(1.04); }
.study-card-image span { position: absolute; z-index: 1; left: 1rem; bottom: 1rem; padding: .4rem .6rem; border-radius: .3rem; background: #ffc107; color: #171923; font-size: .66rem; font-weight: 700; }
.study-card-copy { padding: 1.6rem; }
.study-card-copy small { color: #0b6b35; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.study-card-copy h2 { margin: .45rem 0 .75rem; color: #202431; font-size: 1.3rem; }
.study-card-copy p { color: #68707f; line-height: 1.75; }
.study-card-copy ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.study-card-copy li { padding: .32rem .5rem; border-radius: .25rem; background: #f0f2f4; color: #626977; font-size: .64rem; font-weight: 600; }
.study-card-featured { display: grid; grid-template-columns: 1.15fr 1fr; }
.study-card-featured .study-card-image { aspect-ratio: auto; min-height: 340px; }
.study-card-featured .study-card-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }

/* Contact and map */
.contact-section { background: #f3f5f7; }
.contact-form-card, .contact-details-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-form-card h2, .contact-details-card h2, .location-heading h2 { margin: .45rem 0 1.8rem; color: #202431; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.contact-form-card .form-label { color: #3d4350; font-size: .78rem; font-weight: 600; }
.contact-form-card .form-control { min-height: 3.25rem; border: 1px solid #d7dce1; background: #f8f9fa; }
.contact-form-card textarea.form-control { min-height: 9rem; }
.contact-submit { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.5rem; border: 1px solid #ffc107; background: #ffc107; color: #171923; }
.contact-submit:hover { border-color: #ffd55a; background: #ffd55a; color: #171923; }
.contact-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.contact-method { display: flex; align-items: center; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid #eceff1; color: #202431; }
.contact-method:last-child { border: 0; }
.contact-method:hover { color: #0b6b35; text-decoration: none; }
.contact-method > i { display: inline-flex; align-items: center; justify-content: center; width: 2.65rem; height: 2.65rem; flex: 0 0 2.65rem; border-radius: .55rem; background: #e9f6ef; color: #0b6b35; }
.contact-method span { display: flex; flex-direction: column; min-width: 0; }
.contact-method small { color: #7b828e; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-method strong { overflow-wrap: anywhere; font-size: .82rem; }
.contact-socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.contact-socials a { display: inline-flex; align-items: center; justify-content: center; min-height: 4rem; border: 1px solid #e0e4e8; border-radius: .7rem; background: #fff; color: #252936; font-size: 1.2rem; }
.contact-socials a:hover { border-color: #ffc107; background: #ffc107; color: #171923; text-decoration: none; transform: translateY(-.2rem); }
.location-section { padding: 0 0 clamp(4.5rem,8vw,7rem); background: #f3f5f7; }
.location-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.location-heading h2 { margin-bottom: 0; }
.location-heading > a { color: #0b6b35; font-weight: 600; }
.openstreetmap-frame { overflow: hidden; border: 1px solid #d8dde2; border-radius: 1rem; background: #dfe3e7; box-shadow: 0 1rem 2.5rem rgba(24,28,39,.08); }
.openstreetmap-frame iframe { display: block; width: 100%; height: 470px; border: 0; }

/* Privacy */
.privacy-section { background: #f3f5f7; }
.privacy-layout { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem; align-items: start; }
.privacy-index { display: flex; flex-direction: column; position: sticky; top: 7.5rem; padding: 1.4rem; border-left: 2px solid #ffc107; }
.privacy-index span { margin-bottom: .7rem; color: #202431; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.privacy-index a { padding: .4rem 0; color: #69717e; font-size: .78rem; }
.privacy-index a:hover { color: #0b6b35; text-decoration: none; }
.privacy-content { padding: clamp(1.5rem,5vw,3.5rem); }
.privacy-intro { padding-bottom: 2rem; border-bottom: 1px solid #e8ebee; color: #4f5664; font-size: 1.05rem; line-height: 1.8; }
.privacy-content section { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid #e8ebee; scroll-margin-top: 8rem; }
.privacy-content section:last-child { border: 0; padding-bottom: 0; }
.privacy-number { color: #b78100; font-size: .7rem; font-weight: 700; }
.privacy-content h2 { color: #202431; font-size: 1.25rem; }
.privacy-content section p { margin: 0; color: #68707f; line-height: 1.8; }

/* Project browser and details */
.project-browser { background: #f3f5f7; }
.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.project-filters { display: flex; flex-wrap: wrap; gap: .35rem; padding: .3rem; border: 1px solid #e0e4e8; border-radius: .6rem; background: #fff; }
.project-filters a { padding: .65rem .85rem; border-radius: .35rem; color: #666e7b; font-size: .72rem; font-weight: 600; }
.project-filters a:hover, .project-filters a.active { background: #171b27; color: #fff; text-decoration: none; }
.project-admin-action, .admin-primary-action { display: inline-flex; align-items: center; gap: .55rem; border-color: #ffc107; background: #ffc107; color: #171923; }
.project-admin-action:hover, .admin-primary-action:hover { border-color: #ffd55a; background: #ffd55a; color: #171923; }
.portfolio-card { height: 100%; overflow: hidden; border: 1px solid #e0e4e8; border-radius: .85rem; background: #fff; box-shadow: 0 .8rem 2rem rgba(24,28,39,.05); }
.portfolio-card-image { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: #dfe3e7; }
.portfolio-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-card:hover .portfolio-card-image img { transform: scale(1.04); }
.portfolio-card-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2.7rem; height: 2.7rem; position: absolute; right: 1rem; bottom: 1rem; border-radius: 50%; background: #ffc107; color: #171923; opacity: 0; transform: translateY(.5rem); transition: .25s ease; }
.portfolio-card:hover .portfolio-card-arrow { opacity: 1; transform: translateY(0); }
.portfolio-card-copy { padding: 1.4rem; }
.portfolio-card-meta { display: flex; justify-content: space-between; gap: .75rem; color: #0b6b35; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-card-copy h2 { margin: .6rem 0; font-size: 1.2rem; }
.portfolio-card-copy h2 a { color: #202431; }
.portfolio-card-copy h2 a:hover { color: #0b6b35; text-decoration: none; }
.portfolio-card-copy > p { min-height: 4.5rem; color: #68707f; font-size: .83rem; line-height: 1.7; }
.portfolio-card-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid #eceff1; }
.portfolio-card-actions > a { color: #0b6b35; font-size: .75rem; font-weight: 700; }
.portfolio-card-actions span { display: flex; gap: .35rem; }
.portfolio-card-actions span a { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .35rem; background: #f0f2f4; color: #59606c; }
.empty-state { padding: 5rem 1rem; text-align: center; border: 1px dashed #cfd5da; border-radius: 1rem; }
.empty-state > i { color: #b78100; font-size: 2.5rem; }
.empty-state h2 { margin-top: 1rem; color: #202431; }
.empty-state p { color: #68707f; }

.project-detail-hero { margin-top: -2rem; padding: 5rem 0 4rem; background: linear-gradient(120deg,#171a26,#272b38); color: #fff; }
.project-back-link { color: rgba(255,255,255,.66); font-size: .78rem; }
.project-back-link:hover { color: #ffc107; text-decoration: none; }
.project-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-top: 3rem; }
.project-detail-heading .page-kicker { color: #ffc107; }
.project-detail-heading h1 { max-width: 900px; margin: .5rem 0 0; color: #fff; font-size: clamp(2.7rem,6vw,5rem); letter-spacing: -.055em; line-height: 1; }
.project-status { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.15); border-radius: 50rem; color: rgba(255,255,255,.7); font-size: .68rem; }
.project-status i { width: .45rem; height: .45rem; border-radius: 50%; background: #50fa7b; }
.project-detail-section { padding: 0 0 7rem; background: #f3f5f7; }
.project-detail-image { overflow: hidden; position: relative; top: -1.5rem; border: 1px solid #d9dee3; border-radius: 1rem; background: #fff; box-shadow: 0 1.5rem 4rem rgba(24,28,39,.14); }
.project-detail-image img { display: block; width: 100%; max-height: 620px; object-fit: contain; }
.project-detail-content { margin-top: 1rem; }
.project-description-card, .project-facts { padding: clamp(1.5rem,4vw,2.5rem); }
.project-description-card h2, .project-facts h2 { margin: .45rem 0 1.4rem; color: #202431; font-size: 1.55rem; }
.rich-project-description { color: #68707f; line-height: 1.85; }
.project-facts dl { margin: 0; }
.project-facts dl div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #eceff1; }
.project-facts dl div:last-child { border: 0; }
.project-facts dt { color: #777e89; font-size: .68rem; font-weight: 600; text-transform: uppercase; }
.project-facts dd { margin: 0; color: #202431; font-size: .8rem; font-weight: 600; text-align: right; }

/* Admin forms and state pages */
.admin-page-hero { margin-top: -2rem; padding: 4.5rem 0 7rem; background: linear-gradient(120deg,#171a26,#272b38); color: #fff; }
.admin-page-hero a { color: rgba(255,255,255,.65); font-size: .78rem; }
.admin-page-hero .content-eyebrow { display: flex; margin-top: 2.5rem; color: #ffc107; }
.admin-page-hero h1 { margin: .5rem 0; color: #fff; font-size: clamp(2.5rem,6vw,4.5rem); letter-spacing: -.05em; }
.admin-page-hero p { margin: 0; color: rgba(255,255,255,.62); }
.admin-form-section { padding-bottom: 7rem; background: #f3f5f7; }
.admin-form-card { max-width: 950px; margin: 0 auto; position: relative; top: -3rem; padding: clamp(1.5rem,5vw,3.5rem); border: 1px solid #e0e4e8; border-radius: 1rem; background: #fff; box-shadow: 0 1.5rem 4rem rgba(24,28,39,.12); }
.form-section-heading { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.form-section-heading > span { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; flex: 0 0 2.4rem; border-radius: 50%; background: #171b27; color: #ffc107; font-size: .66rem; font-weight: 700; }
.form-section-heading h2 { margin: 0; color: #202431; font-size: 1.2rem; }
.form-section-heading p { margin: .25rem 0 0; color: #7a818c; font-size: .78rem; }
.admin-form-card .form-label { color: #3f4551; font-size: .76rem; font-weight: 600; }
.admin-form-card .form-control, .admin-form-card .form-select { min-height: 3.15rem; border-color: #d7dce1; background: #f8f9fa; }
.form-divider { height: 1px; margin: 2.5rem 0; background: #e8ebee; }
.upload-field { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; padding: 1.25rem; border: 1px dashed #cbd2d8; border-radius: .7rem; background: #f8f9fa; }
.upload-field > i { color: #0b6b35; font-size: 1.7rem; text-align: center; }
.admin-form-actions, .state-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e8ebee; }
.admin-secondary-action { border-color: #d2d7dc; background: transparent; color: #5e6571; }
.admin-secondary-action:hover { border-color: #171b27; background: #171b27; color: #fff; }
.state-page { display: flex; align-items: center; min-height: 68vh; margin-top: -2rem; padding: 6rem 0; background: radial-gradient(circle at top right,rgba(255,193,7,.12),transparent 32%),linear-gradient(135deg,#171a26,#292d3a); }
.state-card { max-width: 760px; margin: 0 auto; padding: clamp(2rem,6vw,4rem); border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(255,255,255,.055); color: #fff; text-align: center; box-shadow: 0 2rem 5rem rgba(0,0,0,.25); }
.state-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin-bottom: 1.5rem; border-radius: 50%; background: rgba(80,250,123,.12); color: #50fa7b; font-size: 1.7rem; }
.state-icon-danger { background: rgba(255,85,85,.12); color: #ff7b7b; }
.state-card .content-eyebrow { display: flex; justify-content: center; color: #ffc107; }
.state-card h1 { margin: .7rem 0 1rem; color: #fff; font-size: clamp(2rem,5vw,3.5rem); letter-spacing: -.045em; }
.state-card > p { color: rgba(255,255,255,.65); line-height: 1.75; }
.state-card .state-actions { justify-content: center; border-color: rgba(255,255,255,.1); }
.delete-project-facts { display: grid; grid-template-columns: repeat(3,1fr); margin: 2rem 0 0; border: 1px solid rgba(255,255,255,.1); border-radius: .65rem; }
.delete-project-facts div { padding: 1rem; }
.delete-project-facts div + div { border-left: 1px solid rgba(255,255,255,.1); }
.delete-project-facts dt { color: rgba(255,255,255,.45); font-size: .62rem; text-transform: uppercase; }
.delete-project-facts dd { margin: .35rem 0 0; color: #fff; font-size: .8rem; }
.delete-action { border-color: #dc3545; background: #dc3545; color: #fff; }
.request-id { display: inline-flex; flex-direction: column; gap: .4rem; padding: .8rem 1rem; border-radius: .5rem; background: rgba(0,0,0,.18); }
.request-id code { color: #ffc107; }

@media (max-width: 991.98px) {
    .page-hero-inner { min-height: 280px; }
    .page-hero-mark { display: none; }
    .study-card-featured { grid-template-columns: 1fr; }
    .study-card-featured .study-card-image { min-height: 280px; }
    .privacy-layout { grid-template-columns: 1fr; }
    .privacy-index { display: none; }
    .project-detail-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767.98px) {
    .education-path::before { left: 1.6rem; }
    .education-card { grid-template-columns: 3.3rem 1fr; gap: .8rem; }
    .education-card-date { grid-column: 2; align-items: flex-start; flex-direction: row; gap: .4rem; padding: 0; }
    .education-card-date i { width: 1rem; }
    .education-card-icon { grid-column: 1; grid-row: 1 / span 2; }
    .education-card-copy { grid-column: 2; }
    .location-heading, .project-toolbar { align-items: flex-start; flex-direction: column; }
    .openstreetmap-frame iframe { height: 380px; }
    .project-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .project-filters a { white-space: nowrap; }
    .project-detail-hero { padding-top: 4rem; }
    .delete-project-facts { grid-template-columns: 1fr; }
    .delete-project-facts div + div { border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
}

[data-bs-theme="dark"] .education-journey,
[data-bs-theme="dark"] .schoolwork-gallery,
[data-bs-theme="dark"] .contact-section,
[data-bs-theme="dark"] .location-section,
[data-bs-theme="dark"] .privacy-section,
[data-bs-theme="dark"] .project-browser,
[data-bs-theme="dark"] .project-detail-section,
[data-bs-theme="dark"] .admin-form-section { background: #282a36; }

[data-bs-theme="dark"] .surface-card,
[data-bs-theme="dark"] .education-card-copy,
[data-bs-theme="dark"] .study-card,
[data-bs-theme="dark"] .portfolio-card,
[data-bs-theme="dark"] .admin-form-card,
[data-bs-theme="dark"] .project-filters,
[data-bs-theme="dark"] .contact-socials a { border-color: rgba(255,255,255,.1); background: #343746; }

[data-bs-theme="dark"] .education-path::before { background: linear-gradient(#ffc107,rgba(80,250,123,.25)); }
[data-bs-theme="dark"] .education-card-icon { border-color: #282a36; }
[data-bs-theme="dark"] .education-card-copy h2,
[data-bs-theme="dark"] .study-card-copy h2,
[data-bs-theme="dark"] .contact-form-card h2,
[data-bs-theme="dark"] .contact-details-card h2,
[data-bs-theme="dark"] .location-heading h2,
[data-bs-theme="dark"] .privacy-content h2,
[data-bs-theme="dark"] .portfolio-card-copy h2 a,
[data-bs-theme="dark"] .empty-state h2,
[data-bs-theme="dark"] .project-description-card h2,
[data-bs-theme="dark"] .project-facts h2,
[data-bs-theme="dark"] .project-facts dd,
[data-bs-theme="dark"] .form-section-heading h2 { color: #f8f8f2; }

[data-bs-theme="dark"] .education-card-copy > p:last-child,
[data-bs-theme="dark"] .education-card-date,
[data-bs-theme="dark"] .education-meta,
[data-bs-theme="dark"] .study-card-copy p,
[data-bs-theme="dark"] .privacy-intro,
[data-bs-theme="dark"] .privacy-content section p,
[data-bs-theme="dark"] .portfolio-card-copy > p,
[data-bs-theme="dark"] .rich-project-description,
[data-bs-theme="dark"] .form-section-heading p { color: rgba(248,248,242,.7); }

[data-bs-theme="dark"] .content-eyebrow,
[data-bs-theme="dark"] .study-card-copy small,
[data-bs-theme="dark"] .portfolio-card-meta,
[data-bs-theme="dark"] .portfolio-card-actions > a,
[data-bs-theme="dark"] .location-heading > a { color: #50fa7b; }

[data-bs-theme="dark"] .education-meta span { background: rgba(80,250,123,.1); color: #50fa7b; }
[data-bs-theme="dark"] .study-card-copy li,
[data-bs-theme="dark"] .portfolio-card-actions span a { background: rgba(255,255,255,.07); color: rgba(248,248,242,.75); }
[data-bs-theme="dark"] .contact-form-card .form-label,
[data-bs-theme="dark"] .admin-form-card .form-label { color: rgba(248,248,242,.82); }
[data-bs-theme="dark"] .contact-form-card .form-control,
[data-bs-theme="dark"] .admin-form-card .form-control,
[data-bs-theme="dark"] .admin-form-card .form-select,
[data-bs-theme="dark"] .upload-field { border-color: rgba(255,255,255,.13); background: #2d303d; color: #f8f8f2; }
[data-bs-theme="dark"] .contact-method { border-color: rgba(255,255,255,.09); color: #f8f8f2; }
[data-bs-theme="dark"] .contact-method small { color: rgba(248,248,242,.55); }
[data-bs-theme="dark"] .contact-socials a { color: #f8f8f2; }
[data-bs-theme="dark"] .privacy-index span { color: #f8f8f2; }
[data-bs-theme="dark"] .privacy-index a { color: rgba(248,248,242,.65); }
[data-bs-theme="dark"] .privacy-number { color: #ffc107; }
[data-bs-theme="dark"] .project-filters a { color: rgba(248,248,242,.68); }
[data-bs-theme="dark"] .project-filters a:hover,
[data-bs-theme="dark"] .project-filters a.active { background: #ffc107; color: #171923; }
[data-bs-theme="dark"] .project-detail-image { border-color: rgba(255,255,255,.1); background: #343746; }
[data-bs-theme="dark"] .project-facts dl div,
[data-bs-theme="dark"] .portfolio-card-actions,
[data-bs-theme="dark"] .form-divider,
[data-bs-theme="dark"] .admin-form-actions { border-color: rgba(255,255,255,.09); }

/* Identity pages */
.identity-main { margin-top: -2rem; padding-top: 0; background: #f3f5f7; }
.identity-shell { display: flex; align-items: center; min-height: 72vh; padding: 5rem 0; }
.identity-card { display: grid; grid-template-columns: .9fr 1.1fr; max-width: 980px; margin: 0 auto; overflow: hidden; border: 1px solid #e0e4e8; border-radius: 1rem; background: #fff; box-shadow: 0 2rem 5rem rgba(24,28,39,.14); }
.identity-card-intro { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; padding: clamp(2rem,5vw,4rem); background: radial-gradient(circle at top right,rgba(255,193,7,.16),transparent 38%),linear-gradient(135deg,#171a26,#292d3a); color: #fff; }
.identity-lock { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; margin-bottom: 2rem; border: 1px solid rgba(255,193,7,.3); border-radius: .7rem; color: #ffc107; font-size: 1.4rem; }
.identity-card-intro .page-kicker { color: #ffc107; }
.identity-card-intro h1 { margin: .7rem 0 1rem; color: #fff; font-size: clamp(2rem,4vw,3rem); letter-spacing: -.045em; line-height: 1.05; }
.identity-card-intro p { color: rgba(255,255,255,.63); line-height: 1.75; }
.identity-card-intro > a { margin-top: 1.5rem; color: rgba(255,255,255,.75); font-size: .75rem; font-weight: 600; }
.identity-card-intro > a:hover { color: #ffc107; text-decoration: none; }
.identity-card-form { padding: clamp(2rem,5vw,4rem); }
.identity-card-form h2 { margin: .5rem 0 2rem; color: #202431; font-size: clamp(1.6rem,3vw,2.3rem); }
.identity-card-form .form-control { border-color: #d7dce1; background: #f8f9fa; }
.identity-form-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.5rem; font-size: .75rem; }
.identity-form-options a { color: #0b6b35; font-weight: 600; }
.identity-submit { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; border-color: #ffc107; background: #ffc107; color: #171923; }
.identity-submit:hover { border-color: #ffd55a; background: #ffd55a; color: #171923; }

.identity-main > h1,
.identity-main > h2,
.identity-main > h3,
.identity-main > p,
.identity-main > header,
.identity-main > hr,
.identity-main > .row,
.identity-main > div:not(.container) { width: min(920px,calc(100% - 2rem)); margin-right: auto; margin-left: auto; }
.identity-main > h1, .identity-main > header { margin-top: 5rem; }
.identity-main > .row, .identity-main > div:not(.container) { margin-bottom: 5rem; }
.identity-main > header { padding: 2.5rem; border-radius: 1rem; background: #fff; box-shadow: 0 1rem 2.5rem rgba(24,28,39,.08); }

.identity-main .nav-pills { padding: .5rem; border: 1px solid #e0e4e8; border-radius: .75rem; background: #fff; }
.identity-main .nav-pills .nav-link { margin: .15rem 0; border-radius: .4rem; color: #5e6572; font-size: .76rem; }
.identity-main .nav-pills .nav-link.active { background: #171b27; color: #fff; }

@media (max-width: 767.98px) {
    .identity-card { grid-template-columns: 1fr; }
    .identity-card-intro { padding: 2rem; }
    .identity-card-form { padding: 2rem 1.5rem; }
}

[data-bs-theme="dark"] .identity-main { background: #282a36; }
[data-bs-theme="dark"] .identity-card,
[data-bs-theme="dark"] .identity-main > header,
[data-bs-theme="dark"] .identity-main .nav-pills { border-color: rgba(255,255,255,.1); background: #343746; }
[data-bs-theme="dark"] .identity-card-form h2 { color: #f8f8f2; }
[data-bs-theme="dark"] .identity-card-form .form-control { border-color: rgba(255,255,255,.12); background: #2d303d; color: #f8f8f2; }
[data-bs-theme="dark"] .identity-form-options a { color: #50fa7b; }
[data-bs-theme="dark"] .identity-main .nav-pills .nav-link { color: rgba(248,248,242,.7); }
[data-bs-theme="dark"] .identity-main .nav-pills .nav-link.active { background: #ffc107; color: #171923; }

[data-bs-theme="dark"] {
    --bs-body-bg: #282a36; /* Dracula theme background */
    --bs-body-color: #f8f8f2; /* Dracula foreground */
    --bs-dark-rgb: 50, 52, 66; /* Slightly lighter dark for contrast */
    --bs-light-rgb: 68, 71, 90; /* Dracula comment color as light */
    --link-color: #8be9fd; /* Dracula cyan */
    --link-hover-color: #50fa7b; /* Dracula green */

    --card-shadow: 0 0.15rem 1.75rem 0 rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 0.35rem 2rem 0 rgba(0, 0, 0, 0.35);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400; /* Default Poppins weight */
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--bs-warning);
    color: #171923;
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    color: #171923;
    transform: translateY(0);
}

.body-bg {
    /* Optional: Add a subtle gradient or background image */
    /* background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%); */
}

main {
    flex-grow: 1; /* Explicitly ensure it grows to fill space */
    padding-top: 2rem; /* Add back default vertical padding */
    padding-bottom: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Bolder headings */
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Top Contact Bar */
.top-contact-bar {
    background: linear-gradient(135deg, #1a1c24 0%, #2c2e3a 100%);
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.top-contact-bar .contact-item {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.top-contact-bar a.contact-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.top-contact-bar .contact-item:hover {
    transform: translateY(-2px);
    color: var(--bs-warning);
}

.top-contact-bar .contact-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--bs-warning);
    transition: width 0.3s ease;
}

.top-contact-bar .contact-item:hover::after {
    width: 100%;
}

.top-contact-bar .social-icons {
    display: flex;
    gap: 1rem;
}

.top-contact-bar .social-icon {
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-contact-bar .social-icon:hover {
    text-decoration: none;
    background: linear-gradient(135deg, var(--bs-warning) 0%, #ffc107 100%);
    color: #000;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Main Navigation */
.main-navbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    background: linear-gradient(135deg, #1e2130 0%, #2c3036 100%);
    border-bottom: 3px solid var(--bs-warning);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.main-navbar.navbar-scrolled {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    background: rgba(30, 33, 48, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.main-navbar a {
    text-decoration: none;
}

.main-navbar .navbar-brand {
    min-width: 18rem;
    padding: 0.2rem 1.75rem 0.2rem 0;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.main-navbar .navbar-brand::after {
    content: '';
    position: absolute;
    top: 12%;
    right: 0;
    width: 1px;
    height: 76%;
    background: linear-gradient(to bottom, transparent, rgba(255, 193, 7, 0.75), transparent);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-wordmark {
    display: flex;
    align-items: baseline;
    gap: 0.42rem;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
    transition: letter-spacing 0.3s ease;
}

.navbar-brand:hover .brand-wordmark {
    letter-spacing: -0.015em;
}

.brand-first-name {
    color: #fff;
}

.brand-last-name {
    color: var(--bs-warning);
}

.brand-role {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 2.65rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--bs-warning);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--bs-warning);
    background: rgba(255, 193, 7, 0.14);
    transform: rotate(12deg) scale(1.05);
}

.theme-toggle:focus-visible,
.navbar-toggler:focus-visible {
    outline: 3px solid rgba(255, 193, 7, 0.4);
    outline-offset: 3px;
    box-shadow: none;
}

.primary-menu {
    align-items: stretch;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.65rem;
    background: rgba(8, 10, 18, 0.24);
}

.primary-menu > .nav-item {
    display: flex;
    align-items: stretch;
    position: relative;
}

.primary-menu > .nav-item + .nav-item::before {
    content: '';
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.11);
}

.primary-menu .menu-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.48rem 0.72rem;
    border-radius: 0.38rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

.primary-menu .menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.35rem;
    color: var(--bs-warning);
    font-size: 0.9rem;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-menu .menu-link:hover,
.primary-menu .menu-link:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.primary-menu .menu-link:hover .menu-icon,
.primary-menu .menu-link:focus-visible .menu-icon {
    border-color: rgba(255, 193, 7, 0.6);
    background: rgba(255, 193, 7, 0.1);
}

.primary-menu .menu-link.active {
    background: var(--bs-warning);
    color: #171923;
    box-shadow: 0 0.4rem 1rem rgba(255, 193, 7, 0.2);
}

.primary-menu .menu-link.active .menu-icon {
    border-color: rgba(23, 25, 35, 0.25);
    background: rgba(23, 25, 35, 0.08);
    color: #171923;
}

.primary-menu .dropdown-toggle::after {
    margin-left: 0.05rem;
}

.navbar-actions .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border-radius: 0.4rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 600;
}

.navbar-actions .nav-link.text-light {
    color: rgba(255, 255, 255, 0.72) !important;
}

.navbar-actions .nav-link:hover,
.navbar-actions .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--bs-warning) !important;
}

.main-navbar .dropdown-menu {
    background: linear-gradient(135deg, #2c3036 0%, #3a3d4d 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 2px solid var(--bs-warning);
    border-radius: 0.35rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
    min-width: 14rem;
    margin-top: 0.8rem;
    animation: dropdownSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.main-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.8rem 1.5rem;
    position: relative;
    border-radius: 0.5rem;
    margin: 0 0.5rem;
}

.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding-left: 2rem;
    transform: translateX(5px);
}

.main-navbar .dropdown-item i {
    color: var(--bs-warning);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-navbar .dropdown-item:hover i {
    transform: translateX(5px) scale(1.2);
    color: #ffffff;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e2130 0%, #2c3036 100%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--bs-warning), transparent);
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3.5rem;
    padding: 2rem 2.25rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 193, 7, 0.28);
    border-radius: 1rem;
    background: linear-gradient(120deg, rgba(255, 193, 7, 0.13), rgba(255, 255, 255, 0.04));
}

.footer-cta::after {
    content: '';
    position: absolute;
    right: -4rem;
    bottom: -6rem;
    width: 14rem;
    height: 14rem;
    border: 1px solid rgba(255, 193, 7, 0.18);
    border-radius: 50%;
}

.footer-eyebrow {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--bs-warning);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-cta h2 {
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.footer-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-cta-button {
    z-index: 1;
    flex-shrink: 0;
    border: 1px solid var(--bs-warning);
    background: var(--bs-warning);
    color: #171923;
}

.footer-cta-button:hover,
.footer-cta-button:focus-visible {
    border-color: #ffd45c;
    background: #ffd45c;
    color: #171923;
}

.footer-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 300;
    letter-spacing: -0.055em;
    line-height: 1;
    text-decoration: none;
}

.footer-wordmark strong {
    color: var(--bs-warning);
    font-weight: 700;
}

.footer-wordmark:hover {
    color: #fff;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.footer-specialism {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-specialism i {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: var(--bs-warning);
}

.footer-section {
    height: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.05);
}

.footer h5,
.footer .footer-title {
    color: var(--bs-warning);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
    font-size: 1.25rem;
}

.footer h5::after,
.footer .footer-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--bs-warning);
}

.footer address {
    font-style: normal;
    line-height: 1.6;
}

.footer .footer-links li {
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease;
}

.footer .footer-links li:hover {
    transform: translateX(5px);
}

.footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer .footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer .footer-links i {
    color: var(--bs-warning);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.footer .footer-links a:hover i {
    transform: translateX(3px);
}

.footer-social-link {
    display: flex;
    align-items: center;
}

.footer-social-link i {
    width: 20px;
    color: var(--bs-warning);
}

.footer-contact div {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.footer-contact div:hover {
    transform: translateX(5px);
}

.footer-contact i {
    color: var(--bs-warning);
}

.footer-bottom-social {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-bottom-icon {
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-bottom-icon:hover {
    text-decoration: none;
    background-color: var(--bs-warning);
    color: #000;
    transform: translateY(-3px);
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.footer-meta a,
.footer-back-to-top {
    color: rgba(255, 255, 255, 0.7);
    font: inherit;
}

.footer-back-to-top {
    padding: 0;
    border: 0;
    background: transparent;
}

.footer-meta a:hover,
.footer-back-to-top:hover {
    color: var(--bs-warning);
    text-decoration: none;
}

.floating-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1020;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: var(--bs-warning);
    color: #171923;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.floating-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-back-to-top:hover,
.floating-back-to-top:focus-visible {
    background: #ffd45c;
    transform: translateY(-0.2rem);
}


/* Cards */
.card {
    border: none;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem; /* Slightly more rounded */
    overflow: hidden; /* Ensure content respects border radius */
}

.card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: var(--card-hover-shadow);
}

.card-header, .card-footer {
    background-color: rgba(var(--bs-light-rgb), 0.5); /* Semi-transparent light */
    border-color: rgba(var(--bs-dark-rgb), 0.08);
}

/* Buttons */
.btn {
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50rem; /* Pill shape */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: var(--link-color);
    border-color: var(--link-color);
}

.btn-primary:hover {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.3rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
}

.form-control:focus, .form-select:focus {
    border-color: var(--link-color);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075), 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Timeline Tree Design */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 100px;
    bottom: 2rem;
    width: 4px;
    background: linear-gradient(180deg, var(--bs-info) 0%, #36b9cc 50%, var(--bs-info) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 0;
}

.timeline-row {
    position: relative;
    z-index: 1;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--bs-info) 0%, #17a2b8 100%);
    border: 4px solid var(--bs-body-bg);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(54, 185, 204, 0.3);
    transition: all 0.3s ease;
}

.timeline-row:hover .timeline-node {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(54, 185, 204, 0.5);
}

.timeline-connector {
    position: absolute;
    top: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-info), rgba(54, 185, 204, 0.5));
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-connector-left {
    left: calc(50% + 10px);
    right: calc(50% - 10px);
    width: calc(50% - 20px);
    background: linear-gradient(90deg, rgba(54, 185, 204, 0.5), var(--bs-info));
}

.timeline-connector-right {
    right: calc(50% + 10px);
    left: auto;
    width: calc(50% - 20px);
    background: linear-gradient(90deg, var(--bs-info), rgba(54, 185, 204, 0.5));
}

.timeline-box {
    background: var(--bs-card-bg, var(--bs-body-bg));
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-info) 0%, #36b9cc 100%);
    border-radius: 0.75rem 0.75rem 0 0;
}

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

.timeline-left .timeline-box {
    margin-right: 2rem;
}

.timeline-right .timeline-box {
    margin-left: 2rem;
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--bs-info) 0%, #17a2b8 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(54, 185, 204, 0.3);
    transition: all 0.3s ease;
}

.timeline-row:hover .timeline-date {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(54, 185, 204, 0.4);
}

/* SchoolWork - Clean alternating layout */
.schoolwork-item {
    margin-bottom: 4rem;
}

.schoolwork-item .row {
    --bs-gutter-x: 4rem;
    align-items: center;
}

.schoolwork-item img {
    width: 100%;
    transition: transform 0.3s ease;
}

.schoolwork-item:hover img {
    transform: scale(1.02);
}

/* Triangle notch pointing right > (image on left) */
.schoolwork-img-left img {
    clip-path: polygon(0 0, 100% 0, 100% 40%, 95% 50%, 100% 60%, 100% 100%, 0 100%);
}

/* Triangle notch pointing left < (image on right) */
.schoolwork-img-right img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 60%, 5% 50%, 0 40%);
}

.schoolwork-item h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.schoolwork-item p {
    color: var(--bs-body-color);
    line-height: 1.7;
}

.schoolwork-item .read-more {
    color: var(--bs-success);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.schoolwork-item .read-more:hover {
    color: #28a745;
    text-decoration: none;
}

/* Responsive for SchoolWork */
@media (max-width: 767.98px) {
    .schoolwork-item .row {
        --bs-gutter-x: 1.5rem;
    }

    .schoolwork-item .col-md-6:first-child {
        margin-bottom: 1.5rem;
    }

    .schoolwork-item .order-md-1,
    .schoolwork-item .order-md-2 {
        order: unset !important;
    }

    .schoolwork-img-left img,
    .schoolwork-img-right img {
        clip-path: none;
    }
}

/* Home Page - Sophisticated Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, rgba(7, 92, 37, 0.03) 0%, rgba(7, 92, 37, 0.08) 100%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #075C25 0%, #0a8a38 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-buttons .btn-success {
    background: linear-gradient(135deg, #075C25 0%, #0a8a38 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(7, 92, 37, 0.3);
}

.hero-buttons .btn-success:hover {
    background: linear-gradient(135deg, #0a8a38 0%, #075C25 100%);
    box-shadow: 0 6px 20px rgba(7, 92, 37, 0.4);
    transform: translateY(-2px);
}

.hero-buttons .btn-outline-secondary {
    border-width: 2px;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, #075C25, #0a8a38, #075C25) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate-border 8s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px dashed rgba(7, 92, 37, 0.3);
    border-radius: 50%;
}

.hero-image {
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Skills Section */
.skills-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #075C25, #0a8a38);
    border-radius: 2px;
}

.skill-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(7, 92, 37, 0.15);
    border-color: rgba(7, 92, 37, 0.1);
}

.skill-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(7, 92, 37, 0.1) 0%, rgba(10, 138, 56, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.skill-card:hover .skill-icon {
    background: linear-gradient(135deg, #075C25 0%, #0a8a38 100%);
    transform: scale(1.1);
}

.skill-icon i {
    font-size: 2rem;
    color: #075C25;
    transition: color 0.4s ease;
}

.skill-card:hover .skill-icon i {
    color: #fff;
}

.skill-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.skill-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Featured Projects Section */
.projects-section {
    background: #fff;
}

.project-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.project-card .card-img-top {
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.08);
}

.project-card .card-img-overlay {
    background: linear-gradient(to top, rgba(7, 92, 37, 0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.project-card:hover .card-img-overlay {
    opacity: 1;
}

.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.project-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-card .btn-success {
    background: linear-gradient(135deg, #075C25 0%, #0a8a38 100%);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-card .btn-success:hover {
    box-shadow: 0 4px 15px rgba(7, 92, 37, 0.3);
}

/* Projects */
.project-card .card-title {
    color: var(--bs-success);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse {
        margin-top: 0.8rem;
        padding: 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.8rem;
        background: rgba(255, 255, 255, 0.04);
    }

    .primary-menu {
        align-items: stretch;
        width: 100%;
        padding: 0.35rem;
        background: rgba(8, 10, 18, 0.18);
    }

    .primary-menu > .nav-item {
        display: block;
    }

    .primary-menu > .nav-item + .nav-item::before {
        top: 0;
        right: 0.65rem;
        bottom: auto;
        left: 0.65rem;
        width: auto;
        height: 1px;
    }

    .primary-menu .menu-link {
        gap: 0.75rem;
        width: 100%;
        padding: 0.65rem 0.75rem;
    }

    .primary-menu .dropdown-menu {
        margin: 0.25rem 0 0.5rem 2.65rem;
    }

    .navbar-actions {
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-node {
        left: 20px;
        transform: translateX(-50%) translateY(-50%);
    }

    .timeline-row:hover .timeline-node {
        transform: translateX(-50%) translateY(-50%) scale(1.3);
    }

    .timeline-connector-left,
    .timeline-connector-right {
        display: none;
    }

    .timeline-row .row {
        flex-direction: column;
    }

    .timeline-left .col-md-6:first-child,
    .timeline-right .col-md-6:last-child {
        order: -1;
        text-align: left !important;
        padding-left: 50px !important;
        padding-right: 1rem !important;
        margin-bottom: 0.75rem;
    }

    .timeline-left .col-md-6:last-child,
    .timeline-right .col-md-6:first-child {
        padding-left: 50px !important;
        text-align: left !important;
    }

    .timeline-box {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-left .timeline-box,
    .timeline-right .timeline-box {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-date {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .footer .text-uppercase {
        margin-top: 1rem;
    }

    .footer-cta {
        margin-bottom: 2.5rem;
        padding: 1.5rem;
    }

    .footer-meta {
        justify-content: center;
    }

    .floating-back-to-top {
        right: 0.9rem;
        bottom: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .main-navbar .navbar-brand {
        min-width: 0;
        padding-right: 0.9rem;
    }

    .main-navbar .navbar-brand::after {
        display: none;
    }

    .brand-wordmark {
        gap: 0.3rem;
        font-size: 1.08rem;
    }

    .brand-role {
        display: none;
    }

    .top-contact-bar .d-flex.gap-3 {
        gap: 0.55rem !important;
    }

    .top-contact-bar .contact-item {
        font-size: 0.76rem;
    }
}

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

/* Dark mode adjustments */
[data-bs-theme="dark"] {
    .body-bg {
       /* background-image: linear-gradient(120deg, #282a36 0%, #3a3d4d 100%); */
    }
    .card {
        background-color: var(--bs-light-rgb); /* Use the adjusted light color */
        color: var(--bs-body-color);
    }
    .card-header, .card-footer {
        background-color: rgba(var(--bs-dark-rgb), 0.5);
        border-color: rgba(var(--bs-light-rgb), 0.15);
    }
    .timeline-box {
        background-color: var(--bs-light-rgb);
        border-color: rgba(var(--bs-light-rgb), 0.2);
    }

    .timeline-node {
        border-color: var(--bs-body-bg);
    }

    .timeline-line {
        background: linear-gradient(180deg, #8be9fd 0%, #36b9cc 50%, #8be9fd 100%);
    }
    .primary-menu .menu-link:hover:not(.active) {
        background-color: rgba(248, 248, 242, 0.1); /* Light background on hover */
    }

    .primary-menu .menu-link.active {
        background: var(--bs-warning);
        color: #171923;
    }

    .hero-section {
        background: linear-gradient(135deg, #282a36 0%, #343746 55%, #2d303d 100%);
    }

    .hero-section::before {
        background: linear-gradient(135deg, rgba(80, 250, 123, 0.03), rgba(139, 233, 253, 0.08));
    }

    .hero-title,
    .section-title {
        color: #f8f8f2;
    }

    .hero-title .highlight {
        background: linear-gradient(135deg, #50fa7b, #8be9fd);
        -webkit-background-clip: text;
        background-clip: text;
    }

    .hero-subtitle {
        color: rgba(248, 248, 242, 0.72);
    }

    .hero-buttons .btn-outline-secondary {
        border-color: rgba(248, 248, 242, 0.65);
        color: #f8f8f2;
    }

    .skills-section,
    .projects-section {
        background: #282a36;
    }

    .skill-card,
    .project-card {
        border-color: rgba(255, 255, 255, 0.08);
        background: #343746;
    }

    .skill-card h4,
    .project-card .card-title {
        color: #f8f8f2;
    }

    .skill-card p,
    .project-card .card-text {
        color: rgba(248, 248, 242, 0.7);
    }
    .main-navbar .dropdown-menu {
        background-color: #3a3d4d; /* Slightly lighter dark */
        border-color: rgba(248, 248, 242, 0.1);
    }
    .main-navbar .dropdown-item {
         color: rgba(248, 248, 242, 0.8);
    }
    .main-navbar .dropdown-item:hover,
    .main-navbar .dropdown-item:focus {
        background-color: rgba(248, 248, 242, 0.1);
        color: #ffffff;
    }
    /* Dark mode adjustments for the original footer */
    .footer {
        /* Styles already defined above handle dark mode implicitly */
        /* If specific overrides were needed, they'd go here, but the original design seems fine */
    }
     /* Ensure footer links are styled correctly in dark mode if needed */
     .footer .footer-links a {
        /* Already set to white/light colors */
    }
     .footer .footer-bottom {
        /* Already set to dark background */
    }
}
