@import url("https://fonts.googleapis.com/css2?family=Rock+Salt&family=Jura:wght@300..700&display=swap");

body {
	background: #121212;
	color: #eee;
	font-family: "Jura", sans-serif;
	margin: 0;
	padding: 0;
}

.project-artstation-link {
	text-align: center;
	margin-top: -0.5rem;
	margin-bottom: 1.5rem;
	font-size: 1.3rem;
	font-family: "Jura", sans-serif;
}

.project-artstation-link a {
	color: #00bfff;
	text-decoration: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.project-artstation-link a:hover {
	color: #33ccff;
	text-shadow: 0 0 6px #00bfff;
}

.project-artstation-link .inline-icon {
	height: 18px;
	width: auto;
	vertical-align: middle;
	margin-right: 0.4em;
	transform: translateY(-1px);
	filter: grayscale(100%) brightness(0.9);
	transition: filter 0.2s ease;
}

.project-artstation-link a:hover .inline-icon {
	filter: none;
}

.portfolio-hero {
	text-align: center;
	margin: 2rem 0 1.5rem;
}

.portfolio-hero h1 {
	font-family: "Rock Salt", cursive;
	color: #39ff14;
	font-size: 2.8rem;
	margin-bottom: 1rem;
	margin-top: 0.5rem;
}

.portfolio-section {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1em 1em 2em;
}

.portfolio-section h1 {
	font-size: 3.2rem;
	font-family: "Rock Salt", cursive;
	color: #39ff14;
	margin-bottom: 1.5rem;
	margin-top: 0.5rem;
	text-align: center;
}

.portfolio-section h2,
.portfolio-section h3 {
	color: #39ff14;
	font-weight: 500;
	font-size: 1.6rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.project-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem;
}

.project-card {
	background-color: #1e1e1e;
	border-radius: 16px;
	padding: 1.5rem;
	width: 360px;
	min-height: 460px;
	text-align: center;
	text-decoration: none;
	color: #eee;
	box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
	transform: scale(1.05);
	box-shadow: 0 0 18px #39ff14;
}

.preview-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 0.5rem;
	background-color: #000;
}

.project-card h2 {
	font-size: 1.6rem;
	font-family: "Jura", sans-serif;
	font-weight: 500;
	color: #39FF14;
	margin: 0.75rem 0 0;
	min-height: 3.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}


.video-wrapper iframe {
	width: 100%;
	border-radius: 8px;
}

.youtube-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin-top: 1em;
}

.youtube-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
}

.vimeo-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	width: 100%;
	max-width: 1280px;
	margin-top: 0.4em;
	line-height: 0;
}

.vimeo-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 8px;
	display: block;
}

.screenshot-gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1em;
	margin-top: 1em;
}

.screenshot-img {
	width: 320px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
	transition: transform 0.2s ease;
}

.screenshot-img:hover {
	transform: scale(1.02);
}

.pdf-link {
	color: #39ff14;
	font-size: 1.2rem;
	text-decoration: none;
	display: inline-block;
	margin-top: 0.5rem;
}

.pdf-link:hover {
	color: #69ff64;
	text-shadow: 0 0 6px #39ff14;
	text-decoration: none;
}

iframe[src$=".pdf"] {
	border: 1px solid #444;
	border-radius: 8px;
	margin-top: 1rem;
}

@media (max-width: 768px) {
	.project-grid {
		flex-direction: column;
		align-items: center;
	}

	.project-card {
		width: 90%;
	}

	.preview-img {
		height: auto;
	}

	.screenshot-img {
		width: 90%;
	}
}

.portfolio-detail {
	max-width: 1280px;
	margin: 1.5rem auto;
	padding: 0 1rem;
}

.project-layout {
	display: flex;
	gap: 2rem;
	justify-content: space-between;
}

.project-layout.no-sidebar {
	justify-content: center;
}

.project-main {
	flex: 2;
	display: flex;
	flex-direction: column;
	max-width: 1280px;
}

.project-sidebar {
	flex: 1;
	background-color: #1e1e1e;
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.project-sidebar h2 {
	color: #39ff14;
	margin-top: 0;
	font-size: 1.5rem;
	text-align: center;
}

.project-sidebar .pdf-link {
	display: block;
	margin-top: 1rem;
	text-align: center;
	color: #39ff14;
	font-size: 1.1rem;
	text-decoration: none;
}

.screenshot-gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 1rem;
	margin-top: 1rem;
}

.screenshot-img {
	width: calc(33% - 0.7rem);
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	object-fit: cover;
}

@media (max-width: 900px) {
	.project-layout {
		flex-direction: column;
	}

	.project-sidebar iframe {
		height: 400px;
	}

	.screenshot-img {
		width: 100%;
	}
}

#zoom-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1000;
}

#zoom-overlay.visible {
	visibility: visible;
	opacity: 1;
}

#zoomed-img {
	max-width: 90vw;
	max-height: 90vh;
	border-radius: 8px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#zoom-close {
	position: absolute;
	top: 1rem;
	right: 2rem;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	user-select: none;
}

.project-title {
	font-size: 2.4rem;
	color: #39ff14;
	font-family: "Rock Salt", cursive;
	margin: 0 0 1rem;
	text-align: center;
}

#zoom-left,
#zoom-right {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
	color: white;
	cursor: pointer;
	user-select: none;
	padding: 0 1rem;
	z-index: 1001;
}

#zoom-left {
	left: 1rem;
}

#zoom-right {
	right: 1rem;
}

#zoom-left:hover,
#zoom-right:hover {
	color: #39ff14;
	text-shadow: 0 0 10px #39ff14;
}

.project-description {
	max-width: none;
	width: 100%;
	text-align: justify;
	font-size: 1.3rem;
	line-height: 1.6;
	white-space: pre-line;
	color: white;
	font-family: "Jura", sans-serif;
	padding: 0 2rem 1rem 2rem;
	box-sizing: border-box;
}

.about-cv-wrapper {
	display: flex;
	gap: 3rem;
	max-width: 1280px;
	margin: 3rem auto;
	padding: 0 2rem;
	flex-wrap: wrap;
}

.about-section,
.cv-section {
	flex: 1;
	background-color: #1e1e1e;
	padding: 1.5rem;
	border-radius: 12px;
	color: white;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.about-section h2,
.cv-section h2 {
	color: #39ff14;
	margin-bottom: 1rem;
	font-family: "Rock Salt", cursive;
}

.about-section p {
	line-height: 1.6;
	font-size: 1.3rem;
	color: white;
	margin-bottom: 1rem;
}

.cv-section ul {
	list-style: none;
	padding-left: 0;
	font-family: "Jura", sans-serif;
	font-size: 1.3rem;
}

.cv-section li {
	margin-bottom: 1rem;
}

@media (max-width: 768px) {
	.about-cv-wrapper {
		flex-direction: column;
	}
}

.cv-section a {
	color: #39ff14;
	text-decoration: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.cv-section a:hover {
	color: #69ff64;
	text-shadow: 0 0 6px #39ff14;
}

.youtube-link {
	color: #ff0000;
	text-decoration: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.youtube-link:hover {
	color: #ff4c4c;
	text-shadow: 0 0 15px #ff0000, 0 0 25px #ff0000;
}

.video-fallback {
	text-align: center;
	font-size: 1rem;
	color: #aaa;
}

.video-fallback a {
	color: #ff4c4c;
	text-decoration: none;
}

.cv-section ul.sub-list {
	margin-top: 0.4rem;
	padding-left: 1.2rem;
	list-style-type: disc;
	color: white;
	font-size: 1.3rem;
}

.cv-download-btn {
	font-size: 1.3rem;
}

.cv-section ul.sub-list li {
	margin-bottom: 0.5rem;
}

.about-photo-left {
	float: left;
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 1.5rem 1rem 0;
	border: 2px solid #39ff14;
	box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.cv-education {
	list-style-type: disc;
	padding-left: 1.5rem;
}

.cv-education li {
	line-height: 1.4;
}

.cv-education li:first-child {
	margin-top: 0.6rem;
}

.cv-dates {
	display: block;
	font-size: 1.2rem;
	color: white;
	margin-top: 0.2rem;
}

.carousel-container {
	overflow: hidden;
	position: relative;
	max-width: 1280px;
	background-color: #121212;
	padding: 0 2rem;
	margin: 3rem auto 1rem;
	min-height: 580px;
	padding-top: 2rem;
}

.carousel-track {
	display: flex;
	width: max-content;
	transition: transform 0.4s ease-in-out;
	will-change: transform;
}

.project-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 0 0 360px;
	width: 360px;
	margin-right: 2rem;
	background-color: #1e1e1e;
	padding: 1.5rem;
	border-radius: 16px;
	box-sizing: border-box;
	text-align: center;
	color: white;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:last-child {
	margin-right: 0;
}

.preview-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 1rem;
	background-color: #000;
}

.project-card h2 {
	font-size: 1.6rem;
	font-family: "Jura", sans-serif;
	font-weight: 500;
	color: #39FF14;
	margin-top: 0.5rem;
}

.carousel-controls {
	text-align: center;
	margin-top: 2rem;
	display: flex;
	justify-content: center;
	gap: 2rem;
}

.carousel-controls button {
	background: none;
	color: #39FF14;
	border: 2px solid #39FF14;
	padding: 0.5rem 1.2rem;
	font-size: 1.2rem;
	font-family: "Jura", sans-serif;
	cursor: pointer;
	border-radius: 8px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.carousel-controls button:hover {
	background-color: #39FF14;
	color: #121212;
}

.carousel-controls button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

@media (max-width: 900px) {
	.carousel-track {
		flex-direction: row;
		gap: 1rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.project-card {
		flex: 0 0 auto;
		scroll-snap-align: center;
		width: 90%;
		margin-right: 1rem;
	}

	.carousel-controls {
		display: none;
	}
}

.card-inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}
