html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block
}

body {
	line-height: 1
}

ol,
ul {
	list-style: none
}

blockquote,
q {
	quotes: none
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none
}

table {
	border-collapse: collapse;
	border-spacing: 0
}

body {
	-webkit-text-size-adjust: none
}

*,
*:before,
*:after {
	box-sizing: border-box
}

:root {
	--bg-color: #fff;
	--text-color: #414f57;
	--text-color-strong: #3d4449;
	--text-color-light: #777;
	--border-color: #ccc;
	--sidebar-bg: #f5f6f7;
	--sidebar-text: #414f57;
	--sidebar-text-active: #414f57;
	--sidebar-active-bg: rgba(144, 144, 144, 0.15);
	--button-border-color: #ccc;
	--button-hover-bg: rgba(144, 144, 144, 0.25);
	--button-active-bg: rgba(144, 144, 144, 0.5);
	--footer-bg: #f5f6f7;
	--footer-text: #c8cccf;
	--link-border-color: dotted 1px;
	--scroll-chevron-color: #ccc;
}

html.dark-mode {
	--bg-color: #121212;
	--text-color: #c8cccf;
	--text-color-strong: #e0e0e0;
	--text-color-light: #999;
	--border-color: #333;
	--sidebar-bg: #1e1e1e;
	--sidebar-text: #c8cccf;
	--sidebar-text-active: #fff;
	--sidebar-active-bg: rgba(144, 144, 144, 0.1);
	--button-border-color: #555;
	--button-hover-bg: rgba(144, 144, 144, 0.15);
	--button-active-bg: rgba(144, 144, 144, 0.2);
	--footer-bg: #1e1e1e;
	--footer-text: #555;
	--link-border-color: dotted 1px;
	--scroll-chevron-color: #555;
}

html {
	height: 100%;
	color-scheme: light dark
}

body {
	background: var(--bg-color);
	height: 100%;
	transition: background-color .3s ease, color .3s ease
}

body,
input,
select,
textarea {
	color: var(--text-color);
	font-family: "Roboto", sans-serif;
	font-size: 15pt;
	font-weight: 300;
	line-height: 1.75em;
	letter-spacing: .025em
}

a {
	transition: color .2s ease-in-out, border-color .2s ease-in-out, background-color .2s ease-in-out;
	color: var(--text-color);
	text-decoration: none;
	border-bottom: var(--link-border-color) var(--text-color-light)
}

a:hover {
	border-bottom-color: transparent
}

strong,
b {
	color: var(--text-color-strong);
	font-weight: 500
}

p {
	margin: 0 0 2em 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--text-color-strong);
	font-weight: 500;
	line-height: 1.5;
	margin: 0 0 1em 0
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
	color: inherit;
	text-decoration: none
}

h1 {
	font-size: 2.25em;
	line-height: 1.3em;
	letter-spacing: .05em
}

h2 {
	font-size: 1.5em;
	line-height: 1.5em;
	letter-spacing: .05em
}

h3 {
	font-size: 1.25em
}

h4 {
	font-size: 1em
}

header p {
	color: var(--text-color-light);
	position: relative;
	top: -.25em
}

header.major {
	margin: 0 0 3.5em 0
}

header.major h2 {
	font-size: 2.25em;
	line-height: 1.3em;
	letter-spacing: .05em
}

header.major p {
	font-size: 1.25em;
	font-weight: 300;
	letter-spacing: .025em;
	top: 0
}

ul {
	list-style: disc;
	margin: 0 0 2em 0;
	padding-left: 1em
}

ul li {
	padding-left: .5em
}

ul.actions {
	cursor: default;
	list-style: none;
	padding-left: 0
}

ul.actions li {
	display: inline-block;
	padding: 0 1em 0 0;
	vertical-align: middle
}

ul.actions li:last-child {
	padding-right: 0
}

button,
.button {
	appearance: none;
	transition: background-color .2s ease-in-out, color .2s ease-in-out;
	background-color: transparent;
	border-radius: 3px;
	border: solid 1px var(--button-border-color);
	color: var(--text-color) !important;
	cursor: pointer;
	display: inline-block;
	font-size: .9em;
	font-weight: 500;
	height: 3.15em;
	letter-spacing: .05em;
	line-height: 3.25em;
	padding: 0 2.25em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap
}

button:hover,
.button:hover {
	background-color: var(--button-hover-bg)
}

button:active,
.button:active {
	background-color: var(--button-active-bg)
}

.image {
	border-radius: 3px;
	border: 0;
	display: inline-block;
	position: relative
}

.image img {
	border-radius: 3px;
	display: block
}

.image.main {
	display: block;
	margin: 0 auto 3em;
	width: 100%;
	max-width: 500px
}

.image.main img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 250px;
	aspect-ratio: 600 / 800
}

.features {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0 0 2em 0;
	width: 100%
}

.features article {
	flex-grow: 0;
	flex-shrink: 0;
	margin-bottom: 3em;
	width: 45%
}

.features article .image {
	display: block;
	margin-bottom: 1.5em
}

.features article .image img {
	width: 100%;
	height: auto
}

.features article h4 {
	font-size: 1.1em;
	letter-spacing: .05em
}

.features article p {
	font-size: .9em
}

.features article:nth-child(2n) {
	margin-left: 10%
}

.features article:nth-child(2) {
	margin-top: 10vh
}

.features article:nth-last-child(-n+2) {
	margin-bottom: 0
}


#chatmonkey .image img {
	aspect-ratio: 1082 / 2402
}

#textmeweather .image img {
	aspect-ratio: 430 / 932
}

#textmeavy .image img {
	aspect-ratio: 430 / 932
}

#snowquickie .image img {
	aspect-ratio: 1082 / 2402
}

#snowintel .image img {
	aspect-ratio: 430 / 932
}

#header {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--sidebar-bg);
	color: var(--sidebar-text);
	height: 100%;
	left: 0;
	position: fixed;
	text-align: right;
	top: 0;
	width: 375px;
	transition: background-color .3s ease, color .3s ease
}

#header>* {
	flex-shrink: 0;
	width: 100%
}

#header>header {
	padding: 2.5em 2.5em 1.25em 2.5em
}

#header>header .avatar {
	display: block;
	margin: 0 0 1.25em 0
}

#header>header .avatar img {
	border-radius: 100%
}

#header>header h1 {
	font-size: 1.35em;
	letter-spacing: .05em
}

#header>header p {
	font-size: .8em;
	font-style: italic;
	margin-top: -.325em
}

#header>footer {
	padding: 1.25em;
	display: flex;
	justify-content: flex-end;
	align-items: center
}

.theme-toggle {
	background: 0 0;
	border: none;
	cursor: pointer;
	width: 40px;
	height: 40px;
	padding: 5px;
	border-radius: 50%;
	color: var(--sidebar-text)
}

.theme-toggle:hover {
	background-color: var(--button-hover-bg)
}

.theme-toggle .icon {
	width: 100%;
	height: 100%;
	display: block;
	background-color: currentColor;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center
}

.theme-toggle:focus {
	outline: 1px solid var(--sidebar-text)
}

#header nav {
	flex-grow: 1;
	overflow-y: auto;
	padding: 2.5em
}

#header nav ul {
	list-style: none;
	padding: 0;
	margin: 0
}

#header nav ul li a {
	transition: none;
	border: 0;
	color: inherit;
	display: block;
	font-size: .8em;
	letter-spacing: .05em;
	line-height: 3;
	outline: 0;
	text-transform: uppercase
}

#header nav ul li a.active {
	background: var(--sidebar-active-bg);
	border-radius: 3px;
	color: var(--sidebar-text-active);
	font-weight: 500
}

#wrapper {
	margin-left: 375px
}

#main>section {
	border-top: solid 1px var(--border-color);
	padding: 5em 5em 3em 5em;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: border-color .3s ease
}

#main>section:first-child {
	border-top: 0
}

#main>section .container {
	position: relative;
	margin: 0 auto;
	max-width: 100%;
	width: 60em
}

#footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	padding: 3em 0;
	text-align: center;
	transition: background-color .3s ease, color .3s ease
}

#footer .copyright {
	font-size: .8em;
	line-height: 1em;
	list-style: none;
	margin: 0;
	padding: 0
}

#footer .copyright li {
	border-left: solid 1px var(--border-color);
	display: inline-block;
	line-height: 1em;
	margin-left: 1em;
	padding-left: 1em;
	transition: border-color .3s ease
}

#footer .copyright li:first-child {
	border-left: 0;
	margin-left: 0;
	padding-left: 0
}

#footer .copyright li a {
	color: inherit
}

@media screen and (max-width:1800px) {

	body,
	input,
	select,
	textarea {
		font-size: 13pt
	}

	#header {
		width: 325px
	}

	#wrapper {
		margin-left: 325px
	}

	#main>section {
		padding: 4em 4em 2em 4em
	}
}

@media screen and (max-width:1280px) {

	body,
	input,
	select,
	textarea {
		font-size: 12pt
	}

	#header {
		width: 275px
	}

	#header>header {
		padding: 2em 2em 1em 2em
	}

	#header nav {
		padding: 2em
	}

	#header>footer {
		padding: 1em
	}

	#wrapper {
		margin-left: 275px
	}

	#main>section {
		padding: 3em 3em 1em 3em
	}
}

@media screen and (max-width:980px) {

	html,
	body {
		overflow-x: hidden
	}

	#header {
		transform: translateX(275px);
		right: 0;
		left: auto;
		width: 275px;
		position: fixed;
		z-index: 10001;
		transition: transform .3s ease-in-out
	}

	#wrapper {
		margin-left: 0;
		padding-bottom: 1px;
		transition: transform .3s ease-in-out
	}

	#main>section {
		padding: 3em 2em 1em 2em
	}
}

@media screen and (max-width:736px) {

	body,
	input,
	select,
	textarea {
		font-size: 11pt;
		letter-spacing: .025em
	}

	header.major {
		margin: 0 0 2em 0
	}

	header.major h2 {
		font-size: 1.75em
	}

	header.major p {
		font-size: 1em
	}

	.features article {
		margin-bottom: 2em;
		width: 100%
	}

	.features article:nth-child(2n) {
		margin-left: 0
	}

	.features article:nth-child(2) {
		margin-top: 0
	}

	.features article:nth-last-child(-n+2) {
		margin-bottom: 2em
	}

	.features article:last-child {
		margin-bottom: 0
	}

	#main>section {
		padding: 2em 1.5em .5em 1.5em
	}

	#main>section .container {
		width: 100%
	}

	#footer {
		padding: 2em 0
	}
}

@media screen and (max-width:480px) {
	ul.actions {
		flex-direction: column;
		margin-left: 0;
		width: 100% !important
	}

	ul.actions li {
		padding: 1em 0 0 0;
		text-align: center;
		width: 100%
	}

	ul.actions li>* {
		width: 100%
	}

	ul.actions li:first-child {
		padding-top: 0
	}

	ul.actions li button,
	ul.actions li .button {
		width: 100%
	}
}

#header .avatar {
	aspect-ratio: 1 / 1;
	height: auto
}

#main>section {
	padding-top: 10vh;
	padding-bottom: 10vh
}

#main>section .container {
	position: relative;
}

.gallery-container {
	position: relative;
	margin: 1em auto;
	width: 100%;
}

.gallery-scroll {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	gap: 1.5em;
	padding-bottom: 1.5em;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--border-color) transparent;
}

.gallery-scroll::-webkit-scrollbar {
	height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.gallery-scroll::-webkit-scrollbar-thumb {
	background-color: var(--border-color);
	border-radius: 4px;
}

.gallery-item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 85%;
	max-width: 300px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg-color);
}

@media screen and (max-width: 1024px) {

	/* Ensure the gallery wrapper fills the full width on intermediate tablet sizes */
	.features article:nth-child(3) {
		width: 100% !important;
		margin-left: 0 !important;
		min-width: 0;
		/* Prevents parent flex item from infinitely stretching to fit images, breaking the inner scroll container */
	}

	.gallery-scroll {
		/* Dynamically calculate padding so the first/last items can always reach the exact center. */
		/* 50% = middle of screen. min(45%, 300px) = half the width of the item. */
		padding-left: calc(50% - min(45%, 300px));
		padding-right: calc(50% - min(45%, 300px));
	}

	.gallery-item {
		width: 90%;
		max-width: 600px;
		scroll-snap-align: center;
	}
}


html.dark-mode .gallery-item {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	display: block;
}

.video-container {
	position: relative;
	cursor: pointer
}

.video-container .play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	background-color: rgba(0, 0, 0, .6);
	border-radius: 50%;
	z-index: 10;
	transition: opacity .3s ease;
	border: none;
	padding: 0
}

.video-container .play-button::after {
	content: '';
	position: absolute;
	left: 55%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 15px 0 15px 25px;
	border-color: transparent transparent transparent #fff
}

.video-container.playing .play-button {
	opacity: 0;
	pointer-events: none
}

.video-container video {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
	display: block
}

video::poster {
	object-fit: cover;
	width: 100%;
	height: 100%
}

.scroll-down-link {
	position: absolute;
	bottom: -2.5em;
	left: 50%;
	transform: translateX(-50%);
	display: block;
	width: 40px;
	height: 40px;
	border: 2px solid var(--scroll-chevron-color);
	border-radius: 50%;
	z-index: 10;
	animation: bounce 2s infinite;
	transition: border-color .3s ease
}

.scroll-down-chevron {
	position: absolute;
	top: 40%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-style: solid;
	border-color: var(--scroll-chevron-color);
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -50%) rotate(45deg);
	transition: border-color .3s ease
}

@keyframes bounce {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateX(-50%) translateY(0)
	}

	40% {
		transform: translateX(-50%) translateY(-10px)
	}

	60% {
		transform: translateX(-50%) translateY(-5px)
	}
}

@media screen and (max-width:736px) {
	.scroll-down-link {
		bottom: -1.5em
	}
}

/* Mobile-specific styles */
.mobile-only {
	display: none;
}

@media screen and (max-width: 980px) {
	.mobile-only {
		display: block;
	}

	#header {
		left: auto;
		right: 0;
		transform: translateX(275px);
	}

	#wrapper {
		margin-left: 0;
	}

	#mobile-header {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 44px;
		background: transparent;
		/* Make header bar transparent */
		z-index: 1000;
		border-bottom: none;
		/* Remove border */
		transition: background-color 0.3s ease;
	}

	#menu-button {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		/* Move to the right */
		left: auto;
		/* Reset left position */
		width: 54px;
		height: 44px;
		border-bottom: none;
	}

	#menu-button .icon {
		display: block;
		position: absolute;
		top: 50%;
		left: 50%;
		width: 24px;
		height: 24px;
		background-color: var(--text-color);
		transform: translate(-50%, -50%);
		transition: background-color 0.3s ease;
		-webkit-mask-image: url('/assets/icons/menu.svg');
		mask-image: url('/assets/icons/menu.svg');
		-webkit-mask-size: contain;
		mask-size: contain;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: center;
		mask-position: center;
	}

	#menu-button .icon:before,
	#menu-button .icon:after {
		display: none;
		/* Remove old CSS-drawn lines */
	}

	#close-button {
		display: block;
		position: absolute;
		top: 10px;
		right: 10px;
		width: 44px;
		height: 44px;
		z-index: 10002;
		border-bottom: none;
	}

	#close-button .icon {
		display: block;
		position: absolute;
		top: 50%;
		left: 50%;
		width: 24px;
		height: 24px;
		background-color: var(--sidebar-text);
		transform: translate(-50%, -50%);
		-webkit-mask-image: url('/assets/icons/close.svg');
		mask-image: url('/assets/icons/close.svg');
		-webkit-mask-size: contain;
		mask-size: contain;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: center;
		mask-position: center;
	}

	#close-button .icon::before,
	#close-button .icon::after {
		display: none;
		/* Remove old CSS-drawn lines */
	}

	body.menu-visible #wrapper {
		transform: translateX(-275px);
		/* Slide to the left */
	}

	body.menu-visible #header {
		transform: translateX(0);
	}

	body.menu-visible::after {
		content: '';
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 9999;
	}
}

/* Improved Readable Styling */
.meta-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
	margin-bottom: 2em;
	padding: 1.5em;
	background: var(--sidebar-active-bg);
	border-radius: 6px;
	border: 1px solid var(--border-color);
}

.meta-item {
	flex: 1 1 150px;
}

.meta-item strong {
	display: block;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-color-light);
	margin-bottom: 0.5em;
}

.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 2em;
}

.tech-tag {
	font-family: "Consolas", "Monaco", "Courier New", monospace;
	font-size: 0.8em;
	padding: 0.3em 0.6em;
	background: rgba(144, 144, 144, 0.1);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-color-strong);
	transition: all 0.2s ease;
}


.tech-tag:before {
	content: '#';
	color: var(--text-color-light);
	margin-right: 2px;
	opacity: 0.6;
}

.tech-tag:hover {
	border-color: var(--text-color-strong);
	background: var(--button-hover-bg);
	transform: translateY(-1px);
}

/* Core Skills Badges */
.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8em;
	margin-bottom: 2em;
}

.skill-tag {
	font-size: 0.95em;
	padding: 0.6em 1.2em;
	background: var(--sidebar-active-bg);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-color-strong);
	font-weight: 500;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
	cursor: default;
}

.skill-tag-btn {
	cursor: pointer;
	background: var(--sidebar-bg);
	border: 1px solid var(--border-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	font-weight: 600;
	color: var(--text-color);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.skill-tag-btn:hover {
	background-color: var(--button-hover-bg);
	border-color: var(--text-color-strong);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	color: var(--text-color-strong);
}

.skill-tag-btn.active {
	background-color: var(--button-active-bg);
	color: var(--text-color-strong);
	border-color: var(--text-color-strong);
	transform: translateY(0);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-tag:not(.skill-tag-btn):hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-color: var(--text-color-strong);
}

.skill-pane {
	animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Vision Card Styling */
.vision-card {
	background: var(--sidebar-bg);
	border-left: 4px solid var(--text-color-strong);
	padding: 1.5em;
	/* Increased padding */
	margin: 2em 0;
	border-radius: 0 6px 6px 0;
	position: relative;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	/* Added subtle shadow */
}

.vision-card h3 {
	margin-top: 0;
	font-size: 1.1em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-color-light);
	/* Differentiate header from body */
	margin-bottom: 0.5em;
	border-bottom: none;
	/* Override default if any */
}

.vision-card p {
	font-size: 1.1em;
	/* Slightly larger text for impact */
	font-style: italic;
	margin-bottom: 0;
	color: var(--text-color-strong);
}

.readability-improved h3 {
	margin-top: 1.5em;
	margin-bottom: 0.75em;
	font-size: 1.1em;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.5em;
}

.readability-improved ul {
	margin-bottom: 2em;
}

/* Typing Cursor Effect */
.typing-cursor {
	display: inline-block;
	color: var(--sidebar-text);
	animation: blink 1s step-end infinite;
	font-weight: 300;
	margin-left: 2px;
}

@keyframes blink {

	from,
	to {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}
}

/* Command Palette */
.command-palette-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 10000;
	display: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	align-items: flex-start;
	justify-content: center;
	padding-top: 15vh;
}

.command-palette-overlay.visible {
	display: flex;
	opacity: 1;
}

.command-palette-modal {
	background: var(--bg-color);
	width: 600px;
	max-width: 90%;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	border: 1px solid var(--border-color);
	overflow: hidden;
	transform: scale(0.95);
	transition: transform 0.2s ease;
}

.command-palette-overlay.visible .command-palette-modal {
	transform: scale(1);
}

.command-palette-search {
	display: flex;
	align-items: center;
	padding: 1em 1.5em;
	border-bottom: 1px solid var(--border-color);
}

.command-icon {
	font-size: 1.5em;
	color: var(--text-color-light);
	margin-right: 0.5em;
}

#command-input {
	flex-grow: 1;
	border: none;
	background: transparent;
	font-size: 1.25rem;
	color: var(--text-color-strong);
	outline: none;
	width: 100%;
}

.command-hint {
	font-size: 0.8rem;
	color: var(--text-color-light);
	border: 1px solid var(--border-color);
	padding: 0.2em 0.5em;
	border-radius: 4px;
}

.command-list {
	list-style: none;
	margin: 0;
	padding: 0.5em;
	max-height: 300px;
	overflow-y: auto;
}

.command-item {
	padding: 0.75em 1em;
	margin-bottom: 2px;
	border-radius: 4px;
	cursor: pointer;
	color: var(--text-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.1s ease;
}

.command-item:hover,
.command-item.selected {
	background-color: var(--button-hover-bg);
	color: var(--text-color-strong);
}

.command-item-icon {
	margin-right: 0.75em;
	opacity: 0.7;
}

/* Toast Hint */
.command-toast {
	position: fixed;
	bottom: 20px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	right: auto !important;
	background: var(--bg-color);
	border: 1px solid var(--border-color);
	padding: 0.5em 1em;
	border-radius: 6px;
	font-size: 0.85rem;
	color: var(--text-color-light);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 900;
	opacity: 0.7;
	transition: opacity 0.3s, transform 0.2s;
	display: flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
	/* Indicates it's clickable */
}

.command-toast:hover {
	opacity: 1;
	transform: translateX(-50%) translateY(-2px) !important;
	/* Slight lift on hover */
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

kbd {
	background-color: var(--sidebar-bg);
	border: 1px solid var(--border-color);
	border-radius: 3px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
	color: var(--text-color-strong);
	display: inline-block;
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1;
	padding: 2px 4px;
	white-space: nowrap;
}

@media screen and (max-width: 768px) {
	.command-toast {
		display: none !important;
	}
}

/* Header Tagline Adjustments */
#header header p.tagline-static {
	margin-bottom: 0;
	color: var(--text-color-strong);
	/* Make static text slightly stronger */
}

#header header p.tagline-typing {
	margin-top: 0;
	font-size: 0.9em;
	color: var(--text-color-light);
	font-style: italic;
	min-height: 1.5em;
}

/* 3D Tilt Container */
.features article .image {
	/* Ensure transforms don't look flat */
	transform-style: preserve-3d;
	will-change: transform;
}

/* ChatMonkey Tooltip */
/* ChatMonkey Tooltip */
.chatmonkey-tooltip {
	position: fixed;
	bottom: 160px !important;
	right: 20px;
	/* High contrast dark background */
	background-color: #414f57;
	color: #fff;
	padding: 12px 18px;
	border-radius: 8px;
	/* Stronger shadow */
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
	font-size: 0.95em;
	font-weight: 500;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	transform: translateY(-20px) scale(0.9);
	border: none;
	display: flex;
	align-items: center;
	gap: 12px;
	pointer-events: auto;
}

.chatmonkey-tooltip.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	animation: tooltip-bounce 3s infinite;
}

/* More noticeable bounce animation */
@keyframes tooltip-bounce {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-8px);
	}

	60% {
		transform: translateY(-4px);
	}
}

@keyframes bounce-finger {
	from {
		transform: translateY(0) rotate(-20deg);
	}

	to {
		transform: translateY(5px) rotate(-20deg);
	}
}

/* Ensure dark mode also pops (use a slightly lighter dark grey or accent) */
html.dark-mode .chatmonkey-tooltip {
	background-color: #eee;
	color: #333;
	border: 1px solid #ccc;
}

.chatmonkey-tooltip::after {
	content: '';
	position: absolute;
	bottom: -6px;
	right: 20px;
	width: 12px;
	height: 12px;
	background-color: inherit;
	/* Remove borders as we are using solid high contrast bg */
	transform: rotate(45deg);
}

html.dark-mode .chatmonkey-tooltip::after {
	border-bottom: 1px solid #ccc;
	border-right: 1px solid #ccc;
}

.chatmonkey-tooltip-close {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: inherit;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	margin-left: 5px;
	transition: background-color 0.2s;
}

html.dark-mode .chatmonkey-tooltip-close {
	background: rgba(0, 0, 0, 0.1);
}

.chatmonkey-tooltip-close:hover {
	background: rgba(255, 255, 255, 0.4);
}

html.dark-mode .chatmonkey-tooltip-close:hover {
	background: rgba(0, 0, 0, 0.2);
}

.button.small {
	height: 2.25em;
	line-height: 2.25em;
	padding: 0 1.25em;
	font-size: 0.8em;
}

/* Vertical Timeline */
.timeline {
	position: relative;
	margin: 2em 0 2em 1em;
	padding-left: 2em;
}

.timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 8px;
	height: 100%;
	width: 2px;
	background: var(--border-color);
}

.timeline-item {
	position: relative;
	margin-bottom: 3em;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-marker {
	position: absolute;
	left: -2.6em;
	top: 0.25em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sidebar-text);
	border: 3px solid var(--bg-color);
	box-shadow: 0 0 0 2px var(--border-color);
	transition: background-color 0.3s ease;
}

.timeline-item:hover .timeline-marker {
	background: var(--text-color-strong);
}

.timeline-content h4 {
	margin: 0 0 0.5em 0;
	font-size: 1.1em;
	color: var(--text-color-strong);
}

.timeline-content p {
	margin: 0 0 1em 0;
}

.timeline-content p:last-child {
	margin: 0;
}

html.dark-mode .timeline-marker {
	background: var(--text-color-strong);
}

/* Core Principles List */
.core-principles-list {
	list-style: none;
	padding: 0;
	margin: 2em 0;
}

.core-principles-list>li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5em;
	margin-bottom: 1em;
	background: rgba(144, 144, 144, 0.05);
	border-radius: 8px;
	border: 1px solid var(--border-color);
	transition: background-color 0.3s ease;
}

.core-principles-list>li:hover {
	background: rgba(144, 144, 144, 0.1);
}

/* Hobby Photo Grid */
.hobby-photo-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	/* 2 columns on mobile (6 rows) */
	gap: 1em;
	margin: 2em 0 4em 0;
}

@media screen and (min-width: 480px) {
	.hobby-photo-grid {
		grid-template-columns: repeat(3, 1fr);
		/* 3 columns on small screens (4 rows) */
	}
}

@media screen and (min-width: 768px) {
	.hobby-photo-grid {
		grid-template-columns: repeat(4, 1fr);
		/* 4 columns on desktop (3 rows) */
	}
}

.hobby-photo-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: rgba(144, 144, 144, 0.1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hobby-photo-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.hobby-photo-card:hover img {
	transform: scale(1.05);
}

.hobby-photo-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 2em 0.5em 0.5em 0.5em;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	color: #fff;
	font-size: 0.8em;
	font-weight: 500;
	text-align: center;
	pointer-events: none;
}

.principle-content {
	flex: 1;
	padding-right: 2em;
}

.principle-content strong {
	display: block;
	font-size: 1.1em;
	margin-bottom: 0.5em;
	color: var(--text-color-strong);
}

.principle-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-color-light);
	margin-left: 1em;
	transition: color 0.3s ease;
}

.core-principles-list>li:hover .principle-icon {
	color: var(--text-color-strong);
}

.principle-icon svg {
	width: 32px;
	height: 32px;
}

/* Full Viewport Height Sections */
.section-full-height {
	min-height: 75vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Full Story Toggle Slider */
.timeline-toggle-container {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 2em;
}

.timeline-toggle-container .switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

.timeline-toggle-container .switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.timeline-toggle-container .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--border-color);
	transition: .4s;
}

.timeline-toggle-container .slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
}

.timeline-toggle-container input:checked+.slider {
	background-color: #3b82f6;
}

.timeline-toggle-container input:checked+.slider:before {
	transform: translateX(26px);
}

.timeline-toggle-container .slider.round {
	border-radius: 24px;
}

.timeline-toggle-container .slider.round:before {
	border-radius: 50%;
}

.full-story-content {
	margin-top: 1.5em;
	padding: 1.25em 1.5em;
	background: rgba(139, 92, 246, 0.08);
	/* Subtle purple tint */
	border-left: 3px solid #8b5cf6;
	/* Distinct purple marker */
	border-radius: 4px;
	display: none;
	animation: fadeIn 0.4s ease-in-out;
}

.full-story-content p:first-child strong {
	color: #8b5cf6;
	/* Match the purple accent */
}

.full-story-active .full-story-content {
	display: block;
}

/* Legend Animation */
.legend-full-story {
	opacity: 0.5;
	transition: opacity 0.3s ease;
}

#professional-timeline.full-story-active~* .legend-full-story,
.full-story-active .legend-full-story,
body:has(#professional-timeline.full-story-active) .legend-full-story {
	opacity: 1;
}

/* ========================================= */
/* Projects.html UI Enhancements             */
/* ========================================= */

.project-hero {
	padding: 6em 0 4em 0;
	text-align: center;
	border-bottom: 1px solid var(--border-color);
	background: var(--bg-color);
}

.projects-title {
	font-size: 3em;
	margin-bottom: 0.2em;
}

.projects-subtitle {
	font-size: 1.2em;
	color: var(--text-color-light);
	max-width: 600px;
	margin: 0 auto 2em;
}

.project-jump-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.8em;
}

.jump-link {
	border-radius: 20px !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

/* Alternating Layouts */
.project-section {
	padding: 6em 0 4em 0;
}

.project-even {
	background: rgba(0, 0, 0, 0.03);
}

html.dark-mode .project-even {
	background: rgba(255, 255, 255, 0.02);
}

@media screen and (min-width: 981px) {
	.project-even .features article:nth-child(1) {
		order: 2;
		margin-left: 10% !important;
		margin-top: 10vh !important;
	}

	.project-even .features article:nth-child(2) {
		order: 1;
		margin-left: 0 !important;
		margin-top: 0 !important;
	}

	.project-even .features article:nth-child(3) {
		order: 3;
		width: 100% !important;
		margin-left: 0 !important;
		margin-top: 3em !important;
	}

	.project-odd .features article:nth-child(3) {
		width: 100% !important;
		margin-left: 0 !important;
		margin-top: 3em !important;
	}
}

/* Floating Back to Top Button */
.back-to-top {
	position: fixed;
	bottom: 10px !important;
	right: 20px !important;
	width: 60px;
	height: 60px;
	background: var(--sidebar-bg);
	/* Matches theme */
	color: var(--sidebar-text);
	/* Matches theme text */
	border: 1px solid var(--border-color);
	/* Add slight border to match command toast style */
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top i {
	font-style: normal;
	font-size: 1.5em;
	font-weight: bold;
	color: var(--sidebar-text) !important;
}

.back-to-top:hover {
	transform: translateY(-3px);
	background: var(--button-hover-bg);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Project Context Bar (Mobile/Tablet Only) */
.context-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50px;
	background: var(--bg-color);
	border-top: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	padding: 0 1.5em;
	z-index: 2000;
	transform: translateY(100%);
	transition: transform 0.3s ease-in-out;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.context-bar.visible {
	transform: translateY(0);
}

.context-label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-right: 0.8em;
	color: var(--text-color-light);
}

.context-project {
	font-weight: 600;
	color: var(--accent-color);
}

.context-progress {
	position: absolute;
	top: 0;
	left: 0;
	height: 3px;
	background: var(--accent-color);
	width: 0%;
	transition: width 0.1s ease-out;
}

/* Removed Floating Elements Offset for Context Bar (User Request) */

/* ChatMonkey Launcher Base Override */
div#chatmonkey-widget-container button[aria-label="Open chat"] {
	bottom: 80px !important;
}

/* Hide context bar on Large Desktop where sidebar handles orientation */
@media screen and (min-width: 1281px) {
	.context-bar {
		display: none !important;
	}
}

.project-header {
	margin-bottom: 2em;
	text-align: center;
}

.project-header h2 {
	font-size: 2.2em;
	margin-bottom: 0;
}