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

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

p {
	overflow-wrap: break-word;
}

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

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

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

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

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

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

.hero {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	height: 100vh;
	margin-bottom: 15px;
	text-align: center;
}
.hero h1 {
	font-size: 4.4em;
	animation: slideInFromBottom 1s ease-in-out forwards;
}

.hero h1,
.aboutme h2,
.skills-title,
nav ul li a:hover,
footer p {
	color: var(--main-color);
	text-shadow: 0 0 12px var(--main-color);
}

.hero p {
	font-size: 1.8em;
	animation: slideInFromBottom 1s ease-in-out forwards;
	animation-delay: 0.4s;
	opacity: 0;
}

.aboutme {
	width: 100%;
	min-height: 100vh;
	padding: 40px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.aboutme h2 {
	margin-bottom: 20px;
	font-size: 3.4em;
}

.aboutme p {
	max-width: 700px;
	margin: 0 auto 30px auto;
	font-size: 1.5em;
}

.skills-title {
	margin-top: 80px;
	margin-bottom: 40px;
	font-size: 3em;
	color: #fff;
}

.social a {
	margin-top: 15px;
	background: none;
	border: none;
	padding: 15px;
	font-size: 36px;
	color: white;
	cursor: pointer;
	transition: 0.3s;
	text-decoration: none;
	display: inline-block;
}

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

.skills-container {
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
	justify-content: center;
}

.skill-item {
	background: #17171b;
	border-radius: 20px;
	width: 170px;
	padding: 20px 25px;
	box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-item:hover {
	transform: translate(8px, -8px) scale(1.05);
	box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.skill-item i {
	font-size: 3em;
	margin-top: 15px;
	margin-bottom: 30px;
}
.skill-item h3 {
	font-size: 1.3em;
	margin-bottom: 20px;
}

.skill-item.html:hover,
.skill-item.git:hover {
	background-color: rgb(255, 87, 34, 0.8);
}

.skill-item.css:hover,
.skill-item.py:hover {
	background-color: rgb(33, 150, 243, 0.8);
}

.skill-item.js:hover {
	background-color: rgb(255, 221, 51, 0.8);
}

.skill-item.figma:hover {
	background-color: rgb(233, 30, 99, 0.8);
}

.skill-item.management:hover {
	background-color: rgb(96, 125, 139, 0.8);
}

footer {
	text-align: center;
	color: #888;
	font-size: 0.9em;
	padding: 20px 10px;
}

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

@keyframes slideInFromBottom {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@media (max-width: 768px) {
	.hamburger {
		display: block;
		position: absolute;
		top: 0;
		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: 15px 25px;
	}

	.skills-container {
		justify-content: center;
		gap: 30px;
	}

	.skill-item {
		width: 45%;
	}
}

@media (max-width: 480px) {
	.skills {
		min-height: auto;
		padding: 30px 10px;
	}

	.skills h2 {
		font-size: 1.8em;
		margin-bottom: 20px;
	}

	.skills-list {
		gap: 10px;
	}

	.skills-list i {
		font-size: 28px;
	}

	.hero h1 {
		font-size: clamp(3em, 10vw, 4.5em);
	}

	.hero p {
		font-size: 1.2em;
		margin-top: 15px;
		padding: 0 15px;
	}
}
