html {
	scroll-behavior: smooth;
}

* {
	font-family: 'Consolas', monospace;
	text-decoration: none;
	color: #252222;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	cursor: url('img/cursor.png') 16 16, auto;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 100;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 30px;
	padding-top: 50px;
	height: 50px;
	background: transparent;
	text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

h1 {
	padding: 30px;
}

#navtop {
	padding-right: 50px;
}

#navtop ul {
	display: flex;
	flex-direction: row;
	list-style: none;
}

#navtop li {
	padding: 20px;
	padding-right: 20px;
	font-size: 20px;
}

#navtop li a {
	position: relative;
}

#navtop li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background: #242121;
	transition: width 0.3s ease;
}

#navtop li a:hover::after {
	width: 100%;
}

#home {
	background-color: #dfdfdf;
	height: 700px;
	display: flex;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.hidden {
	display: none;
}

.home-center-img {
	position: absolute;
	top: 57%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-width: 100%;
	pointer-events: none;
}

.descr {
	height: 300px;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
}

.btn {
	height: auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	padding-bottom: 7%;
	padding-right: 5%;
}

.btn-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #242121;
	border: 1px solid #242121 !important;
	background: transparent;
	width: 200px;
	height: 50px;
	margin: 10px 20px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-hero:hover {
	color: #ffffff;
	background: #242121;
}

.hero-content {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 0px;
}

.hero-sub {
	padding-right: 50px;
}

#about {
	background-color: #dfdfdf;
	padding-top: 250px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 60px;
	align-items: flex-start;
	color: black;
	width: 100%;
}

.left {
	display: flex;
	flex-direction: row;
}

.photo-moi img {
	width: 260px;
	border-radius: 12px;
	display: block;
}

.text {
	max-width: 560px;
	padding-top: 10px;
	padding-left: 50px;
}

.text h2 {
	font-size: 36px;
	margin-bottom: 20px;
}

.text p {
	margin-top: 10px;
	line-height: 1.8;
	color: rgba(0, 0, 0, 0.75);
	font-weight: 300;
}

.right {
	display: flex;
	flex-wrap: wrap;
	width: 860px;
}

.skills {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 20px;
	margin-top: 20px;
}

.skills img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	filter: grayscale(100%);
	transition: filter 0.3s ease, transform 0.3s ease;
}

.skills img:hover {
	filter: grayscale(0%);
	transform: scale(1.15);
}

#work {
	background-color: #dfdfdf;
	color: black;
	text-align: center;
	padding: 100px;
}

#work h2 {
	font-size: 40px;
	margin-bottom: 60px;
}

.projects {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	text-align: left;
}

.project {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 4 / 3;
}

.project img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.project:hover img {
	transform: scale(1.08);
}

.overlay {
	position: absolute;
	padding: 40px;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	color: white;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	opacity: 0;
	font-size: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: opacity 0.35s ease;
}

.project:hover .overlay {
	opacity: 1;
}

#contact {
	background-color: #dfdfdf;
	padding: 50px;
	padding-bottom: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-inner {
	text-align: center;
	color: black;
}

.contact-inner h2 {
	font-size: 48px;
	margin-bottom: 16px;
}

.contact-inner p {
	font-size: 18px;
	color: rgba(0, 0, 0, 0.65);
	font-weight: 300;
	margin-bottom: 32px;
}

.contact-email {
	display: inline-block;
	font-size: 20px;
	color: black;
	border-bottom: 1.5px solid black;
	padding-bottom: 2px;
	margin-bottom: 48px;
	transition: opacity 0.2s ease;
}

.contact-email:hover {
	opacity: 0.5;
}

.contact-links {
	display: flex;
	justify-content: center;
	gap: 40px;
}

.contact-links a {
	font-size: 13px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: black;
	font-weight: 500;
	transition: opacity 0.2s ease;
}

.contact-links a:hover {
	opacity: 0.45;
}

#burger-toggle {
	display: none;
}

#burger {
	display: none;
}

@media (min-width: 1800px) {
	.btn {
		padding-top: 3%;
		padding-bottom: 7%;
		padding-right: 9%;
	}
}

@media (max-width: 768px) {
	header {
		padding: 50px 16px;
		height: 60px;
	}

	h1 {
		font-size: 25px;
	}

	.logo {
		padding-top: 0;
	}

	#navtop {
		padding: 0 10px;
	}

	#burger {
		display: block;
		font-size: 40px;
	}

	#navtop ul {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 60px;
		right: 0;
		width: 100%;
		background: #242121;
		align-items: center;
		padding: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s ease-out, padding 0.4s ease-out;
	}

	#burger-toggle:checked ~ ul {
		max-height: 500px;
		height: 400px;
		padding: 20px 0;
		justify-content: space-around;
	}

	a {
		color: white;
	}

	.home-center-img {
		width: 150%;
		max-width: 100%;
		left: 50%;
	}

	#home {
		background-size: 100%;
		background-repeat: repeat;
		height: 500px;
	}

	.hero-content {
		height: 700px;
	}

	.hero-sub {
		padding-bottom: 200px;
		font-size: 15px;
	}

	.descr {
		display: flex;
		flex-direction: column-reverse;
		justify-content: space-evenly;
		align-items: center;
		flex-wrap: wrap;
		padding-left: 30px;
	}

	.text h2 {
		font-size: 25px;
	}

	.btn {
		padding: 0 30px 0 0;
		justify-content: center;
		align-items: center;
	}

	.btn-hero {
		width: 250px;
		height: 70px;
		font-size: 20px;
	}

	.hero-sub {
		display: flex;
		flex-wrap: wrap;
		padding: 0;
	}

	.left {
		flex-direction: column;
	}

	.photo-moi {
		display: flex;
		justify-content: center;
		margin-bottom: 10%;
	}

	.right {
		width: 100%;
		max-width: 860px;
		padding: 0 50px;
	}

	#about {
		padding: 350px 0 150px;
		background-size: 100%;
		background-repeat: repeat;
	}

	.text {
		padding: 0;
		padding: 0 70px;
	}

	.text p {
		font-size: 15px;
	}

	.skills {
		padding: 0;
		margin: 0;
		display: flex;
		justify-content: space-between;
	}

	.skills img {
		height: 40px;
	}

	#work {
		background-size: 100%;
		background-repeat: repeat;
		padding: 0 40px;
	}

	#work h2 {
		font-size: 25px;
		margin-bottom: 20px;
	}

	.projects {
		grid-template-columns: 1fr;
		margin: 0 20px;
	}

	.project {
		margin-top: 20px;
	}

	#contact {
		background-size: 100%;
		background-repeat: repeat;
		padding-top: 200px;
	}

	#contact h2 {
		font-size: 20px;
	}

	.contact-inner p {
		font-size: 12px;
	}

	.contact-email {
		font-size: 15px;
	}

	.contact-links a {
		font-size: 13px;
	}
}