@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;
}

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

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

.project-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 0 0 360px;
	width: 360px;
	min-height: 460px;
	margin-right: 2rem;
	background-color: #1e1e1e;
	padding: 1.5rem;
	border-radius: 16px;
	box-sizing: border-box;
	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: 1rem;
	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;
}

.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;
}

/* for future */
.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;
}

/* for future */

.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;
	padding-top: 2rem;
}

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

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

.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;
}

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

@media (max-width: 900px) {
	.carousel-container {
		padding: 1rem;
		display: flex;
		flex-direction: column;
		align-items: center;
		overflow: hidden;
		width: 100%;
		position: relative;
	}

	.carousel-track {
		display: flex;
		flex-direction: row;
		width: 100%;
		transition: transform 0.4s ease-in-out;
		will-change: transform;
	}

	.project-card {
		width: 100vw;
		max-width: 100vw;
		flex-shrink: 0;
		box-sizing: border-box;
		padding: 1rem;
	}

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