body,
canvas {
	margin: 0;
	font: normal 80% Arial, Helvetica, sans-serif;
	display: block;
}
body {
	overflow-x: hidden; /* Disable horizontal scrollbar */
}

#particles-js {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: #333 url("") no-repeat 50% 50%;
	background-size: cover;
	z-index: -1;
}
.progress-bar {
	width: 100%;
	background-color: #f1f1f1;
	border: 1px solid #ddd;
	height: 10px;
	position: relative;
	overflow: hidden; /* Added to limit the progress bar width */
}

.progress {
	height: 100%;
	background-color: #1c8f61;
	position: absolute;
}

.language-label {
	text-align: center;
	margin-top: 4px;
}
header {
	background: #333;
	color: #fff;
	padding: 2em;
	display: flex;
	justify-content: space-between; /* Align items horizontally */
	align-items: center; /* Align items vertically */
	font: bold 1.5em/0.6 sans-serif;
	text-transform: uppercase;
}
/* Header clusters for layout */
.header-left,
.header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}
.title-block {
	line-height: 1.1;
}
header a.feedback-link {
	color: #fff;
	margin: 0 1em;
	text-decoration: none;
}

header h1,
header p {
	margin: 0; /* Remove default margin */
}

.social-icons {
	display: flex; /* Align icons horizontally */
	height: 100%; /* Set the height to 100% */
}

.social-icons a {
	color: #fff;
	margin-left: 1em;
	text-decoration: none;
	font-size: 1.5em; /* Adjust the size of social icons */
}

section {
	max-width: 1000px;
	margin: 2em auto;
	padding: 1em;
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s, transform 0.5s;
}

section.active {
	opacity: 1;
	transform: translateY(0);
}

h2 {
	font-size: 1.8em;
	color: #333;
}

p {
	font-size: 1.2em;
	color: #555;
}

ul {
	list-style-type: none;
	padding: 0;
}

li {
	margin-bottom: 0.5em;
	transition: transform 0.3s ease-in-out;
}
a:hover {
	transform: scale(1.2);
}

/* Back button styles */
.back-button {
	position: static; /* flow inside header to avoid overlap */
	color: #fff;
	text-decoration: none;
	font-size: 1.05rem;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(2px);
	margin-right: 12px;
}
.back-button:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: none !important;
}

.portfolio-images {
	display: flex;
	justify-content: space-around;
	margin-top: 1em;
}

.portfolio-image {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 1em;
	transition: transform 0.3s ease-in-out;
}

.portfolio-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	border-radius: 50%;
	overflow: hidden;
}

.portfolio-image:hover {
	transform: scale(1.2);
}

.about-me {
	margin-top: 2em;
	text-align: justify;
	font-size: 1.2em;
}

.contact-info {
	margin-top: 2em;
}

.footer {
	background: #333;
	color: #fff;
	text-align: center;
	padding: 1em;
	position: fixed;
	bottom: 0;
	width: 100%;
	font-size: 1.2em;
}

/* Utility */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.project-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 1.25rem 0 1rem;
}
.filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.filter-btn {
	background: #222;
	color: #fff;
	border: 1px solid #444;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
	transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.filter-btn:hover,
.filter-btn:focus {
	background: #1c8f61;
	outline: none;
	box-shadow: 0 0 0 3px rgba(28, 143, 97, 0.35);
}
.filter-btn.is-active {
	background: #1c8f61;
	color: #fff;
}
.search-group input[type="search"] {
	padding: 0.55rem 0.9rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 0.9rem;
	min-width: 200px;
	background: #f9f9f9;
}
.sort-group select {
	padding: 0.55rem 0.9rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 0.9rem;
	background: #f9f9f9;
}

.project-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	margin-top: 0.5rem;
}
.project-card {
	position: relative;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-card:focus-within,
.project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.18);
}
.project-card__media {
	aspect-ratio: 16 / 9;
	width: 100%;
	background: #222;
	position: relative;
	overflow: hidden;
}
.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.project-card__body {
	padding: 0.85rem 0.95rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}
.project-card__title {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0;
	letter-spacing: 0.3px;
	color: #222;
	line-height: 1.25;
}
.project-card__desc {
	font-size: 0.8rem;
	color: #555;
	line-height: 1.35;
	margin: 0;
	flex-grow: 1;
}
.project-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.25rem 0 0;
}
.project-tag {
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	background: #1c8f61;
	color: #fff;
	padding: 0.25rem 0.55rem;
	border-radius: 6px;
	font-weight: 600;
}
.project-card__links {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.6rem;
}
.project-link {
	font-size: 0.7rem;
	font-weight: 600;
	text-decoration: none;
	background: #222;
	color: #fff;
	padding: 0.45rem 0.7rem;
	border-radius: 8px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: background 0.25s, transform 0.25s;
}
.project-link:hover,
.project-link:focus {
	background: #1c8f61;
	transform: translateY(-2px);
}
.project-link:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(28, 143, 97, 0.35);
}

.load-more {
	margin: 1.2rem auto 0;
	display: inline-block;
	background: #1c8f61;
	color: #fff;
	border: none;
	padding: 0.75rem 1.4rem;
	border-radius: 10px;
	font-size: 0.9rem;
	cursor: pointer;
	font-weight: 600;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.25);
	transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.load-more:hover,
.load-more:focus {
	background: #166c49;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.35);
}
.load-more:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}
.project-actions {
	text-align: center;
}

/* Legacy portfolio images adjustments (if kept) */
.legacy-static {
	display: none;
}

/* Responsive tweaks */
@media (max-width: 880px) {
	header {
		padding: 1rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		font: bold 1.2em/1 sans-serif;
	}
	.project-controls {
		flex-direction: column;
		align-items: stretch;
	}
	.filter-group {
		order: 2;
	}
	.search-group {
		width: 100%;
	}
	.search-group input {
		width: 100%;
	}
	section {
		margin: 1rem;
		padding: 0.85rem;
	}
}
@media (max-width: 640px) {
	.footer {
		position: static; /* avoid covering content on phones */
		font-size: 1rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
