@import "variables.css";

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: #0e0e10;
	color: #e8e6e3;
	font-family: Outfit, sans-serif;
	overflow-x: hidden;
}

#particles-js {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
}

.hamburger {
	display: none;
	font-size: 2em;
	cursor: pointer;
	color: white;
	transition: transform 0.3s ease;
}

.hamburger.active {
	transform: rotate(90deg);
}

nav {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 1.3em;
	z-index: 999;
}

nav ul li {
	opacity: 0;
	transform: translateY(-10px);
	animation: fadeInNav 0.5s forwards;
	animation-delay: calc(0.2s * var(--i));
}

nav ul {
	display: flex;
	gap: 1.5em;
	list-style: none;
	padding-left: 0;
}

nav ul li a {
	color: white;
	text-decoration: none;
}

nav ul li a:hover {
	color: var(--main-color);
	text-shadow: 0 0 12px var(--main-color);
}

.projects h2 {
	font-size: 3em;
	margin-bottom: 20px;
	color: var(--main-color);
	text-shadow: 0 0 12px var(--main-color);
}

.projects p {
	font-size: 1.1em;
	color: rgb(161, 161, 161);
}

#project-text {
	margin: 90px 0 20px 135px;
}

.projects-container {
	margin-top: 70px;
	margin-bottom: 70px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 50px;
}

.project-item {
	background-color: #17171b;
	border-radius: 15px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding: 30px;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
	max-width: 800px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
	transform: translate(5px, -5px) scale(1.03);
	box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.project-image img {
	max-width: 200px;
	border-radius: 12px;
	width: 100%;
	max-height: 200px;
	object-fit: cover;
}

.project-content {
	flex: 1 1 450px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	text-align: left;
	height: 100%;
}

.projects-links {
	display: flex;
	gap: 20px;
	margin-top: 10px;
	align-items: center;
}

.project-content h3 {
	font-size: 2em;
	margin-bottom: 10px;
}

.project-content p {
	font-size: 1.05em;
	line-height: 1.6;
	color: #ccc;
}

.project-content .tech-stack {
	font-weight: bold;
	color: #aaa;
}

.project-content .tech-stack span {
	color: #fff;
}

.projects-links {
	display: flex;
	gap: 20px;
	margin-top: 10px;
	align-items: center;
}

.projects-links a {
	color: #fff;
	font-size: 3em;
	transition: transform 0.2s ease, color 0.2s ease;
}

.projects-links a:hover {
	transform: scale(1.2);
	color: var(--main-color);
	text-shadow: 0 0 8px var(--main-color);
}

@keyframes fadeInNav {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.hamburger {
		display: block;
		position: absolute;
		top: -10px;
		right: 20px;
		z-index: 1000;
	}

	nav ul {
		max-height: 0;
		overflow: hidden;
		flex-direction: column;
		white-space: nowrap;
		position: absolute;
		top: 60px;
		right: 20px;
		background-color: #17171b;
		padding: 0 25px;
		border-radius: 10px;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
		gap: 10px;
		list-style: none;
		z-index: 999;
		transition: max-height 0.4s ease, padding 0.4s ease;
		display: flex;
	}

	nav ul.active {
		max-height: 500px;
		padding: 20px 25px;
	}

	#project-text {
		margin: 80px 20px 20px 20px;
		text-align: center;
	}

	.projects h2 {
		font-size: 2em;
	}

	.projects p {
		font-size: 1em;
	}

	.projects-container {
		flex-direction: column;
		align-items: center;
		padding: 0 10px;
	}

	.project-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 20px;
	}

	.project-image img {
		max-width: 100%;
		max-height: 150px;
	}

	.project-content {
		flex: unset;
		width: 100%;
		padding-top: 15px;
		text-align: center;
	}

	.project-content h3 {
		font-size: 1.5em;
	}

	.projects-links {
		justify-content: center;
	}
}
