/* Manrope is loaded via <link>. Base design tokens */
:root {
	--bg-1: #efe7d7;
	--bg-2: #e6dbc5;
	--bg-3: #dac9ae;
	--ink: #2a1f18;
	--ink-dim: #6a584e;
	--accent: #7f5b3e;
	--accent-2: #a47954;
	--surface: #fff8ec;
	--surface-muted: #fff3e0;
	--paper-grain: rgba(120, 90, 60, 0.06);
	--border: rgba(80, 60, 45, 0.2);
	--shadow: 0 12px 24px rgba(42, 31, 24, 0.12), 0 1px 0 rgba(42, 31, 24, 0.06);
	--radius-lg: 18px;
	--radius-md: 12px;
	--radius-sm: 10px;
}

* { box-sizing: border-box; }

/* Performance optimizations */
html { 
	scroll-behavior: smooth;
	text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

/* Hourglass Loader */
.loader-overlay {
	position: fixed;
	inset: 0;
	background: var(--bg-1);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
	opacity: 0;
	visibility: hidden;
}

.loader-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.hourglass-icon {
	animation: rotate 2s linear infinite;
}

.hourglass-icon svg {
	filter: sepia(0.3) hue-rotate(30deg);
	color: var(--accent);
}

.loader-text {
	color: var(--ink);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 1px;
	animation: pulse 2s ease-in-out infinite;
}

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

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

body { 
	width: 100%;
	height: 100%; 
}
body {
	margin: 0;
	font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial;
	color: var(--ink);
	background: var(--bg-1);
	line-height: 1.55;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Prevent horizontal scroll from overscan layers */
html, body { overflow-x: hidden; }

/* Footer lighting effect removed */

/* Scrollbar (themed) */
/* Firefox */
html {
	scrollbar-width: thin;
	scrollbar-color: var(--accent) var(--surface-muted);
}

/* WebKit */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-muted); }
::-webkit-scrollbar-thumb { 
	background: linear-gradient(180deg, var(--accent), var(--accent-2)); 
	border-radius: 999px; 
	border: 2px solid var(--surface-muted);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }
::-webkit-scrollbar-corner { background: transparent; }

.bg-img {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('http://unsplash.it/1200x800') center center no-repeat;
	background-size: cover;
	z-index: -4;
}

.bg-img::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: linear-gradient(to bottom right, #efe3cf, #d9c5a9);
	opacity: 0.4;
}

/* Particles background */
.particles-container {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	overflow: hidden;
}

.particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: rgba(164, 118, 86, 0.3);
	border-radius: 50%;
	animation: float 20s infinite linear;
}

.particle:nth-child(odd) {
	width: 3px;
	height: 3px;
	background: rgba(127, 91, 62, 0.4);
}

.particle:nth-child(3n) {
	width: 2px;
	height: 2px;
	background: rgba(210, 180, 140, 0.5);
}

@keyframes float {
	0% {
		transform: translateY(100vh) translateX(0) rotate(0deg);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		transform: translateY(-100px) translateX(100px) rotate(360deg);
		opacity: 0;
	}
}

.background-gradient {
	position: fixed;
	inset: -120px; /* overscan to avoid edges when animating */
	background:
		radial-gradient(900px 600px at 20% 15%, var(--bg-2), transparent 60%),
		radial-gradient(800px 500px at 85% 20%, var(--bg-3), transparent 60%),
		linear-gradient(160deg, #efe3cf 0%, #e7d6bd 36%, #d9c5a9 68%, #ccb292 100%);
	filter: sepia(0.12) contrast(1.02) saturate(0.92);
	animation: floatGrad 26s ease-in-out infinite alternate;
	will-change: transform;
	z-index: -3;
}

/* Dynamic noise layer that subtly shifts with cursor */
/* Mosaic grid layer */
.background-mosaic {
	position: fixed;
	inset: -400px;
	pointer-events: none;
	--cell: 20px;
	background-image:
		linear-gradient(rgba(255,255,255,0.075) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.075) 1px, transparent 1px);
	background-size: var(--cell) var(--cell), var(--cell) var(--cell);
	mix-blend-mode: overlay;
	opacity: .35;
	transform: translate3d(0,0,0);
	transition: transform 0.12s ease-out;
	z-index: -2;
}

/* Cursor glow removed */

/* Stylized hover border sweep for cards/sections */
.card, .hero, .project {
	position: relative;
	overflow: visible;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .hero:hover, .project:hover {
	transform: translateY(-2px);
}

.card::after, .hero::after, .project::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: inherit;
	pointer-events: none;
	box-shadow:
		0 0 0 2px rgba(164,118,86,0.45),
		0 0 18px rgba(164,118,86,0.35),
		0 0 38px rgba(164,118,86,0.20);
	opacity: 0;
	transition: opacity .25s ease, box-shadow .35s ease;
}
.card:hover::after, .hero:hover::after, .project:hover::after {
	opacity: 1;
	box-shadow:
		0 0 0 2px rgba(164,118,86,0.55),
		0 0 22px rgba(164,118,86,0.42),
		0 0 48px rgba(164,118,86,0.26);
}

@keyframes floatGrad {
	0% { transform: translateY(0px); }
	100% { transform: translateY(-20px); }
}

.page { padding: 48px 24px 96px; }

.floating-music { position: sticky; top: 12px; display: flex; justify-content: center; margin-bottom: 12px; z-index: 5; }
.music-chip { 
	display: inline-flex; 
	align-items: center; 
	gap: 10px; 
	padding: 8px 12px; 
	border-radius: 999px; 
	background: rgba(255,255,255,0.6); 
	border: 1px solid var(--border); 
	backdrop-filter: blur(6px); 
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
	cursor: pointer;
}

.music-chip:hover {
	background: rgba(255,255,255,0.8);
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 12px 24px rgba(43,32,27,0.15);
}
.music-cover { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 18px rgba(43,32,27,0.18); object-fit: cover; }
.music-meta { 
	display: grid; 
	position: relative;
	padding-right: 48px;
}
.music-title { font-weight: 800; line-height: 1.1; }
.music-artist { color: var(--ink-dim); font-size: 14px; }

.play-btn {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: var(--accent);
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.play-btn:hover {
	background: var(--accent-hover);
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.play-btn:hover .play-icon {
	transform: scale(1.1);
}

.play-btn:active {
	transform: translateY(-50%) scale(0.95);
}

.play-icon {
	width: 16px;
	height: 16px;
	margin-left: 1px;
}

.layout {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 28px;
}

@media (max-width: 1024px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar { order: -1; }
	/* ensure background overscan still covers */
	.background-gradient { inset: -160px; }
	.background-mosaic { inset: -480px; }
}

/* Additional responsive tweaks */
@media (max-width: 720px) {
	.page { padding: 28px 16px 64px; }
	.hero { padding: 20px; }
	.brand { font-size: clamp(42px, 12vw, 72px); }
	.section { margin-top: 20px; }
	.projects { grid-template-columns: 1fr; }
	.project.featured { grid-template-columns: 64px 1fr; padding-bottom: 96px; }
	.project.featured .project-meta { right: 12px; bottom: 12px; }
	.project.featured .project-actions { bottom: 12px; }
	/* stronger overscan on very small screens */
	.background-gradient { inset: -200px; }
	.background-mosaic { inset: -520px; }
}

.hero {
	padding: 28px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	background-image: linear-gradient(0deg, var(--paper-grain) 0.5px, transparent 0.5px),
		linear-gradient(90deg, var(--paper-grain) 0.5px, transparent 0.5px);
	background-size: 10px 10px, 10px 10px;
}


.brand {
	font-family: "Bebas Neue", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-size: clamp(52px, 9vw, 96px);
	line-height: 0.95;
	letter-spacing: 0.5px;
	font-weight: 700;
	color: var(--ink);
	margin: 6px 0 10px;
	text-shadow: 0 1px 0 #fff4, 0 2px 0 #00000010;
}

@keyframes blink {
	0%, 50% { border-color: transparent; }
	51%, 100% { border-color: var(--accent); }
}

.subtext {
	color: var(--ink-dim);
	font-size: clamp(16px, 2.1vw, 19px);
	margin: 0 0 18px;
	font-style: italic;
	position: relative;
	display: inline-block;
}

.subtext::after {
	content: '';
	position: absolute;
	right: -8px;
	top: 0;
	width: 2px;
	height: 100%;
	background: var(--accent);
	animation: blink 1s infinite;
	opacity: var(--cursor-opacity, 1);
}



.actions { display: flex; gap: 12px; align-items: center; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	border: 1px solid var(--border);
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
	box-shadow: 0 1px 0 rgba(0,0,0,0.04);
	white-space: nowrap;
	text-wrap: nowrap;
	flex-shrink: 0;
}

.btn.primary { background: var(--ink); color: #fff; }
.btn.ghost { background: var(--surface-muted); color: var(--ink); }
.btn.small { padding: 10px 14px; font-size: 14px; }
.btn.rect { border-radius: 10px; padding: 12px 16px; }

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(43,32,27,0.12); }
.btn:active { transform: translateY(0); }

.scroll-cue { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink-dim); opacity: 0.95; filter: sepia(0.2); }
.scroll-cue .arrow { 
	animation: bounce 1.6s infinite; 
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.scroll-cue .arrow:hover {
	transform: translateY(2px);
	opacity: 1;
}
@keyframes bounce { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

.section { margin-top: 28px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section h2 { margin: 0; font-size: 22px; letter-spacing: 0.4px; font-family: "Bebas Neue", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; text-transform: lowercase; }

.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.project { 
	grid-column: span 12; 
	padding: 20px; 
	border-radius: var(--radius-lg); 
	background: var(--surface); 
	border: 1px solid var(--border); 
	box-shadow: var(--shadow); 
	background-image: linear-gradient(0deg, var(--paper-grain) 0.5px, transparent 0.5px), linear-gradient(90deg, var(--paper-grain) 0.5px, transparent 0.5px); 
	background-size: 10px 10px;
	display: flex;
	flex-direction: column;
}
.project.featured { grid-column: span 12; display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: start; position: relative; padding-bottom: 82px; }
.project.featured .project-head { grid-column: 1 / -1; }
.project.featured .project-desc { grid-column: 1 / -1; }
.project .project-head { margin: 0; }
.project .project-actions { justify-content: flex-end; }
/* place Featured badge bottom-right */
.project.featured .project-meta { position: absolute; right: 16px; bottom: 16px; }
/* center Add bot at bottom */
.project.featured .project-actions { position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; width: max-content; }
@media (min-width: 720px) {
	.project { grid-column: span 6; }
	.project.featured { grid-column: span 12; }
}
.project-meta { display: flex; justify-content: flex-end; }
.badge { display: inline-block; padding: 6px 10px; background: rgba(138, 90, 68, 0.1); color: var(--accent); border: 1px solid rgba(138, 90, 68, 0.25); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; }

.badge.discontinued {
	background: rgba(220, 53, 69, 0.1);
	color: #dc3545;
	border-color: rgba(220, 53, 69, 0.25);
}

/* Tooltip for Discontinued badge */
.badge.discontinued { position: relative; cursor: help; }
.badge.discontinued::after {
	content: "This bot was discontinued due to lack of time.";
	position: absolute;
	right: 0;
	left: auto;
	bottom: calc(100% + 8px);
	transform: translateY(4px);
	background: var(--surface);
	color: var(--ink);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 6px 10px;
	max-width: 260px;
	white-space: normal;
	line-height: 1.3;
	box-shadow: var(--shadow);
	opacity: 0;
	pointer-events: none;
	z-index: 20;
	transition: opacity .18s ease, transform .18s ease;
}
.badge.discontinued::before {
	content: "";
	position: absolute;
	right: 10px;
	left: auto;
	bottom: calc(100% + 2px);
	transform: rotate(45deg);
	width: 8px;
	height: 8px;
	background: var(--surface);
	border-left: 1px solid var(--border);
	border-top: 1px solid var(--border);
	opacity: 0;
	z-index: 21;
	transition: opacity .18s ease;
}
.badge.discontinued:hover::after {
	opacity: 1;
	transform: translateY(0);
}
.badge.discontinued:hover::before { opacity: 1; }
.project-head { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0; }

.project-title-section {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}
.project-logo { width: 54px; height: 54px; border-radius: 12px; box-shadow: 0 8px 18px rgba(43,32,27,0.16); object-fit: cover; }
.project h3 { margin: 0; font-size: 20px; }
.project-desc { margin: 0 0 14px; color: var(--ink-dim); }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 8px 0 10px; }
.project-links a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(127,91,62,0.4); padding-bottom: 1px; }
.project-links a:hover { color: var(--accent-2); }
.project-actions { 
	display: flex; 
	gap: 10px; 
	justify-content: center;
	margin-top: auto;
}

/* Project tags styling */
.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 12px;
}

.tag {
	display: inline-block;
	padding: 4px 8px;
	background: rgba(164, 118, 86, 0.1);
	color: var(--accent);
	border: 1px solid rgba(164, 118, 86, 0.25);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.project .btn.small { border-radius: 12px; padding: 10px 14px; }
.project .btn.primary { background: var(--accent); }
.project .btn.primary:hover { box-shadow: 0 8px 16px rgba(127,91,62,0.25); }

/* removed modern spotify block visuals */

.list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.list.ordered { counter-reset: track; }
.list.ordered li { counter-increment: track; padding-left: 28px; position: relative; }
.list.ordered li::before { content: counter(track) "."; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.list li { background: rgba(255,255,255,0.6); border: 1px solid var(--border); padding: 10px 12px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.list .meta { color: var(--ink-dim); font-size: 14px; }

@media (max-width: 860px) {
	.spotify-grid { grid-template-columns: 1fr; }
}

.sidebar { position: sticky; top: 24px; height: fit-content; display: grid; gap: 16px; }
.card.profile, .card.spotify-mini, .card.links-mini, .card.sidebar-skills, .card.sidebar-languages { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; background-image: linear-gradient(0deg, var(--paper-grain) 0.5px, transparent 0.5px), linear-gradient(90deg, var(--paper-grain) 0.5px, transparent 0.5px); background-size: 10px 10px; }
.card.sidebar-traits { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; background-image: linear-gradient(0deg, var(--paper-grain) 0.5px, transparent 0.5px), linear-gradient(90deg, var(--paper-grain) 0.5px, transparent 0.5px); background-size: 10px 10px; }
.sidebar-traits .mini-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.traits-toggle { display: inline-flex; gap: 6px; }
.traits-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.toggle-btn { 
	appearance: none; border: 0; background: transparent; 
	color: var(--ink); font-weight: 700; padding: 8px 12px; border-radius: 10px; cursor: pointer;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .12s ease; 
}
.toggle-btn:hover { background: rgba(255,255,255,0.7); box-shadow: 0 2px 6px rgba(42,31,24,0.08); transform: translateY(-1px); }
.toggle-btn:active { transform: translateY(0); }
.toggle-btn.active { background: var(--surface); box-shadow: var(--shadow); }
.toggle-btn.active { color: var(--ink); }
.traits-panels { position: relative; overflow: hidden; transition: height .28s ease; }
.traits-panels .panel { 
	position: absolute;
	inset: 0;
	width: 100%;
	pointer-events: none;
	opacity: 0; 
	transform: translateY(8px); 
	transition: opacity .28s ease, transform .28s ease; 
	will-change: opacity, transform;
}
.traits-panels .panel.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sidebar-traits .btn.small.rect { background: var(--surface-muted); }

/* Keep active toggle text dark to match theme */
.sidebar-traits .traits-btn.active {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--accent);
}

/* Make traits items look like language skill cards */
.sidebar-traits .list { display: grid; gap: 10px; margin-top: 10px; padding: 0; }
.sidebar-traits .list li {
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 10px 12px;
	box-shadow: var(--shadow);
	font-weight: 600;
	transition: all 0.2s ease;
}
.sidebar-traits .list li:hover {
	background: rgba(255,255,255,0.8);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(42,31,24,0.12);
}

/* Align traits 'skill' items with Skills/Languages visuals */
.sidebar-traits .skills { display: grid; gap: 10px; margin-top: 12px; }
.sidebar-traits .skill { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; box-shadow: var(--shadow); }
.sidebar-traits .skill-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.sidebar-traits .skill .name { font-weight: 700; }
.sidebar-traits .skill .bar { width: 100%; height: 8px; background: rgba(0,0,0,0.06); border-radius: 999px; overflow: hidden; }
.sidebar-traits .skill .fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; width: 0%; }
/* Hide progress bars for traits */
.sidebar-traits .bar { display: none; }
.sidebar-traits .skill-top { margin-bottom: 0; }

.identity { display: flex; align-items: center; gap: 12px; }
.identity.vertical { flex-direction: column; align-items: center; text-align: center; }
.avatar-image { 
	width: 88px; 
	height: 88px; 
	border-radius: 50%; 
	overflow: hidden; 
	box-shadow: 0 10px 24px rgba(43,32,27,0.22);
	transition: all 0.3s ease;
	cursor: pointer;
}

.avatar-image:hover {
	transform: scale(1.05);
	box-shadow: 0 15px 30px rgba(43,32,27,0.3);
}
.avatar-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #c2a88b; color: #fff; font-weight: 800; display: grid; place-items: center; text-transform: uppercase; box-shadow: 0 6px 16px rgba(43,32,27,0.18); }
.who .name { font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-dim); font-size: 14px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #30b36d; box-shadow: 0 0 0 6px rgba(48,179,109,0.12); }

.activity { margin-top: 12px; }
.activity .label { color: var(--ink-dim); font-size: 13px; }
.activity .value { font-weight: 600; }

.spotify-mini .mini-head { display: flex; align-items: center; justify-content: space-between; }
.spotify-mini .label { font-weight: 700; filter: sepia(0.2); }
.links-mini .mini-head { display: flex; align-items: center; justify-content: space-between; }
.links-mini .label { font-weight: 400; filter: sepia(0.2); }

/* Make skills and languages labels non-bold to match Links */
.sidebar-skills .mini-head .label,
.sidebar-languages .mini-head .label {
	font-weight: 400;
}
.mini-list { display: grid; gap: 8px; margin-top: 10px; }
.mini-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.mini-name { color: var(--ink); font-weight: 700; }
.mini-link { 
	color: var(--accent); 
	text-decoration: none; 
	border-bottom: 1px dashed rgba(127,91,62,0.4);
	transition: all 0.2s ease;
}

.mini-link:hover { 
	color: var(--accent-2); 
	transform: translateX(2px);
	border-bottom-color: var(--accent-2);
}

/* skills */
.skills { display: grid; gap: 10px; margin-top: 12px; }
.skill { 
	background: var(--surface); 
	border: 1px solid var(--border); 
	border-radius: var(--radius-lg); 
	padding: 10px 12px; 
	box-shadow: var(--shadow); 
	cursor: pointer;
	transition: all 0.2s ease;
}

.skill:hover {
	background: rgba(255,255,255,0.8);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(42,31,24,0.12);
}
.skill-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.skill .name { font-weight: 700; }
.skill .bar { width: 100%; height: 8px; background: rgba(0,0,0,0.06); border-radius: 999px; overflow: hidden; }
.skill .fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; width: 0%; transition: width .9s ease; }

/* Arabic skill hover effect */
.arabic-skill {
	position: relative;
	overflow: hidden;
	cursor: default;
}

.arabic-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: var(--radius-lg);
}

.arabic-overlay span {
	font-weight: 700;
	color: var(--ink);
	font-size: 0.9rem;
}

.arabic-skill:hover .arabic-overlay {
	opacity: 1;
}

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.32); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 50; }
.modal.visible { display: flex; }
.modal-card { position: relative; width: min(560px, 92vw); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; background-image: linear-gradient(0deg, var(--paper-grain) 0.5px, transparent 0.5px), linear-gradient(90deg, var(--paper-grain) 0.5px, transparent 0.5px); background-size: 10px 10px; animation: modalEnter .24s ease-out both; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-title { font-weight: 800; }
.modal-card.enter { animation: modalEnter .24s ease-out both; }
.modal-card.leave { animation: modalLeave .2s ease-in both; }
.modal-close { position: absolute; top: 8px; right: 12px; background: transparent; border: 0; font-size: 22px; cursor: pointer; color: var(--ink-dim); }
.modal-close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background .2s ease, transform .12s ease; }
.modal-close:hover { background: rgba(0,0,0,0.06); }
.modal-close:active { transform: scale(0.96); }
.modal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.modal-row { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,0.7); box-shadow: 0 2px 8px rgba(42,31,24,0.06); }
.modal-row-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.modal-name { font-weight: 800; }
.modal-value { color: var(--ink-dim); font-weight: 700; }
.modal-bar { width: 100%; height: 8px; background: rgba(0,0,0,0.06); border-radius: 999px; overflow: hidden; }
.modal-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width .8s cubic-bezier(.22,.61,.36,1); }
@keyframes modalEnter { from { opacity: 0; transform: translateY(8px) scale(.98);} to { opacity: 1; transform: translateY(0) scale(1);} }
@keyframes modalLeave { from { opacity: 1; transform: translateY(0) scale(1);} to { opacity: 0; transform: translateY(-6px) scale(.98);} }
.spotify-mini .pulse { width: 10px; height: 10px; border-radius: 50%; background: #1db954; box-shadow: 0 0 0 0 rgba(29,185,84,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29,185,84,0.4); } 70% { box-shadow: 0 0 0 12px rgba(29,185,84,0); } 100% { box-shadow: 0 0 0 0 rgba(29,185,84,0); } }
.mini-body { display: grid; grid-template-columns: 48px 1fr; gap: 10px; margin-top: 10px; }
.mini-cover { width: 48px; height: 48px; border-radius: 8px; background: #ccb292; background-size: cover; background-position: center; box-shadow: 0 6px 16px rgba(42,31,24,0.18); }
.mini-title { font-weight: 700; }
.mini-artist { color: var(--ink-dim); font-size: 14px; }

.weather-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.weather-main { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.temp { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; }
.condition { color: var(--ink-dim); font-weight: 600; }
.weather-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.weather-item { background: rgba(255,255,255,0.6); border: 1px solid var(--border); padding: 10px 12px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; }
.weather-item span { color: var(--ink-dim); font-size: 14px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* FAQ */
.faq-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); background-image: linear-gradient(0deg, var(--paper-grain) 0.5px, transparent 0.5px), linear-gradient(90deg, var(--paper-grain) 0.5px, transparent 0.5px); background-size: 10px 10px; }
.faq-lines { display: grid; gap: 6px; }
.faq-lines .center { text-align: center; margin: 0; }
.faq-lines a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(127,91,62,0.4); }
.faq-lines a:hover { color: var(--accent-2); }

/* Intro (reusing faq visual) */
.intro-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); background-image: linear-gradient(0deg, var(--paper-grain) 0.5px, transparent 0.5px), linear-gradient(90deg, var(--paper-grain) 0.5px, transparent 0.5px); background-size: 10px 10px; }
.intro-lines { display: grid; gap: 6px; }
.intro-lines .center { text-align: center; margin: 0; }

/* Accordion */
.accordion { display: grid; gap: 12px; }
.accordion-item { background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; position: relative; }
.accordion-item[open] { transform: none; }
.accordion-item summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; user-select: none; font-weight: 700; border: 1px solid rgba(127,91,62,0.2); border-radius: 14px; background: rgba(255,255,255,0.55); backdrop-filter: blur(8px); box-shadow: 0 4px 10px rgba(42,31,24,0.06); transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .12s ease; }
.accordion-item summary:hover { background: rgba(255,255,255,0.75); border-color: rgba(127,91,62,0.35); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(42,31,24,0.12); }
.accordion-item summary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(42,31,24,0.08); }
.accordion-item summary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(127,91,62,0.25), 0 4px 12px rgba(42,31,24,0.12); }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item .chevron { width: 12px; height: 12px; border-right: 2px solid var(--ink-dim); border-bottom: 2px solid var(--ink-dim); transform: rotate(-45deg); transition: transform .2s ease, border-color .2s ease; opacity: 0.9; }
.accordion-item summary:hover .chevron { border-color: var(--accent); }
.accordion-item[open] .chevron { transform: rotate(45deg); border-color: var(--accent); }
.accordion-content { padding: 0 12px; margin-top: 8px; border: 1px solid rgba(127,91,62,0.2); border-radius: 14px; background: rgba(255,255,255,0.55); backdrop-filter: blur(8px); max-height: 0; overflow: hidden; transition: max-height .32s ease, padding-top .24s ease, padding-bottom .24s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; box-shadow: 0 6px 16px rgba(42,31,24,0.08); }
.accordion-item[open] .accordion-content { padding: 10px 12px 12px; max-height: 480px; }
.accordion-content.playing { animation: slideFadeIn .28s cubic-bezier(.22,.61,.36,1) both; }
@keyframes slideFadeIn { 0% { opacity: 0; transform: translateY(-8px) scale(.98); } 60% { opacity: 1; transform: translateY(0) scale(1.005);} 100% { opacity: 1; transform: translateY(0) scale(1);} }
.accordion-content.playing-out { animation: slideFadeOut .24s cubic-bezier(.4,0,.2,1) both; }
@keyframes slideFadeOut { 0% { opacity: 1; transform: translateY(0) scale(1);} 100% { opacity: 0; transform: translateY(-8px) scale(.98);} }
.links { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; grid-template-columns: 1fr; }
.links li { margin: 0; }
.links a {
	color: var(--ink);
	text-decoration: none;
	background: rgba(255,255,255,0.6);
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(127,91,62,0.2);
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(42,31,24,0.06);
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
	min-height: 42px;
}
.links a:hover {
	background: #fff;
	border-color: rgba(127,91,62,0.4);
	transform: translateY(-1px);
	box-shadow: 0 10px 18px rgba(42,31,24,0.12);
}
.links a:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(127,91,62,0.25), 0 6px 18px rgba(42,31,24,0.12);
}
.links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 8px; box-shadow: 0 0 0 2px rgba(127,91,62,0.18); vertical-align: middle; flex: 0 0 6px; }

/* Project item hover overlays */
.project-item {
	position: relative;
	overflow: hidden;
}

.project-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 12px;
	z-index: 1;
}

.project-overlay span {
	font-weight: 700;
	color: var(--ink);
	font-size: 0.9rem;
	text-align: center;
}

.project-item:hover .project-overlay {
	opacity: 1;
}


