/**
 * Cosmic Void - Minimalist & Mysterious
 * Resets
 */

* {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

::-moz-selection {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

::selection {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
}

:focus {
	outline: 0;
}

customhtml > * {
	position: relative;
    z-index: 10;
}

/**
 * Cosmic Animations
 */

@keyframes sunlightGlint {
	0%, 100% { 
		opacity: 0.8; 
		transform: translate(-50%, -50%) scale(1);
		box-shadow: 
			0 0 10px rgba(255, 255, 255, 0.8),
			0 0 20px rgba(255, 255, 255, 0.4),
			0 0 30px rgba(255, 255, 255, 0.2);
	}
	50% { 
		opacity: 1; 
		transform: translate(-50%, -50%) scale(1.2);
		box-shadow: 
			0 0 15px rgba(255, 255, 255, 1),
			0 0 25px rgba(255, 255, 255, 0.6),
			0 0 35px rgba(255, 255, 255, 0.3);
	}
}

@keyframes cosmicFloat {
	0%, 100% { transform: translateY(0px) scale(1); }
	50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes voidPulse {
	0%, 100% { opacity: 0.1; }
	50% { opacity: 0.3; }
}

@keyframes starTwinkle {
	0%, 100% { opacity: 0.2; transform: scale(1); }
	50% { opacity: 0.8; transform: scale(1.5); }
}

@keyframes fadeInUp {
	0% { 
		opacity: 0; 
		transform: translateY(30px);
	}
	100% { 
		opacity: 1; 
		transform: translateY(0);
	}
}

@keyframes cosmicBreath {
	0%, 100% { transform: scale(1); opacity: 0.05; }
	50% { transform: scale(1.1); opacity: 0.15; }
}

/**
 * Global
 */

body,
html {
	min-height: 100vh;
	margin: 0px;
	padding: 0px;
	overflow-x: hidden;
}

html {
	position: relative;
}

body {
	background: #000;
	color: #fff;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	animation: fadeInUp 2s ease-out;
	cursor: none;
}

/* Custom sunlight glint cursor */
body::after {
	content: '';
	position: fixed;
	width: 20px;
	height: 20px;
	background: 
		radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 30%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	mix-blend-mode: screen;
	transform: translate(-50%, -50%);
	box-shadow: 
		0 0 10px rgba(255, 255, 255, 0.8),
		0 0 20px rgba(255, 255, 255, 0.4),
		0 0 30px rgba(255, 255, 255, 0.2);
	animation: sunlightGlint 2s ease-in-out infinite alternate;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: 
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
	animation: cosmicBreath 8s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}

/* Starfield background */
body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
		radial-gradient(2px 2px at 100px 150px, rgba(255, 255, 255, 0.2), transparent),
		radial-gradient(1px 1px at 200px 80px, rgba(255, 255, 255, 0.4), transparent),
		radial-gradient(1px 1px at 300px 200px, rgba(255, 255, 255, 0.15), transparent),
		radial-gradient(2px 2px at 400px 50px, rgba(255, 255, 255, 0.25), transparent);
	background-repeat: repeat;
	background-size: 500px 300px;
	animation: starTwinkle 4s ease-in-out infinite alternate;
	pointer-events: none;
	z-index: 1;
}

a:active {
	opacity: 0.6;
	transform: scale(0.98);
	transition: all 0.1s ease;
}

/**
 * Backdrop
 */

#backdrop {
	position: fixed;
	right: 0;
	top: 0;
	bottom: 0;
	max-width: 100%;
	z-index: 2;
	transition: all 1s ease;
	filter: contrast(1.2) brightness(0.8);
}

#backdrop::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1;
}

/**
 * Container
 */

main {
	background: transparent;
	clear: both;
	overflow: hidden;
	position: absolute;
	max-width: 100%;
	width: 100%;
	z-index: 5;
	animation: cosmicFloat 6s ease-in-out infinite;

	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;

	-webkit-align-items: center;
	-moz-align-items: center;
	-ms-align-items: center;
	align-items: center;
}

main > div {
	-moz-flex: 1 0 auto;
	-webkit-flex: 1 0 auto;
	flex: 1 0 auto;
	width: 100%;
}

.subpage_overlay {
	display: block;
	pointer-events: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	background: 
		radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
	animation: voidPulse 10s ease-in-out infinite;
}

body.homepage .subpage_overlay {
	display: none;
}

/**
 * Content
 */

i, em {
	font-style: italic;
	opacity: 0.9;
}

b, strong {
	font-weight: 600;
	letter-spacing: 0.02em;
}

ul, ol {
	margin: 0;
	padding: 0 0 0 1em;
}

sup {
	top: -0.4em;
	vertical-align: baseline;
	position: relative;
}

sub {
	top: 0.3em;
	vertical-align: baseline;
	position: relative;
}

.slideshow-nav { 
	margin-bottom: 0.5em; 
}

img {
	border: 0;
	padding: 0;
	filter: grayscale(100%) contrast(1.1);
	transition: all 0.3s ease;
}

img:hover {
	filter: grayscale(80%) contrast(1.2);
	transform: scale(1.02);
}

blockquote {
	margin: 0;
	padding: 0 0 0 2em;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	font-style: italic;
	opacity: 0.8;
}

hr {
	background: rgba(255, 255, 255, 0.1);
	border: 0;
	height: 1px;
	display: block;
	margin: 2em 0;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/*
 * Projects
 */

.bodycopy {
	display: none;
}

.container {
	min-height: 100%;
}

.content img {
	float: none;
	margin-top: 1em;
	margin-bottom: 1em;
}

/*
 * Other
 */

.clear:after {
	content: "";
	display: table;
	clear: both;
}

.loading[data-loading] {
	display: none;
	position: fixed;
	top: 8px; 
	left: 8px;
	z-index: 100;
}

#backstage_icon {
	position: fixed;
}

/**
 * Editor styles - Cosmic Void Theme
 */

[data-css-presets="true"] main {
	background-color: transparent;
	text-align: left;
	min-height: 100vh;
	-webkit-align-items: center;
	align-items: center;
	left: 0;
	margin-left: auto;
	margin-right: auto;
	right: 0;
}

[data-css-presets="true"] .content_padded {
	padding: 2rem;
}

[data-css-presets="true"] .content_width {
	width: 90rem;
	max-width: 90vw;
}

[data-css-presets="true"] #backdrop {
	width: 100%;
}

[data-predefined-style="true"] main {
	font-size: 1.8rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.9);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-style: normal;
	line-height: 1.6;
	letter-spacing: 0.01em;
}

[data-predefined-style="true"] main a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.95);
    padding-bottom: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

[data-predefined-style="true"] main a:hover {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.8);
	transform: translateY(-1px);
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

main a.image-link,
main a.icon-link,
main a.image-link:hover,
main a.icon-link:hover { 
	border-bottom: 0;
	padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-style: normal;
	font-weight: 100;
	padding: 0;
	margin: 0;
	font-size: 4.5rem;
	line-height: 1.1;
	color: rgba(255, 255, 255, 0.95);
	text-rendering: optimizeLegibility;
	letter-spacing: -0.02em;
	animation: fadeInUp 1.5s ease-out 0.5s both;
}

[data-predefined-style="true"] h1 a {
	color: rgba(255, 255, 255, 0.98);
	border-bottom: none;
	transition: all 0.4s ease;
}

[data-predefined-style="true"] h1 a:hover {
	color: #fff;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
	transform: none;
}

[data-predefined-style="true"] h2 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.4rem;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
	letter-spacing: 0.02em;
	animation: fadeInUp 1.5s ease-out 0.8s both;
}

[data-predefined-style="true"] h2 a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	color: rgba(255, 255, 255, 0.8);
    padding-bottom: 0.15rem;
    transition: all 0.3s ease;
}

[data-predefined-style="true"] h2 a:hover {
	color: rgba(255, 255, 255, 0.95);
	border-bottom-color: rgba(255, 255, 255, 0.7);
}

[data-predefined-style="true"] small {
    display: inline-block;
	color: rgba(255, 255, 255, 0.6);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-style: normal;
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.6;
	letter-spacing: 0.01em;
	animation: fadeInUp 1.5s ease-out 1.1s both;
}

[data-predefined-style="true"] small a {
	color: rgba(255, 255, 255, 0.8);
	border-bottom-width: 1px;
	transition: all 0.3s ease;
}

[data-predefined-style="true"] small a:hover {
	color: rgba(255, 255, 255, 0.95);
}

/**
 * Interactive Elements
 */

main * {
	transition: all 0.3s ease;
}

main *:hover {
	cursor: pointer;
}

/* Add JavaScript for cursor tracking */
/* Note: Add this JavaScript to your HTML:

document.addEventListener('mousemove', (e) => {
	const cursor = document.querySelector('body::after');
	if (cursor) {
		document.documentElement.style.setProperty('--cursor-x', e.clientX + 'px');
		document.documentElement.style.setProperty('--cursor-y', e.clientY + 'px');
	}
}

/* Custom sunlight glint cursor */
.cursor-glint {
	position: fixed;
	width: 20px;
	height: 20px;
	background: 
		radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 30%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	mix-blend-mode: screen;
	transform: translate(-50%, -50%);
	left: var(--cursor-x);
	top: var(--cursor-y);
	box-shadow: 
		0 0 10px rgba(255, 255, 255, 0.8),
		0 0 20px rgba(255, 255, 255, 0.4),
		0 0 30px rgba(255, 255, 255, 0.2);
	animation: sunlightGlint 2s ease-in-out infinite alternate;
	transition: left 0.1s ease-out, top 0.1s ease-out;
}

main * {
	transition: all 0.3s ease;
}

main *:hover {
	cursor: pointer;
}

/**
 * Breakpoints
 */

[data-css-presets="true"].mobile #backdrop,
[data-css-presets="true"].mobile #backdrop,
.mobile #backdrop,
.mobile #backdrop {
	position: relative;
	height: 60vh;
	min-width: 100%;
	max-width: 100%;
	width: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: auto;
}

.mobile main,
[data-css-presets="true"].mobile main {
	position: relative;
	min-height: 10px;
	max-width: 100%;
	width: 100%;
	animation: none;
}

.mobile main.content_width,
[data-css-presets="true"].mobile main.content_width {
	max-width: 100%;
	width: 100%;
}

[data-css-presets="true"] .subpage_overlay {
	background: 
		radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
}

/**
 * Cosmic Void Enhancements
 */

body:hover::before {
	animation-duration: 6s;
}

main:hover {
	animation-duration: 4s;
}

/* Subtle glow effects for interactive elements */
[data-predefined-style="true"] main a:focus,
[data-predefined-style="true"] h1 a:focus,
[data-predefined-style="true"] h2 a:focus {
	outline: none;
	box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}