:root {
	/* Light Mode */
	--bg-color: #ffffff;
	--surface-color: #f9fafb;
	--card-color: #ffffff;
	--text-main: #111827;
	--text-muted: #6b7280;
	--border-color: #e5e7eb;
	--accent-color: #2997ff;
	--accent-hover: #0071e3;
	--font-sans: 'Inter', sans-serif;
	--header-height: 80px;
}

.dark {
	/* Dark Mode */
	--bg-color: #000000;
	--surface-color: #0a0a0a;
	--card-color: #161617;
	--text-main: #f5f5f7;
	--text-muted: #9ca3af;
	--border-color: #262626;
}

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

html {
	font-family: var(--font-sans);
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
}

body {
	background-color: var(--bg-color);
	color: var(--text-main);
	transition: background-color 0.3s ease, color 0.3s ease;
	line-height: 1.5;
}
a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

/* Utilities */
.container {
	width:100%;
	max-width:1536px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.object-cover { object-fit: cover; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Navbar */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 1.5rem 0;
	transition: all 0.3s;
	background: transparent; /* Or backdrop blur if needed */
}

.navbar-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 3.5rem;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	cursor: pointer;
}

.logo-icon {
	width: 2rem;
	height: 2rem;
	background-color: var(--accent-color);
	color: white;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	box-shadow: 0 10px 15px -3px rgba(41, 151, 255, 0.2);
}

.nav-links {
	display: none;
}

@media (min-width: 768px) {
	.nav-links {
		display: flex;
		gap: 2rem;
	}
}

.nav-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-muted);
}

.nav-link:hover {
	color: var(--text-main);
}

.btn-primary {
	background-color: var(--text-main);
	color: var(--bg-color);
	padding: 0.625rem 1.5rem;
	border-radius: 9999px;
	font-weight: 500;
	font-size: 0.875rem;
	transition: opacity 0.2s;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
	opacity: 0.9;
}

.btn-accent {
	background-color: var(--accent-color);
	color: white;
	padding: 1rem 2rem;
	border-radius: 9999px;
	font-weight: 500;
	font-size: 1rem;
	transition: opacity 0.2s;
	box-shadow: 0 20px 25px -5px rgba(41, 151, 255, 0.1);
}

.btn-accent:hover {
	opacity: 0.9;
}

.theme-toggle {
	padding: 0.5rem;
	border-radius: 9999px;
	color: var(--text-muted);
	transition: all 0.2s;
}

.theme-toggle:hover {
	color: var(--text-main);
	background-color: var(--surface-color);
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	padding-top: 5rem;
	text-align: center;
}

.hero-bg-grid {
	position: absolute;
	inset: 0;
	background-size: 40px 40px;
	background-image: linear-gradient(to right, var(--border-color) 1px, transparent 1px),
		linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
	opacity: 0.05;
	mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
	pointer-events: none;
}

.dark .hero-bg-grid {
	opacity: 0.1;
}

.hero-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.5;
	animation: blob 15s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
	top: 25%;
	left: 25%;
	width: 600px;
	height: 600px;
	background-color: rgba(59, 130, 246, 0.2); /* Blue */
}

.blob-2 {
	bottom: 25%;
	right: 25%;
	width: 700px;
	height: 700px;
	background-color: rgba(99, 102, 241, 0.2); /* Indigo */
	animation-delay: 2s;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 1rem;
	border-radius: 9999px;
	border: 1px solid var(--border-color);
	background-color: rgba(var(--surface-color), 0.5);
	backdrop-filter: blur(12px);
	color: var(--text-muted);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.ping-dot {
	position: relative;
	display: flex;
	height: 0.5rem;
	width: 0.5rem;
}

.ping-dot span:first-child {
	position: absolute;
	display: inline-flex;
	height: 100%;
	width: 100%;
	border-radius: 50%;
	background-color: var(--accent-color);
	opacity: 0.75;
	animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot span:last-child {
	position: relative;
	display: inline-flex;
	border-radius: 50%;
	height: 0.5rem;
	width: 0.5rem;
	background-color: var(--accent-color);
}

.hero-title {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	margin-bottom: 2rem;
	line-height: 1.1;
	color: var(--text-main);
}

@media (min-width: 768px) {
	.hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
	.hero-title { font-size: 4.5rem; }
}

.text-highlight {
	color: var(--accent-color);
}

.hero-desc {
	font-size: 1.125rem;
	color: var(--text-muted);
	max-width: 42rem;
	margin: 0 auto 3rem auto;
	font-weight: 300;
	line-height: 1.6;
}

/* Marquee */
.marquee-section {
	padding: 2.5rem 0;
	background-color: var(--surface-color);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	overflow: hidden;
}

.marquee-content {
	backface-visibility: hidden;
	transform: translateZ(0);
}

.marquee-label {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	opacity: 0.6;
	margin-bottom: 2rem;
}

.marquee-container {
	position: relative;
	display: flex;
	overflow: hidden;
}

.marquee-content {
	display: flex;
	gap: 5rem;
	align-items: center;
	white-space: nowrap;
	animation: marquee 120s linear infinite;
	will-change: transform;
}

.marquee-item {
	flex-shrink: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-muted);
	opacity: .4;
	filter: grayscale(100%);
	transition: all .5s;
}

.marquee-fade {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 5rem;
	z-index: 10;
}

.marquee-fade-left {
	left: 0;
	background: linear-gradient(to right, var(--surface-color), transparent);
}

.marquee-fade-right {
	right: 0;
	background: linear-gradient(to left, var(--surface-color), transparent);
}

.marquee-item:hover {
	filter: grayscale(0%);
	color: var(--text-main);
	opacity: 1;
}

@keyframes marquee {
	from {
		transform: translate3d(0,0,0);
	}
	to {
		transform: translate3d(-50%,0,0);
	}
}

/* Sections */
.section {
	padding: 6rem 0;
}

.bg-surface { background-color: var(--surface-color); }
.border-y { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.section-header {
	margin-bottom: 4rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
}

@media (min-width: 768px) {
	.section-header { flex-direction: row; }
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 1.5rem;
	letter-spacing: -0.025em;
}

@media (min-width: 768px) {
	.section-title { font-size: 3rem; }
}

.section-desc {
	font-size: 1.125rem;
	color: var(--text-muted);
	max-width: 42rem;
}

/* Cards */
.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.card-grid { grid-template-columns: repeat(3, 1fr); }
}

.glass-card {
	background: rgba(var(--card-color), 0.7); /* Needs hex to rgba conversion or just use var */
	background-color: var(--card-color); /* Fallback */
	border: 1px solid var(--border-color);
	border-radius: 1.5rem;
	padding: 2rem;
	transition: all 0.3s;
	cursor: pointer;
}

.glass-card:hover {
	border-color: rgba(41, 151, 255, 0.5);
	transform: translateY(-4px) !important;
}

.icon-box {
	width: 3rem;
	height: 3rem;
	background-color: var(--surface-color);
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-color);
	margin-bottom: 1.5rem;
	border: 1px solid var(--border-color);
	transition: colors 0.3s;
}

.glass-card:hover .icon-box {
	background-color: var(--accent-color);
	color: white;
}

.card-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 0.75rem;
}

.card-desc {
	color: var(--text-muted);
	font-size: 0.875rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.tags {
	display: flex;
	gap: 0.5rem;
}

.tag {
	font-size: 0.75rem;
	font-family: monospace;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	color: var(--text-muted);
}

/* Portfolio */
.portfolio-card {
	display: block;
	margin-bottom: 2rem; /* Spacing if grid fails */
}

.portfolio-image-wrapper {
	aspect-ratio: 16 / 10;
	border-radius: 1.5rem;
	overflow: hidden;
	margin-bottom: 1.5rem;
	position: relative;
	background-color: var(--card-color);
	border: 1px solid var(--border-color);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	transition: all 0.5s;
}

.portfolio-card:hover .portfolio-image-wrapper {
	box-shadow: 0 20px 25px -5px rgba(41, 151, 255, 0.1);
}

.portfolio-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease-in-out;
}

.portfolio-card:hover .portfolio-image {
	transform: scale(1.1);
}

.portfolio-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.5s;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(2px);
}

.portfolio-card:hover .portfolio-overlay {
	opacity: 1;
}

.portfolio-btn {
	background-color: white;
	color: black;
	font-weight: 700;
	border-radius: 9999px;
	padding: 0.75rem 1.5rem;
	transform: translateY(1rem);
	transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-btn {
	transform: translateY(0);
}

.portfolio-tags {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 20;
	display: flex;
	gap: 0.5rem;
}

.portfolio-tag {
	background-color: rgba(var(--bg-color), 0.9); /* Fallback */
	background-color: var(--bg-color);
	backdrop-filter: blur(12px);
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--text-main);
	border: 1px solid var(--border-color);
}

.portfolio-info {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.portfolio-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-main);
	transition: color 0.3s;
}

.portfolio-card:hover .portfolio-title {
	color: var(--accent-color);
}

.portfolio-subtitle {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-top: 0.25rem;
}

.portfolio-stat {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent-color);
	text-align: right;
}

.portfolio-stat-label {
	font-size: 0.75rem;
	color: var(--text-muted);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-align: right;
}

/* Academy */
.academy-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.academy-grid { grid-template-columns: 1fr 1fr; }
}

.feature-list {
	list-style: none;
	margin-bottom: 2.5rem;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	color: var(--text-main);
}

.feature-icon {
	color: var(--accent-color);
	width: 1.25rem;
	height: 1.25rem;
}

/* Blog */
.blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
	display: block;
}

.blog-image {
	aspect-ratio: 16 / 9;
	border-radius: 1rem;
	overflow: hidden;
	margin-bottom: 1.25rem;
	background-color: var(--card-color);
	border: 1px solid var(--border-color);
}

.blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

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

.blog-meta {
	display: flex;
	gap: 0.75rem;
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-bottom: 0.75rem;
	font-family: monospace;
}

.blog-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 0.5rem;
	transition: color 0.3s;
}

.blog-card:hover .blog-title {
	color: var(--accent-color);
}

.blog-excerpt {
	font-size: 0.875rem;
	color: var(--text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Contact */
.contact-card {
	background-color: var(--card-color);
	border: 1px solid var(--border-color);
	border-radius: 3rem;
	padding: 2rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
	.contact-card { padding: 4rem; }
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4rem;
}

@media (min-width: 1024px) {
	.contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	cursor: pointer;
}

.contact-icon {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-main);
	transition: all 0.3s;
}

.contact-info-item:hover .contact-icon {
	border-color: var(--accent-color);
	color: var(--accent-color);
}

.contact-link {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-main);
	transition: color 0.3s;
}

.contact-info-item:hover .contact-link {
	color: var(--accent-color);
}

.contact-form-wrapper {
	background-color: rgba(var(--surface-color), 0.3); /* Fallback */
	background-color: var(--surface-color);
	backdrop-filter: blur(4px);
	padding: 2rem;
	border-radius: 1.5rem;
	border: 1px solid var(--border-color);
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

@media (min-width: 640px) {
	.form-grid { grid-template-columns: 1fr 1fr; }
}

/* 404 Page Utilities & Styles */
.h-screen { min-height: 100vh; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.bottom-6 { bottom: 1.5rem; }
.z-50 { z-index: 50; }
.z-20 { z-index: 20; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mt-6 { margin-top: 1.5rem; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1); }
.hover-text-white:hover { color: white; }
.transition-colors { transition: color 0.3s; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.mb-2 { margin-bottom: 0.5rem; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.justify-center { justify-content: center; }
.mt-6 { margin-top: 1.5rem; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1); }
.hover-text-white:hover { color: white; }
.transition-colors { transition: color 0.3s; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.mb-2 { margin-bottom: 0.5rem; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.justify-center { justify-content: center; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.inline-flex { display: inline-flex; }
.flex-1 { flex: 1; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }

.top-1-2 { top: 50%; }
.left-1-2 { left: 50%; }
.transform-center { transform: translate(-50%, -50%); }
.blur-120 { filter: blur(120px); }

.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-600 { color: #4b5563; }
.text-red-400 { color: #f87171; }
.text-white { color: white; }
.text-black { color: black; }

.bg-white { background-color: white; }
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-dark-surface { background-color: #0d1117; }
.bg-red-500 { background-color: #ef4444; }
.bg-yellow-500 { background-color: #eab308; }
.bg-green-500 { background-color: #22c55e; }
.bg-accent-10 { background-color: rgba(41, 151, 255, 0.1); }

.border-white-5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white-20 { border-color: rgba(255, 255, 255, 0.2); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.hover-text-gray-300:hover { color: #d1d5db; }
.hover-bg-gray-200:hover { background-color: #e5e7eb; }
.hover-bg-white-10:hover { background-color: rgba(255, 255, 255, 0.1); }

.tracking-tight { letter-spacing: -0.025em; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

@media (min-width: 768px) {
	.md-text-3xl { font-size: 1.875rem; }
	.md-text-sm { font-size: 0.875rem; }
}

/* Glitch Effect */
.glitch {
	position: relative;
	color: white;
	font-size: 6rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
}

@media (min-width: 768px) {
	.glitch { font-size: 10rem; }
}

.glitch::before,
.glitch::after {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.glitch::before {
	left: 2px;
	text-shadow: -1px 0 #ff00c1;
	clip: rect(44px, 450px, 56px, 0);
	animation: glitch 5s infinite linear alternate-reverse;
}
.glitch::after {
	left: -2px;
	text-shadow: -1px 0 #00fff9;
	clip: rect(44px, 450px, 56px, 0);
	animation: glitch 5s infinite linear alternate-reverse;
}

@keyframes glitch {
	2%, 64% { transform: translate(2px,0) skew(0deg); }
	4%, 60% { transform: translate(-2px,0) skew(0deg); }
	62% { transform: translate(0,0) skew(5deg); }
}

.animate-pulse-slow {
	animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.scanlines {
	background: linear-gradient(
		to bottom,
		rgba(255,255,255,0),
		rgba(255,255,255,0) 50%,
		rgba(0,0,0,0.1) 50%,
		rgba(0,0,0,0.1)
	);
	background-size: 100% 4px;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	pointer-events: none;
	z-index: 10;
	opacity: 0.6;
}

.form-group {
	margin-bottom: 1rem;
}

.form-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	margin-left: 0.25rem;
}

.form-input, .form-select {
	width: 100%;
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	padding: 0.875rem 1rem;
	color: var(--text-main);
	font-size: 1rem;
	transition: all 0.3s;
}

.form-input:focus, .form-select:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.1);
}

.btn-submit {
	width: 100%;
	background-color: var(--text-main);
	color: var(--bg-color);
	font-weight: 700;
	font-size: 1.125rem;
	border-radius: 0.75rem;
	padding: 1rem;
	transition: all 0.3s;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

/* Footer */
.footer {
	background-color: rgba(var(--surface-color), 0.5); /* Fallback */
	background-color: var(--surface-color);
	border-top: 1px solid rgba(var(--border-color), 0.5);
	padding-top: 4rem;
	padding-bottom: 3rem;
}

.footer-top {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	margin-bottom: 3rem;
	border-bottom: 1px solid rgba(var(--border-color), 0.3);
	padding-bottom: 2rem;
}

@media (min-width: 768px) {
	.footer-top { flex-direction: row; }
}

.footer-nav {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer-link:hover {
	color: var(--text-main);
}

.footer-main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	gap: 3rem;
	margin-bottom: 3rem;
}

@media (min-width: 768px) {
	.footer-main { flex-direction: row; }
}

.footer-phone {
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--text-main);
	letter-spacing: -0.025em;
}

@media (min-width: 768px) {
	.footer-phone { font-size: 3.75rem; }
}

.footer-social {
	display: flex;
	gap: 1.5rem;
}

.social-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 500;
	color: var(--text-main);
}

.social-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}

.social-link:hover .social-icon {
	border-color: currentColor;
}

.footer-bottom {
	border-top: 1px solid rgba(var(--border-color), 0.3);
	padding-top: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

@media (min-width: 768px) {
	.footer-bottom { flex-direction: row; }
}

/* Modals */
.modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 60;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.modal-backdrop.open {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background-color: var(--bg-color);
	width: 100%;
	max-width: 42rem;
	border-radius: 1.5rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	border: 1px solid var(--border-color);
	position: relative;
	overflow: hidden;
	opacity: 0;
	transform: scale(0.95) translateY(10px);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-content {
	opacity: 1;
	transform: scale(1) translateY(0);
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0.5rem;
	border-radius: 50%;
	color: var(--text-muted);
	transition: background-color 0.2s;
}

.modal-close:hover {
	background-color: var(--surface-color);
}

/* Animations */
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
	animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blob {
	0% { transform: translate(0px, 0px) scale(1); }
	33% { transform: translate(30px, -50px) scale(1.1); }
	66% { transform: translate(-20px, 20px) scale(0.95); }
	100% { transform: translate(10px, -10px) scale(1.05); }
}

@keyframes marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@keyframes ping {
	75%, 100% { transform: scale(2); opacity: 0; }
}

.animate-ping {
	animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Mobile Menu */
.mobile-menu {
	position: fixed;
	inset: 0;
	background-color: rgba(var(--bg-color), 0.9); /* Fallback */
	background-color: var(--bg-color);
	z-index: 40;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	transition: all 0.5s;
	opacity: 0;
	pointer-events: none;
	backdrop-filter: blur(24px);
}

.mobile-menu.open {
	opacity: 1;
	pointer-events: auto;
}

.mobile-link {
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--text-main);
	transition: color 0.3s;
}

.mobile-link:hover {
	color: var(--accent-color);
}

/* Article Page Specifics */
.article-header {
	padding-top: 8rem;
	padding-bottom: 4rem;
	text-align: center;
	max-width: 48rem;
	margin: 0 auto;
}

.article-meta {
	display: flex;
	justify-content: center;
	gap: 1rem;
	color: var(--text-muted);
	font-family: monospace;
	margin-bottom: 1.5rem;
}

.article-content {
	max-width: 42rem;
	margin: 0 auto;
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--text-muted);
}

.article-content h2 {
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--text-main);
	margin-top: 3rem;
	margin-bottom: 1.5rem;
}

.article-content p {
	margin-bottom: 1.5rem;
}

.article-image {
	width: 100%;
	border-radius: 1.5rem;
	margin-bottom: 3rem;
}

/* Case Study Specifics */
.case-hero {
	height: 60vh;
	position: relative;
	display: flex;
	align-items: flex-end;
	padding-bottom: 4rem;
}

.case-hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
	mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.case-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-top: 3rem;
	padding: 2rem;
	background-color: var(--surface-color);
	border-radius: 1.5rem;
}

@media (min-width: 768px) {
	.case-stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
	text-align: center;
}

.stat-value {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--accent-color);
}

.stat-label {
	font-size: 0.875rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Article Content Typography */
.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
	color: var(--text-main);
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.article-content h1 { font-size: 2.5rem; }
.article-content h2 { font-size: 1.875rem; }
.article-content h3 { font-size: 1.5rem; }

.article-content p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	color: var(--text-muted);
}

.article-content ul, .article-content ol {
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
	color: var(--text-muted);
}

.article-content li {
	margin-bottom: 0.5rem;
}

.article-content blockquote {
	border-left: 4px solid var(--accent-color);
	padding-left: 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	font-size: 1.25rem;
	color: var(--text-main);
}

.article-content pre {
	background-color: var(--surface-color);
	padding: 1.5rem;
	border-radius: 0.75rem;
	overflow-x: auto;
	margin-bottom: 1.5rem;
	border: 1px solid var(--border-color);
}

.article-content code {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.875rem;
}

/* Case Study Layout */
.case-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 1024px) {
	.case-layout {
		grid-template-columns: 1fr 2fr; /* Sidebar 1/3, Content 2/3 */
	}
}

.sticky-sidebar {
	position: sticky;
	top: 6rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.case-content {
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--text-muted);
}

.case-content h2 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-main);
	margin-top: 3rem;
	margin-bottom: 1.5rem;
}

.case-content p {
	margin-bottom: 1.5rem;
}

.case-content ul {
	list-style: disc;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.case-content li {
	margin-bottom: 0.5rem;
}

.case-content strong {
	color: var(--text-main);
	font-weight: 600;
}

/* Portfolio Page Grid */
.portfolio-grid-page {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.portfolio-grid-page { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-24 { padding-bottom: 6rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-12 { margin-top: 3rem; }
.mt-24 { margin-top: 6rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.rounded-2xl { border-radius: 1rem; }
.overflow-hidden { overflow: hidden; }
.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.w-full { width: 100%; }
.h-auto { height: auto; }
.object-cover { object-fit: cover; }
.col-span-4 { grid-column: span 4; }

/* Typography Utilities */
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

/* Spacing & Layout Utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }

.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

.ml-2 { margin-left: 0.5rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-80 { opacity: 0.8; }

.text-left { text-align: left; }
.text-right { text-align: right; }

.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-600 { width: 600px; }
.h-600 { height: 600px; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

.text-xs { font-size: 0.75rem; }

.transition-colors { transition: color 0.3s, background-color 0.3s, border-color 0.3s; }
.transition-all { transition: all 0.3s; }

::selection { background-color: var(--accent-color); color: white; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.my-12 { margin-top: 3rem; margin-bottom: 3rem; }

.dark-block { display: none; }
.dark-hidden { display: block; }

.dark .dark-block { display: block; }
.dark .dark-hidden { display: none; }

@media (min-width: 640px) {
	.sm-flex-row { flex-direction: row; }
	.sm-block { display: block; }
}

@media (min-width: 768px) {
	.md-block { display: block; }
	.md-hidden { display: none; }
	.md-flex { display: flex; }
	.md-inline-flex { display: inline-flex; }
	.md-items-end { align-items: flex-end; }
	.md-text-right { text-align: right; }
	.md-p-12 { padding: 3rem; }
}

/* Blog Specifics */
.blog-featured-card {
	display: block;
	position: relative;
	border-radius: 1.5rem;
	overflow: hidden;
	margin-bottom: 4rem;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
	.blog-featured-card { aspect-ratio: 21 / 9; }
}

.blog-featured-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.blog-featured-card:hover .blog-featured-image {
	transform: scale(1.05);
}

.blog-featured-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

@media (min-width: 768px) {
	.blog-featured-overlay { padding: 3rem; }
}

.blog-featured-title {
	color: white;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

@media (min-width: 768px) {
	.blog-featured-title { font-size: 2.25rem; }
}

.blog-featured-desc {
	color: #d1d5db;
	max-width: 40rem;
	display: none;
}

@media (min-width: 768px) {
	.blog-featured-desc { display: block; }
}

.newsletter-box {
	margin-top: 6rem;
	padding: 2rem;
	background-color: var(--card-color);
	border: 1px solid var(--border-color);
	border-radius: 1.5rem;
	text-align: center;
}

@media (min-width: 768px) {
	.newsletter-box { padding: 3rem; }
}

.newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 28rem;
	margin: 0 auto;
}

@media (min-width: 640px) {
	.newsletter-form { flex-direction: row; }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {

	/* Disable backdrop-filter */
	.badge,
	.portfolio-overlay,
	.portfolio-tag,
	.contact-form-wrapper,
	.modal-backdrop,
	.mobile-menu {
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}

	/* Solid backgrounds for elements that relied on blur */
	.mobile-menu {
		background-color: var(--bg-color) !important;
	}

	.modal-backdrop {
		background-color: rgba(0, 0, 0, 0.9) !important;
	}

	/* Disable heavy animations */
	.glitch::before,
	.glitch::after,
	.animate-pulse-slow,
	.animate-ping,
	.ping-dot {
		animation: none !important;
	}

	.glitch::before,
	.glitch::after {
		display: none !important;
	}

	/* Simplify marquee */
	.marquee-content {
		animation-duration:60s;
		gap:20px;
	}
}

@media (max-width: 1536px) {
	.container {
		max-width: 1280px;
	}
}
@media (max-width: 1280px) {
	.container {
		max-width: 1024px;
	}
}
@media (max-width: 1024px) {
	.container {
		max-width: 768px;
	}
}
@media (max-width: 768px) {
	.container {
		max-width: 640px;
	}
}

@media (max-width: 640px) {
	.container {
		max-width: 100%;
	}
}

/* Mobile Optimization for 320px - 480px */
@media (max-width: 480px) {
	.container {
		padding: 0 1rem !important;
	}

	.hero {
		padding-top: 6rem !important;
		padding-bottom: 3rem !important;
	}

	.hero-title {
		font-size: 2rem !important;
		margin-bottom: 1rem !important;
		line-height: 1.2 !important;
	}

	.hero-desc {
		font-size: 1rem !important;
		margin-bottom: 2rem !important;
	}

	.section {
		padding: 3.5rem 0 !important;
	}

	.section-title {
		font-size: 1.75rem !important;
		margin-bottom: 1rem !important;
	}

	.section-desc {
		font-size: 1rem !important;
	}

	.glass-card {
		padding: 1.25rem !important;
	}

	.card-title {
		font-size: 1.25rem !important;
	}

	.card-desc {
		font-size: 0.875rem !important;
	}

	.portfolio-info {
		padding: 1.25rem !important;
	}

	.portfolio-title {
		font-size: 1.25rem !important;
	}

	.portfolio-subtitle {
		font-size: 0.875rem !important;
	}

	.portfolio-stat {
		font-size: 1.25rem !important;
	}

	.academy-grid {
		gap: 2rem !important;
	}

	.contact-grid {
		gap: 2rem !important;
	}

	.form-grid {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
	}

	.footer-main {
		gap: 2rem !important;
	}

	.footer-phone {
		font-size: 1.75rem !important;
	}

	.blog-title {
		font-size: 1.25rem !important;
	}

	.blog-excerpt {
		font-size: 0.875rem !important;
	}

	.modal-content {
		padding: 1.5rem !important;
		margin: 1rem !important;
		width: calc(100% - 2rem) !important;
	}

	h3.section-title {
		font-size: 1.5rem !important;
	}

	/* Fix marquee for very small screens */
	.marquee-item {
		font-size: 2rem !important;
		padding: 0 1rem !important;
	}

	blockquote {
		font-size: 1.125rem !important;
		padding-left: 1rem !important;
		margin: 1.5rem 0 !important;
	}

	.blog-featured-card {
		aspect-ratio: 4 / 3 !important;
		margin-bottom: 2rem !important;
	}

	.blog-featured-overlay {
		padding: 1.25rem !important;
	}

	.blog-featured-title {
		font-size: 1.25rem !important;
		margin-bottom: 0.5rem !important;
	}

	.case-hero {
		height: 40vh !important;
		padding-bottom: 2rem !important;
	}

	.article-header {
		padding-top: 6rem !important;
		padding-bottom: 2rem !important;
	}

	.case-content, .article-content {
		font-size: 1rem !important;
		line-height: 1.6 !important;
	}

	.case-content h2, .article-content h2 {
		font-size: 1.5rem !important;
		margin-top: 2rem !important;
		margin-bottom: 1rem !important;
	}

	.case-content h3, .article-content h3 {
		font-size: 1.25rem !important;
		margin-top: 1.5rem !important;
		margin-bottom: 0.75rem !important;
	}

	.stat-value {
		font-size: 2rem !important;
	}

	.contact-card {
		border-radius: 1.5rem !important;
		padding: 1.5rem !important;
	}

	.contact-icon {
		width: 2.5rem !important;
		height: 2.5rem !important;
		border-radius: 0.75rem !important;
	}

	.contact-link {
		font-size: 1rem !important;
	}

	.contact-form-wrapper {
		padding: 1.5rem !important;
	}

	.footer-top {
		margin-bottom: 2rem !important;
		padding-bottom: 1.5rem !important;
	}

	.footer-main {
		margin-bottom: 2rem !important;
	}

	.newsletter-box {
		margin-top: 4rem !important;
		padding: 1.5rem !important;
	}

	/* Utility Overrides for Mobile */
	.pt-24 { padding-top: 4rem !important; }
	.pt-32 { padding-top: 5rem !important; }
	.pb-24 { padding-bottom: 4rem !important; }
	.mb-12 { margin-bottom: 2rem !important; }
	.mb-16 { margin-bottom: 2.5rem !important; }
	.mt-12 { margin-top: 2rem !important; }
	.mt-24 { margin-top: 4rem !important; }

	.p-6 { padding: 1.25rem !important; }
	.p-8 { padding: 1.5rem !important; }
	.p-12 { padding: 2rem !important; }

	.my-12 { margin-top: 2rem !important; margin-bottom: 2rem !important; }

	.text-3xl { font-size: 1.5rem !important; }
	.text-4xl { font-size: 1.75rem !important; }

	.gap-8 { gap: 1.5rem !important; }
	.gap-12 { gap: 2rem !important; }

	.space-y-6 > * + * { margin-top: 1rem !important; }

	.px-8 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

/* Extreme Mobile Optimization for 320px */
@media (max-width: 360px) {
	.hero-title {
		font-size: 1.75rem !important;
	}

	.section-title {
		font-size: 1.5rem !important;
	}

	.footer-phone {
		font-size: 1.5rem !important;
	}

	.btn-primary, .btn-accent {
		padding: 0.6rem 1rem !important;
		font-size: 0.8rem !important;
	}

	.glass-card {
		padding: 1rem !important;
	}

	.portfolio-title {
		font-size: 1.125rem !important;
	}

	.blog-title {
		font-size: 1.125rem !important;
	}

	.case-stats {
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
		padding: 1.5rem !important;
	}
}