@import url('https://fonts.googleapis.com/css2?family=Comic+Relief:wght@400;700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Jacquard+12&family=Pixelify+Sans:wght@400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik+Glitch&family=Workbench&display=swap');

/* Root */
:root {
	--light: #ffffff;
	--dark: #0a0a0a;
	--primary: #d87eff;
	--secondary: #38bdf8;
}

body {
	font-family: 'Roboto', sans-serif;
	padding: 0;
	margin: 0;
	background-image: url('/assets/back.png');
	background-repeat: repeat;
	background-size: 1440px;
	color: var(--light);
}

header {
	width: 100vw;
}

a {
	text-decoration: none;
	color: var(--light);
}

*>* {
	box-sizing: border-box;
}

/* Global */
.text-light {
	color: var(--light);
}

.text-secondary {
	color: var(--secondary);
}

.text-dark {
	color: var(--dark);
}

.text-primary {
	color: var(--primary);
}

.bg-light {
	background-color: var(--dark);
}

.container {
	max-width: 1200px;
	padding: 0 15px;
	margin: auto;
}

.articles-snippet {
	padding: 15px 20px;
	border-radius: 8px;
	border-style: hidden solid hidden solid;
}

.blog-snippet {
	background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), rgba(56, 189, 248, 0.1));
	border-color: rgba(85, 101, 247, 0.5);
}

.portfolio-snippet {
	background: linear-gradient(90deg, rgba(248, 56, 82, 0.1), rgba(168, 85, 247, 0.1));
	border-color: rgba(248, 56, 56, 0.5);
}

.italic {
	font-style: italic;
}

.bold {
	font-weight: bold;
}

.grid .grid-item,
.btn,
.navbar,
.text-body,
#footer {
	border-radius: 12px;
	border: 2px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
	background: rgba(20, 20, 20, 0.9);
}

.text-title,
.nav-brand {
	font-family: 'DM Sans', monospace;
	letter-spacing: 1px;
}

.text-title {
	color: var(--light);
}

.secondary-title {
	font-family: 'Poppins', sans-serif;
	color: var(--secondary);
}

.page-title {
	font-family: 'DM Sans' sans-serif;
	font-weight: 700;
	font-size: 48px;
}

.text-body {
	padding: 12px 16px;
	margin: 12px 0;
	font-size: 20px;
}

.display-1 {
	font-size: 22px;
}

.display-2 {
	font-size: 16px;
}

.display-3 {
	font-size: 14px;
}

.display-4 {
	font-size: 32px;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.img-fluid {
	max-width: 100%;
	min-width: 100%;
}

.img-clean {
	max-width: 100%;
	max-height: 540px;
}

.img-clickable {
	cursor: pointer;
}

#yt-fullscreen,
#vid-fullscreen,
#img-fullscreen {
	width: 80%;
	height: 80%;
	object-fit: contain;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: block;
}

#loading-screen,
#img-fullview {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	text-align: center;
	z-index: 10;
}

#img-fullview {
	display: none;
}

#loading-screen {
	display: none;
	justify-content: center;
	align-items: center;
}

#fullview-close {
	position: fixed;
	top: 20px;
	right: 20px;
	font-size: 2rem;
	color: var(--light);
	cursor: pointer;
}

.section-subtitle {
	font-family: 'Poppins', sans-serif;
	color: var(--light);
}

/* Buttons */
.btn {
	width: 100%;
	padding: 15px 20px;
	border-radius: 8px;
	border: 2px solid var(--primary);
	background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.2));
	color: var(--light);
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
	transition: background 0.3s, transform 0.2s;
	cursor: pointer;
}

.btn:hover {
	background: linear-gradient(90deg, rgba(168, 85, 247, 0.35), rgba(56, 189, 248, 0.35));
	transform: scale(1.02);
}

/* Header */
.navbar {
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	border-radius: 10px;
	background: rgba(20, 20, 20, 0.9);
	border: 2px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.navbar-links {
	display: flex;
	flex-direction: row;
}

.navbar-pages {
	font-size: 20px;
	font-family: 'Poppins', sans-serif;
	transform: translateX(60px);
}

.brand-font1 {
	font-family: 'DM Sans', monospace;
}

.brand-font2 {
	font-family: 'Pixelify Sans', monospace;
}

.brand-font3 {
	font-family: 'Rubik Glitch', monospace;
}

.brand-font4 {
	font-family: 'Comic Relief', monospace;
}

.brand-font5 {
	font-family: 'Jacquard 12', monospace;
}

.brand-font6 {
	font-family: 'Workbench', monospace;
}

.nav-brand span {
	display: inline-block;
	transition: all 0.3s ease;
}

.nav-brand {
	width: 240px;
	text-align: center;
	font-weight: bold;
	font-size: 32px;
	color: var(--light);
	text-shadow: 0 0 1px var(--secondary);
	min-height: 60px;
	margin-top: 20px;
}

.nav-brand:hover {
	text-shadow: 0 0 6px var(--secondary);
	transition: text-shadow ease-out 0.1s;
}

.wave-text .brand-char {
	animation: wave-animation 1.5s infinite;
	animation-delay: calc(0.1s * var(--i));
}

@keyframes wave-animation {

	0%,
	100% {
		transform: translateX(-2px);
	}

	50% {
		transform: translateY(-5px);		
	}
}

.collapse {
	align-self: center;
}

.nav-link {
	margin: 10px;
	color: var(--light);
	border-radius: 6px;
	padding: 2px 12px;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-link:hover {
	color: var(--secondary);
	transform: scale(1.04);
	text-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.nav-social {
	font-size: 24px;
}

.page-link:hover {
	text-shadow: 0 0 4px var(--primary);
	transition: text-shadow ease-out 0.1s;

}

.toggle-button {
	font-size: 21px;
	background-color: transparent;
	border: none;
	position: absolute;
	right: 0;
	margin: 8px 10px;
	display: none;
	color: var(--light);
}

/* Main Content */
#site-main {
	margin-top: 2em;
}

.main-title {
	position: relative;
	transform: translateY(20px);
	min-height: 210px;
	z-index: 5;
}

.main-title-spacer {
	height: 0px;
}

@supports (animation-timeline: scroll()) {

	.main-title-spacer {
		height: 210px;
	}

	.main-title {
		left: calc(50% - 600px);
		position: fixed;
		overscroll-behavior-inline: none;
		width: 1200px;
		animation-name: title-scroll;
		animation-duration: 1ms;
		animation-direction: alternate;
		animation-timeline: scroll(block nearest);
	}

	@media (max-width: 992px) {
		.main-title {
			animation-name: title-scroll-zoomed;
		}
	}

	@media (min-width: 2688px) {
		.main-title {
			animation-name: title-scroll-wide;
		}
	}

	@media (min-width: 4000px) {
		.main-title {
			animation-name: title-scroll-super-wider;
		}
	}

	.brand-side {
		animation-name: title-seperate;
		animation-duration: 1ms;
		animation-direction: alternate;
		animation-timeline: scroll(block nearest);
	}

	@keyframes title-scroll-zoomed {
		0% {
			opacity: 1;
			transform: translateY(0px);
		}
	
		100% {
			opacity: 0;
			transform: translateY(-300em);
			scale: 0.3;
	
		}
	}

	@keyframes title-scroll {
		0% {
			opacity: 1;
			transform: translateY(0px);
		}

		100% {
			opacity: 0;
			transform: translateY(-200em);
			scale: 0.3;

		}
	}

	@keyframes title-scroll-wide {
		0% {
			opacity: 1;
			transform: translateY(0px);
		}

		100% {
			opacity: 0;
			transform: translateY(-110em);
			scale: 0.3;

		}
	}

	@keyframes title-scroll-super-wider {
		0% {
			opacity: 1;
			transform: translateY(0px);
		}

		100% {
			opacity: 0;
			transform: translateY(-60em);
			scale: 0.3;

		}
	}

	@keyframes title-seperate {
		4% {
			transform: translateX(0px);
		}

		40% {
			transform: translateX(calc(4em * var(--side)));
		}
	}
}

.posts {
	margin-bottom: 1em;
	margin-top: 1em;
}

.grid {
	margin: 0 auto;
}

.grid .grid-item {
	width: calc(33.33% - 20px);
	margin-bottom: 2em;
	border-radius: 8px;
	transition: transform 0.2s;
}

.grid .grid-item:hover {
	transform: scale(1.04);
	z-index: 2;
	box-shadow: 0 0 12px rgba(168, 85, 247, 0.4), 0 0 12px rgba(56, 189, 248, 0.3);
}

article {
	padding: 8px;
}

#latest-video {
	margin-top: 8em; 
	margin-bottom: 2em; 
}

.form-btn {
	width: 100%;
	max-width: 392px;
	padding: 5px 10px;
	border-radius: 8px;
	border: 2px solid var(--primary);
	background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.2));
	color: var(--light);
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
	transition: background 0.3s, transform 0.2s;
	cursor: pointer;
	margin-bottom: 5px;
}

form>input {
	background: linear-gradient(90deg, rgba(2, 42, 102, 0.2), rgba(168, 85, 247, 0.2));
	padding: 3px 4px;
	border-radius: 4px;
	border: 1px dotted var(--primary);
	color: var(--light);
}

#nm-header img {
	image-rendering: pixelated;
	-webkit-filter: drop-shadow(0px 0px 64px rgba(208, 19, 28, 0.5));
	max-width: 80%;
	transition: all 0.1s ease-out
}

#nm-header>.subtitle {
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	margin-top: 20px;
	z-index: 1;
	font-size: 32px;
	text-shadow: 2px 2px 4px #000000;
}

#nm-header>.ko-fi-btn {
	margin-bottom: 30px;
	width: 60%;
	scale: 1.3;
	margin-left: 20%;
}

#nm-header img:hover {
	transform: scale(1.1, 1.1);
	-webkit-filter: drop-shadow(0px 0px 8px rgb(208, 19, 28, 1));
	transition: all 0.1s ease-out
}

/* Footer */
#footer {
	padding-top: 1em;
	background: rgba(20, 20, 20, 0.9);
	border: 2px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
	color: var(--light);
}

#footer .copyrights {
	padding: 10px 0;
	margin: 20px;
	border-top: 2px dashed var(--primary);
	text-align: center;
}

/* Media queries */
@media (max-width: 1280px) {
	.nav-link {
		margin: 0px 2px;
	}

	.navbar-pages {
		transform: translateX(20px);
		font-size: 18px;
	}
}

@media (max-width: 992px) {
	.navbar {
		flex-direction: column;
	}

	.navbar-pages {
		font-size: 20px;
		font-family: 'Poppins', sans-serif;
		transform: translateX(-20px);
	}

	.navbar-links {
		transform: translateX(-20px);
	}

	.nav-link {
		margin: 0px 12px;
	}

	.grid .grid-item {
		width: calc(50% - 20px);
	}

	#nm-header>.subtitle {
		margin-top: 15px;
		font-size: 24px;
	}
}

@media (max-width: 574px) {
	.main-title-spacer {
		height: 0px;
	}

	.toggle-button {
		display: initial;
		border-radius: 6px;
		border: 2px solid rgba(255, 255, 255, 0.1);
		background: rgba(30, 30, 30, 0.9);
	}

	.collapse {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.2s ease-in;
	}

	.collapse .nav-link {
		display: block;
		text-align: center;
	}

	.nav-link {
		margin: 10px 0;
	}

	.collapse-toggle {
		max-height: 500px;
		transition: max-height 0.3s ease-in;
	}

	.grid .grid-item {
		width: calc(100% - 20px);
	}

	.navbar-pages {
		font-size: 20px;
		font-family: 'Poppins', sans-serif;
		transform: translateX(-20px);
	}

	.nav-brand {
		font-size: 28px;
	}

	.navbar {
		padding: 0px;
	}

	.main-title {
		display: none;
	}

	#nm-header img {
		max-width: 100%;
	}

	#nm-header>.subtitle {
		font-size: 16px;
		margin-top: 8px;
	}

	#nm-header>.ko-fi-btn {
		margin-bottom: 30px;
		width: 80%;
		scale: 1;
		margin-left: 11%;
	}
}