html {
    scroll-behavior: smooth;
}
body {
    font-size: 16px;
    font-family: "Inter", Roboto, system-ui, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.body-container {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 0px clamp(1rem, 10%, 10rem);

    background-color: #F5F3EF;

}

/**
* || Navigation Bar
*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem calc(1rem + 10vw);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;

    background-color: rgba(245, 243, 239, 0.92);
    backdrop-filter: blur(8px);

}

main.content {
    padding-top: var(--header-height);
}

.icon {
    width: 2em;
    height: 2em;
    vertical-align: -0.125em;
}

.right-header nav {
    display: flex;
    align-items: center;
    gap: 1rem;    
}

.left-header {
    display: flex;
    align-items: center;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(47, 24, 53, 0.2);
    border-radius: 999px;
    background: #F1EDE9;
    color: #2f1835;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.theme-toggle:hover {
    background: #EBE7E6;
}

nav a {
    color: #2f1835;
    text-decoration: none;
}

body.theme-dark {
    background-color: #18131d;
    color: #eae5ef;
}

body.theme-dark .body-container {
    background-color: #18131d;
}

body.theme-dark header {
    background-color: rgba(24, 19, 29, 0.9);
}

body.theme-dark nav a,
body.theme-dark .hero-title,
body.theme-dark .subcat-heading {
    color: #eae5ef;
}

body.theme-dark .theme-toggle {
    background: #2a2133;
    color: #f2f0ef;
    border-color: rgba(242, 240, 239, 0.28);
}

body.theme-dark .theme-toggle:hover {
    background: #362944;
}

body.theme-dark .hero-social {
    color: #f2f0ef;
    border-color: rgba(242, 240, 239, 0.35);
}

body.theme-dark .hero-social:hover {
    background-color: rgba(242, 240, 239, 0.08);
}

body.theme-dark .skill-card {
    background: #261f2f;
    border-color: #3d3347;
}

body.theme-dark .skill-name {
    color: #c9c1d2;
}

body.theme-dark .works-overlay {
    background: rgba(19, 12, 25, 0.62);
}

body.theme-dark .project-dialog {
    background: #241c2c;
    box-shadow: 0 1.25rem 3rem rgba(7, 4, 10, 0.6);
}

body.theme-dark .project-dialog-header,
body.theme-dark .project-dialog-footer {
    background: #2b2234;
    border-color: rgba(234, 229, 239, 0.14);
}

body.theme-dark .project-dialog-cta,
body.theme-dark .project-dialog-close {
    background: #3a2e47;
    color: #f2f0ef;
    border-color: rgba(242, 240, 239, 0.26);
}

body.theme-dark .project-dialog-cta:hover,
body.theme-dark .project-dialog-close:hover {
    background: #4a3a5d;
}

body.theme-dark .project-dialog-frame {
    background: #1f1827;
}

body.theme-dark #about .panel {
    background-color: #2a1f35;
}

body.theme-dark #contact .panel {
    background-color: #263628;
}

body.theme-dark .panel-content {
    color: #ece7f1;
}

body.theme-dark #about-panel a {
    color: #ece7f1;
}

body.theme-dark .contact-field label {
    color: #d8e5d8;
}

body.theme-dark .contact-field input,
body.theme-dark .contact-field textarea {
    background: rgba(63, 90, 71, 0.38);
    color: #f2f0ef;
    border-color: rgba(196, 221, 201, 0.32);
}

body.theme-dark .contact-field input::placeholder,
body.theme-dark .contact-field textarea::placeholder {
    color: rgba(242, 240, 239, 0.6);
}

body.theme-dark .contact-field input:focus,
body.theme-dark .contact-field textarea:focus {
    border-color: rgba(196, 231, 203, 0.78);
    box-shadow: 0 0 0 3px rgba(115, 161, 125, 0.34);
    background-color: rgba(77, 112, 86, 0.48);
}

body.theme-dark .contact-submit {
    background-color: #365842;
    border-color: rgba(184, 214, 191, 0.4);
}

body.theme-dark .contact-submit:hover {
    background-color: #457053;
    border-color: #457053;
}

body.theme-dark .contact-form-status.is-success {
    color: #c8e4cc;
}

body.theme-dark .contact-form-status.is-error {
    color: #ffbdbd;
}

body.theme-dark .site-footer {
    background-color: #201828;
    border-top-color: rgba(242, 240, 239, 0.12);
}

body.theme-dark .footer-tagline {
    color: #ece7f1;
}

body.theme-dark .footer-copy {
    color: rgba(236, 231, 241, 0.72);
}



/**
* || Hero
*/

section {
    padding-left: calc(1rem + 10vw);
    padding-right: calc(1rem + 10vw);
}

.hero {
    display: flex;
    text-align: left;
    align-items: center;

    height: 50vh;

}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
    max-width: 100%;
}

.hero-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.hero-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #401e48;
    border: 1px solid hsla(289, 41%, 20%, 0.35);
    border-radius: 999px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-social:hover {
    background-color: hsla(289, 41%, 20%, 0.06);
    border-color: hsla(289, 41%, 20%, 0.55);
}

.hero-social:focus-visible {
    outline: 2px solid hsl(289, 41%, 45%);
    outline-offset: 3px;
}

.hero-social--icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

.hero-social--icon img {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-social--resume {
    padding: 0.5rem 1.15rem;
}

/* make hero text responsive based on viewport size!! */
.hero-title {
    font-size: calc(1rem + 1.5vw);
    font-weight: 500;
    color: #401e48;
}

.hero-rotating-text {
    display: inline-block;
    min-width: 12ch;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-rotating-text.is-switching {
    opacity: 0;
    transform: translateY(4px);
}

#works {
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    padding-top: 1rem;
}

.subcat-heading {
    font-size: calc(1rem + 1vw);
    font-weight: normal;
    padding-top: 2rem;
    padding-bottom: 2rem;

    color: hsl(289, 41%, 15%);
}

@media screen and (max-width: 600px) {
    .hero-content {
        padding: 2rem calc(.5rem + 1vw);
    }
    .subcat-heading {
        padding: 2rem calc(.5rem + 1vw);
    }
}

/**
* || Works
*/


.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* adjust the 3 to however many columns you want */
    gap: 1rem;
    /* background-color: bisque; */
}

.works-grid a.wide {
    grid-column: span 2;
}

.works-grid a.tall {
    grid-row: span 2;
}

.works-grid a {
    text-decoration: none;
}

.works-card {
    position: relative;
    overflow: hidden; /* hides overlay when it's transparent/translated */
    border-radius: 12px;
    transition: transform .3s ease-out;
}

.works-card:hover {
    transform: scale(1.02);
}

.works-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* prevent stretching */
    display:block;
}

.works-overlay {
    position: absolute;
    inset: 0; /* shorthand for top/right/bottom/left: 0 -> essentially fills the card */
    /* background: rgba(0, 0, 0, 0.55); */
    /* background: rgba(83, 86, 36, 0.55); */
    background: rgba(64, 29, 72, 0.55);
    
    color: #F2F0EF;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transform: opacity 0.6s ease;
}

.works-overlay h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.works-overlay p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.85;
}

.works-card:hover .works-overlay {
    opacity: 1;
}

/**
* || Project Dialog Boxes
*/

.project-dialog {
    width: min(92vw, 1100px);
    height: min(90dvh, 900px);
    max-height: 90dvh;
    position: fixed;
    inset: 0;
    margin: auto;
    border: none;
    padding: 0;
    border-radius: 16px;
    overflow: visible;
    background: #ffffff;
    box-shadow: 0 1.2rem 3.2rem rgba(68, 41, 88, 0.35);
}

.project-dialog::backdrop {
    background: rgba(89, 80, 95, 0);
    backdrop-filter: blur(0px);
    transition:
      background-color 220ms ease,
      backdrop-filter 220ms ease;
  }

.project-dialog[open] {
    animation: dialog-fade-in 180ms ease-out;
}

.project-dialog[open]::backdrop {
    background-color: rgba(89, 80, 95, 0.65);
    backdrop-filter: blur(2px);
  }

.project-dialog.is-closing {
    animation: dialog-fade-out 200ms ease-in forwards;
}

.project-dialog.is-closing::backdrop {
    background-color: rgba(89, 80, 95, 0);
    backdrop-filter: blur(0px);
}

.project-dialog-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    animation: dialog-pop-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-dialog.is-closing .project-dialog-shell {
    animation: dialog-pop-out 200ms ease-in forwards;
}

.project-dialog-cta {
    border: 1px solid rgba(51, 35, 63, 0.3);
    background: #ffffff;
    color: hsl(289, 41%, 20%);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.875rem;
    text-decoration: none;
}

.project-dialog-cta:hover {
    background: #f8f4fb;
}

.project-dialog-cta.is-hidden {
    display: none;
}

.project-dialog-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.7rem 1rem 0.5rem;
    background: #F3F1ED;
}

.project-dialog-close {
    border: 1px solid rgba(51, 35, 63, 0.3);
    background: #ffffff;
    color: hsl(289, 41%, 20%);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.project-dialog-body {
    flex: 1;
    min-height: 0;
    position: relative;
}

.project-dialog-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.project-dialog-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1rem 0.9rem;
    border-top: 1px solid rgba(51, 35, 63, 0.15);
    background: #F3F1ED;
}

.project-dialog-cta:focus-visible,
.project-dialog-close:focus-visible {
    outline: 2px solid hsl(289, 41%, 45%);
    outline-offset: 2px;
}

body.dialog-open {
    overflow: hidden;
}

@keyframes dialog-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dialog-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes dialog-backdrop-in {
    from { background: rgba(89, 80, 95, 0); }
    to { background: rgba(89, 80, 95, 0.65); }
}

@keyframes dialog-backdrop-out {
    from { background: rgba(89, 80, 95, 0.65); }
    to { background: rgba(89, 80, 95, 0); }
}

@keyframes dialog-pop-in {
    from {
        opacity: 0;
        transform: scale(0.975) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes dialog-pop-out {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.982) translateY(10px);
    }
}

.project-page {
    margin: 0;
    background: #ffffff;
    color: hsl(289, 24%, 18%);
    font-family: "Inter", Roboto, system-ui, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.project-content {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(1rem, 2.2vw, 2rem);
}

.project-content h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.project-content h2 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
}

.project-content p,
.project-content li {
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-meta {
    margin-bottom: 0.75rem;
    color: hsla(289, 24%, 18%, 0.7);
}

.project-shot {
    width: 100%;
    border-radius: 12px;
    margin: 0.75rem 0 0.35rem;
    border: 1px solid rgba(61, 45, 72, 0.12);
}

html.theme-dark body.project-page {
    background: #1f1827;
    color: #ece7f1;
}

html.theme-dark .project-content {
    color: #ece7f1;
}

html.theme-dark .project-meta {
    color: rgba(236, 231, 241, 0.74);
}

html.theme-dark .project-shot {
    border-color: rgba(236, 231, 241, 0.22);
}

@media screen and (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr; /* stacks to a single column */
        gap: 0.75rem;
    }

    .works-card {
        height: 60vw;
    }

    /* overlay always visible on mobile! */
    .works-overlay {
        opacity: 1; 
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.7) 0%,     /* darker at bottom where text is */
            rgba(0, 0, 0, 0) 60%        /* fades to transparent at top */
        );
    }
    /* reset all spans on mobile so everything stacks */
    .works-grid a.wide,
    .works-grid a.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/**
* || Skills
*/

.skills-wrapper {
    width: 100%;
    /* max-width: 700px; */
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

/* .skills-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 14px;
} */

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px 16px;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;

    cursor: default;
    user-select: none;

    transition:
    border-color  0.2s ease,
    background    0.2s ease,
    box-shadow    0.2s ease,
    transform     0.18s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);        /* border → brand color */
    background:   var(--accent-bg);     /* light tinted fill    */
    box-shadow: 0 0 0 3px var(--accent-glow); /* soft ring     */
}

.skill-name {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    text-align: center;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.skill-card:hover .skill-name {
  color: var(--accent);               /* name will match accent color */
  font-weight: 600;
}

/* icon is desaturated by default*/
.skill-logo img {
    filter: grayscale(1) opacity(0.45);
    transition: filter 0.2s ease;
}

.skill-logo--theme .icon-dark,
.hero-social--theme .icon-dark {
    display: none;
}

body.theme-dark .skill-logo--theme .icon-light,
body.theme-dark .hero-social--theme .icon-light {
    display: none;
}

body.theme-dark .skill-logo--theme .icon-dark,
body.theme-dark .hero-social--theme .icon-dark {
    display: block;
}

/* on hover, full brand color snaps back */
.skill-card:hover .skill-logo img {
    filter: none;
}

.skill-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-logo svg {
    width: 44px;
    height: 44px;
}


/**
* || About
*/

.panel {
    position: fixed;
    top: var(--header-height);
    right: -30%;
    width: 30%;
    height: calc(95% - var(--header-height));
    border-radius: 12px;
    transition: right 0.3s ease;

    /* overflow: scroll; */
}

.panel.open {
    right: 0;
}

.panel-content {
    padding: 2rem;
    color: #F5F3EF;
}

.panel-content p {
    font-size: 14px;
    padding: 0.5rem;
}

.panel-content h4 {
    padding: 0.5rem 0;
}

#about .panel {
    background-color: #48315C;
}

#about-panel a {
    color: #F5F3EF;
}

.panel-content .about-education,
.panel-content .about-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
}

.panel-content .about-education-icon,
.panel-content .about-location-icon {
    width: 1.25em;
    height: auto;
    flex-shrink: 0;
}

.panel-content .about-education-text,
.panel-content .about-location-text {
    line-height: 1.45;
}

.panel-content .experience-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.panel-content .experience-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "org dates"
        "role .";
    gap: 0.35rem 1.25rem;
    align-items: baseline;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(245, 243, 239, 0.12);
}

.panel-content .experience-item:last-child {
    border-bottom: none;
}

.panel-content .experience-org {
    grid-area: org;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #F5F3EF;
}

.panel-content .experience-dates {
    grid-area: dates;
    font-size: 13px;
    color: rgba(245, 243, 239, 0.78);
    text-align: right;
    white-space: nowrap;
}

.panel-content .experience-role {
    grid-area: role;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #D4B8E8;
}


/**
* || Contact
*/

#contact .panel {
    background-color: #9BB58C;
}

.contact-form {
    margin-top: 0.75rem;
}

.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-field label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #2F4A37;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid rgba(47, 24, 53, 0.2);
    border-radius: 10px;
    background: rgba(235, 231, 230, 0.9);
    color: #2f1835;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-field textarea {
    resize: vertical;
    min-height: 7.5rem;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(47, 24, 53, 0.58);
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: rgba(64, 30, 72, 0.6);
    box-shadow: 0 0 0 3px rgba(64, 30, 72, 0.14);
    background-color: #EBE7E6;
}

.contact-submit {
    align-self: flex-start;
    margin-top: 0.25rem;
    border: 1px solid rgba(47, 74, 55, 0.35);
    border-radius: 999px;
    background-color: #2F4A37;
    color: #F2F0EF;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.contact-submit:hover {
    background-color: #3D5D47;
    border-color: #3D5D47;
    transform: translateY(-1px);
}

.contact-submit:focus-visible {
    outline: 2px solid #2F4A37;
    outline-offset: 3px;
}

.contact-submit:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.contact-form-status {
    min-height: 1.2rem;
    margin: 0.2rem 0 0;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 500;
}

.contact-form-status.is-pending {
    color: rgba(47, 74, 55, 0.85);
}

.contact-form-status.is-success {
    color: #2F4A37;
}

.contact-form-status.is-error {
    color: #7C2D2D;
}



/**
* || Footer
*/

.site-footer {
    margin-top: 4rem;
    margin-inline: calc(-1 * clamp(1rem, 10%, 10rem));
    padding: 2rem calc(1rem + 10vw) 3rem;
    border-top: 1px solid hsla(288, 30%, 20%, 0.1);
    background-color: #F5F3EF;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    max-width: 72rem;
    margin-inline: auto;
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(288, 38%, 30%);
}

.footer-copy {
    font-size: 0.8125rem;
    color: hsla(288, 38%, 25%, 0.65);
}

@media screen and (max-width: 480px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .body-container {
        padding: 0 1rem;
    }

    .site-footer {
        margin-inline: -1rem;
    }

    section {
        padding-left: clamp(0.9rem, 4vw, 2rem);
        padding-right: clamp(0.9rem, 4vw, 2rem);
    }

    .panel {
        width: min(76vw, 30rem);
        right: calc(-1 * min(76vw, 30rem));
        height: calc(100% - var(--header-height));
        border-radius: 0;
    }

    .panel-content {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 1rem clamp(0.9rem, 4vw, 2rem);
        gap: 0.75rem;
    }

    .right-header nav {
        gap: 0.75rem;
        font-size: 0.95rem;
    }

    .theme-toggle-label {
        display: none;
    }

    .theme-toggle {
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
        justify-content: center;
    }

    .hero {
        min-height: 58vh;
        height: auto;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.4rem, 8vw, 2.1rem);
        line-height: 1.25;
    }

    .hero-socials {
        gap: 0.5rem;
    }

    .hero-social--icon {
        width: 2.3rem;
        height: 2.3rem;
    }

    .project-dialog {
        width: 96vw;
        height: 92dvh;
        max-height: 92dvh;
    }

    .panel {
        top: var(--header-height);
        width: 100vw;
        right: -100vw;
        height: calc(100dvh - var(--header-height));
        z-index: 20;
    }

    .panel-content {
        padding: 1.2rem 1rem 1.4rem;
    }

    .panel-content .experience-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "org"
            "dates"
            "role";
        gap: 0.2rem;
    }

    .panel-content .experience-dates {
        text-align: left;
    }

    .site-footer {
        margin-top: 2.5rem;
        padding: 1.5rem clamp(0.9rem, 4vw, 1.25rem) 2rem;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 0.9rem clamp(0.75rem, 4vw, 1rem);
    }

    .icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .right-header nav {
        gap: 0.55rem;
        font-size: 0.9rem;
    }

    .subcat-heading {
        padding-top: 1.25rem;
        padding-bottom: 1.1rem;
    }

    .project-dialog-footer {
        padding: 0.7rem 0.75rem 0.9rem;
    }

    .project-dialog-cta {
        width: 100%;
        text-align: center;
    }
}

/**
* || Scrollbar
*/

/* Modern browsers — Chrome 121+, Edge 121+, Firefox, Safari 18.2+ */
* {
    scrollbar-width: 7px;
    scrollbar-color: #401e48 #EBE7E6;
}

/* Legacy WebKit — older Chrome/Edge/Safari, radius, borders & shadows */
*::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

*::-webkit-scrollbar-track {
    background-color: #EBE7E6;
    border-radius: 20px;
    padding: 1px;
}

*::-webkit-scrollbar-track:hover {
    background-color: #EBE7E6;
}

*::-webkit-scrollbar-track:active {
    background-color: #EBE7E6;
}

*::-webkit-scrollbar-thumb {
    background-color: #401e48;
    border-radius: 20px;
    min-height: 10px;
    box-shadow: 0 0 7px rgba(196,184,255, 0.53);
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #5d3267;
}

*::-webkit-scrollbar-thumb:active {
    background-color: #7b4b86;
}
  
*::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

html.theme-dark,
body.theme-dark {
    scrollbar-color: #cfc4d9 #2a2133;
}

html.theme-dark::-webkit-scrollbar-track,
body.theme-dark::-webkit-scrollbar-track,
html.theme-dark *::-webkit-scrollbar-track,
body.theme-dark *::-webkit-scrollbar-track {
    background-color: #2a2133;
}

html.theme-dark::-webkit-scrollbar-track:hover,
body.theme-dark::-webkit-scrollbar-track:hover,
html.theme-dark *::-webkit-scrollbar-track:hover,
body.theme-dark *::-webkit-scrollbar-track:hover {
    background-color: #2a2133;
}

html.theme-dark::-webkit-scrollbar-track:active,
body.theme-dark::-webkit-scrollbar-track:active,
html.theme-dark *::-webkit-scrollbar-track:active,
body.theme-dark *::-webkit-scrollbar-track:active {
    background-color: #2a2133;
}

html.theme-dark::-webkit-scrollbar-thumb,
body.theme-dark::-webkit-scrollbar-thumb,
html.theme-dark *::-webkit-scrollbar-thumb,
body.theme-dark *::-webkit-scrollbar-thumb {
    background-color: #cfc4d9;
    box-shadow: 0 0 7px rgba(84, 62, 103, 0.45);
}

html.theme-dark::-webkit-scrollbar-thumb:hover,
body.theme-dark::-webkit-scrollbar-thumb:hover,
html.theme-dark *::-webkit-scrollbar-thumb:hover,
body.theme-dark *::-webkit-scrollbar-thumb:hover {
    background-color: #e1d8ea;
}

html.theme-dark::-webkit-scrollbar-thumb:active,
body.theme-dark::-webkit-scrollbar-thumb:active,
html.theme-dark *::-webkit-scrollbar-thumb:active,
body.theme-dark *::-webkit-scrollbar-thumb:active {
    background-color: #f1e9f8;
}

/* Keep dark dialog styles after base dialog rules */
body.theme-dark .project-dialog {
    background: #241c2c;
    box-shadow: 0 1.25rem 3rem rgba(7, 4, 10, 0.6);
}

body.theme-dark .project-dialog-header,
body.theme-dark .project-dialog-footer {
    background: #2b2234;
    border-color: rgba(234, 229, 239, 0.14);
}

body.theme-dark .project-dialog-cta,
body.theme-dark .project-dialog-close {
    background: #3a2e47;
    color: #f2f0ef;
    border-color: rgba(242, 240, 239, 0.26);
}

body.theme-dark .project-dialog-cta:hover,
body.theme-dark .project-dialog-close:hover {
    background: #4a3a5d;
}

body.theme-dark .project-dialog-frame {
    background: #1f1827;
}
