/* ==========================================================================
   MakOS Theme - Desktop Stylesheet
   Author: Antigravity
   Description: Core styles for the macOS-inspired web experience.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Reset
   -------------------------------------------------------------------------- */
:root {
	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: 'JetBrains Mono', sfmono-regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
	
	/* Curated Dark Palette (macOS Carbon Black / Space Gray) */
	--bg-desktop-fallback: url('../images/wallpaper-default.png');
	--color-text-primary: #f5f5f7;
	--color-text-secondary: #86868b;
	--color-text-dim: #aeaeae;
	
	--window-bg: rgba(28, 28, 30, 0.82);
	--window-sidebar-bg: rgba(38, 38, 41, 0.65);
	--window-border: rgba(255, 255, 255, 0.08);
	--window-shadow-active: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
	--window-shadow-inactive: 0 10px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
	
	--dock-bg: rgba(40, 40, 40, 0.35);
	--dock-border: rgba(255, 255, 255, 0.15);
	
	--accent-blue: #007aff;
	--accent-red: #ff5f56;
	--accent-yellow: #ffbd2e;
	--accent-green: #27c93f;
	
	--menu-bar-bg: rgba(28, 28, 30, 0.75);
	--menu-bar-border: rgba(255, 255, 255, 0.05);
}

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

body {
	font-family: var(--font-primary);
	color: var(--color-text-primary);
	background: #0c0813 var(--bg-desktop-fallback) no-repeat center center / cover;
	background-attachment: fixed;
	height: 100vh;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--accent-blue);
	text-decoration: none;
	transition: opacity 0.2s;
}
a:hover {
	opacity: 0.8;
}

/* --------------------------------------------------------------------------
   2. macOS Menu Bar (Top)
   -------------------------------------------------------------------------- */
#mac-menu-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 25px;
	background: var(--menu-bar-bg);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border-bottom: 1px solid var(--menu-bar-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 15px;
	font-size: 13px;
	z-index: 9999;
	user-select: none;
}

.menu-bar-left, .menu-bar-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.menu-item {
	cursor: default;
	color: var(--color-text-primary);
	display: flex;
	align-items: center;
}

/* Custom Pear Logo Styling */
.pear-logo-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 2px;
}

.menu-pear-logo {
	color: var(--color-text-primary);
	filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
	transition: transform 0.25s ease;
}

.pear-logo-wrapper:hover .menu-pear-logo {
	transform: rotate(5deg) scale(1.05);
}

.menu-item.app-name {
	font-weight: 600;
}

.menu-icon {
	display: flex;
	align-items: center;
	color: var(--color-text-primary);
	opacity: 0.85;
}

.menu-icon svg {
	color: currentColor;
}

/* Hide some menu items on tablet/mobile */
@media (max-width: 900px) {
	.desktop-only {
		display: none !important;
	}
}

/* --------------------------------------------------------------------------
   3. Desktop Grid Workspace
   -------------------------------------------------------------------------- */
#mac-desktop {
	position: absolute;
	top: 25px;
	left: 0;
	right: 0;
	bottom: 0;
	background: transparent; /* Wallpaper shows through from body */
	overflow: hidden;
}

.desktop-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
	pointer-events: none;
	z-index: 1;
}

.desktop-grid {
	position: absolute;
	top: 30px;
	right: 30px;
	bottom: 100px;
	width: 196px; /* fixed width prevents leftward overflow when wrapping to multiple columns */
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: flex-end;
	gap: 16px;
	overflow: hidden;
	z-index: 2;
}

.desktop-icon {
	width: 90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
	user-select: none;
	border-radius: 6px;
	padding: 8px 4px;
	outline: none;
	transition: background 0.15s;
}

.desktop-icon:hover {
	background: rgba(255, 255, 255, 0.1);
}

.desktop-icon:focus-within {
	background: rgba(255, 255, 255, 0.2);
}

.icon-graphic {
	width: 48px;
	height: 40px;
	position: relative;
	margin-bottom: 8px;
}

/* CSS Folder Design */
.folder-icon .folder-tab {
	position: absolute;
	top: -4px;
	left: 4px;
	width: 18px;
	height: 6px;
	background: #007aff;
	border-radius: 3px 3px 0 0;
	box-shadow: 0 -1px 2px rgba(0,0,0,0.1);
}

.folder-icon .folder-body {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #0a84ff 0%, #0056b3 100%);
	border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.folder-icon::after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 2px;
	right: 2px;
	height: 24px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 2px;
	transform: perspective(100px) rotateX(10deg);
}

.icon-label {
	font-size: 12px;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.6);
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
	line-height: 1.3em;
}

/* --------------------------------------------------------------------------
   4. macOS Style Windows
   -------------------------------------------------------------------------- */
.mac-window {
	position: absolute;
	border-radius: 12px;
	background: var(--window-bg);
	backdrop-filter: blur(25px) saturate(180%);
	-webkit-backdrop-filter: blur(25px) saturate(180%);
	border: 1px solid var(--window-border);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: var(--window-shadow-inactive);
	z-index: 5;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.mac-window.active-window {
	box-shadow: var(--window-shadow-active);
	border-color: rgba(255, 255, 255, 0.15);
	z-index: 100 !important;
}

/* Window Header */
.window-header {
	height: 42px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	position: relative;
	background: rgba(35, 35, 38, 0.5);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	user-select: none;
	flex-shrink: 0;
}

.window-controls {
	display: flex;
	gap: 8px;
	align-items: center;
	position: absolute;
	left: 16px;
}

.control {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	position: relative;
	cursor: pointer;
}

.control.close-btn { background-color: var(--accent-red); }
.control.minimize-btn { background-color: var(--accent-yellow); }
.control.zoom-btn { background-color: var(--accent-green); }

/* Hover icons for controls */
.window-header:hover .control::after {
	font-size: 8px;
	font-weight: 700;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: rgba(0, 0, 0, 0.65);
}
.window-header:hover .control.close-btn::after { content: '×'; }
.window-header:hover .control.minimize-btn::after { content: '–'; }
.window-header:hover .control.zoom-btn::after { content: '+'; }

.window-title {
	width: 100%;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text-dim);
}

/* Window Inner Body layout */
.window-body {
	flex: 1;
	display: flex;
	min-height: 0;
	overflow: hidden; /* required so flex children can scroll independently */
}

/* ── Window Resize Handle ─────────────────────────────────────────────────── */
.window-resize-handle {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 18px;
	height: 18px;
	cursor: nwse-resize;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.2s;
}
.window-resize-handle::before {
	content: '';
	position: absolute;
	bottom: 4px;
	right: 4px;
	width: 10px;
	height: 10px;
	border-right: 2px solid rgba(255,255,255,0.4);
	border-bottom: 2px solid rgba(255,255,255,0.4);
	border-radius: 0 0 3px 0;
}
.mac-window:hover .window-resize-handle,
.mac-window.active-window .window-resize-handle {
	opacity: 1;
}

/* --------------------------------------------------------------------------
   5. Window Sidebar & Main Content Pane
   -------------------------------------------------------------------------- */
.window-sidebar {
	width: 190px;
	background: var(--window-sidebar-bg);
	border-right: 1px solid rgba(255, 255, 255, 0.05);
	padding: 20px 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-shrink: 0;
	overflow-y: auto;
}

.sidebar-section-title {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-text-secondary);
	letter-spacing: 0.05em;
	padding: 8px;
	margin-top: 10px;
}
.sidebar-section-title:first-child {
	margin-top: 0;
}

.sidebar-item {
	padding: 8px 12px;
	font-size: 13px;
	border-radius: 6px;
	cursor: pointer;
	color: var(--color-text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.15s, color 0.15s;
	font-weight: 500;
}

.sidebar-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.sidebar-item.active {
	background: var(--accent-blue);
	color: #fff;
}

.sidebar-item.contact-item a {
	color: inherit;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

/* Main Content Pane */
.window-main-content {
	flex: 1;
	background: rgba(20, 20, 20, 0.2);
	overflow-y: auto;
	overflow-x: hidden;
	padding: 30px;
	position: relative;
	min-height: 0; /* critical: allows flex child to shrink and scroll */
	-webkit-overflow-scrolling: touch; /* smooth momentum scroll on iOS */
}

/* Project scrollable area — same scroll guarantee */
.project-scrollable-content {
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}

/* Note detail pane */
.note-detail-pane {
	overflow-y: auto;
	min-height: 0;
}

/* Scrollbars styling */
.window-main-content::-webkit-scrollbar,
.window-sidebar::-webkit-scrollbar {
	width: 8px;
}
.window-main-content::-webkit-scrollbar-track,
.window-sidebar::-webkit-scrollbar-track {
	background: transparent;
}
.window-main-content::-webkit-scrollbar-thumb,
.window-sidebar::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}
.window-main-content::-webkit-scrollbar-thumb:hover,
.window-sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Tab contents animation */
.tab-pane {
	display: none;
	animation: fadeIn 0.25s ease forwards;
}

.tab-pane.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   6. About Me Window Elements
   -------------------------------------------------------------------------- */
.bio-header {
	display: flex;
	gap: 24px;
	align-items: center;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding-bottom: 24px;
}

.bio-photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255,255,255,0.1);
}

.bio-photo-placeholder {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent-blue), #8e2de2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bio-intro h2 {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.bio-subtitle {
	font-size: 14px;
	color: var(--accent-blue);
	font-weight: 500;
	margin-top: 2px;
}

.bio-location {
	font-size: 12px;
	color: var(--color-text-secondary);
	margin-top: 4px;
}

.bio-body {
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-text-dim);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.highlight-box {
	background: rgba(255, 227, 144, 0.07);
	border-left: 3px solid #ffe390;
	padding: 12px 16px;
	border-radius: 0 8px 8px 0;
	color: var(--color-text-primary);
}

.bio-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.bio-footer p {
	font-size: 13px;
	color: var(--color-text-secondary);
	max-width: 65%;
}

.mac-btn {
	background: var(--accent-blue);
	color: #fff;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 122, 255, 0.3);
	transition: transform 0.1s;
}
.mac-btn:active {
	transform: scale(0.97);
}

/* Experience Tab Layout */
.pane-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding-bottom: 8px;
}

.experience-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.experience-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.job-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.job-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text-primary);
}

.job-company {
	font-size: 13px;
	color: var(--accent-blue);
	font-weight: 500;
}

.job-dates {
	font-size: 12px;
	color: var(--color-text-secondary);
	font-family: var(--font-mono);
}

.job-description {
	font-size: 13px;
	line-height: 1.5;
	color: var(--color-text-dim);
}

.job-description ul, .job-description p {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

/* Education elements */
.education-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.education-item {
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 8px;
	padding: 12px 16px;
}

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

.edu-degree {
	font-size: 14px;
	font-weight: 600;
}

.edu-school {
	font-size: 12px;
	color: var(--color-text-secondary);
}

.edu-date {
	font-size: 12px;
	color: var(--color-text-secondary);
	font-family: var(--font-mono);
}

/* Skill tags */
.skills-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.skill-tag {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 500;
	color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   7. Notes Window Elements
   -------------------------------------------------------------------------- */
.notes-list {
	width: 220px;
	padding: 0;
	background: rgba(30, 30, 33, 0.4);
}

.notes-list .sidebar-section-title {
	padding: 12px 16px 8px;
}

.notes-sidebar-item {
	padding: 12px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
	cursor: pointer;
	transition: background 0.15s;
}

.notes-sidebar-item:hover {
	background: rgba(255, 255, 255, 0.04);
}

.notes-sidebar-item.active {
	background: rgba(0, 122, 255, 0.15);
	border-left: 3px solid var(--accent-blue);
	padding-left: 13px;
}

.note-item-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.note-item-meta {
	display: flex;
	gap: 8px;
	font-size: 11px;
	margin-top: 3px;
}

.note-item-date {
	color: var(--color-text-secondary);
	flex-shrink: 0;
}

.note-item-snippet {
	color: var(--color-text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Notes detail area */
.note-detail-pane {
	background: transparent;
	padding: 24px;
}

.note-detail-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 4px;
	letter-spacing: -0.02em;
}

.note-detail-date {
	font-size: 11px;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding-bottom: 8px;
}

.note-detail-body {
	font-size: 13px;
	line-height: 1.6;
	color: var(--color-text-dim);
}
.note-detail-body p {
	margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   8. Project Window Elements
   -------------------------------------------------------------------------- */
.project-body {
	background: transparent;
}

.project-meta-sidebar {
	width: 180px;
	padding: 24px 16px;
	background: rgba(24, 24, 26, 0.5);
}

.meta-block {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.meta-label {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-text-secondary);
	letter-spacing: 0.05em;
}

.meta-value {
	font-size: 12px;
	color: var(--color-text-primary);
	font-weight: 500;
}

.project-scrollable-content {
	padding: 30px;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
}

.project-description-block h2 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

.project-wysiwyg {
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-text-dim);
	margin-bottom: 24px;
}

.project-images-gallery {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.project-gallery-image img {
	width: 100%;
	border-radius: 8px;
	display: block;
	border: 1px solid rgba(255,255,255,0.05);
}

.mock-image-placeholder {
	width: 100%;
	aspect-ratio: 1.5;
	border-radius: 8px;
	overflow: hidden;
}

.image-placeholder-inner {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-family: var(--font-mono);
	color: rgba(255, 255, 255, 0.4);
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Elementor editor / preview overrides — allow scrolling and normal layout */
body.elementor-editor-active,
body.elementor-editor-preview,
body.elementor-page-preview {
	overflow: auto !important;
	height: auto !important;
}
body.elementor-editor-active #mac-desktop,
body.elementor-editor-preview #mac-desktop,
body.elementor-page-preview #mac-desktop {
	overflow: auto !important;
	height: auto !important;
	position: static !important;
}

/* --------------------------------------------------------------------------
   9. macOS Bottom Dock
   -------------------------------------------------------------------------- */
#mac-dock-container {
	position: fixed;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	user-select: none;
	/* pointer-events: none on container; re-enabled on children so Elementor
	   wrapper divs can't block dock clicks */
	pointer-events: none;
}
#mac-dock-container #mac-dock,
#mac-dock-container .dock-item,
#mac-dock-container a.dock-item {
	pointer-events: auto;
}

#mac-dock {
	background: var(--dock-bg);
	backdrop-filter: blur(25px) saturate(180%);
	-webkit-backdrop-filter: blur(25px) saturate(180%);
	border: 1px solid var(--dock-border);
	border-radius: 20px;
	padding: 8px 10px;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
	height: 64px;
	transform-origin: bottom center;
}

.dock-item {
	position: relative;
	width: 48px;
	height: 48px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	outline: none;
	transition: transform 0.15s ease-out;
}

/* Tooltip */
.dock-tooltip {
	position: absolute;
	bottom: 66px;
	background: rgba(25, 25, 28, 0.85);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 6px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%) translateY(4px);
	left: 50%;
	transition: opacity 0.15s, transform 0.15s;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dock-item:hover .dock-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Icon Design */
.dock-icon-wrapper {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
	transition: width 0.15s, height 0.15s;
}

/* Unique backgrounds for icons */
.dock-item[data-window="window-about-me"] .dock-icon-wrapper {
	background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
}
.dock-item[data-window="window-notes"] .dock-icon-wrapper {
	background: linear-gradient(135deg, #fac900 0%, #c69b00 100%);
}
.social-icon-ig { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon-x { background: #151515; }
.social-icon-behance { background: #0057ff; }

/* Active dot indicator under app icon */
.dock-indicator {
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	position: absolute;
	bottom: -6px;
	left: calc(50% - 2px);
	opacity: 0;
	transition: opacity 0.2s;
}

.dock-indicator.active {
	opacity: 1;
}

.dock-divider {
	width: 1px;
	height: 40px;
	background: rgba(255, 255, 255, 0.15);
	align-self: center;
	margin: 0 2px;
}

/* Dock hover zoom magnification */
#mac-dock:hover .dock-item:hover {
	transform: scale(1.18) translateY(-6px);
}

#mac-dock:hover .dock-item:hover + .dock-item,
#mac-dock:hover .dock-item:has(+ .dock-item:hover) {
	transform: scale(1.08) translateY(-3px);
}

/* --------------------------------------------------------------------------
   10. Fallback Blog Layout Styling
   -------------------------------------------------------------------------- */
#fallback-blog-wrapper {
	margin-top: 25px; /* Account for top menu bar */
	min-height: calc(100vh - 25px);
	background: #0f0d13;
	padding: 40px 20px 120px; /* Space for dock */
	overflow-y: auto;
}

.blog-container {
	max-width: 900px;
	margin: 0 auto;
}

.blog-header {
	text-align: center;
	margin-bottom: 40px;
}

.blog-title {
	font-size: 36px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.03em;
}

.blog-description {
	font-size: 16px;
	color: var(--color-text-secondary);
	margin-top: 8px;
}

.blog-posts-grid {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.blog-card {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	transition: transform 0.2s, border-color 0.2s;
}

.blog-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.12);
}

.blog-card-thumbnail {
	width: 35%;
	flex-shrink: 0;
	overflow: hidden;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-card-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

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

.blog-card-content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.entry-date {
	font-size: 11px;
	font-family: var(--font-mono);
	color: var(--color-text-secondary);
	text-transform: uppercase;
}

.entry-title {
	font-size: 20px;
	font-weight: 700;
	margin-top: 6px;
	line-height: 1.3em;
}

.entry-title a {
	color: #fff;
	transition: color 0.15s;
}
.entry-title a:hover {
	color: var(--accent-blue);
}

.entry-summary {
	font-size: 13px;
	color: var(--color-text-dim);
	line-height: 1.6;
	margin-top: 12px;
}

.read-more-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent-blue);
	display: inline-block;
	margin-top: 16px;
}

.blog-navigation {
	padding: 20px 0;
	display: flex;
	justify-content: space-between;
}

.no-posts-found {
	text-align: center;
	padding: 60px 20px;
	color: var(--color-text-secondary);
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   11. Dock Built-in Icon Styles (SVG-based)
   -------------------------------------------------------------------------- */
.dock-icon-about {
	background: linear-gradient(135deg, #007aff, #0056cc);
	color: #fff;
}
.dock-icon-notes {
	background: linear-gradient(135deg, #ffd60a, #ff9f0a);
	color: #000;
}

/* Generic social icon styling — override with inline style per platform */
.dock-social .dock-icon-wrapper {
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
}
.dock-social .dock-icon-wrapper svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. Responsive — Tablet (≤1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.mac-window {
		/* Constrain oversized windows to usable screen width */
		max-width: calc(100vw - 40px) !important;
	}

	.desktop-grid {
		width: 160px;
		gap: 12px;
	}

	.desktop-icon {
		width: 80px;
	}
}

/* --------------------------------------------------------------------------
   13. Mobile Responsiveness (≤800px)
   -------------------------------------------------------------------------- */
@media (max-width: 800px) {

	/* ── Body / Desktop canvas ───────────────────────────────────────── */
	body {
		overflow-y: auto;
		height: auto;
	}

	#mac-desktop {
		position: static;
		height: auto;
		min-height: calc(100vh - 25px);
		padding: 16px 16px 120px; /* bottom room for dock */
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	/* ── Desktop icon grid ───────────────────────────────────────────── */
	.desktop-grid {
		position: static;
		width: 100%;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		padding: 0;
		gap: 16px;
		overflow: visible;
	}

	.desktop-icon {
		width: 100%;
		max-width: none;
		padding: 12px 8px;
		background: rgba(255,255,255,0.04);
		border: 1px solid rgba(255,255,255,0.07);
		border-radius: 10px;
	}

	.icon-graphic {
		width: 44px;
		height: 36px;
	}

	.icon-label {
		font-size: 11px;
	}

	/* ── Mac windows: full-screen overlay on mobile ──────────────────── */
	.mac-window {
		position: fixed !important;
		top: 25px !important; /* below menu bar */
		left: 0 !important;
		right: 0 !important;
		bottom: 80px !important; /* above dock */
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
		border-radius: 0 !important;
		z-index: 1000 !important;
		transform: none !important;
	}

	.window-body {
		flex-direction: column;
	}

	.window-sidebar {
		width: 100%;
		height: auto;
		max-height: 140px;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		padding: 8px 12px;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px;
		overflow-y: auto;
		flex-shrink: 0;
	}

	.sidebar-section-title {
		display: none;
	}

	.sidebar-item {
		padding: 5px 10px;
		font-size: 11px;
	}

	.notes-list {
		max-height: 140px;
		flex-direction: column;
		overflow-y: auto;
		flex-wrap: nowrap;
	}
	.notes-sidebar-item {
		padding: 8px 12px;
	}

	.window-main-content {
		padding: 20px 16px;
	}

	/* ── Dock ────────────────────────────────────────────────────────── */
	#mac-dock-container {
		bottom: 10px;
		left: 50%;
		transform: translateX(-50%);
		width: calc(100% - 20px);
		max-width: 420px;
	}

	#mac-dock {
		width: 100%;
		justify-content: center;
		height: 62px;
		gap: 8px;
		padding: 0 10px;
	}

	.dock-item {
		width: 44px;
		height: 44px;
	}

	.dock-icon-wrapper {
		width: 40px;
		height: 40px;
		font-size: 15px;
		border-radius: 10px;
	}

	.dock-icon-wrapper svg {
		width: 20px;
		height: 20px;
	}

	.dock-tooltip {
		display: none !important; /* hide on touch */
	}

	.dock-divider {
		height: 32px;
		margin: 0 4px;
	}

	/* ── Blog cards ──────────────────────────────────────────────────── */
	.blog-card {
		flex-direction: column;
	}

	.blog-card-thumbnail {
		width: 100%;
		height: 180px;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	/* ── Menu bar ────────────────────────────────────────────────────── */
	.desktop-only {
		display: none !important;
	}

	.menu-bar-right {
		gap: 10px;
	}
}

/* --------------------------------------------------------------------------
   14. Small Mobile (≤480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {

	.desktop-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	#mac-dock {
		gap: 6px;
	}

	.dock-item {
		width: 38px;
		height: 38px;
	}

	.dock-icon-wrapper {
		width: 34px;
		height: 34px;
	}

	.dock-icon-wrapper svg {
		width: 18px;
		height: 18px;
	}
}
