@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alatsi&family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit: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&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Javanese:wght@400..700&display=swap');

:root {
	--bg-color: #050505;
	--text-white: #ffffff;
	--accent-red: #9C0022;
	--nav-gray: #aaaaaa;
	--line-color: #ffffff;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: var(--bg-color);
	color: var(--text-white);
	font-family: 'Roboto', sans-serif;
	overflow-x: hidden;
	height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	text-decoration: none;
	color: inherit;
	transition: 0.3s;
}

ul {
	list-style: none;
}

header {
	padding: 34px 100px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;
	background: rgba(5, 5, 5, 0.9);
}

.nav-left {
	display: flex;
	gap: 30px;
}

.nav-link {
	font-family: "Oswald", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 40px;
	letter-spacing: 1px;
	cursor: pointer;
	color: var(--text-white);
}

.nav-link:hover,
.nav-link.active {
	color: var(--accent-red);
}

.nav-center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 16px;
	/* space between X and R */
}


.brand-name {
	font-family: 'Alatsi', sans-serif;
	font-size: 45px;
	font-weight: 400;
	letter-spacing: 1px;
	background: linear-gradient(180deg, #EE0336 0%, #9C0022 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.nav-icon {
	width: 45px;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.nav-icon:hover {
	transform: scale(1.1);
}

main {
	flex-grow: 1;
	position: relative;
	margin-top: 120px;
	height: calc(100vh - 100px);
}

.page {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease;
	padding: 0 50px 20px 50px;
	overflow: hidden;
}

.page.active {
	opacity: 1;
	visibility: visible;
	z-index: 10;
}


.home-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.divider-vertical {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--line-color);
	transform: translateX(-50%);
}

.divider-horizontal {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--line-color);
	transform: translateY(-50%);
}

.crosshair {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 6rem;
	color: white;
	z-index: 5;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


.titles-section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 20px 60px 50px 20px;
	min-width: 0;
	overflow: hidden;
}

.title-row {
	font-size: 3.5rem;
	margin-bottom: 10px;
	line-height: 1.1;
}

.red-text {
	background: linear-gradient(180deg, #EE0336 0%, #9C0022 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: inline-block;
	min-width: 120px;
	text-align: left;
	transition: font-size 0.2s ease;
	will-change: font-family;
}

.font-3d {
	font-family: 'Playfair Display', serif;
}

.font-ugc {
	font-family: 'Dancing Script', cursive;
	font-size: 4rem;
}

.font-roblox {
	font-family: 'VT323', monospace;
	letter-spacing: 2px;
	text-transform: uppercase;
}


.projects-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-content: center;
	gap: 30px;
	padding: 20px 20px 50px 60px;
	min-width: 0;
	overflow: hidden;
}

.project-card {
	height: auto;
	min-height: 10px;
	width: 100%;
	background: #0B0B0B;
	border-radius: 35px;
	display: flex;
	align-items: center;
	padding: 16px;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease, background-color 0.4s ease;
}

.project-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 250px;
	background: linear-gradient(to right, var(--accent-red), transparent);
}

.project-card:hover {
	background: var(--accent-red);
	transform: scale(1.03);
}

.card-img {
	width: 130px;
	height: 130px;
	min-width: 80px;
	background-color: #333;
	border-radius: 20px;
	margin-right: 15px;
	object-fit: cover;
	z-index: 1;
}

.card-text {
	z-index: 1;
}

.card-text h4 {
	font-family: "Afacad", sans-serif;
	font-size: 1.4rem;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 3px;
}

.card-text p {
	font-size: 1.2rem;
	color: #cacaca;
	font-style: italic;
}


.about-section {
	padding: 20px 60px 20px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.about-section h2 {
	font-family: "Advent Pro", sans-serif;
	font-size: clamp(2rem, 5vh, 3.4rem);
	margin-bottom: 2vh;
	letter-spacing: 1px;
}

.about-section p {
	font-family: "Afacad", sans-serif;
	color: #ccc;
	font-size: clamp(1rem, 2vh, 1.8rem);
	line-height: 1.3;
}


.gallery-section {
	display: flex;
	gap: 20px;
	padding: 50px 20px 20px 60px;
	overflow: hidden;
}

.gallery-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 15px;

}

.gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 40px;
	filter: grayscale(20%);
	transition: 0.3s;
}

.gallery-img:hover {
	filter: grayscale(0%);
	transform: scale(1.02);
}


#portfolio {
	overflow-y: auto;
}

.portfolio-container {
	width: 90%;
	max-width: 1900px;
	margin: 0 auto;
	column-count: 3;
	column-gap: 20px;
	padding: 40px 0;
}

.pf-card {
	break-inside: avoid;
	margin-bottom: 20px;
	border-radius: 20px;
	overflow: hidden;
	transition: transform 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pf-card img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
	transition: transform 0.3s ease;
}

.pf-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
}


.contact-content {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-left: 50px;
	position: relative;
}

.contact-title {
	font-size: 6.5rem;
	font-weight: bold;
	margin-bottom: 40px;
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-item {
	font-family: "Oswald", sans-serif;
	font-size: 2.5rem;
}

.character-img {
	position: absolute;
	bottom: 0;
	right: 14vh;
	height: 54vh;
	width: auto;
	pointer-events: none;
}



@media (max-width: 900px) {
	header {
		padding: 15px 30px;
		flex-wrap: wrap;
		justify-content: center;
		gap: 15px;
	}

	.nav-left {
		gap: 15px;
	}

	.nav-link {
		font-size: 20px;
	}

	.brand-name {
		font-size: 28px;
		order: -1;
		width: 100%;
		text-align: center;
	}

	.nav-icon {
		width: 30px;
	}

	main {
		margin-top: 130px;
		height: calc(100vh - 130px);
	}

	.page {
		padding: 20px;
		overflow-y: auto;

	}

	.home-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		display: block;

		overflow-y: visible;
	}

	.divider-vertical,
	.divider-horizontal,
	.crosshair {
		display: none;
	}

	.titles-section,
	.projects-section,
	.about-section,
	.gallery-section {
		padding: 30px 0;
		height: auto;
	}

	.title-row {
		font-size: 2.2rem;
		text-align: center;
		width: 100%;
	}

	.titles-section {
		align-items: center;
	}

	.font-ugc {
		font-size: 2.5rem;
	}

	.projects-section {
		grid-template-columns: 1fr;
	}

	.gallery-section {
		flex-direction: column;
	}

	.gallery-img {
		height: 300px;
	}

	.contact-title {
		font-size: 3.5rem;
		text-align: center;
		margin-bottom: 20px;
	}

	.contact-content {
		padding-left: 0;
		align-items: center;
	}

	.contact-item {
		font-size: 1.2rem;
		text-align: center;
	}

	.character-img {
		position: relative;
		right: auto;
		margin-top: 30px;
		height: 250px;
		opacity: 0.8;
	}

	.portfolio-container {
		column-count: 2;
	}
}

@media (max-width: 600px) {
	header {
		padding: 10px;
	}

	.nav-link {
		font-size: 18px;
	}

	.brand-name {
		font-size: 24px;
	}

	.portfolio-container {
		column-count: 1;
	}

	.project-card::before {
		width: 100px;
	}
}


.page::-webkit-scrollbar,
#portfolio::-webkit-scrollbar {
	width: 6px;
}

.page::-webkit-scrollbar-track,
#portfolio::-webkit-scrollbar-track {
	background: #050505;
}

.page::-webkit-scrollbar-thumb,
#portfolio::-webkit-scrollbar-thumb {
	background: #9C0022;
	border-radius: 4px;
}

.home-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	height: 100%;
	width: 100%;
	position: relative;
	overflow: hidden;

}


.titles-section,
.projects-section,
.about-section,
.gallery-section {
	width: 100%;
	height: 100%;
	overflow: hidden;

	min-width: 0;

	min-height: 0;

}


.projects-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;

	gap: clamp(10px, 2vh, 30px);

	padding: clamp(10px, 3vh, 40px);

	align-items: center;
	justify-items: center;
}

.project-card {
	width: 100%;
	height: 100%;

	background: #0B0B0B;
	border-radius: clamp(15px, 2vw, 35px);

	display: flex;
	align-items: center;
	padding: clamp(8px, 1.5vh, 16px);

	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease, background-color 0.4s ease;
}

.card-img {

	width: clamp(80px, 15vh, 190px);
	height: clamp(80px, 15vh, 190px);
	min-width: auto;

	border-radius: clamp(8px, 1.5vw, 20px);
	margin-right: clamp(10px, 1.5vw, 15px);
	object-fit: cover;
	z-index: 1;
	flex-shrink: 0;
}

.card-text {
	z-index: 1;
	min-width: 0;
}

.card-text h4 {
	font-family: "Afacad", sans-serif;
	font-size: clamp(0.8rem, 1.2vw, 1.4rem);
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-text p {
	font-size: clamp(0.7rem, 1vw, 1.2rem);
	color: #cacaca;
	font-style: italic;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.gallery-section {
	display: flex;
	gap: clamp(10px, 2vh, 20px);
	padding: clamp(20px, 4vh, 50px);
	padding-left: 60px;

}

.gallery-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(10px, 2vh, 15px);
	height: 100%;

}

.gallery-img {
	width: 100%;
	height: 100%;

	object-fit: cover;
	border-radius: clamp(15px, 2vw, 40px);
	filter: grayscale(20%);
	transition: 0.3s;
}


.col-left .gallery-img {
	height: 50%;
}


.titles-section {
	padding: clamp(20px, 4vh, 50px);
}

.title-row {

	font-size: clamp(2rem, 5vh, 3.5rem);
	margin-bottom: 10px;
	line-height: 1.1;
}


.about-section {
	padding: clamp(20px, 4vh, 50px);
	padding-left: 40px;
}

.about-section h2 {
	font-family: "Advent Pro", sans-serif;
	font-size: clamp(1.8rem, 4vh, 3.4rem);
	margin-bottom: 2vh;
	letter-spacing: 1px;
}

.about-section p {
	font-family: "Afacad", sans-serif;
	color: #ccc;
	font-size: clamp(0.9rem, 1.8vh, 1.8rem);

	line-height: 1.3;
}


.modal {
	display: none;

	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);

	justify-content: center;
	align-items: center;
	cursor: zoom-out;
}

.modal-content {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	animation: zoomIn 0.3s ease;
}


.close-modal {
	position: absolute;
	top: 30px;
	right: 50px;
	color: white;
	font-size: 60px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
	line-height: 1;
}

.close-modal:hover {
	color: var(--accent-red);
}


@keyframes zoomIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}


.pf-card img {
	cursor: zoom-in;
}