/* Global */

/* FONT MONTSERRAT */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
         url('../fonts/Montserrat-Regular.woff') format('woff'),
         url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal; /* 400 */
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Montserrat-Medium.woff2') format('woff2'),
         url('../fonts/Montserrat-Medium.woff') format('woff'),
         url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2'),
         url('../fonts/Montserrat-SemiBold.woff') format('woff'),
         url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2'),
         url('../fonts/Montserrat-Bold.woff') format('woff'),
         url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Montserrat-ExtraBold.woff2') format('woff2'),
         url('../fonts/Montserrat-ExtraBold.woff') format('woff'),
         url('../fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Montserrat-Black.woff2') format('woff2'),
         url('../fonts/Montserrat-Black.woff') format('woff'),
         url('../fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
}

/* FONT RALEWAY */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Raleway-Regular.woff2') format('woff2'),
         url('../fonts/Raleway-Regular.woff') format('woff'),
         url('../fonts/Raleway-Regular.ttf') format('truetype');
    font-weight: normal; /* 400 */
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Raleway-Medium.woff2') format('woff2'),
         url('../fonts/Raleway-Medium.woff') format('woff'),
         url('../fonts/Raleway-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Raleway-SemiBold.woff2') format('woff2'),
         url('../fonts/Raleway-SemiBold.woff') format('woff'),
         url('../fonts/Raleway-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Raleway-Bold.woff2') format('woff2'),
         url('../fonts/Raleway-Bold.woff') format('woff'),
         url('../fonts/Raleway-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Raleway-ExtraBold.woff2') format('woff2'),
         url('../fonts/Raleway-ExtraBold.woff') format('woff'),
         url('../fonts/Raleway-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Raleway-Black.woff2') format('woff2'),
         url('../fonts/Raleway-Black.woff') format('woff'),
         url('../fonts/Raleway-Black.ttf') format('truetype');
    font-weight: 900;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(22, 15, 41, 0.3);
    z-index: 998;
    top: 0;
    left: 0;
    display: none;
}

body {
    min-height: 100vh;
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    text-size-adjust: none;
}

html {scroll-behavior: smooth;}

.site {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr);
}

main ul li {margin-left: 20px; margin-bottom: 0.25rem;}
main ul li:last-child {margin-bottom: 0;}

.block {display: block;}

:root {
    /* +++ THEME (light default) +++ */
    --color-bg: #FFFFFF;
    --color-bg-subtle: #F6F4F8;
    --color-text: #1A1229;
    --color-text-muted: #3D3649;
    --color-text-secondary: #5C5668;
    --color-border: #E8E7EA;
    --nav-link: rgba(26, 18, 41, 0.85);
    --nav-link-active: #1A1229;
    --sidebar-bg: #FFFFFF;
    --footer-bg: #160F29;
    --footer-text: #FFFFFF;
    --footer-muted: #8FD9D4;

    /* +++ COLORS +++ */

    /* Violet */
    --violet--500: #160F29;
    --violet--400: #453F54;
    --violet--300: #635E70;
    --violet--200: #94919D;
    --violet--100: #B7B5BD;
    --violet--50: #E8E7EA;
    --violet--25: #F6F4F8;

    /* Blue */
    --blue: #3590F3;

    /* Celeste */
    --celeste-400: #099786;
    --celeste-300: #6DD4C8;
    --celeste-200: #74DDD7;
    --celeste-100: rgba(213,242,242,1);
    --celeste-70: rgba(213,242,242,0.7);
    --celeste-50: rgba(213,242,242,0.5);

    /* Iris */
    --iris: #5552BA;

    /* Pine Green */
    --pine-green: #00756B;

    /* Dark Cyan */
    --dark-cyan: #1D8792;

    /* Royal Purple */
    --royal-purple: #8A4CBA;

    /* Persian Green */
    --persian-green: #099786;

    /* Font Sizes */
    --h1: 3.83rem;
    --default: 1rem;

    --h2: calc(var(--h1) / 1.25);
    --h3: calc(var(--h1) / 1.25 / 1.25);
    --h4: calc(var(--h1) / 1.25 / 1.25 / 1.25);
    --h5: calc(var(--h1) / 1.25 / 1.25 / 1.25 / 1.15);

    --small: calc(var(--default) / 1.25);
    --medium: calc(var(--default) * 1.2);
    --large: calc(var(--default) * 1.25 * 1.25);

    /* Gap Base */
    --gap: 8px;
    --gap--16: calc(var(--gap) * 2);
    --gap--24: calc(var(--gap) * 3);
    --gap--32: calc(var(--gap) * 4);
    --gap--40: calc(var(--gap) * 5);
    --gap--48: calc(var(--gap) * 6);
    --gap--56: calc(var(--gap) * 7);
    --gap--64: calc(var(--gap) * 8);
    --gap--72: calc(var(--gap) * 9);
    --gap--80: calc(var(--gap) * 10);

}

/* Dark theme */
[data-theme="dark"] {
    --color-bg: #192D3A;
    --color-bg-subtle: #1E3644;
    --color-text: #E8E7EA;
    --color-text-muted: #B7B5BD;
    --color-text-secondary: #94919D;
    --color-border: #2A4A5A;
    --nav-link: rgba(232, 231, 234, 0.85);
    --nav-link-active: #E8E7EA;
    --sidebar-bg: #192D3A;
    --footer-bg: #111F27;
    --footer-text: #E8E7EA;
    --footer-muted: #6DD4C8;
    --btn-dark-bg: rgba(226, 246, 246, 0.24);
    --btn-dark-bg-hover: rgba(226, 246, 246, 0.32);
    --btn-dark-bg-active: rgba(226, 246, 246, 0.14);
}

[data-theme="dark"] .style--line {
    background: transparent !important;
    border-color: rgba(226, 246, 246, 0.3);
}

[data-theme="dark"] .style--line:hover {
    border-color: rgba(226, 246, 246, 0.4);
}

[data-theme="dark"] .subfooter {
    background: rgba(255, 255, 255, 0.08);
    background-image: none;
    filter: none;
}

[data-theme="dark"] .grid-container {
    background: none;
}

/* Work: .contain--bento always use light-mode colors in dark mode (keep contrast) */
[data-theme="dark"] .contain--bento div div {
    background: #E8F5FF;
}
[data-theme="dark"] .contain--bento.purple div div {
    background: linear-gradient(180deg, rgba(240,246,254,1) 50%, rgba(239,239,253,1) 100%);
}
[data-theme="dark"] .contain--bento.green div div {
    background: linear-gradient(180deg, rgba(222, 242, 226, 1) 0%, rgba(234, 241, 208, 1) 100%);
}
[data-theme="dark"] .contain--bento p {
    color: #3D3649 !important;
}
[data-theme="dark"] .contain--bento .f-black {
    color: #1A1229 !important;
}

/* Work: .contain--notes always use light-mode colors in dark mode (keep contrast) */
[data-theme="dark"] .contain--notes div div {
    background: #FEF6E2;
}
[data-theme="dark"] .contain--notes.blue div div {
    background: #DAF6F6;
}
[data-theme="dark"] .contain--notes p {
    color: #3D3649 !important;
}
[data-theme="dark"] .contain--notes .f-black {
    color: #1A1229 !important;
}

/* .prevNext dark mode: darker default, current brightness on hover, lighter text */
[data-theme="dark"] .prevNext .col p {
    color: var(--footer-muted);
}
[data-theme="dark"] .prevNext .col a {
    background: rgba(226, 246, 246, 0.14);
}
[data-theme="dark"] .prevNext .col a p,
[data-theme="dark"] .prevNext .col a p.medium {
    color: var(--color-text) !important;
}
[data-theme="dark"] .prevNext .col a:hover {
    background: rgba(226, 246, 246, 0.24);
}
[data-theme="dark"] .prevNext .col a:active {
    background: rgba(226, 246, 246, 0.12);
}

/* Work: .notice (e.g. landing-pages) keep light background + dark text in dark mode */
[data-theme="dark"] .notice {
    background: #FEF6E2;
}
[data-theme="dark"] .notice p {
    color: #3D3649 !important;
}

[data-theme="dark"] .skill-container .soft-skill-item .skill-panel {
    background: rgba(226, 246, 246, 0.06);
}

[data-theme="dark"] .skill-panel span.tag.green {
    background-color: rgba(9, 151, 134, 0.28);
    color: #5EEAD4;
}
[data-theme="dark"] .skill-panel span.tag.yellow {
    background-color: rgba(255, 144, 0, 0.28);
    color: #FFC266;
}
[data-theme="dark"] .skill-panel span.tag.blue {
    background-color: rgba(58, 150, 237, 0.28);
    color: #7EC8FF;
}

/* Knowledge section: invert SVG icons (Creative & Soft skills) for dark mode */
[data-theme="dark"] .skill-container.soft-skill .skill-panel .skill-icon {
    filter: invert(1);
}

[data-theme="dark"] header.aboutBanner {
    background: rgba(226, 246, 246, 0.06);
}

[data-theme="dark"] header.aboutBanner .grid-container {
    background: rgba(226, 246, 246, 0.06);
    border: none;
}

[data-theme="dark"] .f-black {
    color: var(--color-text);
}

[data-theme="dark"] .f-blue {
    color: #4BBDFF;
}

[data-theme="dark"] p a:not(.btn--hero):not(.btn--1):not(.btn--2):not(.btn--default):not(.btn--social):not(.btn--link) {
    color: #FF8080;
}
[data-theme="dark"] p a:not(.btn--hero):not(.btn--1):not(.btn--2):not(.btn--default):not(.btn--social):not(.btn--link):hover {
    color: #FFA0A0;
}

[data-theme="dark"] footer p a,
[data-theme="dark"] footer .footer--columns .col a {
    color: var(--footer-text) !important;
}
[data-theme="dark"] footer p a:hover,
[data-theme="dark"] footer .footer--columns .col a:hover {
    color: var(--footer-text) !important;
}

[data-theme="dark"] hr {
    background: rgba(226, 246, 246, 0.2);
}

[data-theme="dark"] .hero .column hr {
    background: rgba(226, 246, 246, 0.2);
}

/* Secondary buttons: #E2F6F6 24% in dark mode (background on ::before) */
[data-theme="dark"] a.btn--1,
[data-theme="dark"] a.btn--default {
    color: #FFF !important;
    text-shadow: none;
}
[data-theme="dark"] a.btn--default p {
    color: #FFF !important;
}

[data-theme="dark"] a.btn--1::before,
[data-theme="dark"] a.btn--default::before {
    background: var(--btn-dark-bg) !important;
}

[data-theme="dark"] a.btn--1:hover::before,
[data-theme="dark"] a.btn--default:hover::before {
    background: var(--btn-dark-bg-hover) !important;
}

[data-theme="dark"] a.btn--1:active::before,
[data-theme="dark"] a.btn--default:active::before {
    background: var(--btn-dark-bg-active) !important;
}

[data-theme="dark"] a.btn--1.style--line,
[data-theme="dark"] a.btn--default.style--line {
    border-color: var(--btn-dark-bg);
    color: #FFF !important;
}

[data-theme="dark"] a.btn--1.style--line::before,
[data-theme="dark"] a.btn--default.style--line::before {
    background: var(--btn-dark-bg) !important;
}

[data-theme="dark"] a.btn--1.style--line:hover,
[data-theme="dark"] a.btn--default.style--line:hover {
    border-color: var(--btn-dark-bg-hover);
}

[data-theme="dark"] a.btn--1.style--line:hover::before,
[data-theme="dark"] a.btn--default.style--line:hover::before {
    background: var(--btn-dark-bg-hover) !important;
}

[data-theme="dark"] a.btn--1.style--line:active,
[data-theme="dark"] a.btn--default.style--line:active {
    border-color: var(--btn-dark-bg-active);
}

[data-theme="dark"] a.btn--1.style--line:active::before,
[data-theme="dark"] a.btn--default.style--line:active::before {
    background: var(--btn-dark-bg-active) !important;
}

/* Work section: arrow icon white/light in dark mode */
[data-theme="dark"] #work a.btn--1 img {
    filter: brightness(0) invert(1);
}

/* My Journey button (btn--hero style--line): same as View Case Study in dark mode */
[data-theme="dark"] a.btn--hero.style--line {
    border: none;
    color: #FFF !important;
}

[data-theme="dark"] a.btn--hero.style--line::before {
    background: var(--btn-dark-bg) !important;
}

[data-theme="dark"] a.btn--hero.style--line:hover::before {
    background: var(--btn-dark-bg-hover) !important;
}

[data-theme="dark"] a.btn--hero.style--line:active::before {
    background: var(--btn-dark-bg-active) !important;
}

[data-theme="dark"] a.btn--hero.style--line p {
    color: #FFF !important;
}

[data-theme="dark"] a.btn--social::before {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Work pages: keep .workBanner paragraph text dark gray in dark mode (readable on bright banner backgrounds) */
[data-theme="dark"] .workBanner p {
    color: #3D3649 !important;
}

/* Work pages: .full--role--panel dark mode – dark background, light text */
[data-theme="dark"] .full--role--panel {
    background: rgba(226, 246, 246, 0.06);
}

[data-theme="dark"] .full--role--panel p,
[data-theme="dark"] .full--role--panel .f-black {
    color: var(--color-text) !important;
}

/* Colors */
.f-blue {color: var(--blue);}
.f-gray {color: var(--color-text-secondary);}
.f-celeste {color: var(--celeste-400);}
.f-black {color: var(--violet--500);}
.f-iris {color: var(--iris);}
.f-pine-green {color: var(--pine-green);}
.f-dark-cyan {color: var(--dark-cyan);}
.f-royal-purple {color: var(--royal-purple);}
.f-white {color: white;}

/* Background Color */
.bg-persian-green {background-color: var(--persian-green);}

h1, h2, h3, h4, h5 {
    font-family: "Montserrat", sans-serif;
    line-height: 1.25;
}

/* Font Sizes */

h1 {font-size: var(--h1);}
h2 {font-size: var(--h2);}
h3 {font-size: var(--h3);}
h4 {font-size: var(--h4);}
h5 {font-size: var(--h5);}

p, ul li, ol li {font-size: var(--default); color: var(--color-text-muted);}
p.large, ul li.large, ol li.large {font-size: var(--large);}
p.medium, ul li.medium, ol li.medium {font-size: var(--medium);}
p.small, ul li.small, ol li.small {font-size: var(--small);}

.mediumBold {font-weight: 500;}
.semiBold {font-weight: 600;}
.bold {font-weight: 700;}
.extraBold {font-weight: 800;}
.black {font-weight: 900;}

.uppercase {text-transform: uppercase;}

p a {
    color: #FF4545;
}

hr {
    margin: 32px 0;
    border: none;
    height: 2px;
    background: var(--violet--50);
    width: 100%;
}

hr.half {width: 33%;}
hr.margin--80 {margin: 80px 0;}

.contrast {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ++ GAP ++ */
.gap {padding: var(--gap) 0 0;}
.gap--8 {padding: var(--gap) 0 0;}
.gap--16 {padding: var(--gap--16) 0 0;}
.gap--24 {padding: var(--gap--24) 0 0;}
.gap--32 {padding: var(--gap--32) 0 0;}
.gap--40 {padding: var(--gap--40) 0 0;}
.gap--48 {padding: var(--gap--48) 0 0;}
.gap--56 {padding: var(--gap--56) 0 0;}
.gap--64 {padding: var(--gap--64) 0 0;}
.gap--72 {padding: var(--gap--72) 0 0;}
.gap--80 {padding: var(--gap--80) 0 0;}

p.gap--8, h1.gap--8, h2.gap--8, h3.gap--8, h4.gap--8, h5.gap--8, img.gap--8 {margin-bottom: var(--gap); padding: 0;}
p.gap--16, h1.gap--16, h2.gap--16, h3.gap--16, h4.gap--16, h5.gap--16, img.gap--16 {margin-bottom: var(--gap--16); padding: 0;}
p.gap--24, h1.gap--24, h2.gap--24, h3.gap--24, h4.gap--24, h5.gap--24, img.gap--24 {margin-bottom: var(--gap--24); padding: 0;}
p.gap--32, h1.gap--32, h2.gap--32, h3.gap--32, h4.gap--32, h5.gap--32, img.gap--32 {margin-bottom: var(--gap--32); padding: 0;}
p.gap--40, h1.gap--40, h2.gap--40, h3.gap--40, h4.gap--40, h5.gap--40, img.gap--40 {margin-bottom: var(--gap--40); padding: 0;}
p.gap--48, h1.gap--48, h2.gap--48, h3.gap--48, h4.gap--48, h5.gap--48, img.gap--48 {margin-bottom: var(--gap--48); padding: 0;}
p.gap--56, h1.gap--56, h2.gap--56, h3.gap--56, h4.gap--56, h5.gap--56, img.gap--56 {margin-bottom: var(--gap--56); padding: 0;}
p.gap--64, h1.gap--64, h2.gap--64, h3.gap--64, h4.gap--64, h5.gap--64, img.gap--64 {margin-bottom: var(--gap--64); padding: 0;}
p.gap--72, h1.gap--72, h2.gap--72, h3.gap--72, h4.gap--72, h5.gap--72, img.gap--72 {margin-bottom: var(--gap--72); padding: 0;}
p.gap--80, h1.gap--80, h2.gap--80, h3.gap--80, h4.gap--80, h5.gap--80, img.gap--80 {margin-bottom: var(--gap--80); padding: 0;}

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

/* Buttons - background scales via ::before, text/icon stay same size */
a.btn--1, a.btn--2, a.btn--default, a.btn--hero, a.btn--social {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-direction: row;
    width: auto;
    flex-wrap: wrap;
    transition: all 300ms ease;
    position: relative;
}

a.btn--1 > *, a.btn--2 > *, a.btn--default > *, a.btn--hero > *, a.btn--social > * {
    position: relative;
    z-index: 1;
}

a.btn--1, a.btn--2, a.btn--default, a.btn--hero {
    line-height: 1.5;
    height: 64px;
    color: var(--celeste-400);
    text-decoration: none;
    background-color: transparent;
    border-radius: 9999px;
}

a.btn--2, a.btn--hero {
    height: 72px;
    background: transparent;
    color: #FFF;
    text-shadow: none;
}

/* Scalable background layer - only this scales on hover/active (z-index: -1 so text stays on top) */
a.btn--1::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: var(--celeste-70);
    z-index: -1;
    transition: transform 300ms ease;
    transform: scale(1);
    transform-origin: center;
}

a.btn--1:hover::before {
    transform: scale(1.05);
    background-color: var(--celeste-50);
}

a.btn--1:active::before {
    transform: scale(0.98);
    background-color: var(--celeste-100);
}

a.btn--2::before, a.btn--hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(40deg, rgba(69, 168, 215, 1) 0%, rgba(69, 201, 175, 1) 100%);
    z-index: -1;
    transition: transform 300ms ease;
    transform: scale(1);
    transform-origin: center;
}

a.btn--2:hover::before, a.btn--hero:hover::before {
    transform: scale(1.05);
    background: #45C7AC;
}

a.btn--2:active::before, a.btn--hero:active::before {
    transform: scale(0.98);
    background: #3590F3;
}

/* .single: only scale ::before (background), not the button or text; overflow visible so scale shows on all sides */
a.btn--2.single, a.btn--hero.single {
    overflow: visible;
}
a.btn--2.single:hover::before, a.btn--hero.single:hover::before {
    transform: scale(1.05);
    background: #45C7AC;
}
a.btn--2.single:active::before, a.btn--hero.single:active::before {
    transform: scale(0.98);
    background: #3590F3;
}

/* Brillbaby work banner: keep dark purple button */
.workBanner.brillbaby a.btn--hero::before {
    background: var(--royal-purple) !important;
}
.workBanner.brillbaby a.btn--hero:hover::before {
    background: #9d6bc9 !important;
}
.workBanner.brillbaby a.btn--hero:active::before {
    background: #7540a8 !important;
}

a.btn--default::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: var(--celeste-70);
    z-index: -1;
    transition: transform 300ms ease, filter 300ms ease;
    transform: scale(1);
    transform-origin: center;
}

a.btn--default:hover::before {
    transform: scale(1.05);
    filter: brightness(105%);
}

a.btn--default:active::before {
    transform: scale(0.98);
    filter: brightness(90%);
}

a.btn--social::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #373147;
    z-index: 0;
    transition: transform 300ms ease, filter 300ms ease;
    transform: scale(1);
    transform-origin: center;
}

a.btn--social:hover::before {
    transform: scale(1.05);
    filter: brightness(120%);
}

a.btn--social:active::before {
    transform: scale(0.98);
    filter: brightness(90%);
}

a.btn--social.celeste::before {
    background: #35B2AA;
}

a.btn--1 img, a.btn--2 img { height: auto; }

a.btn--social {
    display: inline-block;
    background: transparent;
    border-radius: 9999px;
}

a.btn--social img { display: block; height: auto; }

/* Button Sizes */
a.btn--1 { padding: 0 24px 0 32px; }
a.btn--1.single, a.btn--default { padding: 0 32px; }
a.btn--2, a.btn--hero { padding: 0 32px 0 40px; }
a.btn--2.single, a.btn--hero.single { padding: 0 32px; }
a.btn--social img, a.btn--social.celeste img { width: 54px; height: auto; }
a.btn--1 img { width: 18px; }
a.btn--2 img, a.btn--hero img { width: 24px; }
a.btn--hero img, a.btn--2 img {
    filter: none;
}

/* Link Button - background scales via ::before, text stays same size */
a.btn--link {
    position: absolute;
    top: var(--gap--32);
    right: var(--gap--32);
    background: transparent;
    padding: var(--gap) var(--gap--24);
    font-size: var(--default);
    border-radius: 100px;
    text-decoration: none;
    color: var(--violet--500);
    box-shadow: 0 var(--gap) var(--gap--40) rgba(0,0,0,0.18);
    backdrop-filter: blur(14px);
    display: flex;
    gap: var(--gap);
    border: 1px solid rgba(255,255,255,0.5);
    justify-content: center;
    align-items: center;
    transition: all 300ms ease;
}

a.btn--link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
    transition: transform 300ms ease, background 300ms ease, filter 300ms ease;
    transform: scale(1);
    transform-origin: center;
}

a.btn--link:hover::before {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

a.btn--link:active::before {
    transform: scale(0.98);
    filter: brightness(90%);
}

a.btn--link > * {
    position: relative;
    z-index: 1;
}

/* New Hero */
.btn--container {
    display: flex;
    gap: var(--gap--16);
    opacity: 0;
    transform: translateY(1rem);
 }

.style--line {
    box-sizing: border-box;
    border: 1.5px solid var(--color-border);
    background: transparent !important;
    text-shadow: none!important;
}

a.btn--1.style--line::before,
a.btn--default.style--line::before,
a.btn--hero.style--line::before {
    background: var(--color-bg) !important;
}

a.btn--1.style--line:hover::before,
a.btn--default.style--line:hover::before,
a.btn--hero.style--line:hover::before {
    background-color: var(--celeste-70) !important;
}

.style--line:hover {
    border-color: var(--celeste-70);
    filter: none;
}

 .style--gradient {
    background: #45A8D7;
    background: -webkit-linear-gradient(40deg, rgba(69, 168, 215, 1) 0%, rgba(69, 201, 175, 1) 100%);
    background: -moz-linear-gradient(40deg, rgba(69, 168, 215, 1) 0%, rgba(69, 201, 175, 1) 100%);
    background: linear-gradient(40deg, rgba(69, 168, 215, 1) 0%, rgba(69, 201, 175, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#45A8D7", endColorstr="#45C9AF", GradientType=0);
 }

/* Nav */
nav {
    background: var(--color-bg);
}

.nav-container {
    width: 1280px;
    margin: 0 auto;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 100px;
}

nav a {
    height: 100%;
    padding: 0 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--nav-link);
    transition: all 300ms ease-in-out;
    position: relative;
    font-size: 0.833rem;
    text-transform: uppercase;
}

nav a:hover, nav a.active {
    color: var(--nav-link-active);
}

/* Apply ::after for all a elements except for first and last children */
nav a::after {
    content: '';
    width: 0;
    background: var(--celeste-300);
    height: 3px;
    border-radius: 10px;
    display: block;
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    transition: all 300ms ease-in-out;
}

nav a:hover::after, nav a.active::after {
    width: 20%;
}

/* Remove ::after for first and last items */
nav li:first-child a::after,
nav li:last-child a::after {
    content: none;
}

/* Sidebar: no horizontal line on active (left border only) */
.sidebar-nav a::after {
    display: none !important;
    content: none !important;
}

nav li:first-child {
    margin-right: auto;
}

/* ========== SIDEBAR (mobile) – per screenshots ========== */
.sidebar {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    min-height: 100dvh;
    z-index: 999;
    background-color: #FFFFFF;
    backdrop-filter: blur(44px);
    box-shadow: none;
    margin: 0;
    padding: 0 40px;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    box-sizing: border-box;
}

@media screen and (min-width: 769px) {
    nav .sidebar {
        display: none !important;
    }
}

/* Close button: top right, 32px spacing */
.sidebar-close {
    position: absolute;
    top: 32px;
    right: 32px;
    margin: 0;
    list-style: none;
}
.sidebar-close .closeSideBar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #DEF8F5;
    color: #1D977E;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}
.sidebar-close .closeSideBar:hover {
    filter: brightness(0.96);
}
.sidebar-close .closeSideBar:active {
    filter: brightness(0.9);
}
.sidebar-close .closeSideBar svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Center block */
.sidebar-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 0;
    width: 100%;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}
ul.sidebar-nav li {
    height: auto;
}
ul.sidebar-nav li a {
    height: 54px;
}

/* Each menu item: 44px height, 24px L/R padding, text left, vertical center, gray */
.sidebar-nav > li > a,
.sidebar-nav .sidebar-work-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 54px;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
    text-decoration: none;
    color: #6B7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    border-left: 3px solid transparent;
}
.sidebar-nav > li > a:hover,
.sidebar-nav .sidebar-work-toggle:hover {
    color: #374151;
}
.sidebar-nav > li > a.active,
.sidebar-nav .sidebar-work-item.active .sidebar-work-toggle {
    color: #1F2937;
    font-weight: 500;
    border-left-color: #1D977E;
}
/* Work item: button only; submenu is next li */
.sidebar-work-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    flex-shrink: 0;
}
.sidebar-chevron {
    display: inline-flex;
    margin-left: auto;
    transition: transform 0.25s ease;
}
.sidebar-work-item.expanded .sidebar-chevron {
    transform: rotate(180deg);
}

/* Submenu container: show when Work is expanded (adjacent sibling) */
.submenu-container {
    margin: 0;
    max-height: 0;
    min-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0;
    list-style: none;
}
.sidebar-work-item.expanded + .submenu-container {
    max-height: 280px;
}
.submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    margin: 0 0 -16px 0;
    padding: 0;
    width: 100%;
    transition: max-height 0.25s ease, margin 0.25s ease;
}
.sidebar-work-item.expanded + .submenu {
    max-height: 220px;
    margin-bottom: 0;
}
.submenu li a {
    padding: 0 40px;
    text-transform: capitalize;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    min-height: 34px;
    height: 34px;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: #6B7280;
    font-weight: normal;
    transition: color 0.2s ease;
    text-align: left;
}
.submenu li a:hover {
    color: #374151;
}
.submenu li a.active {
    color: #1F2937;
    font-weight: 700;
}

/* Theme wrap: 60px height, 24px L/R padding; align left like other items */
.sidebar-theme-wrap {
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
    box-sizing: border-box;
    width: 100%;
}
.sidebar-theme-wrap .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #E5E7EB;
    color: #1F2937;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-theme-wrap .theme-toggle:hover {
    background: #D1D5DB;
}
.sidebar-theme-wrap .theme-toggle svg {
    width: 22px;
    height: 22px;
}
.sidebar-theme-wrap .theme-toggle .icon-light svg,
.sidebar-theme-wrap .theme-toggle .icon-dark svg {
    stroke-width: 1.5;
}
.sidebar-theme-wrap .theme-toggle span {
    position: relative;
    top: 1px;
}

/* Dark mode sidebar */
[data-theme="dark"] .sidebar {
    background-color: #111F27;
}
[data-theme="dark"] .sidebar-close .closeSideBar {
    background: #45C7AC;
    color: #FFFFFF;
}
[data-theme="dark"] .sidebar-nav > li > a,
[data-theme="dark"] .sidebar-nav .sidebar-work-toggle {
    color: #B3BABE;
}
[data-theme="dark"] .sidebar-nav > li > a:hover,
[data-theme="dark"] .sidebar-nav .sidebar-work-toggle:hover {
    color: #E5E7EB;
}
[data-theme="dark"] .sidebar-nav > li > a.active,
[data-theme="dark"] .sidebar-work-item.active .sidebar-work-toggle {
    color: #FFFFFF;
    border-left-color: #45C7AC;
}
[data-theme="dark"] .submenu li a {
    color: #B3BABE;
}
[data-theme="dark"] .submenu li a:hover {
    color: #E5E7EB;
}
[data-theme="dark"] .submenu li a.active {
    color: #FFFFFF;
    font-weight: 700;
}
[data-theme="dark"] .sidebar-theme-wrap .theme-toggle {
    background: #192D3A;
    color: #FFFFFF;
}
[data-theme="dark"] .sidebar-theme-wrap .theme-toggle:hover {
    background: #243B4A;
}

.hideOnDesktop {display: none!important;}

ul.navBar li:first-child a {padding: 0;}

.showSideBar a svg {
    fill: currentColor;
}

/* Theme toggle */
/* Vertically center theme toggle with nav text */
nav ul.navBar li:has(.theme-toggle) {
    display: flex;
    align-items: center;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--nav-link);
    transition: color 0.2s ease, background 0.2s ease;
    transform: translateY(-1px);
}
.theme-toggle:hover {
    color: var(--nav-link-active);
    background: var(--celeste-50);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--celeste-400);
    outline-offset: 2px;
}
.theme-toggle svg {
    width: 24px;
    height: 24px;
}
/* Light mode: thinner stroke for moon icon only */
.theme-toggle .icon-light svg {
    stroke-width: 1.35;
}
.theme-toggle .icon-dark { display: none; }
.theme-toggle .icon-light { display: block; }
[data-theme="dark"] .theme-toggle .icon-dark { display: block; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
/* Nav logo: dark fill becomes light in dark mode */
[data-theme="dark"] nav .iconLogo {
    filter: brightness(0) invert(1);
}
/* Flex */
.container {
    display: flex;
    width: 100%;
    gap: 60px;
    box-sizing: border-box;
}
.column {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
/* Hero: equal 50/50 columns, no overlap */
.hero .column {
    flex: 1 1 0;
    min-width: 0;
}
.hero .column--hero-image {
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero .column--hero-image .heroImage {
    width: 100%;
    max-width: 100%;
}
.hero {
    height: calc(95vh - 100px);
    padding: 60px 0;
    position: relative;
}
.container.hero {
    gap: 40px;
}

img.heroImage {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 24px;
    image-rendering: high-quality;
}

/* Animation Hero – CSS-driven (no JS library) */
.hero .column h1, .hero .column h4, .hero .column p,
.hero .btn--container, .hero .btn--container p,
img.heroImage, #work .contain--1280px h2.extraBold.center.f-blue {
    opacity: 0;
}
.hero .column h1, .hero .column h4, .hero .column p,
.hero .btn--container, .hero .btn--container p {
    transform: translateY(20px);
}
.hero .column hr {
    width: 0;
    height: 2px;
    background: var(--violet--50);
    border: none;
}

body.hero-ani .hero .column h1 {
    animation: heroFadeUp 0.6s ease forwards;
}
body.hero-ani .hero .column h4.f-blue.bold {
    animation: heroFadeUp 0.6s ease 0.2s forwards;
}
body.hero-ani .hero .column hr {
    animation: heroLine 0.5s ease 0.4s forwards;
}
body.hero-ani .hero .column p {
    animation: heroFadeUp 0.6s ease 0.6s forwards;
}
body.hero-ani .hero .btn--container,
body.hero-ani .hero .btn--container p {
    animation: heroFadeUp 0.6s ease 0.8s forwards;
}
body.hero-ani .heroImage {
    animation: heroFade 0.4s ease 0.2s forwards;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes heroLine {
    from { width: 0; }
    to { width: 33%; }
}

/* Work section – full width, 60px vertical padding; content in .contain--1280px */
#work {
    width: 100%;
    padding: var(--gap--80) 0;
    background-color: #F9F9F9;
    box-sizing: border-box;
}
[data-theme="dark"] #work {
    background-color: var(--footer-bg);
}
#work .contain--1280px .portfolio {
    margin-bottom: 0;
}
#work .contain--1280px .portfolio .item {
    opacity: 0;
    transform: translateY(20px);
}
#work.work-visible .contain--1280px h2.extraBold.center.f-blue {
    animation: heroFade 0.4s ease forwards;
}
#work.work-visible .contain--1280px .portfolio .item {
    animation: heroFadeUp 0.6s ease forwards;
}
#work.work-visible .contain--1280px .portfolio .item:nth-child(1) { animation-delay: 0s; }
#work.work-visible .contain--1280px .portfolio .item:nth-child(2) { animation-delay: 0.1s; }
#work.work-visible .contain--1280px .portfolio .item:nth-child(3) { animation-delay: 0.2s; }
#work.work-visible .contain--1280px .portfolio .item:nth-child(4) { animation-delay: 0.3s; }
#work.work-visible .contain--1280px .portfolio .item:nth-child(5) { animation-delay: 0.4s; }

.contain--1280px {
    width: 1280px;
    margin: 0 auto;
    overflow: hidden;
}
.contain--1024px {
    width: 1024px;
    margin: 0 auto;
    overflow: hidden;
}

/* Desktop: allow button hover scale to show (no clip) */
@media screen and (min-width: 769px) {
    .contain--1280px,
    .contain--1024px {
        overflow: visible;
    }
}

/* Portfolio cards */
.portfolio {
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--gap--40);
    margin-bottom: 80px;
}
.portfolio .item {
    flex: 0 0 calc(33.33% - 26.67px);
    display: grid;
    grid-template-rows: auto 1fr;
    background: #FFFFFF;
    border-radius: var(--gap--24);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease;
}
.portfolio .item[data-href] {
    cursor: pointer;
}
.portfolio .item[data-href]:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.portfolio .item[data-href]:hover h5 {
    color: var(--dark-cyan);
}
.portfolio .item h5 {
    transition: color 0.25s ease-in-out;
}

/* Portfolio item animation is in Work section above */

.portfolio ul.tags, .portfolio ul.tags li {list-style: none; padding: 0; margin: 0;}
.portfolio ul.tags {display: flex; gap: 0.22rem; flex-wrap: wrap;}
.portfolio ul.tags li {
    padding: 3px 10px;
    background: var(--color-bg);
    color: var(--blue);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
}
.portfolio .item .portfolio-card-content ul.tags {
    margin-bottom: 0;
}
.portfolio .item .portfolio-card-content ul.tags li {
    font-size: clamp(0.7rem, 1.2vw + 0.65rem, 0.7rem);
}
.portfolio .item .portfolio-card-content ul.tags + p {
    margin-top: var(--gap--16);
}

/* Portfolio card: image fixed size (same for all cards) */
.portfolio-item-img-wrap {
    grid-row: 1;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 400 / 346;
    position: relative;
    display: block;
}
.portfolio-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease-in-out;
}
.portfolio .item:hover .portfolio-item-img-wrap img {
    filter: brightness(0.9);
}

/* Portfolio card: bottom half = content, 24px padding */
.portfolio .item .portfolio-card-content {
    grid-row: 2;
    padding: var(--gap--24) var(--gap--24) var(--gap--40) var(--gap--24);
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    overflow: hidden;
}
.portfolio .item .portfolio-card-content .gap--8 { margin-bottom: var(--gap); }
.portfolio .item .portfolio-card-content .gap--16 { margin-bottom: var(--gap--16); }
.portfolio .item .portfolio-card-content .gap--32 { margin-bottom: 0; }
.portfolio .item .portfolio-card-content > *:last-child { margin-bottom: 0; }

[data-theme="dark"] .portfolio .item[data-href]:hover h5 {
    color: var(--footer-muted);
}

/* Dark mode: portfolio cards */
[data-theme="dark"] .portfolio .item {
    background: var(--color-bg-subtle);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}
[data-theme="dark"] .portfolio ul.tags li {
    color: #4BBDFF;
}
[data-theme="dark"] .portfolio .item[data-href]:hover {
    background: #253d4b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Empty spacer item (e.g. 5th item) – no card styling */
.portfolio .item:not([data-href]) {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}
[data-theme="dark"] .portfolio .item:not([data-href]) {
    background: transparent;
}

/* +++ WORK +++ */
.workBanner {  
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr;
    gap: 0px 40px;
    grid-auto-flow: row;
    grid-template-areas: ". .";
    min-height: 521px; /* Minimum height for desktop */
    width: 100%; /* Full width */
    max-width: 1280px; /* Maximum width for desktop */
    height: auto; /* Allow auto height based on content */
    aspect-ratio: 1280 / 521; /* Maintain aspect ratio */
    align-items: center;
    padding: 60px 128px; /* Padding for desktop */
    box-sizing: border-box;
    border-radius: 24px;
    position: relative;
    overflow: hidden; /* Hide overflow if necessary */
}
/* Banner Colors */
.minaLive {
    background-color: rgb(222, 249, 252);
    background: linear-gradient(180deg, rgba(222, 249, 252, 1) 0%, rgba(217, 247, 250, 1) 25%, rgba(190, 239, 246, 1) 50%, rgba(226, 222, 252, 1) 100%);
}

.communities {
    background-color: #B3EEEF;
    background: -webkit-linear-gradient(180deg, rgba(179, 238, 239, 1) 0%, rgba(220, 231, 176, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(179, 238, 239, 1) 0%, rgba(220, 231, 176, 1) 100%);
    background: linear-gradient(180deg, rgba(179, 238, 239, 1) 0%, rgba(220, 231, 176, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#B3EEEF", endColorstr="#DCE7B0", GradientType=0);
}

.brillbaby {
    background: #EEE9FF;
    background: -webkit-linear-gradient(40deg, rgba(238, 233, 255, 1) 0%, rgba(245, 215, 255, 1) 100%);
    background: -moz-linear-gradient(40deg, rgba(238, 233, 255, 1) 0%, rgba(245, 215, 255, 1) 100%);
    background: linear-gradient(40deg, rgba(238, 233, 255, 1) 0%, rgba(245, 215, 255, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#EEE9FF", endColorstr="#F5D7FF", GradientType=0);
}

.landing-pages {
    background: #FCDC95;
    background: -webkit-linear-gradient(40deg, rgba(252, 220, 149, 1) 0%, rgba(241, 139, 111, 1) 100%);
    background: -moz-linear-gradient(40deg, rgba(252, 220, 149, 1) 0%, rgba(241, 139, 111, 1) 100%);
    background: linear-gradient(40deg, rgba(252, 220, 149, 1) 0%, rgba(241, 139, 111, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FCDC95", endColorstr="#F18B6F", GradientType=0);
}

.workBanner.animation {
    background: #C5F0FF;
    background: -webkit-linear-gradient(140deg, rgba(197, 240, 255, 1) 30%, rgba(124, 213, 244, 1) 75%, rgba(109, 167, 241, 1) 100%);
    background: -moz-linear-gradient(140deg, rgba(197, 240, 255, 1) 30%, rgba(124, 213, 244, 1) 75%, rgba(109, 167, 241, 1) 100%);
    background: linear-gradient(140deg, rgba(197, 240, 255, 1) 30%, rgba(124, 213, 244, 1) 75%, rgba(109, 167, 241, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#C5F0FF", endColorstr="#6DA7F1", GradientType=0);
}
.workBanner.animation h3 {
    color: #0061BD;
}

img.bannerImage {
    position: absolute;
    height: 100%; /* Fill height */
    width: auto; /* Maintain aspect ratio */
    right: 0;
    top: 0;
}

/* Work Panels */
/*.full--image--text {  
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-template-rows: 1fr;
    gap: 0px 60px;
    grid-auto-flow: row;
    grid-template-areas: ". .";
    align-items: center;
    box-sizing: border-box;
    padding: 0 10% 0 0;
}*/

.full--image--text, .full--text-image {  
    display: grid;
    grid-template-columns: 2fr 3fr 10%;
    grid-template-rows: 1fr;
    gap: 0;
    grid-auto-flow: row;
    grid-template-areas: ". .";
    align-items: center;
    box-sizing: border-box;
    padding: 0;
}
.rel {position: relative;}
.full--image--text div:nth-child(2) {
    margin-left: 60px;
}

.full--text--image {
    display: grid;
    grid-template-columns: 10% 3fr 2fr;
    align-items: center;
}
.full--text--image div:nth-child(2) {
    margin-right: 60px;
}

.full--text--text {  
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0px 40px;
    grid-auto-flow: row;
    grid-template-areas: ". .";
    align-items: center;
    box-sizing: border-box;
    padding: 0;
}

.aspect-ratio-box {
    position: relative;
    width: 100%;
    background-color: #f0f0f0;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 24px;
}

.outline {
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
}

.aspect-ratio-box.with-img {
    padding: 0;
}

.aspect-ratio-box.with-img img {
    width: fit-content;
    height: auto;
}

.full--role--panel { 
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px 60px;
    grid-auto-flow: row;
    grid-template-areas:
        ". . ."
        ". . .";
    padding: 60px 10%;
    background: var(--violet--25);
    border-radius: 24px;
}

/* Notes */
.contain--notes div div {
    background: #FEF6E2;
    padding: var(--gap--56) var(--gap--32) var(--gap--48);
    border-radius: 4px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.contain--notes div div::before {
    content: '';
    width: 100%;
    height: 32px;
    position: absolute;
    top: 0;
    left: 0;
    background: url(../images/notesOverlay.svg) top left repeat-x;
    background-size: auto var(--gap--40);
    mix-blend-mode: overlay;
}

.contain--notes.blue div div {
    background: #DAF6F6;
}

/* Bento */
.contain--bento div div {
    border-radius: var(--gap--24);
    background: #E8F5FF;
    padding: var(--gap--32) var(--gap--32) var(--gap--48);
    min-height: 224px;
    box-sizing: border-box;
}

.contain--bento.purple div div {
    background: rgb(240,246,254);
    background: -moz-linear-gradient(180deg, rgba(240,246,254,1) 50%, rgba(239,239,253,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(240,246,254,1) 50%, rgba(239,239,253,1) 100%);
    background: linear-gradient(180deg, rgba(240,246,254,1) 50%, rgba(239,239,253,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#f0f6fe",endColorstr="#efeffd",GradientType=1);
}

.contain--bento.green div div {
    background: #DEF2E2;
    background: -webkit-linear-gradient(180deg, rgba(222, 242, 226, 1) 0%, rgba(234, 241, 208, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(222, 242, 226, 1) 0%, rgba(234, 241, 208, 1) 100%);
    background: linear-gradient(180deg, rgba(222, 242, 226, 1) 0%, rgba(234, 241, 208, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#DEF2E2", endColorstr="#EAF1D0", GradientType=0);
}

.contain--bento div div.cover {
    background-repeat: no-repeat!important;
    background-size: cover!important;
    background-position: center center!important;
    position: relative;
    overflow: hidden;
}

.contain--bento div div.cover img {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 100%; 
    height: auto; 
    min-width: 100%; 
    min-height: 100%; 
    transform: translate(-50%, -50%); 
    object-fit: cover;
}

.contain--notes div div p.medium, .contain--bento div div p.medium {
    text-transform: capitalize;
}

/* Subfooter: primary button (btn--hero) stacks above so ::before gradient + animation are visible */
.subfooter a.btn--hero {
    z-index: 1;
}
.subfooter {
    padding: 60px;
    margin: var(--gap--80) auto;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    border-radius: 16px;
    background: rgb(211,240,249);
    background: -moz-linear-gradient(60deg, rgba(211,240,249,1) 0%, rgba(211,246,241,1) 100%);
    background: -webkit-linear-gradient(60deg, rgba(211,240,249,1) 0%, rgba(211,246,241,1) 100%);
    background: linear-gradient(60deg, rgba(211,240,249,1) 0%, rgba(211,246,241,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#d3f0f9",endColorstr="#d3f6f1",GradientType=1);
    box-sizing: border-box;
    margin-bottom: 80px;
    height: fit-content;
}

/* Footer */
footer {
    background: var(--footer-bg);
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

footer p {color: var(--footer-text); margin-bottom: 0.25rem;}

footer p.sub {
    font-size: 0.889rem;
    color: var(--footer-muted);
    margin: 0;
}

footer .container {
    width: 100%;
    gap: 16px;
    box-sizing: border-box;
    align-items: center;
}

footer .container div {
    box-sizing: border-box;
    align-items: center;
    display: flex; /* Make column a flex container */
    flex-direction: column; /* Column layout */
    justify-content: center; /* Vertically center the content */
    align-items: flex-start; /* Align content to the left */
}

footer .container:nth-child(2) {
    justify-content: flex-end;
}

/* Footer v2 */
footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: var(--gap--64);
    padding: var(--gap--64) var(--gap--80);
}
footer .footer--columns {
    display: flex;
    column-gap: var(--gap--64);
    width: 1280px;
    flex-wrap: wrap;
}
footer .footer--columns .col {
    flex: 1;
    min-width: 0;
}
footer .footer--columns .col, footer .footer--columns .col a {
    color: var(--footer-text);
}

footer .footer--columns .col a {
    text-decoration: none;
}

footer .footer--columns .col:nth-child(2) a {
    width: calc(100% - var(--gap--64) / 2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inherit;
}

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

footer hr {
    padding: 0; 
    margin: 0;
    background-color: rgba(255,255,255,0.16);
}
footer .copyright p {text-align: center;}
footer p span {
    color: var(--footer-muted);
}
footer .col p {
    margin-bottom: var(--gap);
}

footer .col:last-child p {
    margin-bottom: var(--gap--16);
}

footer .social {
    display: flex;
    column-gap: var(--gap--16);
}

/* +++ ABOUT +++ */
/* Grid Container */
.grid-container {
    background: white;
    padding: var(--gap--80) var(--gap--56);
    height: fit-content;
    border-radius: var(--gap);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    box-sizing: border-box;
}

.grid-container.align-items {
    align-items: center;
}

/* Column span classes */
.grid-container .span--1 {
    grid-column: span 1;
}

.grid-container .span--2 {
    grid-column: span 2;
}

.grid-container .span--3 {
    grid-column: span 3;
}

.img-container {
    background: rgba(246,244,248,.7);
    border-radius: var(--gap);
}

[data-theme="dark"] .img-container {
    background: rgba(255, 255, 255, 0.9);
}

/* About Header */
header.aboutBanner {
    padding: var(--gap--64) 0;
    background: rgb(211, 240, 249);
    background: -moz-linear-gradient(60deg, rgba(211, 240, 249, 1) 0%, rgba(211, 246, 241, 1) 100%);
    background: -webkit-linear-gradient(60deg, rgba(211, 240, 249, 1) 0%, rgba(211, 246, 241, 1) 100%);
    background: linear-gradient(60deg, rgba(211, 240, 249, 1) 0%, rgba(211, 246, 241, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#d3f0f9",endColorstr="#d3f6f1",GradientType=1);
    box-sizing: border-box;
    height: fit-content;
    border-radius: var(--gap--16);
    margin-bottom: var(--gap--80);
    margin-top: var(--gap--16);
}

header.aboutBanner .grid-container {
    grid-template-columns: 240px auto;
}

header.aboutBanner .grid-container .col img.profile {
    width: 240px;
    max-width: 100%;
    height: auto;
    border-radius: 400px;
}

header.aboutBanner .social {
    display: flex;
    gap: var(--gap--16);
}

main ul, main ul li {padding: 0; margin: 0;}
main ul li {margin-left: 20px;}

/* Lightbox */
.triggerLightbox {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: flex; /* Use flexbox for centering */
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
}
.close {
    position: absolute;
    top: 32px;
    right: 32px;
    color: white;
    font-size: 44px;
    cursor: pointer;
}

/* Increase Clickable Areas */
ul.navBar li:first-child a, ul.navBar li.showSideBar a { position: relative; } /* Nav Logo Btn */
ul.navBar li:first-child a::after, ul.navBar li.showSideBar a::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100%;
    top: 0;
    background: none;
}

/* Custom Grids */
.grid--2--cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto; /* 2 rows */
    gap: 60px;
}

.grid--3--cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto; /* 2 rows */
    gap: 60px;
}

.grid--4--cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto; /* 2 rows */
    gap: 60px;
}

.grid--5--cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto; /* 2 rows */
    gap: 60px;
}

.grid--gap--60 {gap: var(--gap--64);}
.grid--gap--40 {gap: var(--gap--40);}
.grid--gap--24 {gap: var(--gap--24);}

.col--span--2 {grid-column: span 2;}
.col--span--3 {grid-column: span 3;}

span.contain--1024px.half--left, span.contain--1024px.half--right {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding-left: 128px;
}

span.contain--1024px.half--right {
    padding-left: 0;
    padding-right: 128px;
}

.font-box {
    border-radius: 24px;
    overflow: hidden;
}

/* Message box: WCAG-friendly green tint; supports light/dark theme */
.msg-box {
    --msg-box-bg: rgba(51, 157, 22, 0.14);
    --msg-box-heading: #0E7A6A;
    --msg-box-text: inherit;
    border-radius: var(--gap--16);
    padding: var(--gap--24);
    overflow: hidden;
    background-color: var(--msg-box-bg);
    color: var(--msg-box-text);
}
.msg-box p:first-child,
.msg-box .f-dark-cyan {
    color: var(--msg-box-heading);
}
[data-theme="dark"] .msg-box {
    --msg-box-bg: rgba(51, 157, 22, 0.22);
    --msg-box-heading: #6DD4C8;
    --msg-box-text: #E8E7EA;
}
[data-theme="dark"] .msg-box p {
    color: var(--msg-box-text);
}
[data-theme="dark"] .msg-box p:first-child,
[data-theme="dark"] .msg-box .f-dark-cyan {
    color: var(--msg-box-heading);
}

.return {
    position: fixed;
    bottom: var(--gap--24);
    right: var(--gap--24);
    padding: 0;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    z-index: 1000;
    width: 44px;
    height: 44px;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.25s ease, bottom 0.35s ease, background-color 0.25s ease;
    opacity: 0;
    visibility: hidden;
}
.return:hover {
    background-color: #0056b3;
}
.return.pressed {
    transform: scale(0.95);
}

.return svg {
    width: 20px;
    height: auto;
}

.return.active {
    bottom: 20%;
}

.return.fade {
    opacity: 1;
    visibility: visible;
}

/* Dev Panel */
.dev-panel {
    padding: var(--gap--64) 0;
    background: url(../images/brillbaby/bgDevMode.svg) top left var(--blue);
    background-size: 80px 40px;
    border-radius: var(--gap--24);
    overflow: hidden;
    margin-bottom: var(--gap--56);
}

.dev-panel .full--image--text {
    grid-template-columns: 2fr 2fr 10%;
}

.dev-panel .full--text--image {
    grid-template-columns: 10% 2fr 2fr;
}

.dev-panel p, .dev-panel li p {
    -webkit-text-shadow: 0 1px 3px rgba(0,0,0,.14);
    -moz-text-shadow: 0 1px 3px rgba(0,0,0,.14);
    text-shadow: 0 1px 3px rgba(0,0,0,.14);
}

/* Skill Panel */
.skill-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap--24);
    row-gap: 0;
}

.skill-container.soft-skill {
    gap: var(--gap--16);
    row-gap: var(--gap--16);
}

.skill-container .item {
    flex: 1 0 325.33px;
    box-sizing: border-box;
}

.skill-container .soft-skill-item {
    box-sizing: border-box;
}

.skill-panel {
    display: flex;
    align-items: center;
}
.skill-panel .skill-icon {width: 80px; height: auto;}
.skill-panel span.tag {
    display: flex;
    align-items: center;
    padding: 2px 12px;
    background: #CCC;
    text-transform: uppercase;
    border-radius: 30px;
    margin-left: var(--gap--16);
}
.skill-panel span.tag.green {
    background-color: rgba(9,151,134,0.12);
    color: #099786;
}
.skill-panel span.tag.yellow {
    background-color: rgba(255,144,0,0.12);
    color: #FF9000;
}
.skill-panel span.tag.blue {
    background-color: rgba(58,150,237,0.12);
    color: #3A96ED;
}

.skill-container .soft-skill-item .skill-panel {
    padding: 0 24px 0 12px;
    background: #F8F8FA;
    height: 54px;
    border-radius: 8px;
}
.skill-container .soft-skill-item .skill-panel .skill-icon {width: 34px; height: auto;}

.skill-panel p {
    white-space: nowrap;
}

.return.active {
    bottom: calc(var(--footer-height) + 24px);
}
/* Prev Next */
.prevNext {
    padding: var(--gap--80) 0;
    display: flex;
    flex-direction: row;
    gap: var(--gap--64);
    /* justify-content: space-between; */
}
.prevNext .col {
    flex: 1;
    min-width: 0;
}
.prevNext .col p {color: #099786;}
.prevNext .col a {
    display: flex;
    flex-direction: row;
    gap: var(--gap--24);
    padding: var(--gap--24);
    background: #F9F8FB;
    border-radius: var(--gap--16);
    text-decoration: none;
    align-items: center;
    transition: background-color 300ms ease;
}
.prevNext .col a p {color: var(--violet--400);}
.prevNext .col a p.medium {
    color: var(--violet--500);
}
.prevNext .col a:hover {
    background-color: #FCFBFD;
}
.prevNext .col a:active {
    background-color: #F4F3F6;
}
.prevNext .col:nth-child(2) a {
    flex-direction: row-reverse;
}
.prevNext .col a div:first-child {
    flex: 1;
}
.prevNext .col a div:nth-child(2) {
    flex: 2;
    overflow: hidden; /* Hide overflow text */
    display: -webkit-box; /* For ellipsis */
    -webkit-box-orient: vertical; /* For ellipsis */
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    text-overflow: ellipsis; /* Show ellipsis */
}
.prevNext .col a div img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--gap);
}
.prevNext .col a div:nth-child(2) p:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice {
    background: #FEF6E2;
    border-radius: var(--gap);
    -webkit-border-radius: var(--gap);
    -moz-border-radius: var(--gap);
    padding: var(--gap--24) var(--gap--32);
}

.hidden-link {
    display: none;
}

.f-turkey-red {
    color: #AE0B00;
}

/* Lightbox 3 */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: var(--gap--24);
    grid-template-areas:
        "box-1 box-2 box-3"
        "box-4 box-2 box-5"
        "box-6 box-7 box-8"
        "box-6 box-9 box-8";
}

.gallery-container div {
    background: #CCC;
    border-radius: var(--gap--24);
    -webkit-border-radius: var(--gap--24);
    -moz-border-radius: var(--gap--24);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-container div.aspect-ratio {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
}

.gallery-container div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -o-transition: all 300ms ease;
}

.gallery-container div:hover img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.gallery-container div a.btn--link {
    position: absolute;
    top: var(--gap--16);
    right: var(--gap--16);
    z-index: 3;
    transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    padding-right: var(--gap--16);
    gap: 4px;
}

.gallery-container div a.gallery-link {
    position: relative;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    display: block; /* Ensure the link takes full space */
}

.gallery-container div a.gallery-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1px solid rgba(0, 0, 0, 0.1); /* 1px solid black at 10% opacity */
    border-radius: var(--gap--24); /* Match parent border-radius */
    pointer-events: none; /* Prevent interference with link clicks */
    z-index: 2; /* Above image, below buttons like .expand */
}

.gallery-container div div.expand {
    position: absolute;
    width: 54px;
    height: 54px;
    bottom: var(--gap--16);
    right: var(--gap--16);
    display: inline-block;
    z-index: 3;
    border-radius: 100px;
    background: rgba(22, 14, 51, 0.4);
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.gallery-container div div.expand svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

.gallery-container div:hover div.expand {
    background: var(--celeste-300);
}

/* Custom styles for scale-in animation on lightbox open */
.fslightbox-container.fslightbox-open .fslightbox-slide {
    animation: scaleIn 0.3s ease-out forwards;
    -webkit-animation: scaleIn 0.3s ease-out forwards;
    -moz-animation: scaleIn 0.3s ease-out forwards;
    -o-animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        opacity: 1;
    }
}

@-webkit-keyframes scaleIn {
    from {
        -webkit-transform: scale(0.5);
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@-moz-keyframes scaleIn {
    from {
        -moz-transform: scale(0.5);
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        -moz-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@-o-keyframes scaleIn {
    from {
        -o-transform: scale(0.5);
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        -o-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

/* Ensure natural image size */
.fslightbox-slide img {
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
}

/* XL Monitors */
@media screen and (max-width: 1340px) {
    :root {
       .hero h1 {font-size: 5.13vw;}
    }
    .nav-container {
        width: 90%;
        box-sizing: border-box;
    }
    .contain--1280px {width: 90%;}
    footer {
        padding-left: 5%;
        padding-right: 5%;
        box-sizing: border-box;
    }
    footer .footer--columns {
        width: 100%;
    }
    .contain--1024px {width: 80%}
    .workBanner {
        width: 90%; /* Responsive width */
        padding: 0 6rem; /* Adjust padding for smaller screens */
        min-height: unset; /* Remove minimum height restriction */
        aspect-ratio: 1280 / 521; /* Maintain aspect ratio */
    }
    .full--image--text img, .full--text--image img {width: 100%; height: auto;}
    .full--image--text {
        align-items: flex-start;
        gap: 0;
    }
    .resp-100 {width: 100%; height: auto;}
    .full--image--text, .full--text--image {
        align-items: flex-start;
        grid-template-columns: 2fr 3fr 10%;
    }
    .full--text--image {
        grid-template-columns: 6% 3fr 2fr ;
    }
    .full--image--text div:nth-child(2) {
        margin-left: 6.67%;
    }
    .full--text--image div:nth-child(2) {
        margin-right: 6.67%;
    }
    .full--role--panel {
        gap: var(--gap--56) 6.67%;
        padding: var(--gap--64) 10%;
        border-radius: var(--gap--24);
    }
    header.aboutBanner .grid-container {
        grid-template-columns: 1fr 2fr;
    }
    .img-container img {
        width: 100%;
        height: auto;
    }
    .grid-container {
        gap: 6.67%;
        row-gap: var(--gap--40);
    }
    .contain--1280px .contain--1024px {width: 80%; margin: 0 auto;}
    .aspect-ratio-box.with-img img {
        width: 100%;
        height: auto;
    }
    .contain--bento div div {min-height: 200px;}
    .skill-container .soft-skill-item .skill-panel {
        padding: 0 var(--gap--24) 0 var(--gap);
        height: 44px;
    }
    .skill-container .item {
        flex: 1 0 calc(33.33% - 16px);
    }
    .skill-panel .skill-icon {
        width: 72px;
        height: auto;
    }
}

/* L Monitors */
@media screen and (max-width: 1280px) {
    /* Button Sizes */
    a.btn--1, a.btn--default, a.btn--2, a.btn--hero {
        gap: 6.4px;
    }

    a.btn--1, a.btn--default {
        padding: 0 19.2px 0 25.6px;
        height: 56.4px;
    }

    a.btn--1.single, a.btn--default {
        padding: 0 25.6px;
    }

    a.btn--2, a.btn--hero {
        padding: 0 25.6px 0 32px;
        height: 64px;
    }

    a.btn--2.single, a.btn--hero.single {
        padding: 0 25.6px;
    }

    a.btn--social img, a.btn--social.celeste img {
        width: 50px;
        height: auto;
    }

    a.btn--1 img {
        width: 18px;
    }

    a.btn--2 img, a.btn--hero img {
        width: 24px;
    }
    :root {
        /* Font Sizes */
        --h1: 3.07rem;
        --default: 0.94rem;
        /* +++ GAP +++ */
        --gap: calc(8px / 1.5);
    }
    .grid-container.align-items {
        align-items: start;
    }
    .skill-container .soft-skill-item .skill-panel {
        height: 40px;
    }
    .skill-container .soft-skill-item .skill-panel .skill-icon {width: 30px; height: auto;}
    .skill-panel .skill-icon {
        width: 64px;
        height: auto;
    }
    footer .footer--columns {
        width: 100%;
    }
}

@media screen and (max-width: 1140px) {
    .skill-panel .skill-icon {
        width: 56px;
        height: auto;
    }
}

@media screen and (max-width: 1035px) {
    .workBanner {padding: 0 4rem;}
    .companyLogo {height: 44px; width: auto;}
}

@media screen and (max-width: 965px) {
    .workBanner {padding: 0 3rem;}
}

@media screen and (max-width: 930px) {
    .workBanner.w-btn {
        aspect-ratio: 1280 / 700;
        grid-template-columns: 3fr 3fr;
    }

    .workBanner.w-btn img.bannerImage {
        height: 90%;
        top: 50%;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
    }

    .gallery-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "box-1 box-2"
            "box-4 box-2"
            "box-6 box-3"
            "box-6 box-5"
            "box-7 box-8"
            "box-9 box-8";
    }
}

/* Desktop */
@media screen and (max-width: 1024px) {
    /* Button Sizes */
    a.btn--1, a.btn--default, a.btn--2, a.btn--hero {
        gap: 5.6px;
    }

    a.btn--1, a.btn--default {
        padding: 0 16.8px 0 22.4px;
        height: 51.6px;
    }

    a.btn--1.single, a.btn--default {
        padding: 0 22.4px;
    }

    a.btn--2, a.btn--hero {
        padding: 0 22.4px 0 28px;
        height: 57.6px;
    }

    a.btn--2.single, a.btn--hero.single {
        padding: 0 22.4px;
    }

    a.btn--social img, a.btn--social.celeste img {
        width: 48px;
        height: auto;
    }

    a.btn--1 img {
        width: 18px;
    }

    a.btn--2 img, a.btn--hero img {
        width: 24px;
    }
    /* Columns */
    .grid--4--cols {grid-template-columns: repeat(3, 1fr);}
    .contain--bento div div {min-height: 180px;}
    .skill-container .item {
        flex: 1 0 calc(50% - 16px);
    }
    .skill-panel span.tag {
        font-size: 0.64rem;
    }
    .portfolio .item { flex: 1 0 40%; }
    .portfolio .item .portfolio-card-content { padding: 20px; }
}

@media screen and (max-width: 831px) {
    .workBanner.w-btn {
        aspect-ratio: 1280 / 800;
    }

    .workBanner.w-btn img.bannerImage {
        height: 80%;
    }
}

/* Extra */
@media screen and (max-width: 824px) {
    .workBanner {
        aspect-ratio: 1280 / 660;
        grid-template-columns: 2.25fr 2fr;
    }
    .workBanner div:first-child {
        position: relative;
        z-index: 99;
    }
}

/* Tablet */
@media screen and (max-width: 768px) {
    body {-webkit-text-size-adjust: 100%;}
    /* ++ GAP ++ */
    :root {
        --gap: calc(8px / 1.75);
        .hero h1 {font-size: var(--h1);}
        --large: calc(var(--default)* 1.25* 1.1);
    }

    .hideOnMobile {display: none!important;}
    .hideOnDesktop {display: initial!important;}
    img.hideOnDesktop {display: block!important;}
    .iconLogo {width: 44px; height: auto;}
    nav li {height: 76px;}
    .portfolio .item {flex: 1 0 40%;}
    .portfolio .item .portfolio-card-content { padding: 20px; }

    /* Change hero layout to stacked: text on top, image below */

    .hero {
        display: flex;
        flex-direction: column;
        padding: 60px 0;
        height: auto;
    }

    .hero .column {
        flex: 0 0 auto; /* Size to content so both columns stack visibly */
        width: 100%;
    }

    .hero .column:first-child {
        order: 1;
    }

    .hero .column--hero-image {
        order: 2;
        display: flex;
        min-height: 0; /* Allow flex item to shrink if needed; image still has intrinsic size */
    }

    .column { /* General column styles when inside hero */
        width: 100%;
    }

    img.heroImage {
        width: 100%;
        max-width: 100%;
        opacity: 1; /* Ensure image is visible on mobile even if animation hasn’t run */
    }

    footer {
        /* flex-direction: column-reverse; */
        gap: 32px;
        justify-content: center;
        align-items: center;
    }

    footer .container, footer .container:nth-child(2) {
        justify-content: center;
    }

    hr {margin: 24px 0;}
    hr.margin--80 {margin: calc(80px / 1.5) 0;}

    li.showSideBar a {
        padding: 0 8px;
    }
    .container {gap: var(--gap--40);}
    .workBanner {
        display: block;
        padding: 2rem 0 0;
        align-items: flex-start;
        aspect-ratio: initial;
    }
    .workBanner div:first-child {
        padding: 0 2rem;
        margin: 0 auto;
    }
    img.bannerImage {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        height: auto;
        display: block;
    }
    .full--image--text, .full--text--image {  
        display: block;}
    .full--image--text img, .full--text--image img {
        width: 100%;
        max-width: 480px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    .full--image--text div:nth-child(2), .full--text--image div:nth-child(2) {
        margin: 0;
    }
    .full--role--panel {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: ". .";
    }
    .aboutBanner .grid-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: var(--gap--24);
    }
    header.contain--1280px.aboutBanner {
        width: 100%;
        padding: var(--gap--64) var(--gap--80);
        border-radius: 0;
        box-sizing: border-box;
    }
    .contain--1280px .contain--1024px {
        width: 100%;
    }
    main.contain--1280px .contain--1024px {
        width: 100%;
    }
    main.contain--1280px {
        width: 100%;
        padding: 0 var(--gap--80);
        box-sizing: border-box;
    }
    header.aboutBanner .grid-container .col img.profile {
        width: 160px;
        max-width: 100%;
    }
    .grid-container.journey {
        grid-template-columns: repeat(2, 1fr);
    }
    p.large, ul li.large, ol li.large {
        line-height: 1.25;
    }
    ul.navBar li:first-child a::after, ul.navBar li.showSideBar a::after {
        width: 76px;
    }
    .contain--1280px.full-screen img, .contain--1280px.full-screen .aspect-ratio-box {
        border-radius: 0;
    }
    .contain--1280px.full-screen {
        width: 100%;
    }

    .grid--3--cols, .full--role--panel {grid-template-columns: repeat(2, 1fr);}
    .full--role--panel {
        grid-template-areas:
        ". ."
        ". .";
    }
    .aspect-ratio-box {border-radius: 16px;}
    .font-box {
        border-radius: 16px;
    }
    /* Dev Panel */
    .dev-panel {
        border-radius: 0;
        margin-bottom: var(--gap--56);
    }
    
    .dev-panel .full--image--text, .dev-panel .full--text--image {
        width: 90%;
        margin: 0 auto;
    }
    .return.active {
        bottom: 28%;
    }
    .skill-panel .skill-icon {
        width: 48px;
        height: auto;
    }
    footer .footer--columns .col {
        flex: 0 0 calc(50% - var(--gap--64) / 2); /* 2 columns on mobile */
    }
    footer .footer--columns {
        row-gap: var(--gap--40);
    }
    .workBanner.w-btn {
        aspect-ratio: initial;
    }

    .workBanner.w-btn img.bannerImage {
        height: auto;
        top: auto;
        transform: none;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
    }

    .gallery-container div div.expand {
        width: 44px;
        height: 44px;
    }

    .gallery-container div div.expand svg {
        width: 20px;
        height: auto;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    :root {
        --gap: calc(8px / 2);
        /* Font Sizes */
        --h1: 2.56rem;
        --default: 0.89rem;
        --large: calc(var(--default) * 1.25 * 1.1);
    }
    .portfolio .item {flex: 0 0 100%;}
    .portfolio .item .portfolio-card-content { padding: 16px; }
    .subfooter, .subfooter.contain--1280px {
        width: 100% !important;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }
    .subfooter {margin-bottom: 0;}
    .portfolio {margin-bottom: 48px;}
    img.heroImage {
        border-radius: 0; /* Remove border radius if needed */
    }
    .container.hero.contain--1280px {
        width: 100%;
        gap: 40px;
    }
    .column {
        width: 90%;
        margin: 0 auto;
    }
    .hero .column:first-child {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero {
        padding: 48px 0 0;
    }
    footer .container:first-child div:first-child {
        display: none;
    }
    footer .container:first-child div:nth-child(2) {
        align-items: center;
        text-align: center;
    }
    .subfooter, .subfooter.contain--1280px {
        padding: 48px;
        margin: 0;
    }
    /* Button Sizes */
    a.btn--1, a.btn--default, a.btn--2, a.btn--hero {
        gap: 5.6px;
    }

    a.btn--1, a.btn--default, a.btn--hero {
        padding: 0 16.8px 0 22.4px;
        height: 49.6px;
    }

    a.btn--1.single, a.btn--default {
        padding: 0 22.4px;
    }

    a.btn--2, a.btn--hero {
        padding: 0 22.4px 0 28px;
        height: 53.6px;
    }

    a.btn--2.single, a.btn--hero.single {
        padding: 0 22.4px;
    }

    a.btn--social img, a.btn--social.celeste img {
        width: 44px;
        height: auto;
    }

    a.btn--1 img {
        width: 16px;
    }

    a.btn--2 img, a.btn--hero img {
        width: 20px;
    }
    .contain--1280px.full-screen {
        width: 100%;
    }
    .contain--1280px.full-screen img, .contain--1280px.full-screen .aspect-ratio-box {
        border-radius: 0;
    }
    .companyLogo {
        height: 40px;
    }
    .grid-container, .grid-container.journey {
        grid-template-columns: repeat(1, 1fr);
    }
    .img-container {
        aspect-ratio: 16 / 9;
        width: 100%;
        height: auto;
        display: flex;
        align-items: self-start;
        justify-content: center;
    }
    .img-container img {
        width: 80%;
        height: auto;
    }
    .grid-container.align-items {
        column-gap: 0;
    }
    .grid-container .span--2 {
        margin-bottom: var(--gap--24);
    }
    main.contain--1280px {
        padding: 0 32px;
    }
    header.contain--1280px.aboutBanner {
        padding: var(--gap--64) 32px;
    }
    /* Columns */
    .grid--4--cols {grid-template-columns: repeat(2, 1fr);}
    a.btn--link svg {
        width: 24px;
    }
    .skill-container .soft-skill-item .skill-panel {
        height: 34px;
    }
    .skill-container .soft-skill-item .skill-panel .skill-icon {width: 24px; height: auto;}
    footer p.sub {
        font-size: 0.82rem;
    }
    footer .footer--columns {
        flex-direction: column; /* Change to single column layout */
    }
    footer .footer--columns .col {
        flex: 1; /* Each column takes full width */
    }
    .prevNext .col a, .prevNext .col:nth-child(2) a {
        flex-direction: column;
    }
    .prevNext .col a div:first-child, .prevNext .col a div:nth-child(2) {
        flex: 1;
        width: 100%;
    }
    .prevNext {
        gap: var(--gap--80);
    }
    .gallery-container div div.expand {
        width: 34px;
        height: 34px;
    }

    .gallery-container div div.expand svg {
        width: 18px;
        height: auto;
    }
}

@media screen and (max-width: 360px) {
    /* Columns */
    .grid--4--cols, .grid--3--cols {grid-template-columns: repeat(1, 1fr);}
    
}

@media (min-width: 481px) and (max-width: 1024px) and (orientation: portrait) {
    .hero {
        height: auto;
        margin-top: var(--gap--16);
        margin-bottom: var(--gap--40);
        padding: var(--gap--56) 0;
        overflow: visible;
    }
}