/* Theme Variables */
:root {
    /* Light mode */
    --bg-color: #fff;
    --text-color: #1f1f1f;
    --text-color-secondary: #606060;
    --border-color: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --card-bg: #fff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --link-color: #0080ff;
    --link-hover: rgba(0, 128, 255, 0.1);
    --overlay-bg: rgba(18, 18, 18, 0.95);
    --launcher-bg: rgba(255, 255, 255, 0.8);
    --launcher-color: rgba(130, 130, 130, 0.8);
    --close-btn-bg: rgba(18, 18, 18, 0.8);
    --close-btn-color: rgba(255, 255, 255, 0.8);
    h1, h2, h3, h4, p {
        color: var(--text-color);
    }
}

body.dark-theme {
    /* Dark mode */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --text-color-secondary: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --card-bg: #1a1a1a;
    --card-shadow: rgba(0, 0, 0, 0.4);
    --link-color: #66b3ff;
    --link-hover: rgba(102, 179, 255, 0.15);
    --overlay-bg: rgba(0, 0, 0, 0.95);
    --launcher-bg: rgba(255, 255, 255, 0.1);
    --launcher-color: rgba(255, 255, 255, 0.9);
    --close-btn-bg: rgba(255, 255, 255, 0.1);
    --close-btn-color: rgba(255, 255, 255, 0.9);
    h1, h2, h3, h4, p {
        color: var(--text-color);
    }
    h1 a {
        color: var(--text-color);
    }   

    .toggle-btn .close-btn {
        background-color: var(--card-bg);
        color: var(--text-color);
    }
}

/* Base styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Text styles */
h1, h2, h3, h4, p, li {
    transition: color 0.3s ease;
}

.bio, .social {
    color: var(--text-color-secondary);
}


@font-face {
	font-family: SF Pro Text;
	src: url(/public/fonts/sf-pro-text-400.woff2) format("woff2");
	font-weight: 400
}

@font-face {
	font-family: SF Pro Text;
	src: url(/public/fonts/sf-pro-text-500.woff2) format("woff2");
	font-weight: 500
}


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

@media only screen and (-webkit-min-device-pixel-ratio:1.25),
only screen and (-webkit-min-device-pixel-ratio:1.3),
only screen and (min-resolution:120dpi) {
	body {
		-moz-osx-font-smoothing: grayscale;
		-webkit-font-smoothing: antialiased
	}
}

html {
	font-family: SF Pro Text, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif !important;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: .05px;
	background: #fff
}

body {
	padding: 0;
	margin: 0;
	color: #606060;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	scrollbar-gutter: stable both-edges;
	overflow: hidden;
}

body>div {
	width: 100%;
	max-width: 650px;
}

section {
	padding: 24px 0
}

h1, h2, h3, h4, li {
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: #1a1a1a;
}

h1 {
	font-weight: 600;
	margin-bottom: 2px;
}

h1 a {
	color: #1a1a1a;
}

h3 {
	font-weight: 500;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
}

h4 {
	color: #1f1f1f;
}

a {
	text-decoration: none;
	transition: color .1s ease;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: 12px
}

.bio {
	display: block;
	padding: 1px 0;
}

.bio a {
	display: inline-block;
}

.social {
	display: block;
	padding-top: 10px;
}

.social a {
	display: block;
	display: inline-block;
}

.markdown {
	line-height: 1.5
}

.link,
.markdown a {
	position: relative;
	display: inline-flex;
	gap: 4px;
	padding: 4px 0;
	margin: -2px 0;
	transition: color 50ms cubic-bezier(.55, .055, .675, .19), background-color 50ms ease, margin 50ms ease, box-shadow 50ms ease, padding 50ms ease;
	color: #363636;
	font-weight: 500
}

.link:after,
.markdown a:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	height: 1px;
	background-color: #ddd;
	transition: background-color .2s ease-out, bottom .2s ease-out, transform .4s cubic-bezier(.785, .135, .15, .86), height .1s ease-out
}

.link:before,
.markdown a:before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 10px;
	bottom: 6px;
	background-color: #0080ff00;
	transition: border-radius .1s ease, background-color 50ms cubic-bezier(.215, .61, .355, 1), left 50ms ease, right 50ms ease, top 50ms ease, bottom 50ms ease;
	border-radius: .5px
}

.link:hover,
.markdown a:hover {
	color: #0080ff
}

.link:hover:after,
.markdown a:hover:after {
	background-color: #0080ff29;
	bottom: 4px;
	height: 1.5px
}

.link:hover:before,
.markdown a:hover:before {
	left: -2px;
	right: -2px;
	top: 6px;
	bottom: 5px;
	border-radius: 2px;
	background-color: #0080ff05
}

.ext {
	font-size: 12px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 6px
}

.header-row {
    position: relative;
    min-width: 100%;
    max-width: 600px;
    margin: 0px auto;
}

.dp-outer-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.dp-container {
	margin-top: -2px;
    border-radius: 100%;
    width: 90px;
    height: 90px;
    border: 1px solid rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    left: -1.5px;
}

.dp-circle {
    position: absolute;
    inset: 0px;
    z-index: 1;
    border-radius: 100%;
    background-image: radial-gradient(circle at 50% 0%, rgb(245, 245, 245), rgb(242, 242, 242) 40%, rgb(255, 255, 255) 72%, rgba(255, 255, 255, 0.01) 90%), linear-gradient(rgba(252, 252, 252, 0.2) 84%, rgb(10, 10, 10) 92%);
    box-shadow: rgba(26, 26, 26, 0.02) 0px 1px 12px 16px, rgba(26, 26, 26, 0.36) 0px 6px 4px -1px, rgba(26, 26, 26, 0.04) 0px 1px 2px 1px, rgba(26, 26, 26, 0.12) 0px 2px 2px -1px;
}

.image {
    position: absolute;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
	min-width: 88px;
	min-height: 88px;
    border-radius: 100%;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.dp-container::after {
    content: "";
    position: absolute;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    min-width: 88px;
    min-height: 88px;
    border-radius: 100%;
    z-index: 11;
    background-image: url('/public/img/profpic2.webp');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dp-container:hover::after {
    opacity: 1;
}

.dp-container:hover .image {
    opacity: 0;
}

.title {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px
}

.writing {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
	padding: 20px 0;
	grid-column-gap: 28px;
	grid-row-gap: 28px
}



.education {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
	padding: 20px 0;
	grid-column-gap: 28px;
	grid-row-gap: 28px
}

.article {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	color: #1a1a1a
}

.book {
	position: relative;
	justify-content: flex-start;
	min-height: 58px;
	max-height: 58px;
	min-width: 58px;
	max-width: 58px;
	margin-right: 16px;
	box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .32), 0 1px 2px 1px rgba(0, 0, 0, .12), 0 2px 2px -1px rgba(0, 0, 0, .16);
	transition: box-shadow .25s cubic-bezier(.19, 1, .22, 1)
}

.job {
	position: relative;
	justify-content: flex-start;
	min-height: 58px;
	max-height: 58px;
	min-width: 58px;
	max-width: 58px;
	margin-right: 16px;
	box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .32), 0 1px 2px 1px rgba(0, 0, 0, .12), 0 2px 2px -1px rgba(0, 0, 0, .16);
	transition: box-shadow .25s cubic-bezier(.19, 1, .22, 1)
}

.job {
	display: flex;
	align-items: center;
	border-radius: 10px
}

.book {
	display: flex;
	align-items: center;
	border-radius: 10px
}

.chevron-right {
	color: #fff;
	position: absolute;
	z-index: 10;
	right: 1.5px;
	opacity: 0;
	filter: drop-shadow(0 0 0 rgba(0, 0, 0, .75));
	
	transition: opacity .2s ease, filter .2s ease, transform .2s ease
}

.article:hover .book {
	box-shadow: 0 4px 4px -2px rgba(0, 0, 0, .6), 0 4px 2px -2px rgba(0, 0, 0, .8)
}

.article:hover .chevron-right {
	opacity: 1;
	transform: translateX(0)
}

.cover {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	border-radius: 10px;
	z-index: 3
}

.post {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: -4px
}

.post p {
	font-size: 12px;
	line-height: 16px;
	color: #606060
}

button {
	outline: none;
	border: none
}

.btn {
	position: relative;
	z-index: 2;
	display: flex;
	max-height: 28px;
	min-height: 28px;
	min-width: 28px;
	padding: 6px;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 4px;
	border-radius: 8px;
	background-color: #fff;
	background-image: radial-gradient(circle closest-corner at 50% 66%, rgba(26, 26, 26, .08), hsla(0, 0%, 100%, .01));
	transform: translate(0);
	transition: all 0.2s ease;
	color: #444;
	font-weight: 500;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none
}

.btn:hover {
	background-image: radial-gradient(circle farthest-side at 50% 72%, rgba(26, 26, 26, .12), hsla(0, 0%, 100%, .01));

	transform: translateY(-.5px);
	color: #1a1a1a
}

.btn:active {
	box-shadow: inset 0 0 0 20px hsla(0, 0%, 100%, .08), 0 0 0 1px rgba(26, 26, 26, .12), 0 2px 2px 1px rgba(26, 26, 26, .04), 0 2px 4px 0 hsla(0, 0%, 81%, .2), 0 3px 1px 0 rgba(26, 26, 26, .01), 0 2px 4px -2px rgba(26, 26, 26, .02);
	transform: translateY(.5px)
}

.btn:focus {
	box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .2), 0 1px 0 6px rgba(26, 26, 26, .02), 0 1px 2px 1px rgba(26, 26, 26, .04), 0 2px 4px 0 hsla(0, 0%, 81%, .2), 0 2px 1px 0 rgba(26, 26, 26, .02), 0 2px 4px -2px rgba(26, 26, 26, .04)
}

@keyframes mapboxgl-spin {
	0% {
		transform: rotate(0deg)
	}

	to {
		transform: rotate(1turn)
	}
}

@keyframes mapboxgl-user-location-dot-pulse {
	0% {
		opacity: 1;
		transform: scale(1)
	}

	70% {
		opacity: 0;
		transform: scale(3)
	}

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

/* Grid layout for products grid with max 3 columns */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    height: 200px;
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    width: 48px;
    height: 48px;
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    font-size: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.product-content {
    flex: 1;
}

.product-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: rgba(255, 255, 255, 0.95);
}

.product-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.product-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 16px;
    transition: all 0.3s ease;
}

/* Status-specific styles */
.product-status[data-status="beta"] {
    background: rgba(64, 156, 255, 0.1);
    color: #409CFF;
}

.product-status[data-status="live"] {
    background: rgba(66, 186, 150, 0.1);
    color: #42BA96;
}

.product-status[data-status="coming-soon"] {
    background: rgba(255, 171, 64, 0.1);
    color: #FFAB40;
}

/* Loading state for dynamic content */

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}


/* Products Overlay */
.products-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.products-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px 30px 20px;
    margin: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-header h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}


.overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}


/* Launcher Controls */
.launcher-btn, .close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle {
    position:inherit;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.launcher-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(130, 130, 130, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.launcher-btn i, .close-btn i {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle svg {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.launcher-btn:hover i, .close-btn:hover i {
    color: rgba(0, 0, 0, 0.9);
}

.theme-toggle:hover {
    background-color: var(--hover-bg);
    transform: scale(1.05);
}

.theme-toggle:hover svg {
    color: var(--link-color);
}

.launcher-btn:active i {
    transform: rotate(180deg) scale(0.9);
}

.close-btn:active i {
    transform: rotate(-180deg) scale(0.9);
}

.products-overlay.active .close-btn i {
    transform: rotate(-180deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle:active svg {
    transform: rotate(30deg);
}

body.dark-theme .theme-toggle svg {
    transform: rotate(180deg);
}

.products-overlay.active .close-btn {
    opacity: 1;
    visibility: visible;
}

/* Projects Section Launcher */

/* Products Overlay */
.products-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.products-overlay.active {
    opacity: 1;
    visibility: visible;
}


.overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-overlay.active .overlay-content {
    opacity: 1;
    transform: translateY(0);
}


.markdown {
    color: var(--text-color-secondary);
}

/* Links */
.link, .markdown a {
    color: var(--link-color);
    transition: all 0.3s ease;
}

.link:hover, .markdown a:hover {
    color: var(--link-color);
    background-color: var(--link-hover);
}

/* Cards and containers */
.article .book,
.article .job {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--card-shadow);
    transition: all 0.3s ease;
}

.article:hover .book,
.article:hover .job {
    box-shadow: 0 4px 8px var(--card-shadow);
    transform: translateY(-2px);
}


/* Project items */
.project-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-item:hover {
    background-color: var(--hover-bg);
    transform: translateX(4px);
}

.project-details h4 {
    color: var(--text-color);
}

.project-details p {
    color: var(--text-color-secondary);
}

/* Buttons */
.btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--card-shadow);
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: var(--hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--card-shadow);
}


.products-overlay {
    background: var(--overlay-bg);
}



/* Articles section header link */
.articles-section .title h3 a:hover {
    color: var(--link-color) !important;
    transform: translateX(2px);
}

.articles-section .title h3 a i {
    transition: transform 0.3s ease;
}

.articles-section .title h3 a:hover i {
    transform: scale(1.1);
}

/* Articles toggle button */
#articles-toggle:hover {
    background: var(--hover-bg) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--card-shadow);
}

#articles-toggle i {
    transition: transform 0.3s ease;
}

#articles-toggle:hover i {
    transform: scale(1.1);
}

/* Projects toggle button */
#projects-toggle:hover {
    background: var(--hover-bg) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--card-shadow);
}

#projects-toggle i {
    transition: transform 0.3s ease;
}

#projects-toggle:hover i {
    transform: scale(1.1);
}

/* Additional articles and projects animation */
.additional-article, .additional-project {
    opacity: 0;
    animation: fadeInSlide 0.3s ease forwards;
}

/* Articles section smooth updates */
.articles-section .writing {
    transition: opacity 0.3s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Game styles */
.game-canvas {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 20px auto;
    display: block;
}

.game-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-stats {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 18px;
}

.game-score, .high-score {
    color: var(--text-color);
    font-weight: 500;
}

body.dark-theme .game-score, 
body.dark-theme .high-score {
    color: var(--text-color);
}

.restart-btn {
    margin-top: 20px;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 4px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.restart-btn:hover {
    background-color: var(--hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--card-shadow);
}

.game-instructions {
    color: var(--text-color-secondary);
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
}

/* Mobile Optimizations */
@media screen and (max-width: 650px) {
    .launcher-btn, .theme-toggle, .close-btn {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .theme-toggle {
        right: 70px;
    }
    

    .overlay-content {
        padding: 20px;
    }

    .writing {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 24px;
    }

    .products-grid {
        gap: 16px;
        margin: 0px 10px 0px 10px;
        grid-template-columns: repeat(1, 1fr);
    }
    
    .product-card {
        padding: 20px;
    }
    
    /* Enable touch-friendly interactions */
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Update the launcher icon rotation when overlay is active */
.products-overlay.active + .launcher-btn i {
    transform: rotate(180deg);
}

/* Keep the existing hover and active states */
.launcher-btn:hover i, .close-btn:hover i {
    color: rgba(0, 0, 0, 0.9);
}

.theme-toggle:hover {
    background-color: var(--hover-bg);
    transform: scale(1.05);
}

.theme-toggle:hover svg {
    color: var(--link-color);
}

.launcher-btn:active i {
    transform: rotate(180deg) scale(0.9);
}

.close-btn:active i {
    transform: rotate(-180deg) scale(0.9);
}

.products-overlay.active .close-btn i {
    transform: rotate(-180deg);
}