:root {
    --bg: #0f0f12;
    --panel: #1a1b20;
    --panel-2: #22232a;
    --accent: #ff9a1f;
    --accent-2: #ffb347;
    --text: #f6f6f6;
    --muted: #9da2ac;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 12px 40px rgba(0,0,0,0.35);
}

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

body {
	background: radial-gradient(circle at 15% 20%, rgba(255,154,31,0.08), transparent 35%), radial-gradient(circle at 80% 0%, rgba(255,179,71,0.08), transparent 30%), var(--bg);
	color: var(--text);
	font-family: 'Trebuchet MS', sans-serif;
	line-height: 1.5;
	min-height: 100vh;
}

h1 {
	text-align: center;
	letter-spacing: 0.5px;
}

hr {
	margin: 10px 0 12px;
	border: 0;
	border-top: 1px solid var(--border);
}

a {
	color: inherit;
}

.page-shell {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px 60px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow);
    gap: 24px;
    flex-wrap: wrap;
}

.header .logo h1 {
    margin: 0;
}

.inner-menu {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow: visible;
    flex: 1 1 auto;
}

.header > .inner-menu > .menu-link {
    color: rgba(255, 187, 0, 0.8);
    text-decoration: none;
    transition: all .2s ease;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    width: 200px;
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3da0ff, #7a6bff);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    transform: translateY(-1px);
}

.author-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header > .inner-menu > .button {
    min-width: 150px;
    width: 200px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--accent) !important;
    margin-bottom: 0 !important;
}

.header > .inner-menu > .menu-link:hover {
    color: var(--accent);
    border-color: rgba(255, 154, 31, 0.25);
    background: rgba(255, 154, 31, 0.06);
}

#hint {
	font-size: 12px;
	color: var(--muted);
	background: rgba(255, 154, 31, 0.08);
	padding: 6px 10px;
	border-radius: 8px;
	border-left: 3px solid var(--accent);
	line-height: 1.3;
	margin-bottom: 8px;
	flex-shrink: 0;
	max-height: 40px;
	overflow: hidden;
}

#hint b {
	color: var(--accent);
}

.modal {
	position: fixed;
	width: min(900px, 90%);
	max-height: 80%;
	background: var(--panel-2);
	border: 2px solid var(--accent);
	border-radius: 16px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 24px;
	display: none;
	overflow: auto;
	box-shadow: var(--shadow);
}

.modal > .modal-header {
	display:flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.modal > .modal-header > h1 {
	margin: 0;
	font-size: 24px;
}

.modal > .modal-header > a {
	min-width: 90px;
	text-align:center;
}

.modal > .inner-modal {
	font-size: 16px;
	line-height: 1.6;
}

.form {
	width: min(520px, 90%);
	margin: 0 auto;
	background: var(--panel);
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: var(--shadow);
}

.projects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	margin: 20px auto 0;
	width: 100%;
	max-width: 1100px;
	padding: 0 16px;
}

.projects.page-narrow {
	max-width: 960px;
}

.project {
	display: block;
	color: var(--text);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease;
	border: 1px solid var(--border);
	padding: 14px;
	background: var(--panel);
	border-radius: 14px;
	min-height: 320px;
	box-shadow: var(--shadow);
}

.project > div > .logo {
	display: block;
	width: 100%;
	height: 180px;
	margin-bottom: 10px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 10px;
	border: 1px solid var(--border);
}

.project:hover {
	transform: translateY(-4px);
	background: #25262f;
	box-shadow: 0 16px 45px rgba(0,0,0,0.45);
	border-color: rgba(255,154,31,0.35);
}

.project > div > img {
	display: block;
	width: 100%;
	height: 200px;
	margin-bottom: 5px;
}

.tutorial > div > em {
	color: red;
}

.content {
	padding: 8px 16px 8px;
	max-width: 100%;
	margin: 0 auto;
	height: calc(100vh - 70px);
	display: flex;
	flex-direction: column;
	overflow: auto;
}

/* Editor page - allow scrolling */
body:has(.content .inner-canvas) {
	overflow: auto;
	min-height: 100vh;
}

#canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.inner-canvas {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 10px;
	align-items: start;
	width: 100%;
	min-height: 0;
}

.canvas-column {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: calc(100vh - 110px);
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 12px;
	box-shadow: var(--shadow);
}

.canvas-holder {
	width: 100%;
	flex: 1;
	min-height: 280px;
	background: linear-gradient(145deg, #1e1f24 0%, #16171a 100%);
	border: 2px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.03),
		0 0 30px rgba(255, 154, 31, 0.03);
}

.canvas-holder #canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.canvas-actions {
	width: 100%;
	flex-shrink: 0;
}

.sidebar {
	padding: 12px;
	width: 100%;
	height: calc(100vh - 110px);
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: var(--shadow);
}

.sidebar h3 {
	font-size: 0.95rem;
	margin: 8px 0;
}

.list-elem {
	display: block;
	text-decoration: none;
	margin-bottom: 5px;
	color: var(--text);
}

.list-elem:hover {
	border-bottom: 1px solid var(--text);
}

.object_settings {
	width: 100%;
	display: none;
}

input, select, textarea {
	padding: 8px 10px;
	width: 100%;
	background: var(--panel-2);
	margin-bottom: 8px;
	border: 1px solid var(--border);
	color: var(--text);
	font-weight: 600;
	border-radius: 8px;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
	font-size: 13px;
}

input:focus, select:focus, textarea:focus {
	border-color: rgba(255,154,31,0.5);
	box-shadow: 0 0 0 3px rgba(255,154,31,0.15);
}

.menu {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	margin: 4px 0;
	justify-content: flex-start;
}

.menu-button {
	width: 100%;
	padding: 6px 8px;
	font-size: 12px;
	white-space: nowrap;
}

.variable {
	font-weight: bold;
	color: var(--accent);
}

.small-button {
	display: block;
	width: 100%;
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
	padding: 4px 0;
	font-size: 13px;
}

.small-button:hover {
	font-weight: bold;
}
.button,
.menu-button,
.update-button,
.delete-button {
	padding: 10px 14px;
	font-size: 14px;
	color: white;
	font-weight: 700;
	border: 2px solid var(--accent);
	background: linear-gradient(135deg, #202123, #1b1c20);
	width: 100%;
	text-decoration:none;
	border-radius: 10px;
	transition: transform .1s ease, box-shadow .2s ease, background .2s ease;
}

.button {
	max-width: 100%;
    margin-bottom: 8px;
};

.button:hover,
.menu-button:hover,
.update-button:hover {
	background: linear-gradient(135deg, #25262c, #1f2026);
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}

.delete-button {
	border-color: #ff5f5f;
	color: #ff8a8a;
}

.delete-button:hover {
	background: linear-gradient(135deg, #2a1111, #321616);
	color: white;
}

.menu-button.active {
	background: linear-gradient(135deg, rgba(255, 154, 31, 0.15), rgba(255, 154, 31, 0.08));
	border-color: var(--accent);
	box-shadow: 0 0 20px rgba(255, 154, 31, 0.1);
}

/* World Settings */
.world_settings {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px;
	margin: 10px 0;
}

.world_settings h2 {
	font-size: 0.95rem;
	margin-bottom: 10px;
	color: var(--text);
}

.world_settings label {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 4px;
}

.world-update-button {
	margin-top: 6px;
	font-size: 13px;
	padding: 8px 12px;
}

/* Object Settings in Sidebar */
.box_settings,
.circle_settings,
.joint_settings {
	background: rgba(255, 154, 31, 0.05);
	border: 1px solid rgba(255, 154, 31, 0.2);
	border-radius: 8px;
	padding: 10px;
	margin: 8px 0;
}

.box_settings label,
.circle_settings label,
.joint_settings label {
	display: block;
	font-size: 0.8rem;
	color: var(--muted);
	margin-bottom: 3px;
}

/* Objects List */
#objects_list {
	max-height: 250px;
	overflow-y: auto;
	margin: 8px 0;
}

.list-elem {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 10px;
	margin-bottom: 3px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 6px;
	transition: background 0.2s ease;
	font-size: 13px;
}

.list-elem:hover {
	background: rgba(255, 154, 31, 0.1);
	border-bottom: none;
}

.list-elem span {
	font-size: 0.75rem;
	color: var(--muted);
	opacity: 0.6;
}

/* Save Button */
.save-button {
	font-size: 1rem !important;
	padding: 12px 16px !important;
	background: linear-gradient(135deg, rgba(255, 154, 31, 0.2), rgba(255, 154, 31, 0.1)) !important;
	border-color: var(--accent) !important;
	color: var(--accent) !important;
}

.save-button:hover {
	background: linear-gradient(135deg, rgba(255, 154, 31, 0.3), rgba(255, 154, 31, 0.15)) !important;
	box-shadow: 0 0 25px rgba(255, 154, 31, 0.2) !important;
}

.user-menu {
	position: relative;
	overflow: visible;
}

.user-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: rgba(255,255,255,0.05);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text);
	cursor: pointer;
	border: none;
	outline: none;
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text);
	cursor: pointer;
}

.user-chip .user-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	overflow: hidden;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	background: #333;
}

.user-chip .user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.user-chip .user-avatar-initial {
	font-weight: 700;
	color: #fff;
}

.user-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	background: var(--panel-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	min-width: 190px;
	box-shadow: var(--shadow);
	padding: 6px;
	display: none;
	z-index: 20;
}

.user-dropdown.is-open {
	display: block;
}

.user-dropdown-item {
	display: block;
	padding: 10px 12px;
	color: var(--text);
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
}

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

.user-dropdown-item.danger {
	color: #ff8a8a;
}

.rename-input {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font-size: 23px;
	display: inline;
	width: 100%;
}

.update-button {
	margin-bottom: 8px;
}

.delete-button {
	margin-bottom: 8px;
}

select {
	height: 36px;
}

option {
	background: #111;
	font-weight: bold;
	color: white;
}

/* Editor responsive for different computer screens */
@media screen and (min-width: 1600px) {
	.inner-canvas {
		grid-template-columns: 1fr 380px;
	}
	.canvas-column {
		height: calc(100vh - 100px);
		padding: 14px;
	}
	.sidebar {
		height: calc(100vh - 100px);
		max-height: calc(100vh - 100px);
		padding: 14px;
	}
}

@media screen and (min-width: 1920px) {
	.inner-canvas {
		grid-template-columns: 1fr 420px;
		gap: 16px;
	}
	.canvas-column {
		height: calc(100vh - 95px);
		padding: 16px;
	}
	.sidebar {
		height: calc(100vh - 95px);
		max-height: calc(100vh - 95px);
		padding: 16px;
	}
}

@media screen and (max-width: 1400px) {
	.inner-canvas {
		grid-template-columns: 1fr 300px;
	}
}

@media screen and (max-width: 1200px) {
	.page-shell {
		padding: 0 16px 50px;
	}
	.header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.inner-menu {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
	}
	.inner-canvas {
		grid-template-columns: 1fr 280px;
		gap: 10px;
	}
	.canvas-column {
		height: calc(100vh - 130px);
		padding: 10px;
	}
	.sidebar {
		height: calc(100vh - 130px);
		max-height: calc(100vh - 130px);
		padding: 10px;
	}
}

@media screen and (max-width: 1024px) {
	.inner-canvas {
		grid-template-columns: 1fr 260px;
		gap: 8px;
	}
	.content {
		padding: 8px;
	}
	.canvas-column {
		padding: 10px;
	}
	.sidebar {
		padding: 10px;
	}
}

@media screen and (max-width: 980px) {
	.content {
		height: auto;
		overflow: auto;
	}
	.inner-canvas {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.canvas-column {
		height: auto;
		min-height: 400px;
	}
	.canvas-holder {
		height: 50vh;
		min-height: 300px;
	}
	.sidebar {
		width: 100%;
		height: auto;
		max-height: 400px;
	}
	.menu {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 1400px) {
	.menu {
		grid-template-columns: repeat(4, 1fr);
	}
	.menu-button {
		padding: 8px 12px;
		font-size: 13px;
	}
}

@media screen and (max-width: 720px) {
	body {
		font-size: 15px;
	}
	.header > .inner-menu > .menu-link {
		padding: 8px 10px;
	}
	.modal {
		padding: 16px;
	}
}

@media screen and (max-width: 520px) {
	.projects {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
	.project {
		min-height: 0;
	}
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, #0a0a0d 100%);
}

#hero-physics-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-shadow: 0 4px 60px rgba(255, 154, 31, 0.3);
}

.hero-title-physics {
    color: var(--text);
}

.hero-title-lnz {
    color: var(--accent);
    position: relative;
}

.hero-title-lnz::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    animation: hero-underline 2s ease-in-out infinite;
}

@keyframes hero-underline {
    0%, 100% { opacity: 0.6; transform: scaleX(0.9); }
    50% { opacity: 1; transform: scaleX(1); }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--muted);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0f0f12;
    border: none;
    box-shadow: 0 8px 32px rgba(255, 154, 31, 0.3);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 154, 31, 0.4);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 154, 31, 0.3);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    opacity: 0.7;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================================
   SEARCH SECTION
   ================================================ */
.search-section {
    padding: 48px 24px 32px;
    max-width: 700px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-input {
    padding: 14px 16px 14px 48px;
    font-size: 16px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    width: 100%;
    margin-bottom: 0;
}

.search-input:focus {
    border-color: rgba(255, 154, 31, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 154, 31, 0.15);
}

.search-btn {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0f0f12;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 154, 31, 0.3);
}

.search-results-info {
    margin-top: 16px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

/* ================================================
   PROJECTS SECTION
   ================================================ */
.projects-section {
    padding: 32px 24px 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 32px;
    color: var(--text);
}

.project-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 154, 31, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-preview {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border);
}

.project-info {
    padding: 16px;
}

.project-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--panel-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.author-name {
    color: var(--muted);
    font-size: 14px;
}

.project-date {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    opacity: 0.7;
}

.project-actions {
    padding: 0 16px 16px;
    display: flex;
    justify-content: flex-end;
}

/* ================================================
   LIKES
   ================================================ */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.like-btn:hover {
    background: rgba(255, 95, 95, 0.1);
    border-color: rgba(255, 95, 95, 0.3);
    color: #ff5f5f;
}

.like-btn.liked {
    background: rgba(255, 95, 95, 0.15);
    border-color: rgba(255, 95, 95, 0.4);
    color: #ff5f5f;
}

.like-btn.liked .like-icon {
    animation: like-pop 0.3s ease;
}

@keyframes like-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.likes-count {
    font-variant-numeric: tabular-nums;
}

.likes-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.privacy-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.privacy-badge.public {
    background: rgba(144, 238, 144, 0.15);
    color: #90EE90;
}

.privacy-badge.private {
    background: rgba(255, 95, 95, 0.15);
    color: #ff8a8a;
}

/* ================================================
   LANGUAGE SWITCHER (Dropdown)
   ================================================ */
.lang-form {
    display: flex;
    align-items: center;
}

.lang-select {
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239da2ac' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.2s ease;
    margin-bottom: 0;
    width: auto;
    min-width: 70px;
}

.lang-select:hover,
.lang-select:focus {
    border-color: rgba(255, 154, 31, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.lang-select option {
    background: var(--panel);
    color: var(--text);
    padding: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================
   MINI FOOTER (like Wyverno)
   ================================================ */
.mini-footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.mini-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.mini-footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.mini-footer-support {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.mini-footer-links a:hover {
    color: var(--accent);
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--muted);
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 16px;
}

.empty-state-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.empty-state-link:hover {
    text-decoration: underline;
}

/* ================================================
   ABOUT PAGE
   ================================================ */
.about-page {
    overflow-x: hidden;
}

.about-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 24px;
}

.about-scene {
    position: relative;
    perspective: 1200px;
    max-width: 900px;
    width: 100%;
}

.about-glass {
    background: rgba(26, 27, 32, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 48px;
    transform-style: preserve-3d;
    transform: rotateX(4deg) rotateY(-2deg);
    transition: transform 0.3s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.about-glass:hover {
    transform: rotateX(2deg) rotateY(0deg);
}

.about-amb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
}

.about-amb-a {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: -120px;
    left: -100px;
    animation: amb-float 10s ease-in-out infinite;
}

.about-amb-b {
    width: 280px;
    height: 280px;
    background: var(--accent-2);
    bottom: -100px;
    right: -80px;
    animation: amb-float 10s ease-in-out infinite reverse;
}

@keyframes amb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.05); }
}

.about-lab-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-lab-sub {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--muted);
    text-align: center;
    margin-bottom: 32px;
}

.about-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    opacity: 0.9;
}

.about-description p {
    margin-bottom: 20px;
}

.about-description strong {
    color: var(--accent);
}

/* About Showcase Sections */
.about-showcase {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    position: relative;
}

.about-showcase-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.about-showcase-title .accent {
    color: var(--accent);
}

.about-showcase-text {
    max-width: 600px;
    text-align: center;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.about-physics-demo {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-top: 40px;
    overflow: hidden;
}

.about-physics-canvas {
    width: 100%;
    height: 100%;
}

/* About Features */
.about-features {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-features-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 48px;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.about-feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.2s ease;
}

.about-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 154, 31, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 154, 31, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.about-feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-feature-text {
    color: var(--muted);
    line-height: 1.6;
}

/* Scroll Animations */
[data-animate-scroll] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   ABOUT PAGE - ENHANCED
   ================================================ */

/* Hero Particles */
.about-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.about-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: about-particle-float 8s ease-in-out infinite;
}

.about-particle.p1 { left: 10%; top: 20%; animation-delay: 0s; }
.about-particle.p2 { left: 20%; top: 60%; animation-delay: 1s; }
.about-particle.p3 { left: 80%; top: 30%; animation-delay: 2s; }
.about-particle.p4 { left: 70%; top: 70%; animation-delay: 3s; }
.about-particle.p5 { left: 40%; top: 80%; animation-delay: 4s; }
.about-particle.p6 { left: 90%; top: 50%; animation-delay: 5s; }

@keyframes about-particle-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(10px, -20px) scale(1.2); opacity: 0.8; }
    50% { transform: translate(-5px, -40px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(15px, -20px) scale(1.1); opacity: 0.7; }
}

.about-amb-c {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 100, 100, 0.3) 0%, transparent 70%);
    top: 60%;
    left: 50%;
    animation: amb-float 10s ease-in-out infinite 1.5s;
}

.about-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.about-hero-scroll {
    margin-top: 32px;
    animation: hero-scroll-bounce 2s ease-in-out infinite;
    opacity: 0.6;
}

.about-hero-scroll svg {
    stroke: var(--accent);
}

@keyframes hero-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Showcase Headlines */
.showcase-headline {
    text-align: center;
    margin-bottom: 60px;
}

.headline-big {
    display: block;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--text) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: headline-shimmer 4s ease-in-out infinite;
}

.headline-sub {
    display: block;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--muted);
    margin-top: 8px;
}

@keyframes headline-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Showcase Content */
.about-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-showcase-reverse {
    direction: rtl;
}

.about-showcase-reverse > * {
    direction: ltr;
}

.about-showcase-alt {
    background: rgba(255, 255, 255, 0.02);
}

.about-text-block {
    padding: 20px 0;
}

.about-text-block p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text-block p:last-child {
    margin-bottom: 0;
}

.about-lead {
    font-size: 1.3rem !important;
    color: var(--text) !important;
}

.about-text-block strong {
    color: var(--accent);
}

.about-link {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.about-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Demo Hint */
.about-demo-hint {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--muted);
    opacity: 0.7;
}

/* Physics Demo Large */
.about-physics-demo-large {
    height: 400px;
}

/* Engine Block */
.about-engine-block {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-engine-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.about-engine-info > p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-engine-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.about-engine-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.about-engine-icon {
    font-size: 1.5rem;
}

/* Objects Grid */
.about-objects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.about-object-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-object-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.about-object-icon {
    margin-bottom: 20px;
}

.about-object-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text);
}

.about-object-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Materials Block */
.about-materials-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.about-materials-block h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.about-materials-block > p {
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.about-materials-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-material {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-material-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.about-material-desc {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Creative Block */
.about-creative-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-creative-block p {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-creative-block strong {
    color: var(--accent);
}

/* CTA Section */
.about-cta {
    position: relative;
    padding: 100px 24px;
    text-align: center;
    overflow: hidden;
}

.about-cta-amb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.about-cta-amb-a {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 154, 31, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
}

.about-cta-amb-b {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.2) 0%, transparent 70%);
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
}

.about-cta-content {
    position: relative;
    z-index: 1;
}

.about-cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.about-cta-text {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   RESPONSIVE UPDATES
   ================================================ */
@media screen and (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .about-glass {
        padding: 40px 24px;
        transform: none;
    }

    .about-glass:hover {
        transform: none;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 8px;
    }

    .about-showcase-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-showcase-reverse {
        direction: ltr;
    }

    .about-engine-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-objects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .about-engine-features {
        grid-template-columns: 1fr;
    }

    .about-materials-list {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-headline {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 480px) {
    .hero-scroll-hint {
        display: none;
    }

    .project-card {
        margin-bottom: 16px;
    }

    .about-objects-grid {
        grid-template-columns: 1fr;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
    }

    .about-object-card {
        padding: 24px 16px;
    }
}
