/* ==========================================================================
   JAY — Roblox Developer Portfolio
   Modern Dark Developer/Gaming Aesthetic
   ========================================================================== */

:root {
	color-scheme: dark;
	--bg-main: #07090e;
	--bg-subtle: #0b0f17;
	--bg-card: rgba(14, 19, 29, 0.72);
	--bg-card-hover: rgba(20, 27, 41, 0.85);
	--bg-elevated: #131b2a;
	--bg-glass: rgba(15, 22, 34, 0.6);

	--fg: #f0f4fc;
	--fg-muted: #8e9bb2;
	--fg-subtle: #5d6a80;

	--accent: #3b82f6;
	--accent-hover: #60a5fa;
	--accent-subtle: rgba(59, 130, 246, 0.14);
	--accent-border: rgba(59, 130, 246, 0.35);

	--cyan-accent: #06b6d4;
	--cyan-subtle: rgba(6, 182, 212, 0.12);

	--roblox-red: #e11d48;
	--discord-blurple: #5865f2;
	--x-dark: #0f1419;

	--border: rgba(255, 255, 255, 0.08);
	--border-light: rgba(255, 255, 255, 0.14);
	--border-focus: rgba(96, 165, 250, 0.6);

	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 18px;
	--radius-xl: 24px;
	--radius-full: 9999px;

	--font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

	--shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
	--shadow-glow: 0 0 30px -5px rgba(59, 130, 246, 0.18);
	--shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

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

html {
	scroll-behavior: smooth;
	background-color: var(--bg-main);
	color: var(--fg);
	font-family: var(--font-sans);
}

body {
	margin: 0;
	background: var(--bg-main);
	color: var(--fg);
	font-family: var(--font-sans);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Background Atmosphere Grid & Subtle Mesh */
.ambient-bg {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 0;
	background: 
		radial-gradient(circle at 15% 15%, rgba(30, 58, 138, 0.12) 0%, transparent 45%),
		radial-gradient(circle at 85% 35%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
		radial-gradient(circle at 50% 85%, rgba(37, 99, 235, 0.09) 0%, transparent 50%),
		linear-gradient(180deg, #07090e 0%, #090d14 50%, #06080d 100%);
}

.ambient-grid {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 0;
	background-size: 48px 48px;
	background-image: 
		linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
}

/* App Layout Container */
.app-container {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.page-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	width: 100%;
}

@media (max-width: 640px) {
	.page-wrapper {
		padding: 0 1rem;
	}
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	background: rgba(7, 9, 14, 0.8);
	border-bottom: 1px solid var(--border);
	transition: all 0.3s ease;
}

.site-header.scrolled {
	background: rgba(7, 9, 14, 0.92);
	border-bottom-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.85rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--fg);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
}

.brand-badge {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	background: linear-gradient(135deg, #1e293b, #0f172a);
	border: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #60a5fa;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.brand-name {
	letter-spacing: 0.05em;
	font-size: 1.15rem;
	font-weight: 800;
	background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.brand-role {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--cyan-accent);
	background: var(--cyan-subtle);
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	border: 1px solid rgba(6, 182, 212, 0.25);
	margin-left: 0.25rem;
}

.nav-links-desktop {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
}

.nav-link {
	color: var(--fg-muted);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.45rem 0.9rem;
	border-radius: var(--radius-sm);
	transition: all 0.2s ease;
	position: relative;
}

.nav-link:hover {
	color: var(--fg);
	background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
	color: #ffffff;
	background: rgba(59, 130, 246, 0.15);
	border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-cta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #86efac;
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.25);
	padding: 0.3rem 0.75rem;
	border-radius: var(--radius-full);
}

.status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: #22c55e;
	box-shadow: 0 0 8px #22c55e;
	animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.85); }
}

/* Mobile Menu Toggle */
.mobile-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--border);
	color: var(--fg);
	padding: 0.5rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.mobile-menu-overlay {
	display: none;
}

@media (max-width: 768px) {
	.nav-links-desktop {
		display: none;
	}
	.mobile-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.status-pill {
		display: none;
	}
	.mobile-menu-overlay {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(11, 15, 23, 0.98);
		backdrop-filter: blur(20px);
		border-bottom: 1px solid var(--border);
		padding: 1rem 1.5rem 1.5rem;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
	}
	.mobile-nav-list {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		list-style: none;
	}
	.mobile-nav-link {
		display: flex;
		align-items: center;
		padding: 0.75rem 1rem;
		font-size: 1rem;
		font-weight: 600;
		color: var(--fg);
		text-decoration: none;
		border-radius: var(--radius-sm);
		border: 1px solid transparent;
	}
	.mobile-nav-link.active {
		background: rgba(59, 130, 246, 0.15);
		border-color: rgba(59, 130, 246, 0.3);
		color: #fff;
	}
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
	padding: 6rem 0 4rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
}

.hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.9rem;
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-full);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: #94a3b8;
	margin-bottom: 1.5rem;
}

.hero-tag-icon {
	color: #60a5fa;
}

.hero-title {
	font-size: clamp(3.5rem, 8vw, 6rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	margin-bottom: 0.75rem;
	background: linear-gradient(180deg, #ffffff 20%, #94a3b8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-subtitle {
	font-size: clamp(1.4rem, 3.5vw, 2.2rem);
	font-weight: 700;
	color: #60a5fa;
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}

.hero-bio {
	max-width: 44rem;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	line-height: 1.6;
	color: #cbd5e1;
	margin: 0 auto 2.5rem;
	font-weight: 400;
}

/* Hero Action Buttons */
.hero-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.btn-hero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.85rem 1.6rem;
	border-radius: var(--radius);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid var(--border);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-hero:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-roblox {
	background: linear-gradient(135deg, #1e293b, #0f172a);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.15);
}
.btn-roblox:hover {
	border-color: rgba(255, 255, 255, 0.35);
	background: linear-gradient(135deg, #283548, #162032);
	color: #ffffff;
}

.btn-discord {
	background: #5865f2;
	color: #ffffff;
	border-color: rgba(88, 101, 242, 0.4);
}
.btn-discord:hover {
	background: #4752c4;
	color: #ffffff;
	box-shadow: 0 8px 25px rgba(88, 101, 242, 0.35);
}

.btn-x {
	background: #000000;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.2);
}
.btn-x:hover {
	background: #111827;
	border-color: rgba(255, 255, 255, 0.4);
}

/* Scroll indicator */
.scroll-indicator-container {
	margin-top: 4rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: var(--fg-subtle);
	font-size: 0.75rem;
	font-family: var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
	transition: opacity 0.2s;
	text-decoration: none;
}

.scroll-indicator-container:hover {
	opacity: 1;
	color: var(--fg-muted);
}

.mouse-icon {
	width: 20px;
	height: 32px;
	border: 2px solid var(--fg-subtle);
	border-radius: 10px;
	position: relative;
	display: flex;
	justify-content: center;
}

.mouse-wheel {
	width: 3px;
	height: 6px;
	background: var(--cyan-accent);
	border-radius: 2px;
	margin-top: 5px;
	animation: scroll-wheel 1.8s infinite ease-in-out;
}

@keyframes scroll-wheel {
	0% { transform: translateY(0); opacity: 1; }
	60% { transform: translateY(8px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   SECTION HEADERS & LAYOUT
   ========================================================================== */

.section-container {
	padding: 5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	position: relative;
}

.section-header {
	margin-bottom: 2.75rem;
}

.section-eyebrow {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--cyan-accent);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.section-title {
	font-size: clamp(1.85rem, 4vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #ffffff;
}

.section-desc {
	font-size: 1rem;
	color: var(--fg-muted);
	max-width: 36rem;
	margin-top: 0.5rem;
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */

.about-grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 2rem;
	align-items: start;
}

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

.about-content-card {
	background: var(--bg-card);
	backdrop-filter: blur(16px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	box-shadow: var(--shadow-card);
}

.about-paragraph {
	color: #cbd5e1;
	font-size: 1.025rem;
	line-height: 1.7;
	margin-bottom: 1.25rem;
}

.about-paragraph strong {
	color: #ffffff;
}

.about-highlight-box {
	background: rgba(30, 41, 59, 0.45);
	border-left: 3px solid #3b82f6;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	padding: 1rem 1.25rem;
	margin: 1.5rem 0 0;
}

.about-highlight-title {
	font-size: 0.875rem;
	font-weight: 700;
	color: #93c5fd;
	margin-bottom: 0.25rem;
}

.about-highlight-text {
	font-size: 0.9rem;
	color: #94a3b8;
	line-height: 1.5;
}

/* Stats / Workflow Cards */
.about-stats-column {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.stat-card {
	background: var(--bg-card);
	backdrop-filter: blur(16px);
	border: 1px solid var(--border);
	border-radius: var(--radius-md, 14px);
	padding: 1.25rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	transition: all 0.25s ease;
}

.stat-card:hover {
	border-color: rgba(96, 165, 250, 0.35);
	background: var(--bg-card-hover);
	transform: translateY(-2px);
}

.stat-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-sm);
	background: rgba(59, 130, 246, 0.12);
	border: 1px solid rgba(59, 130, 246, 0.25);
	color: #60a5fa;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.stat-info {
	display: flex;
	flex-direction: column;
}

.stat-number {
	font-size: 1.5rem;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.stat-label {
	font-size: 0.825rem;
	color: var(--fg-muted);
	font-weight: 500;
}

/* Principles / Architecture list */
.principles-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md, 14px);
	padding: 1.5rem;
}

.principles-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #e2e8f0;
	margin-bottom: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.principle-item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.875rem;
	color: #94a3b8;
	margin-bottom: 0.6rem;
	line-height: 1.4;
}

.principle-check {
	color: #38bdf8;
	flex-shrink: 0;
	margin-top: 0.1rem;
}

/* ==========================================================================
   SKILLS & TECH STACK SECTION
   ========================================================================== */

.skills-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1.5rem;
}

.skill-category-card {
	background: var(--bg-card);
	backdrop-filter: blur(16px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	transition: all 0.25s ease;
	display: flex;
	flex-direction: column;
}

.skill-category-card:hover {
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.skill-cat-header {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-cat-icon {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	background: rgba(59, 130, 246, 0.15);
	color: #60a5fa;
	display: flex;
	align-items: center;
	justify-content: center;
}

.skill-cat-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #f1f5f9;
}

.skill-badge-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tech-tag {
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.35rem 0.75rem;
	background: rgba(30, 41, 59, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-full);
	color: #cbd5e1;
	transition: all 0.2s ease;
}

.tech-tag:hover {
	border-color: rgba(96, 165, 250, 0.4);
	color: #ffffff;
	background: rgba(59, 130, 246, 0.12);
}

.tech-tag.primary {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.3);
	color: #93c5fd;
}

/* ==========================================================================
   PROJECTS SHOWCASE SECTION
   ========================================================================== */

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr));
	gap: 2rem;
}

.project-card {
	background: var(--bg-card);
	backdrop-filter: blur(16px);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-card);
	position: relative;
}

.project-card:hover {
	border-color: rgba(96, 165, 250, 0.4);
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(59, 130, 246, 0.15);
}

.project-media {
	width: 100%;
	height: 240px;
	position: relative;
	overflow: hidden;
	background: #090e17;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease;
}

.project-card:hover .project-img {
	transform: scale(1.04);
}

.project-tag-overlay {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: flex;
	gap: 0.5rem;
}

.project-badge {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.25rem 0.65rem;
	border-radius: var(--radius-full);
	backdrop-filter: blur(8px);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.badge-blue {
	background: rgba(15, 23, 42, 0.85);
	color: #60a5fa;
	border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-cyan {
	background: rgba(15, 23, 42, 0.85);
	color: #38bdf8;
	border: 1px solid rgba(56, 189, 248, 0.4);
}

.project-body {
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.project-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 0.5rem;
}

.project-description {
	font-size: 0.925rem;
	color: #94a3b8;
	line-height: 1.6;
	margin-bottom: 1.25rem;
	flex-grow: 1;
}

.project-features {
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.feature-bullet {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.825rem;
	color: #cbd5e1;
}

.feature-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: #38bdf8;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
}

.project-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-inspect {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #60a5fa;
	background: rgba(59, 130, 246, 0.1);
	border: 1px solid rgba(59, 130, 246, 0.25);
	padding: 0.5rem 1rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-inspect:hover {
	background: rgba(59, 130, 246, 0.2);
	color: #ffffff;
	border-color: rgba(59, 130, 246, 0.45);
}

/* ==========================================================================
   INTERACTIVE LUAU CODE & MECHANICS PLAYGROUND
   ========================================================================== */

.code-playground-container {
	background: #0a0e17;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}

.code-tabs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #0d121e;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 0.5rem 1rem;
	overflow-x: auto;
}

.code-tabs {
	display: flex;
	gap: 0.35rem;
}

.code-tab-btn {
	background: transparent;
	border: 1px solid transparent;
	color: var(--fg-muted);
	font-family: var(--font-mono);
	font-size: 0.825rem;
	font-weight: 500;
	padding: 0.45rem 0.85rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	transition: all 0.2s;
	white-space: nowrap;
}

.code-tab-btn:hover {
	color: var(--fg);
	background: rgba(255, 255, 255, 0.04);
}

.code-tab-btn.active {
	background: #151d2f;
	color: #60a5fa;
	border-color: rgba(59, 130, 246, 0.3);
}

.code-meta {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--fg-subtle);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.code-editor-body {
	display: grid;
	grid-template-columns: 1fr 340px;
	min-height: 380px;
}

@media (max-width: 960px) {
	.code-editor-body {
		grid-template-columns: 1fr;
	}
}

.code-display {
	padding: 1.25rem 1.5rem;
	font-family: var(--font-mono);
	font-size: 0.875rem;
	line-height: 1.6;
	background: #090d15;
	overflow-x: auto;
	color: #cbd5e1;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.code-display pre {
	margin: 0;
}

/* Syntax Token Colors */
.tok-kw { color: #f43f5e; font-weight: 600; } /* local, function, return, end */
.tok-fn { color: #60a5fa; font-weight: 600; } /* function name, method calls */
.tok-str { color: #34d399; } /* "string literals" */
.tok-num { color: #fbbf24; } /* 100, 0.05 */
.tok-cm { color: #64748b; font-style: italic; } /* -- comments */
.tok-typ { color: #38bdf8; } /* : Vector3, : number */
.tok-prop { color: #e2e8f0; } /* properties */
.tok-self { color: #c084fc; } /* self */

/* Live Simulator Sidebar */
.simulator-panel {
	background: #0f1523;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.sim-header {
	margin-bottom: 1rem;
}

.sim-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #f1f5f9;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sim-canvas-box {
	width: 100%;
	height: 170px;
	background: #070a10;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-sm);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 1rem;
}

.sim-controls {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sim-btn {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-sm);
	padding: 0.6rem 1rem;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: all 0.2s;
}

.sim-btn:hover {
	filter: brightness(1.1);
}

.sim-slider-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--fg-muted);
}

.sim-slider-row input[type="range"] {
	width: 130px;
	accent-color: #3b82f6;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */

.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(12px);
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.modal-container {
	background: #0d121d;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius-xl);
	max-width: 760px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
	position: relative;
	animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.modal-header {
	padding: 1.5rem 1.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal-close-btn {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	color: var(--fg-muted);
	border-radius: 50%;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
}

.modal-close-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.modal-body {
	padding: 1.75rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 2rem;
	align-items: start;
}

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

.contact-info-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-link-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--fg);
	transition: all 0.2s ease;
}

.contact-link-row:hover {
	border-color: rgba(96, 165, 250, 0.4);
	background: rgba(30, 41, 59, 0.6);
	transform: translateX(4px);
}

.contact-icon-box {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact-form-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 2rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-bottom: 1.25rem;
}

.form-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #cbd5e1;
}

.form-input, .form-select, .form-textarea {
	background: #090e17;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
	padding: 0.75rem 1rem;
	color: #ffffff;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
	resize: vertical;
	min-height: 110px;
}

.btn-submit {
	width: 100%;
	padding: 0.85rem;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Copy Button */
.copy-badge-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #94a3b8;
	padding: 0.25rem 0.6rem;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-family: var(--font-mono);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	transition: all 0.2s;
}

.copy-badge-btn:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
	margin-top: auto;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: #05070a;
	padding: 3rem 0 2.5rem;
}

.footer-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.footer-left {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.footer-brand {
	font-weight: 800;
	font-size: 1.1rem;
	color: #ffffff;
}

.footer-sub {
	font-size: 0.85rem;
	color: var(--fg-subtle);
}

.footer-links {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.footer-link {
	color: var(--fg-muted);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.2s;
}

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

/* ==========================================================================
   UTILITY & ANIMATIONS
   ========================================================================== */

.badge-tag {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	font-family: var(--font-mono);
	background: rgba(255, 255, 255, 0.05);
	color: var(--fg-muted);
	border: 1px solid var(--border);
}

.text-gradient {
	background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.success-banner {
	background: rgba(34, 197, 94, 0.15);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #86efac;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
