/* ==========================================================================
   RBX DEV Portfolio Theme CSS
   ========================================================================== */

:root {
	/* Colors */
	--bg-dark: #000000;
	--bg-card: rgba(10, 10, 28, 0.75);
	--bg-card-border: rgba(255, 255, 255, 0.08);
	--color-primary: #7c3aed; /* Purple */
	--color-secondary: #06b6d4; /* Cyan */
	--color-accent: #3b82f6; /* Blue */
	--color-pink: #ec4899;

	--text-main: #f3f4f6;
	--text-muted: #9ca3af;
	--text-dark: #6b7280;
	--glow-purple: 0 0 15px rgba(124, 58, 237, 0.4);
	--glow-cyan: 0 0 15px rgba(6, 182, 212, 0.4);
	--glow-blue: 0 0 15px rgba(59, 130, 246, 0.4);
	
	/* Font Families */
	--font-title: 'Outfit', 'Inter', sans-serif;
	--font-body: 'Inter', sans-serif;

}

/* Reset & Global Styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	background-color: var(--bg-dark);
	color: var(--text-main);
	font-family: var(--font-body);
	overflow-x: hidden;
}

body {
	background-color: var(--bg-dark);
	font-family: var(--font-body);
	line-height: 1.6;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

a {
	color: inherit;
	text-decoration: none;
	transition: all 0.3s ease;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
	transition: all 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-track {
	background: #03030e;
}
::-webkit-scrollbar-thumb {
	background: #1c1c3f;
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--color-primary);
	box-shadow: var(--glow-purple);
}

/* Utility Classes */
.text-cyan { color: var(--color-secondary) !important; }
.text-purple { color: var(--color-primary) !important; }
.text-blue { color: var(--color-accent) !important; }
.text-pink { color: var(--color-pink) !important; }

.gradient-text-blue {
	background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.gradient-text-purple {
	background: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.main-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: rgba(3, 3, 15, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--bg-card-border);
	padding: 16px 0;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-icon-box {
	background: rgba(6, 182, 212, 0.1);
	border: 1px solid rgba(6, 182, 212, 0.2);
	width: 38px;
	height: 38px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo-icon {
	width: 20px;
	height: 20px;
}

.logo-text {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: 1px;
}

.nav-menu ul {
	display: flex;
	list-style: none;
	gap: 32px;
}

.nav-link {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
	color: #fff;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

.header-socials {
	display: flex;
	gap: 16px;
}

.header-social-link {
	color: var(--text-muted);
}

.header-social-link:hover {
	color: var(--color-secondary);
	filter: drop-shadow(var(--glow-cyan));
}

.header-social-link svg {
	width: 20px;
	height: 20px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
	background: var(--color-primary);
	color: #fff;
	box-shadow: var(--glow-purple);
}

.btn-primary:hover {
	background: #6d28d9;
	transform: translateY(-2px);
	box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

.btn-download-cv {
	background: var(--color-accent);
	color: #fff;
	box-shadow: var(--glow-blue);
}

.btn-download-cv:hover {
	background: #2563eb;
	transform: translateY(-2px);
	box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

.btn-icon, .download-icon {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
	position: relative;
	padding-top: 180px;
	padding-bottom: 120px;
	min-height: 100vh;
	display: flex;
	align-items: center;
	background: #000000;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	pointer-events: none;
}


.hero-container {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	align-items: center;
	gap: 60px;
}

.hero-badge {
	background: rgba(124, 58, 237, 0.1);
	border: 1px solid rgba(124, 58, 237, 0.3);
	color: #c084fc;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 24px;
}

.badge-icon {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

.hero-title {
	font-family: var(--font-title);
	font-weight: 900;
	font-size: 3.5rem;
	line-height: 1.15;
	letter-spacing: -1px;
	margin-bottom: 20px;
}

.hero-description {
	color: var(--text-muted);
	font-size: 1.1rem;
	max-width: 500px;
	margin-bottom: 36px;
}



.hero-buttons {
	display: flex;
	gap: 16px;
	margin-bottom: 54px;
}

.hero-stats {
	display: flex;
	gap: 40px;
}

.stat-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.stat-icon {
	width: 20px;
	height: 20px;
}

.stat-value {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 1.5rem;
}

.stat-label {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: var(--text-dark);
}

/* Speech Bubble (Undertale Style) */
.hero-showcase {
	position: relative;
	height: 450px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.speech-bubble-wrapper {
	position: absolute;
	top: 25px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	animation: float 6s ease-in-out infinite;
}

.speech-bubble {
	background: #000 !important;
	border: 3.5px solid #fff !important;
	box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
	padding: 8px 18px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.speech-bubble span {
	font-family: 'Courier New', Courier, monospace;
	font-weight: 700;
	font-size: 0.8rem;
	color: #fff;
	letter-spacing: 1.5px;
	white-space: nowrap;
	text-shadow: none;
}

.speech-bubble-tail {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
}

.bubble-dot {
	display: block;
	border-radius: 50%;
	background: #000;
	border: 2px solid #fff;
	box-sizing: border-box;
}

.dot-medium {
	width: 10px;
	height: 10px;
}

.dot-small {
	width: 6px;
	height: 6px;
}


@keyframes float {
	0% { transform: translateY(0px) rotate(1deg); }
	50% { transform: translateY(-15px) rotate(-1deg); }
	100% { transform: translateY(0px) rotate(1deg); }
}

.hero-avatar-container {
	position: relative;
	width: 320px;
	height: 380px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.avatar-glow {
	position: absolute;
	bottom: 20px;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
	z-index: 1;
}

.roblox-character-mock {
	width: 100%;
	height: 100%;
	z-index: 2;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: bottom center;
	/* Create a cool fallback vector graphic of a blocky roblox character using CSS if no image exists */
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 400" width="100%" height="100%"><rect x="110" y="80" width="80" height="80" rx="6" fill="%232c2a36" stroke="%237c3aed" stroke-width="2" /><rect x="60" y="170" width="180" height="150" rx="10" fill="%230f0f2a" stroke="%237c3aed" stroke-width="2" /><circle cx="150" cy="220" r="24" fill="none" stroke="%233b82f6" stroke-width="4" /><rect x="90" y="320" width="50" height="80" fill="%230b0b1a" stroke="%237c3aed" stroke-width="2" /><rect x="160" y="320" width="50" height="80" fill="%230b0b1a" stroke="%237c3aed" stroke-width="2" /></svg>');
	filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.4));
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 48px;
	border-bottom: 1px solid var(--bg-card-border);
	padding-bottom: 16px;
}

.section-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.section-icon {
	width: 24px;
	height: 24px;
}

.section-title {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: 0.5px;
}

.section-header-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--text-dark);
}

.section-header-link:hover {
	color: #fff;
}

.link-icon {
	width: 14px;
	height: 14px;
}

/* ==========================================================================
   Featured Projects
   ========================================================================== */
.projects-section {
	padding: 100px 0;
	background: var(--bg-dark) !important;
}

.projects-list {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.project-row {
	display: grid;
	grid-template-columns: 120px 1fr;
	align-items: start;
	gap: 20px;
}

.project-number-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 10px;
}

.project-num-label {
	font-size: 0.6rem;
	font-weight: 700;
	color: var(--text-dark);
	letter-spacing: 1px;
}

.project-number {
	font-family: var(--font-title);
	font-weight: 900;
	font-size: 2.75rem;
	line-height: 1;
	color: var(--color-accent);
	margin: 4px 0;
	text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.project-num-sub {
	font-size: 0.65rem;
	font-weight: 700;
	color: var(--text-dark);
	letter-spacing: 0.5px;
}

.project-card {
	background: var(--bg-card);
	border: 1px solid var(--bg-card-border);
	backdrop-filter: blur(12px);
	border-radius: 16px;
	padding: 24px;
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr;
	gap: 24px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.4);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
	border-color: rgba(124, 58, 237, 0.2);
	box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(124, 58, 237, 0.05);
}

/* Project Video */
.project-video-container {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16/9;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.video-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--text-dark);
	gap: 12px;
}

.youtube-placeholder-icon {
	width: 48px;
	height: 48px;
}

/* Project Details */
.project-details {
	display: flex;
	flex-direction: column;
}

.project-category {
	font-size: 0.75rem;
	font-weight: 800;
	color: #c084fc;
	letter-spacing: 1px;
	margin-bottom: 6px;
}

.project-title {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 1.4rem;
	color: #fff;
	margin-bottom: 12px;
}

.project-description {
	color: var(--text-muted);
	font-size: 0.88rem;
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.tag-pill {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--text-muted);
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 600;
}

.project-stats-row {
	display: flex;
	gap: 24px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.p-stat-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.p-stat-icon {
	width: 18px;
	height: 18px;
	color: var(--text-muted);
}

.p-stat-val {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 0.95rem;
	display: block;
	color: #fff;
}

.p-stat-lbl {
	font-size: 0.55rem;
	font-weight: 700;
	color: var(--text-dark);
	letter-spacing: 0.5px;
	display: block;
}

/* Script Box */
.project-script-container {
	border: 1px solid rgba(255, 255, 255, 0.04);
	background: rgba(5, 5, 15, 0.6);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
}

.script-header {
	background: rgba(12, 12, 32, 0.8);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	padding: 8px 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.script-header-title {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--text-muted);
	letter-spacing: 0.5px;
}

.script-lang-selector {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--text-dark);
}

.dropdown-chevron {
	width: 10px;
	height: 10px;
}

.script-body-wrapper {
	flex-grow: 1;
	position: relative;
	overflow-y: auto;
	height: 280px;
}

.script-code-block {
	margin: 0;
	padding: 12px;
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--text-muted);
	white-space: pre;
	tab-size: 4;
}

/* Custom code line rendering style */
.code-line {
	display: flex;
}
.line-number {
	width: 24px;
	text-align: right;
	margin-right: 12px;
	color: var(--text-dark);
	user-select: none;
}
.line-content {
	flex-grow: 1;
}

/* Syntax Highlighting Classes */
.hl-keyword { color: #f43f5e; font-weight: 600; }  /* red/pink */
.hl-string { color: #10b981; }                     /* green */
.hl-number { color: #f59e0b; }                     /* orange */
.hl-comment { color: #6b7280; font-style: italic; } /* grey */
.hl-builtin { color: #60a5fa; }                     /* blue */
.hl-operator { color: #a78bfa; }                    /* purple */

.script-footer {
	background: rgba(12, 12, 32, 0.8);
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	padding: 8px 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.view-script-link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.65rem;
	font-weight: 700;
	color: var(--color-accent);
	letter-spacing: 0.5px;
}

.view-script-link:hover {
	color: #60a5fa;
}

.copy-script-btn {
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.05);
	padding: 6px 12px;
	border-radius: 6px;
	color: var(--text-muted);
	font-size: 0.65rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 4px;
}

.copy-script-btn:hover {
	background: rgba(255,255,255,0.08);
	color: #fff;
}

.copy-script-btn.copied {
	background: rgba(16, 185, 129, 0.1);
	border-color: rgba(16, 185, 129, 0.2);
	color: #10b981;
}

.copy-icon {
	width: 12px;
	height: 12px;
}

/* ==========================================================================
   More Scripts & Systems Grid
   ========================================================================== */
.systems-section {
	padding: 100px 0;
	background: var(--bg-dark) !important;
}

.systems-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

.system-card {
	background: var(--bg-card);
	border: 1px solid var(--bg-card-border);
	border-radius: 12px;
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.system-card:hover {
	transform: translateY(-4px);
	border-color: rgba(124, 58, 237, 0.25);
	box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 15px rgba(124, 58, 237, 0.05);
}

.system-icon-wrapper {
	width: 50px;
	height: 50px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	border: 1px solid rgba(255,255,255,0.05);
}

.system-icon-wrapper.blue-glow {
	background: rgba(59, 130, 246, 0.08);
	border-color: rgba(59, 130, 246, 0.15);
	box-shadow: 0 0 10px rgba(59, 130, 246, 0.05);
}
.system-icon-wrapper.purple-glow {
	background: rgba(124, 58, 237, 0.08);
	border-color: rgba(124, 58, 237, 0.15);
	box-shadow: 0 0 10px rgba(124, 58, 237, 0.05);
}
.system-icon-wrapper.pink-glow {
	background: rgba(236, 72, 153, 0.08);
	border-color: rgba(236, 72, 153, 0.15);
	box-shadow: 0 0 10px rgba(236, 72, 153, 0.05);
}
.system-icon-wrapper.cyan-glow {
	background: rgba(6, 182, 212, 0.08);
	border-color: rgba(6, 182, 212, 0.15);
	box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.system-icon {
	width: 22px;
	height: 22px;
}

.system-title {
	font-family: var(--font-title);
	font-size: 0.85rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}

.system-lang {
	font-size: 0.65rem;
	font-weight: 600;
	color: var(--text-dark);
}

/* ==========================================================================
   About Me Section
   ========================================================================== */
.about-section {
	padding: 100px 0 120px;
	background: var(--bg-dark) !important;
}

.about-grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr 1.4fr;
	align-items: center;
	gap: 40px;
}

.about-portrait-col {
	display: flex;
	justify-content: center;
}

.portrait-container {
	position: relative;
	width: 180px;
	height: 180px;
}

.portrait-glow {
	position: absolute;
	top: -10px;
	left: -10px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
	border-radius: 50%;
}

.about-character-avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2px solid rgba(124, 58, 237, 0.3);
	background-size: cover;
	background-position: center;
	box-shadow: var(--glow-purple);
	/* Vector image placeholder for roblox avatar head */
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100%"><circle cx="50" cy="50" r="48" fill="%230b0b1c" /><rect x="35" y="30" width="30" height="30" rx="3" fill="%232c2a3d" stroke="%237c3aed" stroke-width="1.5" /><rect x="25" y="65" width="50" height="40" rx="5" fill="%230f0f2a" stroke="%237c3aed" stroke-width="1.5" /></svg>');
}

.about-info-col {
	display: flex;
	flex-direction: column;
}

.about-heading {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: 0.5px;
	margin-bottom: 16px;
	color: #fff;
}

.about-text {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 24px;
}

.about-socials {
	display: flex;
	gap: 16px;
}

.about-social-link {
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
}

.about-social-link:hover {
	color: #fff;
	background: var(--color-primary);
	border-color: var(--color-primary);
	box-shadow: var(--glow-purple);
	transform: translateY(-2px);
}

.about-social-link svg {
	width: 18px;
	height: 18px;
}

/* Skills Mini Grid */
.skills-mini-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.skill-card {
	background: var(--bg-card);
	border: 1px solid var(--bg-card-border);
	padding: 24px;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.skill-icon {
	width: 24px;
	height: 24px;
	margin-bottom: 4px;
}

.skill-title {
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
}

.skill-desc {
	font-size: 0.75rem;
	color: var(--text-muted);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.main-footer {
	background: #020208;
	border-top: 1px solid var(--bg-card-border);
	padding: 32px 0;
}

.footer-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-logo-icon {
	width: 20px;
	height: 20px;
	color: var(--text-dark);
}

.footer-logo-text {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 1rem;
	color: var(--text-muted);
}

.footer-copyright {
	font-size: 0.75rem;
	color: var(--text-dark);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
	.hero-container {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 40px;
	}
	.hero-description {
		margin-left: auto;
		margin-right: auto;
	}
	.hero-buttons {
		justify-content: center;
	}
	.hero-stats {
		justify-content: center;
	}
	.hero-showcase {
		display: none; /* Hide complex character graphics on smaller tabs */
	}
	.project-card {
		grid-template-columns: 1fr 1fr;
	}
	.project-script-container {
		grid-column: span 2;
	}
	.systems-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.about-grid {
		grid-template-columns: 1fr 1.2fr;
	}
	.about-portrait-col {
		display: none;
	}
}

@media (max-width: 768px) {
	.nav-menu {
		display: none; /* Basic mobile layout - can expand in JS */
	}
	.hero-title {
		font-size: 2.5rem;
	}
	.project-row {
		grid-template-columns: 1fr;
	}
	.project-number-col {
		flex-direction: row;
		align-items: center;
		gap: 12px;
		margin-bottom: 8px;
	}
	.project-number {
		font-size: 2rem;
	}
	.project-card {
		grid-template-columns: 1fr;
		padding: 16px;
	}
	.project-script-container {
		grid-column: span 1;
	}
	.systems-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.about-grid {
		grid-template-columns: 1fr;
	}
	.skills-mini-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Media Slider CSS
   ========================================================================== */
.media-slider {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.slides-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}
.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.4s ease-in-out;
	pointer-events: none;
}
.slide.slide-active {
	opacity: 1;
	pointer-events: auto;
	position: relative;
}
.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(3, 3, 15, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	backdrop-filter: blur(4px);
}
.slider-btn:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	box-shadow: var(--glow-purple);
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }
.slider-btn svg { width: 16px; height: 16px; }
.slider-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 5;
}
.slider-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: all 0.3s ease;
}
.slider-dot.dot-active {
	background: var(--color-secondary);
	box-shadow: var(--glow-cyan);
	width: 12px;
	border-radius: 3px;
}

/* ==========================================================================
   Visual Project Creator Styling
   ========================================================================== */
.creator-toggle-container {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}

#toggle-creator-btn {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
	box-shadow: var(--glow-purple);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 12px 24px;
	border-radius: 30px;
}
#toggle-creator-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
}

.creator-wrapper {
	background: var(--bg-card) !important;
	border: 1px solid var(--bg-card-border) !important;
	box-shadow: 0 10px 40px rgba(0,0,0,0.8), var(--glow-purple);
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 60px;
	animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}

.creator-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 32px;
	align-items: start;
}

.creator-panel-title {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 1.25rem;
	color: #fff;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(255,255,255,0.05);
	padding-bottom: 10px;
	letter-spacing: 0.5px;
}

.creator-form-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-group label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--text-muted);
	letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"] {
	background: rgba(3, 3, 15, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 10px 14px;
	color: #fff;
	font-family: inherit;
	font-size: 0.85rem;
	transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
	background: rgba(3, 3, 15, 0.9);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.field-info {
	font-size: 0.65rem;
	color: var(--text-dark);
	margin-top: 4px;
}

.btn-submit-project {
	margin-top: 10px;
	justify-content: center;
	width: 100%;
}

.creator-status-msg {
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	margin-top: 10px;
}
.creator-status-msg.success { color: #10b981; }
.creator-status-msg.error { color: #ef4444; }

.creator-preview-panel {
	display: flex;
	flex-direction: column;
}

.creator-preview-panel .project-row {
	grid-template-columns: 80px 1fr !important;
}

/* responsive creator */
@media (max-width: 1024px) {
	.creator-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Single Project Page Styling (Pastebin-style)
   ========================================================================== */
.single-project-section {
	padding-top: 220px !important;
	padding-bottom: 80px;
	min-height: 100vh;
	background: var(--bg-dark) !important;
}

.back-to-portfolio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
	margin-bottom: 30px;
}
.back-to-portfolio:hover {
	color: #fff;
	text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.single-script-header-info {
	margin-bottom: 32px;
}

.single-title {
	font-family: var(--font-title);
	font-weight: 900;
	font-size: 2.5rem;
	line-height: 1.2;
	color: #fff;
	margin-top: 6px;
	text-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.single-script-desc-summary {
	color: var(--text-muted);
	font-size: 1.05rem;
	margin-top: 10px;
	max-width: 900px;
}

.full-width-script-container {
	width: 100%;
	border-color: rgba(6, 182, 212, 0.15) !important;
	box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 30px rgba(6, 182, 212, 0.04);
	margin-bottom: 40px;
}

.project-script-container.full-width-script-container .script-body-wrapper.full-width-script-body {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}



.single-script-details-lower {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding-top: 32px;
	margin-top: 40px;
}

.panel-section-title {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--text-dark);
	letter-spacing: 1px;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.desc-content {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.lower-tags-panel .tag-pill {
	font-size: 0.75rem;
	padding: 6px 12px;
}

@media (max-width: 768px) {
	.single-script-details-lower {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.full-width-script-body {
		height: 400px !important;
	}
	.single-title {
		font-size: 2rem;
	}
}

/* Delete project button */
.delete-project-btn {
	position: absolute;
	top: 0;
	right: 0;
	color: #ef4444;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	opacity: 0.6;
	transition: all 0.3s ease;
	z-index: 10;
}
.delete-project-btn:hover {
	opacity: 1;
	transform: scale(1.15);
	filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}
.delete-project-btn svg {
	width: 18px;
	height: 18px;
}

/* Header Music Player */
.header-music-player {
	margin-right: 15px;
	display: flex;
	align-items: center;
}

.music-toggle-btn {
	background: transparent;
	border: 2px solid #22c55e !important; /* Green alert color for play button */
	box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
	color: #fff;
	font-family: 'Courier New', Courier, monospace;
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 1px;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.3s ease;
	animation: music-glow-pulse 2s infinite;
}

.music-toggle-btn.playing {
	border-color: #ef4444 !important; /* Red for mute option */
	box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
	animation: none;
}

.music-toggle-btn:hover {
	transform: scale(1.05);
	color: #fff;
	text-shadow: 0 0 4px #fff;
}

.music-toggle-btn svg {
	width: 14px;
	height: 14px;
}

@keyframes music-glow-pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); border-color: rgba(34, 197, 94, 0.8); }
	50% { box-shadow: 0 0 12px 4px rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 1); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); border-color: rgba(34, 197, 94, 0.8); }
}

@media (max-width: 768px) {
	.header-music-player {
		margin-right: 8px;
	}
	.music-toggle-btn span {
		display: none; /* Hide label on mobile to save space */
	}
}

/* ==========================================================================
   3D Favorite Games Carousel
   ========================================================================== */
.games-section {
	padding: 100px 0;
	background: #000000;
	overflow: hidden;
}

.carousel-3d-viewport {
	height: 380px;
	perspective: 1200px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 40px;
}

.carousel-3d-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	display: flex;
	justify-content: center;
	align-items: center;
}

.carousel-3d-card {
	width: 220px;
	height: 310px;
	position: absolute;
	transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
	transform-style: preserve-3d;
	border-radius: 8px;
	overflow: hidden;
	border: 3.5px solid #fff !important;
	box-shadow: 0 10px 30px rgba(0,0,0,0.6);
	background: #111;
	cursor: pointer;
}

.carousel-3d-card.active {
	border-color: var(--color-secondary) !important;
	box-shadow: var(--glow-cyan), 0 15px 45px rgba(0,0,0,0.7);
}

.game-cover-container {
	width: 100%;
	height: 100%;
	position: relative;
}

.game-cover-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.game-cover-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px 10px 10px 10px;
	background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
	text-align: center;
}

.game-title {
	color: #fff !important;
	font-size: 0.85rem !important;
	font-weight: 700;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.carousel-3d-controls {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

.carousel-control-btn {
	background: transparent;
	border: 2.5px solid var(--color-secondary) !important;
	color: var(--color-secondary);
	border-radius: 50%;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-control-btn:hover {
	background: var(--color-secondary);
	color: #000;
	box-shadow: var(--glow-cyan);
	transform: scale(1.1);
}

@media (max-width: 600px) {
	.carousel-3d-card {
		width: 160px;
		height: 230px;
	}
	.carousel-3d-viewport {
		height: 280px;
	}
}

/* ==========================================================================
   Draggable Floating Stickers Layer
   ========================================================================== */
.stickers-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 998;
}

.floating-sticker {
	position: absolute;
	pointer-events: auto;
	z-index: 999;
}

.sticker-img-wrapper {
	position: relative;
	display: inline-block;
	cursor: grab;
	user-select: none;
	-webkit-user-drag: none;
}

.sticker-img-wrapper:active {
	cursor: grabbing;
}

.floating-sticker img {
	max-width: 150px;
	height: auto;
	display: block;
	pointer-events: none;
	filter: drop-shadow(0 4px 15px rgba(0,0,0,0.6));
}

.delete-sticker-btn {
	position: absolute;
	top: -10px;
	right: -10px;
	background: #ef4444;
	border: 2px solid #fff !important;
	color: #fff;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.delete-sticker-btn:hover {
	transform: scale(1.15);
	background: #dc2626;
}

.floating-sticker:hover .delete-sticker-btn {
	opacity: 1;
}

@media (max-width: 768px) {
	.floating-sticker img {
		max-width: 100px;
	}
}












