@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

/* 🎨 CSS Variables & Global Styles */
:root {
	--primary-color: #6a11cb;
	--secondary-color: #2575fc;
	--text-color: #f4f4f4;
	--bg-color: #121212;
	--container-color: #1e1e1e;
}

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

body {
	font-family: "Poppins", sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
}

/* ✨ Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.content-fade-in {
	animation: fadeIn 0.8s ease-in-out;
}

@keyframes navLinkFade {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0px);
	}
}

/* 🏛️ Layout & Components */
.navbar {
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 1rem 2rem;
	background: var(--container-color);
	height: 8vh;
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
	letter-spacing: 2px;
}

.nav-links {
	display: flex;
	justify-content: space-around;
	width: 30%;
	list-style: none;
}

.nav-links a {
	color: var(--text-color);
	text-decoration: none;
	transition: color 0.3s ease;
	font-weight: bold;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--secondary-color);
}

.burger {
	display: none;
	cursor: pointer;
}

.burger div {
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	margin: 5px;
	transition: all 0.3s ease;
}

main {
	min-height: calc(100vh - 8vh - 60px); /* vh - header - footer */
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2rem;
}

h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
	background: linear-gradient(
		to right,
		var(--primary-color),
		var(--secondary-color)
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	max-width: 500px;
	margin-top: 2rem;
}

form input,
form textarea,
form button {
	padding: 0.8rem;
	border: 1px solid var(--secondary-color);
	background: var(--container-color);
	color: var(--text-color);
	border-radius: 5px;
	font-family: "Poppins", sans-serif;
}

form button {
	background: var(--secondary-color);
	cursor: pointer;
	transition: background 0.3s ease;
	font-weight: bold;
}

form button:hover {
	background: var(--primary-color);
}

footer {
	text-align: center;
	padding: 1rem;
	background: var(--container-color);
	height: 60px;
}

/* 📱 Responsive Design */
@media screen and (max-width: 768px) {
	.nav-links {
		position: absolute;
		right: 0px;
		height: 92vh;
		top: 8vh;
		background-color: var(--container-color);
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 50%;
		transform: translateX(100%);
		transition: transform 0.5s ease-in;
	}

	.nav-links li {
		opacity: 0;
	}

	.burger {
		display: block;
	}

	h1 {
		font-size: 2.5rem;
	}
}

.nav-active {
	transform: translateX(0%);
}

.toggle .line1 {
	transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
	opacity: 0;
}
.toggle .line3 {
	transform: rotate(45deg) translate(-5px, -6px);
}
