/* ============================================
   Aspect Digital Media - Modern Portfolio
   Gavin Compton | Web & Game Developer
   Dark Mode Default with Light Mode Option
   ============================================ */

/* ---------- CSS Variables - Dark Mode (Default) ---------- */
:root,
[data-theme="dark"] {
	/* Primary Colors - Bright vibrant accents */
	--accent: #00f5ff;
	--accent-light: #7dffff;
	--accent-2: #a855f7;
	--accent-warm: #ff6b6b;

	/* Background Colors - Grayscale */
	--bg: #0d0d0d;
	--bg-secondary: #1a1a1a;
	--bg-gradient: linear-gradient(180deg, #0d0d0d 0%, #141414 50%, #1a1a1a 100%);
	--surface: rgba(255, 255, 255, 0.04);
	--surface-hover: rgba(255, 255, 255, 0.08);
	--card-bg: rgba(255, 255, 255, 0.03);

	/* Borders - Thin Lines */
	--thin-line: 1px;
	--border-light: rgba(255, 255, 255, 0.08);
	--border-hover: rgba(0, 245, 255, 0.4);
	--glass-border: rgba(255, 255, 255, 0.1);

	/* Text Colors - White on grayscale */
	--text-primary: #ffffff;
	--text-body: #b3b3b3;
	--text-muted: #808080;

	/* Effects - Bright glows */
	--blur-sm: 8px;
	--blur-md: 16px;
	--blur-lg: 24px;
	--glow-accent: 0 0 50px rgba(0, 245, 255, 0.35);
	--glow-accent-strong: 0 0 80px rgba(0, 245, 255, 0.5);
	--glow-purple: 0 0 50px rgba(168, 85, 247, 0.3);
	--shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
	--shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);

	/* Abstract Lines */
	--line-opacity: 0.3;

	/* Rounded Edges */
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	--radius-full: 9999px;

	/* Transitions */
	--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

	/* Scrollbar */
	--scrollbar-bg: #0d0d0d;
	--scrollbar-thumb: rgba(255, 255, 255, 0.15);
}

/* ---------- Light Mode Variables ---------- */
[data-theme="light"] {
	/* Primary Colors - Bright accents (same vibrant colors) */
	--accent: #00d4e0;
	--accent-light: #00f5ff;
	--accent-2: #9333ea;
	--accent-warm: #f43f5e;

	/* Background Colors - Light grayscale */
	--bg: #fafafa;
	--bg-secondary: #ffffff;
	--bg-gradient: linear-gradient(180deg, #fafafa 0%, #ffffff 50%, #f5f5f5 100%);
	--surface: rgba(255, 255, 255, 0.8);
	--surface-hover: rgba(255, 255, 255, 0.95);
	--card-bg: rgba(255, 255, 255, 0.9);

	/* Borders */
	--border-light: rgba(0, 0, 0, 0.08);
	--border-hover: rgba(0, 212, 224, 0.4);
	--glass-border: rgba(255, 255, 255, 0.9);

	/* Text Colors */
	--text-primary: #1a1a1a;
	--text-body: #4d4d4d;
	--text-muted: #808080;

	/* Effects - Bright glows */
	--glow-accent: 0 0 50px rgba(0, 212, 224, 0.25);
	--glow-accent-strong: 0 0 80px rgba(0, 212, 224, 0.4);
	--glow-purple: 0 0 50px rgba(147, 51, 234, 0.2);
	--shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);

	/* Abstract Lines */
	--line-opacity: 0.5;

	/* Scrollbar */
	--scrollbar-bg: #fafafa;
	--scrollbar-thumb: rgba(0, 0, 0, 0.2);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	height: 100%;
}

body {
	min-height: 100vh;
	font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	background: var(--bg);
	color: var(--text-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background 0.4s ease, color 0.4s ease;
}

/* Full page gradient overlay */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: linear-gradient(
		180deg,
		var(--bg) 0%,
		var(--bg-secondary) 30%,
		var(--bg) 60%,
		var(--bg-secondary) 100%
	);
	pointer-events: none;
	z-index: -2;
}

/* ---------- Abstract Background (Grid + Lightning) ---------- */
.abstract-lines {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: var(--line-opacity);
	overflow: hidden;
}

.lines-svg {
	width: 100%;
	height: 100%;
	min-width: 100vw;
	min-height: 100vh;
}

/* Grid pattern */
.grid-pattern {
	opacity: 0.4;
}

/* Lightning bolts - subtle accent lines */
.lightning-bolt {
	opacity: 0.04;
	filter: blur(1px);
	transition: filter 0.3s ease;
}

/* Staggered glow sweep - each bolt glows in sequence */
.lightning-1 {
	animation:
		lightningPulse 8s ease-in-out infinite,
		lightningGlowSweep 12s ease-in-out infinite;
	animation-delay: 0s, 0s;
}

.lightning-2 {
	animation:
		lightningPulse 10s ease-in-out infinite,
		lightningGlowSweep 12s ease-in-out infinite;
	animation-delay: -3s, 4s;
}

.lightning-3 {
	animation:
		lightningPulse 12s ease-in-out infinite,
		lightningGlowSweep 12s ease-in-out infinite;
	animation-delay: -6s, 8s;
}

@keyframes lightningPulse {
	0%, 100% { opacity: 0.03; }
	50% { opacity: 0.06; }
}

/* Glow sweep animation - very subtle pulse */
@keyframes lightningGlowSweep {
	0%, 20% {
		opacity: 0.04;
		filter: blur(1px) drop-shadow(0 0 0 transparent);
	}
	25% {
		opacity: 0.08;
		filter: blur(0.8px) drop-shadow(0 0 4px var(--accent));
	}
	30% {
		opacity: 0.1;
		filter: blur(0.6px) drop-shadow(0 0 8px var(--accent));
	}
	35% {
		opacity: 0.08;
		filter: blur(0.8px) drop-shadow(0 0 4px var(--accent));
	}
	40%, 100% {
		opacity: 0.04;
		filter: blur(1px) drop-shadow(0 0 0 transparent);
	}
}

/* Ambient glow orbs - subtle */
body::after {
	content: '';
	position: fixed;
	top: 15%;
	right: 10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(0, 245, 255, 0.04) 0%, transparent 70%);
	filter: blur(100px);
	pointer-events: none;
	z-index: -1;
	animation: float 30s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-40px, 30px) scale(1.15); }
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition-fast);
}

img {
	max-width: 100%;
	display: block;
}

/* Optimized image containers */
.img-responsive {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.img-lazy {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.img-lazy.loaded {
	opacity: 1;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

/* ---------- Container ---------- */
.container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1.5rem;
	position: relative;
	z-index: 1;
}

/* ---------- Sidebar ---------- */
.sidebar {
	position: fixed;
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 150;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sidebar-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 0.625rem;
	background: var(--surface);
	backdrop-filter: blur(var(--blur-lg));
	-webkit-backdrop-filter: blur(var(--blur-lg));
	border: var(--thin-line) solid var(--glass-border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-md);
}

.sidebar-btn {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
	color: var(--text-muted);
	transition: var(--transition);
	position: relative;
}

.sidebar-btn svg {
	width: 20px;
	height: 20px;
}

.sidebar-btn:hover {
	color: var(--accent);
	background: rgba(0, 180, 216, 0.1);
	box-shadow: var(--glow-accent);
}

.sidebar-divider {
	width: 24px;
	height: 1px;
	background: var(--border-light);
	margin: 0.5rem 0;
}

.sidebar-socials {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Theme Toggle Icon States */
.theme-toggle .icon-sun,
.theme-toggle-header .icon-sun {
	display: none;
}

.theme-toggle .icon-moon,
.theme-toggle-header .icon-moon {
	display: block;
}

[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle-header .icon-sun {
	display: block;
}

[data-theme="light"] .theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle-header .icon-moon {
	display: none;
}

/* ---------- Glass Effect ---------- */
.glass {
	background: var(--surface);
	backdrop-filter: blur(var(--blur-md)) saturate(120%);
	-webkit-backdrop-filter: blur(var(--blur-md)) saturate(120%);
	border: var(--thin-line) solid var(--glass-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md), 0 0 60px rgba(0, 180, 216, 0.02) inset;
	transition: var(--transition);
}

.glass:hover {
	background: var(--surface-hover);
	border-color: var(--border-hover);
	box-shadow: var(--shadow-lg), var(--glow-accent);
}

/* Disable hover on modals */
.modal-content.glass:hover {
	background: var(--surface);
	border-color: var(--glass-border);
	box-shadow: var(--shadow-md), 0 0 60px rgba(0, 180, 216, 0.02) inset;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 1rem 0;
	background: rgba(10, 10, 15, 0.8);
	backdrop-filter: blur(var(--blur-lg));
	-webkit-backdrop-filter: blur(var(--blur-lg));
	border-bottom: var(--thin-line) solid var(--border-light);
	transition: background 0.4s ease;
}

[data-theme="light"] .site-header {
	background: rgba(248, 250, 252, 0.8);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.theme-toggle-header {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	transition: var(--transition);
}

.theme-toggle-header svg {
	width: 20px;
	height: 20px;
}

.theme-toggle-header:hover {
	color: var(--accent);
	background: rgba(0, 180, 216, 0.1);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.02em;
	transition: var(--transition);
	text-decoration: none;
}

.brand:hover {
	color: var(--accent);
}

.brand:hover .brand-logo {
	filter: drop-shadow(0 0 8px var(--accent));
}

.brand-logo {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	transition: var(--transition);
}

.brand-text {
	/* Can hide on mobile if needed */
}

.nav {
	display: flex;
	gap: 0.5rem;
}

.nav a {
	padding: 0.625rem 1rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-muted);
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.nav a:hover,
.nav a.active {
	color: var(--text-primary);
	background: rgba(0, 180, 216, 0.08);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	-webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text-primary);
	border-radius: 2px;
	transition: var(--transition);
	transform-origin: center;
}

.nav-toggle:hover {
	background: rgba(0, 180, 216, 0.08);
}

/* Hamburger animation */
.nav-toggle.open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
	padding: 6rem 0 4rem;
	position: relative;
	overflow: hidden;
}

.hero-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.hero-card {
	max-width: 720px;
	padding: 3rem 2.5rem;
	text-align: center;
}

.hero-card h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.lead {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 0.5rem;
}

.tagline {
	font-size: 1rem;
	color: var(--text-muted);
	line-height: 1.7;
	max-width: 540px;
	margin: 0 auto 2rem;
}

.hero-cta {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.75rem;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: var(--radius-md);
	border: var(--thin-line) solid var(--border-light);
	transition: var(--transition);
}

.btn.primary {
	/* Dark text on bright cyan for WCAG AA contrast (4.5:1+) */
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
	color: #0a1a1c;
	border: none;
	box-shadow: var(--glow-accent), 0 4px 15px rgba(0, 180, 216, 0.25);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn.primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--glow-accent-strong), 0 8px 25px rgba(0, 180, 216, 0.35);
	color: #0a1a1c;
}

.btn.primary:active {
	transform: translateY(-1px);
}

.btn.ghost {
	background: transparent;
	color: var(--text-body);
}

.btn.ghost:hover {
	background: rgba(0, 180, 216, 0.08);
	border-color: var(--border-hover);
	color: var(--accent);
}

/* ---------- Sections ---------- */
.section {
	padding: 5rem 0;
	position: relative;
	z-index: 1;
}

.section h2 {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.section h3 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.muted {
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* ---------- About Section ---------- */
.about {
	position: relative;
}

.about-inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 3rem;
	padding: 2.5rem;
}

.about-inner p {
	color: var(--text-body);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.skills h3 {
	margin-bottom: 1.25rem;
}

.skill-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.skill-list li {
	padding: 0.75rem 1.25rem;
	background: rgba(0, 180, 216, 0.04);
	border: var(--thin-line) solid rgba(0, 180, 216, 0.15);
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	color: var(--text-body);
	transition: var(--transition);
}

.skill-list li:hover {
	background: rgba(0, 180, 216, 0.08);
	border-color: var(--border-hover);
	box-shadow: var(--glow-accent);
	transform: translateX(4px);
}

.about-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--accent);
	font-size: 0.9rem;
	text-decoration: none;
	margin-top: 1rem;
	transition: var(--transition);
}

.about-more-link:hover {
	color: var(--accent-light);
	transform: translateX(4px);
}

/* ---------- Background & Experience Section ---------- */
.background {
	position: relative;
}

.background-inner {
	padding: 2.5rem;
}

.background-inner h2 {
	margin-bottom: 2rem;
}

.background-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.background-item {
	padding: 1.5rem;
	background: var(--surface);
	border: var(--thin-line) solid var(--border-light);
	border-radius: var(--radius-md);
	transition: var(--transition);
}

.background-item:hover {
	border-color: var(--border-hover);
	transform: translateY(-4px);
}

.background-item h3 {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
	color: var(--text-primary);
}

.background-item p {
	font-size: 0.9rem;
	color: var(--text-body);
	line-height: 1.6;
}

@media (max-width: 768px) {
	.background-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Section Headers ---------- */
.section-subtitle {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-top: 0.25rem;
}

.section-header-secondary {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: var(--thin-line) solid var(--border-light);
}

/* ---------- Project Status Badges ---------- */
.status-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: var(--radius-sm);
	z-index: 2;
}

.status-badge.live {
	background: rgba(34, 197, 94, 0.2);
	color: #22c55e;
	border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ---------- Projects Section ---------- */
.projects {
	position: relative;
}

/* Filter Buttons */
.filters {
	display: flex;
	gap: 0.375rem;
}

.filter {
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--text-muted);
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius-full);
	transition: var(--transition);
	opacity: 0.7;
}

.filter:hover {
	color: var(--text-body);
	opacity: 1;
	background: rgba(255, 255, 255, 0.03);
}

.filter.active {
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
	opacity: 1;
}

/* Project Grid */
.project-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem;
	margin-top: 2.5rem;
	position: relative;
	z-index: 1;
	max-width: 800px;
}

/* Project Cards */
.card {
	background: var(--card-bg);
	border: var(--thin-line) solid var(--border-light);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: var(--transition);
}

.project-card {
	position: relative;
	cursor: pointer;
	outline: none;
}

/* Clickable card link overlay */
.project-card .card-link {
	position: absolute;
	inset: 0;
	z-index: 10;
	border-radius: inherit;
}

.project-card .card-link:focus {
	outline: none;
}

/* Focus state - keyboard accessibility */
.project-card:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.project-card:hover,
.project-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(255, 255, 255, 0.15);
}

/* Active/pressed state */
.project-card:active {
	transform: translateY(-2px);
	transition-duration: 0.1s;
}

.project-card .thumb {
	height: 160px;
	background: linear-gradient(145deg, rgba(30, 30, 35, 1) 0%, rgba(20, 20, 24, 1) 100%);
	position: relative;
	overflow: hidden;
}

/* Thumbnail image layer */
.project-card .thumb-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 1;
}

/* Defensive dark overlay - ensures text readability on ANY background */
.project-card .thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.1) 0%,
		rgba(0, 0, 0, 0.4) 60%,
		rgba(0, 0, 0, 0.7) 100%
	);
	z-index: 2;
	pointer-events: none;
}

/* Category accent - subtle top edge tint */
.project-card .thumb::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 3;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.project-card[data-category="websites"] .thumb::before {
	background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.project-card[data-category="graphics"] .thumb::before {
	background: linear-gradient(90deg, var(--accent-2) 0%, transparent 100%);
}

.project-card[data-category="photography"] .thumb::before {
	background: linear-gradient(90deg, #d4a574 0%, transparent 100%);
}

.project-card[data-category="misc"] .thumb::before {
	background: linear-gradient(90deg, var(--text-muted) 0%, transparent 100%);
}

.project-card:hover .thumb::before {
	opacity: 1;
}

.card-body {
	padding: 1.25rem 1.25rem 1.125rem;
	position: relative;
	z-index: 5;
}

.card-body h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
	text-transform: none;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.card-client {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-bottom: 0.875rem;
	opacity: 0.8;
}

.card-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 0.875rem;
	border-top: 1px solid var(--border-light);
}

.card-tags {
	font-size: 0.7rem;
	color: var(--text-muted);
	opacity: 0.6;
	letter-spacing: 0.01em;
}

.card-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-body);
	transition: var(--transition);
	pointer-events: none; /* Let card-link handle clicks */
}

.card-cta svg {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.project-card:hover .card-cta,
.project-card:focus-within .card-cta {
	color: var(--text-primary);
}

.project-card:hover .card-cta svg,
.project-card:focus-within .card-cta svg {
	transform: translateX(2px);
}

.project-card.hidden {
	display: none;
}

/* Empty state for filtered results */
.projects-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4rem 2rem;
	background: var(--surface);
	border: 1px dashed var(--border-light);
	border-radius: var(--radius-lg);
}

.projects-empty .empty-title {
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.projects-empty .empty-desc {
	font-size: 0.875rem;
	color: var(--text-muted);
	opacity: 0.8;
}

/* Project count indicator */
.project-count {
	font-size: 0.75rem;
	color: var(--text-muted);
	opacity: 0.6;
	margin-left: auto;
}

/* ---------- Partners Section ---------- */
.partners-section {
	padding: 3rem 0;
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
	overflow: hidden;
}

.partners-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-align: center;
	margin-bottom: 1.5rem;
}

.partners-track {
	display: flex;
	gap: 3rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0.5rem 0;
	justify-content: center;
	flex-wrap: wrap;
}

.partners-track::-webkit-scrollbar {
	display: none;
}

.partner-item {
	flex-shrink: 0;
	scroll-snap-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	opacity: 0.5;
	transition: var(--transition);
}

.partner-item:hover {
	opacity: 1;
}

.partner-name {
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-muted);
	white-space: nowrap;
	letter-spacing: -0.01em;
}

.partner-logo {
	max-height: 32px;
	width: auto;
	filter: grayscale(100%);
	opacity: 0.6;
	transition: var(--transition);
}

.partner-item:hover .partner-logo {
	filter: grayscale(0%);
	opacity: 1;
}

/* Auto-scroll animation (optional - activate via JS) */
@keyframes partnerScroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.partners-track.auto-scroll {
	animation: partnerScroll 30s linear infinite;
	justify-content: flex-start;
	flex-wrap: nowrap;
}

.partners-track.auto-scroll:hover {
	animation-play-state: paused;
}

/* Partner link styling */
.partner-link {
	text-decoration: none;
	transition: var(--transition);
}

.partner-link:hover {
	transform: translateY(-2px);
}

.partner-link:hover .partner-name {
	color: var(--accent);
}

/* ---------- Testimonials Section ---------- */
.testimonials {
	position: relative;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.testimonial-card {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 280px;
}

.testimonial-content {
	margin-bottom: 1.5rem;
}

.quote-icon {
	width: 28px;
	height: 28px;
	color: var(--accent);
	opacity: 0.4;
	margin-bottom: 1rem;
}

.testimonial-quote {
	font-size: 1rem;
	color: var(--text-body);
	line-height: 1.7;
	margin: 0;
	font-style: italic;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-full);
	object-fit: cover;
}

.testimonial-info {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.testimonial-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-primary);
}

.testimonial-role {
	font-size: 0.8rem;
	color: var(--text-muted);
}

/* Testimonials Responsive */
@media (max-width: 1024px) {
	.testimonials-grid {
		grid-template-columns: 1fr;
		max-width: 560px;
	}
}

@media (max-width: 768px) {
	.testimonial-card {
		padding: 1.5rem;
		min-height: auto;
	}

	.testimonial-quote {
		font-size: 0.95rem;
	}
}

/* ---------- Services Section ---------- */
.services {
	position: relative;
}

.services-intro {
	padding: 2.5rem;
	margin-bottom: 2.5rem;
}

.services-philosophy {
	font-size: 1.1rem;
	color: var(--text-body);
	line-height: 1.8;
	margin-bottom: 2rem;
	max-width: 720px;
}

.services-included {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: rgba(0, 180, 216, 0.04);
	border: 1px solid rgba(0, 180, 216, 0.12);
	border-radius: var(--radius-md);
}

.services-included h4 {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 1rem;
	text-transform: none;
	letter-spacing: 0;
}

.included-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem 2rem;
}

.included-list li {
	position: relative;
	padding-left: 1.25rem;
	font-size: 0.9rem;
	color: var(--text-body);
	line-height: 1.5;
}

.included-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 600;
}

.services-advisory {
	font-size: 0.95rem;
	color: var(--text-muted);
	line-height: 1.7;
	font-style: italic;
	max-width: 640px;
}

/* Packages Header */
.packages-header {
	margin-bottom: 2rem;
}

.packages-header h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	text-transform: none;
	letter-spacing: -0.02em;
}

.packages-note {
	font-size: 0.95rem;
	color: var(--text-muted);
	max-width: 600px;
}

/* Package Cards Grid */
.packages-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.package-card {
	padding: 2rem;
	position: relative;
	display: flex;
	flex-direction: column;
}

.package-card.popular {
	border-color: var(--accent);
	box-shadow: 0 0 30px rgba(0, 180, 216, 0.15);
}

.package-badge {
	position: absolute;
	top: -0.75rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--bg);
	background: var(--accent);
	padding: 0.375rem 1rem;
	border-radius: var(--radius-full);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.package-header {
	margin-bottom: 1rem;
}

.package-header h4 {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.375rem;
}

.package-price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: -0.02em;
}

.package-desc {
	font-size: 0.9rem;
	color: var(--text-body);
	line-height: 1.6;
	margin-bottom: 1.25rem;
}

.package-features {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	flex-grow: 1;
}

.package-features li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.5rem;
	font-size: 0.85rem;
	color: var(--text-body);
	line-height: 1.5;
}

.package-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 600;
	font-size: 0.75rem;
}

.package-best-for {
	font-size: 0.8rem;
	color: var(--text-muted);
	padding-top: 1rem;
	border-top: 1px solid var(--border-light);
	margin: 0;
	line-height: 1.6;
}

.package-best-for strong {
	color: var(--text-body);
}

/* Package Note */
.package-note {
	padding: 1.5rem 2rem;
	margin-bottom: 3rem;
	text-align: center;
}

.package-note p {
	font-size: 0.95rem;
	color: var(--text-body);
	margin: 0;
	line-height: 1.7;
}

.package-note strong {
	color: var(--text-primary);
}

/* Add-On Services */
.addons-section {
	margin-bottom: 3rem;
}

.addons-section h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	text-transform: none;
	letter-spacing: -0.01em;
}

.addons-intro {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-bottom: 1.5rem;
}

.addons-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.addon-item {
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-md);
	transition: var(--transition);
}

.addon-item:hover {
	border-color: var(--border-hover);
	transform: translateY(-2px);
}

.addon-item h5 {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.addon-item p {
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.5;
	margin: 0;
}

/* Services CTA */
.services-cta {
	text-align: center;
	padding-top: 1rem;
}

.services-cta p {
	font-size: 1rem;
	color: var(--text-muted);
	margin-bottom: 1rem;
}

/* Services Responsive */
@media (max-width: 1024px) {
	.packages-grid {
		grid-template-columns: 1fr;
		max-width: 480px;
	}

	.addons-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.services-intro {
		padding: 1.5rem;
	}

	.included-list {
		grid-template-columns: 1fr;
	}

	.addons-grid {
		grid-template-columns: 1fr;
	}

	.package-card {
		padding: 1.5rem;
	}
}

@media (max-width: 768px) {
	.partners-track {
		justify-content: flex-start;
		flex-wrap: nowrap;
		padding: 0.5rem 1rem;
	}

	.partner-item {
		padding: 0.5rem 1rem;
	}
}

/* ---------- Contact Section ---------- */
.contact {
	position: relative;
}

.contact-inner {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 3rem;
	padding: 2.5rem;
	align-items: start;
}

.contact-inner > div p {
	color: var(--text-body);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.contact-info {
	margin-top: 1.5rem;
}

.contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1.25rem;
	background: rgba(0, 180, 216, 0.06);
	border: var(--thin-line) solid rgba(0, 180, 216, 0.15);
	border-radius: var(--radius-md);
	color: var(--text-body);
	transition: var(--transition);
}

.contact-link svg {
	width: 20px;
	height: 20px;
	color: var(--accent);
}

.contact-link:hover {
	background: rgba(0, 180, 216, 0.12);
	border-color: var(--accent);
	color: var(--accent);
	box-shadow: var(--glow-accent);
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 1rem 1.25rem;
	font-size: 0.9rem;
	font-family: inherit;
	color: var(--text-primary);
	background: var(--card-bg);
	border: var(--thin-line) solid var(--border-light);
	border-radius: var(--radius-md);
	transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1), var(--glow-accent);
}

.contact-form textarea {
	resize: vertical;
	min-height: 120px;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 2rem 0;
	border-top: var(--thin-line) solid var(--border-light);
	margin-top: 2rem;
	position: relative;
	z-index: 1;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-inner small {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.social {
	display: flex;
	gap: 1.5rem;
}

.social a {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-muted);
	transition: var(--transition);
}

.social a:hover {
	color: var(--accent);
}

/* ---------- Modal ---------- */
.modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(var(--blur-sm));
	-webkit-backdrop-filter: blur(var(--blur-sm));
	z-index: 200;
	opacity: 0;
	transition: var(--transition);
}

.modal[aria-hidden="false"] {
	display: flex;
	opacity: 1;
}

.modal-content {
	position: relative;
	width: 90%;
	max-width: 600px;
	padding: 2.5rem;
	transform: scale(0.95) translateY(10px);
	transition: var(--transition);
}

.modal[aria-hidden="false"] .modal-content {
	transform: scale(1) translateY(0);
}

.modal-content h3 {
	font-size: 1.5rem;
	color: var(--text-primary);
	margin-bottom: 1rem;
	text-transform: none;
}

.modal-content p {
	color: var(--text-body);
	line-height: 1.8;
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.modal-close svg {
	width: 20px;
	height: 20px;
}

.modal-close:hover {
	color: var(--text-primary);
	background: rgba(0, 180, 216, 0.1);
}

/* ---------- Case Study Modal ---------- */
.case-study-modal {
	max-width: 680px;
	max-height: 85vh;
	overflow-y: auto;
	background: rgba(18, 18, 20, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* Disable all hover effects on case study modal */
.case-study-modal,
.case-study-modal:hover,
.modal-content.glass.case-study-modal:hover {
	background: rgba(18, 18, 20, 0.95) !important;
	border-color: var(--glass-border) !important;
	box-shadow: var(--shadow-md) !important;
	transform: scale(1) translateY(0) !important;
}

.case-study-header {
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--border-light);
}

.case-study-header h3 {
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 0.375rem;
}

.case-study-meta {
	color: var(--text-muted);
	font-size: 0.8rem;
	margin-top: 0;
	opacity: 0.8;
}

.case-study-body {
	color: var(--text-body);
}

.case-study-meta-row {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-light);
}

.meta-item {
	font-size: 0.75rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.case-study-section {
	margin-bottom: 2rem;
}

.case-study-section:last-child {
	margin-bottom: 0;
}

.case-study-section h4 {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.625rem;
	opacity: 0.9;
}

.case-study-section p {
	font-size: 0.925rem;
	line-height: 1.7;
	color: var(--text-body);
}

.case-study-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.case-study-list li {
	position: relative;
	padding-left: 1rem;
	margin-bottom: 0.625rem;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--text-body);
}

.case-study-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 4px;
	height: 4px;
	background: var(--text-muted);
	border-radius: 50%;
	opacity: 0.5;
}

.tech-stack {
	font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
	font-size: 0.8rem;
	color: var(--text-body);
	background: rgba(255, 255, 255, 0.03);
	padding: 0.625rem 0.875rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-light);
	letter-spacing: 0.01em;
}

.tech-highlights {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tech-highlights li {
	font-size: 0.75rem;
	color: var(--text-muted);
	padding: 0.25rem 0.625rem;
	background: rgba(255, 255, 255, 0.02);
	border-radius: var(--radius-sm);
}

.outcome-list li strong {
	color: var(--text-primary);
	font-weight: 500;
}

.case-study-cta {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-light);
}

.case-study-cta .btn.primary {
	font-size: 0.85rem;
	padding: 0.75rem 1.5rem;
}

/* ---------- About Page ---------- */
.about-hero {
	padding-top: 4rem;
}

.about-hero-inner {
	max-width: 720px;
}

.about-hero h1 {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

.about-hero-intro {
	font-size: 1.2rem;
	line-height: 1.8;
	color: var(--text-body);
	margin-bottom: 2rem;
}

.about-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.about-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.about-meta-item svg {
	color: var(--accent);
	opacity: 0.7;
}

.about-meta-available {
	color: var(--accent);
}

.about-section {
	padding: 3rem 0;
}

.about-block {
	padding: 2.5rem;
	max-width: 800px;
}

.about-block h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 1.5rem;
	letter-spacing: -0.02em;
}

.about-block-content p {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--text-body);
	margin-bottom: 1rem;
}

.about-block-content p:last-child {
	margin-bottom: 0;
}

/* Skills Grid */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.skill-card {
	padding: 2rem;
}

.skill-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 180, 216, 0.1);
	border-radius: var(--radius-md);
	margin-bottom: 1.25rem;
	color: var(--accent);
}

.skill-card h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
	text-transform: none;
	letter-spacing: -0.01em;
}

.skill-card p {
	font-size: 0.9rem;
	color: var(--text-body);
	line-height: 1.7;
	margin: 0;
}

/* Background Cards */
.background-expanded-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.background-card {
	padding: 2rem;
}

.background-card h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 1rem;
	text-transform: none;
	letter-spacing: -0.01em;
}

.background-card p {
	font-size: 0.9rem;
	color: var(--text-body);
	line-height: 1.7;
	margin: 0 0 1rem;
}

.background-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.background-list li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.375rem;
	font-size: 0.85rem;
	color: var(--text-muted);
}

.background-list li::before {
	content: '—';
	position: absolute;
	left: 0;
	color: var(--accent);
}

/* Future Goals */
.future-goals {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
}

.future-goals li {
	display: flex;
	flex-direction: column;
	padding: 1rem 0;
	border-bottom: 1px solid var(--border-light);
}

.future-goals li:first-child {
	padding-top: 0;
}

.future-goals li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.future-goals strong {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
}

.future-goals span {
	font-size: 0.875rem;
	color: var(--text-muted);
}

/* About CTA */
.about-cta {
	padding-bottom: 4rem;
}

.about-cta-inner {
	text-align: center;
	padding: 3rem;
	max-width: 600px;
	margin: 0 auto;
}

.about-cta-inner h2 {
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
	letter-spacing: -0.02em;
}

.about-cta-inner p {
	font-size: 1rem;
	color: var(--text-body);
	margin-bottom: 1.5rem;
}

.about-cta-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

/* ---------- Gallery Section ---------- */
.gallery-section {
	padding: 4rem 0;
}

.gallery-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.gallery-track {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 1rem 0;
	scroll-snap-type: x mandatory;
}

.gallery-track::-webkit-scrollbar {
	display: none;
}

.gallery-item {
	flex: 0 0 auto;
	width: 300px;
	height: 220px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	scroll-snap-align: start;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-item-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.gallery-item:hover .gallery-item-overlay {
	opacity: 1;
}

.gallery-item-title {
	font-size: 0.95rem;
	font-weight: 500;
	color: #fff;
}

.gallery-item-category {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
	text-transform: capitalize;
}

.gallery-nav {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	color: var(--text-primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.gallery-nav:hover {
	background: var(--accent);
	color: var(--bg-primary);
	border-color: var(--accent);
}

/* About Page Responsive */
@media (max-width: 1024px) {
	.skills-grid {
		grid-template-columns: 1fr;
		max-width: 500px;
	}

	.background-expanded-grid {
		grid-template-columns: 1fr;
		max-width: 500px;
	}
}

@media (max-width: 768px) {
	.about-hero h1 {
		font-size: 2rem;
	}

	.about-hero-intro {
		font-size: 1.05rem;
	}

	.about-hero-meta {
		flex-direction: column;
		gap: 0.75rem;
		align-items: flex-start;
	}

	.about-meta-item {
		font-size: 0.9rem;
	}

	.about-block {
		padding: 1.5rem;
	}

	.skill-card,
	.background-card {
		padding: 1.5rem;
	}

	.about-cta-inner {
		padding: 2rem 1.5rem;
	}

	.about-cta-buttons {
		flex-direction: column;
		gap: 0.75rem;
	}

	.about-cta-buttons .btn {
		width: 100%;
	}

	.gallery-nav {
		display: none;
	}

	.gallery-item {
		width: 260px;
		height: 180px;
	}

	.gallery-item-overlay {
		opacity: 1;
	}

	.gallery-wrapper {
		margin: 0 -1rem;
		padding: 0 1rem;
	}

	.gallery-track {
		scroll-padding-left: 1rem;
	}
}

@media (max-width: 480px) {
	.about-hero {
		padding: 3rem 0 2rem;
	}

	.about-hero h1 {
		font-size: 1.75rem;
	}

	.about-hero-intro {
		font-size: 0.95rem;
	}

	.about-block {
		padding: 1.25rem;
	}

	.about-block-content p {
		font-size: 0.9rem;
	}

	.skill-card,
	.background-card {
		padding: 1.25rem;
	}

	.skill-card h3,
	.background-card h3 {
		font-size: 1rem;
	}

	.gallery-item {
		width: 220px;
		height: 160px;
	}

	.about-cta-inner {
		padding: 1.5rem 1rem;
	}

	.about-cta-inner h2 {
		font-size: 1.5rem;
	}

	.future-goals li {
		padding: 0.75rem 0;
	}

	.future-goals strong {
		font-size: 0.9rem;
	}

	.future-goals span {
		font-size: 0.8rem;
	}
}

/* ---------- Animations ---------- */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Focus States ---------- */
:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ---------- Selection ---------- */
::selection {
	background: rgba(0, 180, 216, 0.3);
	color: var(--text-primary);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 180, 216, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.sidebar {
		right: 1rem;
	}
}

@media (max-width: 900px) {
	.about-inner,
	.contact-inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 700px) {
	.project-grid {
		grid-template-columns: 1fr;
		max-width: 400px;
	}
}

@media (max-width: 768px) {
	.sidebar {
		right: 0.75rem;
	}

	.sidebar-content {
		padding: 0.75rem 0.5rem;
	}

	.sidebar-btn {
		width: 36px;
		height: 36px;
	}

	.sidebar-btn svg {
		width: 18px;
		height: 18px;
	}
}

@media (max-width: 640px) {
	/* Mobile navigation */
	.nav {
		position: fixed;
		top: 70px;
		left: 1rem;
		right: 1rem;
		flex-direction: column;
		gap: 0;
		padding: 1rem;
		background: var(--bg-secondary);
		backdrop-filter: blur(var(--blur-lg));
		-webkit-backdrop-filter: blur(var(--blur-lg));
		border: var(--thin-line) solid var(--border-light);
		border-radius: var(--radius-md);
		box-shadow: var(--shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: var(--transition);
		z-index: 99;
	}

	.nav.open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav a {
		padding: 1rem;
		font-size: 1rem;
		border-radius: var(--radius-sm);
		-webkit-tap-highlight-color: transparent;
	}

	.nav-toggle {
		display: flex;
	}

	/* Hide brand text on mobile, keep logo */
	.brand-text {
		display: none;
	}

	.brand-logo {
		width: 40px;
		height: 40px;
	}

	/* Project grid */
	.project-grid {
		grid-template-columns: 1fr;
	}

	/* Hero section */
	.hero {
		padding: 4rem 0 2.5rem;
	}

	.hero-card {
		padding: 2rem 1.25rem;
	}

	.hero-card h1 {
		font-size: 1.75rem;
	}

	.lead {
		font-size: 1rem;
	}

	.tagline {
		font-size: 0.9rem;
	}

	/* Sections */
	.section {
		padding: 3rem 0;
	}

	.section h2 {
		font-size: 1.5rem;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	/* About and Contact */
	.about-inner,
	.contact-inner {
		padding: 1.25rem;
	}

	/* Filters horizontal scroll */
	.filters {
		width: 100%;
		overflow-x: auto;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
	}

	.filter {
		white-space: nowrap;
		min-height: 44px;
	}

	/* CTA buttons */
	.hero-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.btn {
		width: 100%;
		max-width: none;
		min-height: 48px;
		padding: 1rem 1.5rem;
	}

	/* Adjust sidebar position on mobile - horizontal bottom bar */
	.sidebar {
		bottom: 1rem;
		top: auto;
		right: 50%;
		transform: translateX(50%);
	}

	.sidebar-content {
		flex-direction: row;
		padding: 0.625rem 1rem;
	}

	.sidebar-socials {
		flex-direction: row;
	}

	.sidebar-divider {
		width: 1px;
		height: 24px;
		margin: 0 0.5rem;
	}

	/* Contact form touch-friendly */
	.contact-form input,
	.contact-form textarea {
		font-size: 16px; /* Prevents iOS zoom */
		min-height: 48px;
		padding: 1rem;
	}

	.contact-form textarea {
		min-height: 120px;
	}

	/* Gallery mobile */
	.gallery-track {
		padding: 0.5rem 0;
		gap: 1rem;
		scroll-padding-left: 1rem;
	}

	.gallery-item {
		width: 280px;
		height: 200px;
	}

	/* Services mobile */
	.services-intro {
		padding: 1.25rem;
	}

	.package-card {
		padding: 1.25rem;
	}

	.package-price {
		font-size: 1.25rem;
	}

	/* Testimonials mobile */
	.testimonial-card {
		padding: 1.25rem;
	}

	/* Footer mobile */
	.footer-inner {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}
}

/* Extra small screens (320px) */
@media (max-width: 380px) {
	.container {
		padding: 0 0.75rem;
	}

	.hero-card {
		padding: 1.5rem 1rem;
	}

	.hero-card h1 {
		font-size: 1.5rem;
	}

	.about-inner,
	.contact-inner {
		padding: 1rem;
	}

	.gallery-item {
		width: 240px;
		height: 170px;
	}

	.package-card {
		padding: 1rem;
	}

	.btn {
		padding: 0.875rem 1.25rem;
		font-size: 0.85rem;
	}

	.sidebar {
		left: 0.5rem;
		right: 0.5rem;
		transform: none;
	}

	.sidebar-content {
		width: 100%;
		justify-content: center;
	}
}

/* ---------- Safe Area Insets (Notched phones) ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
	.site-header {
		padding-left: env(safe-area-inset-left);
		padding-right: env(safe-area-inset-right);
	}

	.site-footer {
		padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
	}

	@media (max-width: 640px) {
		.sidebar {
			bottom: calc(1rem + env(safe-area-inset-bottom));
		}

		.nav {
			left: calc(1rem + env(safe-area-inset-left));
			right: calc(1rem + env(safe-area-inset-right));
		}
	}
}

/* ---------- Touch Device Improvements ---------- */
@media (hover: none) and (pointer: coarse) {
	/* Remove hover effects on touch devices */
	.project-card:hover {
		transform: none;
	}

	.glass:hover {
		background: var(--surface);
		border-color: var(--glass-border);
		box-shadow: var(--shadow-md), 0 0 60px rgba(0, 180, 216, 0.02) inset;
	}

	/* Active states for touch */
	.project-card:active {
		transform: scale(0.98);
		transition-duration: 0.1s;
	}

	.btn:active {
		transform: scale(0.97);
	}

	/* Ensure tap targets are large enough */
	.nav a,
	.filter,
	.sidebar-btn {
		min-height: 44px;
		min-width: 44px;
	}

	/* Better scrolling */
	.gallery-track,
	.filters {
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
	}

	.gallery-item,
	.filter {
		scroll-snap-align: start;
	}
}

/* ---------- Landscape Mobile ---------- */
@media (max-height: 500px) and (orientation: landscape) {
	.hero {
		padding: 3rem 0 2rem;
	}

	.hero-card {
		padding: 1.5rem;
	}

	.section {
		padding: 2rem 0;
	}

	.sidebar {
		display: none;
	}
}

/* ---------- High Contrast Mode ---------- */
@media (prefers-contrast: high) {
	:root {
		--border-light: rgba(255, 255, 255, 0.3);
		--glass-border: rgba(255, 255, 255, 0.4);
	}

	.btn.primary {
		border: 2px solid #000;
	}
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}

	.lightning-bolt {
		animation: none;
	}

	.gallery-track {
		scroll-behavior: auto;
	}
}
