@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');

:root {
	--minibold: 600;
	--lcolor: #fff;
	--background: #282C33;
	--graycolor: #ABB2BF;
	--primarycolor: #C778DD;
	--font: "Fira Code", monospace;
	--hovercolor: #C778DD20;
	--border: 1px solid var(--graycolor);
}

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

body {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--background);
	font-family: var(--font);
	height: 100dvh;
}

.side_links {
	display: none;
}

main {
	width: 100%;
	height: 100%;
	padding: 20px;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header .logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	font-size: 20px;
	font-weight: var(--minibold);
	color: var(--lcolor);
}

header .logo a img {
	margin-right: 8px;
	width: 20px;
}

.bars {
	z-index: 2;
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: end;
	height: 20px;
	justify-content: space-evenly;
}

.bars li {
	background-color: var(--graycolor);
	height: 2.5px;
	transition: 0.2s linear;

}

.bars li:first-child {
	width: 40px;
}

.bars li:nth-child(2) {
	width: 25px;
}

.nav_links {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 20px;
	list-style: none;
	flex-direction: column;
	z-index: 1;
	color: var(--lcolor);
	backdrop-filter: blur(15px);
}

.nav_links li {
	margin: 25px 0;
	display: flex;
	align-items: center;
	font-size: 20px;
}

.nav_links a {
	text-decoration: none;
	color: var(--lcolor);
}

.nav_links li a i {
	color: var(--primarycolor);
	margin-right: 10px;
}

.nav_links li a:focus {
	color: var(--lcolor);
	font-weight: var(--minibold);
}

.nav_links .lang {
	font-size: 25px;
	display: flex;
	align-items: baseline;
}

.nav_links .lang i {
	margin-left: 5px;
	font-size: 18px;
	color: var(--primarycolor);
}

.bars.active {
	position: fixed;
	right: 20px;
	top: 23px;
}

.bars.active li {
	transform-origin: 25%;
	background-color: var(--primarycolor);
	width: 20px;
}

.bars.active li:first-child {
	transform: rotate(45deg);
}

.bars.active li:nth-child(2) {
	transform: rotate(-45deg);
}

.nav_links.active {
	display: flex;
}

.headers {
	display: flex;
	align-items: center;
}

.headers span {
	font-size: 25px;
	color: var(--primarycolor);
}

.headers .header_line {
	height: 0.1px;
	width: 120px;
	background-color: var(--primarycolor);
	margin-left: 10px;
}

.headers h4 {
	font-size: 20px;
	color: var(--lcolor);
}

.headers h4 i {
	font-size: 25px;
	color: var(--primarycolor);
	margin-right: 10px;
}

#home {
	margin-top: 40px;
}

#home section {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

#home section .txt {
	margin-bottom: 40px;
}

#home section .txt h4 {
	font-size: 30px;
	color: var(--lcolor);
	font-weight: var(--minibold);
}

#home section .txt h4 span {
	color: var(--primarycolor);
}

#home section .txt p {
	color: var(--graycolor);
	margin-top: 15px;
	font-size: 20px;
}

#home section .txt a {
	position: absolute;
	border: 1px solid var(--primarycolor);
	text-decoration: none;
	color: var(--lcolor);
	padding: 8px;
	width: 120px;
	font-size: 15px;
	text-transform: capitalize;
	margin-top: 15px;
}

#home section .txt a:hover {
	background-color: var(--hovercolor);
}

#home section .img {
	position: relative;
	height: au;
	width: 316px;
}

#home section #profile {
	width: 100%;
}

#home section #dots {
	position: absolute;
	width: 60px;
	right: 0;
	bottom: 60px;
}

#home section #logo {
	position: absolute;
	z-index: -1;
	width: 100px;
	top: 70px;
	left: 0;
}

#home section .img .current {
	border: var(--border);
	padding: 5px;
	bottom: 0;
	display: flex;
	align-items: center;
}

#home section .img .current h4 {
	font-size: 15px;
	color: var(--graycolor);
	font-weight: var(--minibold);
}

#home section .img .current .reg {
	width: 20px;
	height: 20px;
	margin-right: 8px;
	background-color: var(--primarycolor);
}

#home section .img .current h4 span {
	color: var(--lcolor);
}

#home .quote {
	display: none;
}


#works {
	margin-top: 40px;
}

.projects {
	margin-top: 40px;
	position: relative;
	/* width: fit-content; */
}

.some_projects {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin-top: 20px;
}

.some_projects li {
	width: 300px;
	margin: 10px;
	border: var(--border);
	height: fit-content;
}

.project-img {
	width: 100%;
	height: 170px;
	justify-content: center;
	align-items: center;
	display: flex;
	overflow: hidden;
	border-bottom: var(--border);
}

.project-img img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

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


.some_projects li .used_langs {
	border-bottom: var(--border);
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	padding: 0;
}

.some_projects li .used_langs li {
	border: none;
	width: fit-content;
	margin: 0 5px;
	color: var(--graycolor);
}

.some_projects li h5 {
	font-size: 18px;
	color: var(--lcolor);
	font-weight: var(--minibold);
	margin: 8px;
}

.some_projects li p {
	font-size: 16px;
	color: var(--graycolor);
	margin: 0px 8px 8px;

}

.some_projects li a {
	text-decoration: none;
	padding: 5px;
	width: 40px;
	height: 40px;
	font-size: 15px;
	border: 1px solid var(--primarycolor);
	color: var(--lcolor);
	display: flex;
	align-items: center;
	justify-content: center;
}

.some_projects li a i {
	color: var(--primarycolor);
	font-size: 18px;
}

.some_projects li .action-btns {
	display: flex;
	margin: 10px 8px;
	gap: 5px;
}

.some_projects li a:hover {
	background-color: var(--hovercolor);
}

.some_projects li a:hover i {
	color: var(--lcolor);
}

.projects .more {
	position: absolute;
	bottom: 0;
	right: 0;
	transform: translateY(100%);
	text-decoration: none;
	color: var(--lcolor);
}

.projects .more i {
	color: var(--primarycolor);
}

.incompleted_projects {
	margin-top: 40px;
}

.incompleted_projects ul li {
	width: 200px;
	margin: 5px;
}

.skills {
	margin-top: 40px;
	height: 300px;
}

.skills section {
	display: flex;
	justify-content: space-between;
	height: 100%;
}

.skills section .regs {
	position: relative;
	width: 40%;
}

.skills section .regs .dots-1 {
	position: absolute;
	width: 70px;
	top: 20px;
	left: 10px;
}

.skills section .regs .dots-2 {
	position: absolute;
	width: 140px;
	left: 20%;
	opacity: .4;
	top: 60%;
}

.skills section .regs .dots-3 {
	position: absolute;
	width: 80px;
	top: 50px;
	right: 100px;

}

.skills section .regs .logo {
	position: absolute;
	left: 0;
	width: 100px;
	bottom: 30px;
	filter: blur(1.5px);
}

.skills section .regs .reg-1 {
	position: absolute;
	top: 0;
	right: 0;
	width: 80px;
	height: 80px;
	border: var(--border);
}

.skills section .regs .reg-2 {
	position: absolute;
	top: 50%;
	right: -50px;
	width: 100px;
	height: 100px;
}

#about {
	margin-top: 40px;
}

.who {
	color: var(--graycolor);
	text-transform: capitalize;
}

#about section {
	display: flex;
	flex-direction: column-reverse;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

#about section .txt {
	margin-top: 20px;
}

#about section .txt p {
	font-size: 14px;
	color: var(--graycolor);
	margin-bottom: 20px;
}

#about section .txt p:first-child {
	margin-bottom: 30px;
}

#about section .txt p:first-child::first-letter {
	font-size: 20px;
	color: var(--primarycolor);
	margin-right: 2px;
	font-weight: var(--minibold);
}

#about section .txt a {
	text-decoration: none;
	border: 1px solid var(--primarycolor);
	color: var(--lcolor);
	padding: 8px;
	width: 120px;
	font-size: 15px;
	text-transform: capitalize;
}

#about section .txt a:hover {
	background-color: var(--hovercolor);
}

#about section .img {
	position: relative;
	width: fit-content;
}

#about section .img #profile {
	width: 80%;
	border-bottom: 1px solid var(--primarycolor);
}

#about section .img #dots {
	position: absolute;
	top: 60px;
	left: 10px;
	width: 70px;
}

#about section .img #dots-2 {
	position: absolute;
	bottom: 100px;
	right: 50px;
	width: 70px;
}

#skills {
	margin-top: 40px;
}


#skills ul {
	margin-top: 20px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#skills ul .cl {
	display: flex;
	flex-direction: column;
	margin: 5px;
	width: 160px;
	border: var(--border);
	height: fit-content;
}

#skills ul .cl h5 {
	border-bottom: var(--border);
	padding: 8px;
	font-weight: var(--minibold);
	color: var(--lcolor);
}

#skills ul .cl ul {
	margin: 0;
	padding: 8px;
	justify-content: unset;
}

#skills ul .cl ul li {
	width: fit-content;
	margin-right: 8px;
	color: var(--graycolor);
}

.fun-facts {
	margin-top: 40px;
}

.fun-facts section {
	display: flex;
}

.fun-facts .facts {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	list-style: none;
	margin-top: 20px;
}

.fun-facts .facts li {
	border: var(--border);
	margin: 2px;
	padding: 5px;
	color: var(--graycolor);
}

.fun-facts .facts span {
	font-weight: var(--minibold);
	color: var(--lcolor);
}

#contacts {
	margin-top: 40px;
}

#contacts section {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

#contacts section .txt {
	margin: 20px 0;
}

#contacts section .txt p {
	font-size: 16px;
	color: var(--graycolor);
}

#contacts section .emails {
	border: var(--border);
	width: fit-content;
	padding: 10px;
	color: var(--graycolor);
}

#contacts section .emails h5 {
	font-size: 18px;
	color: var(--lcolor);
}

#contacts section .emails ul {
	list-style: none;
	margin: 5px 0;
}

#contacts section .emails ul li {
	margin: 10px 0;
	display: flex;
	align-items: center;
}

#contacts section .emails ul li i {
	margin-right: 10px;
	font-size: 20px;
}

#all-contacts {
	margin: 100px 0 140px;
}

#all-contacts ul {
	margin-top: 10px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

#all-contacts ul li {
	display: flex;
	align-items: center;
	margin: 20px 20px 0 0;
}

#all-contacts ul li a {
	text-decoration: none;
	color: var(--graycolor);
}

#all-contacts ul li a i {
	font-size: 20px;
	margin-right: 10px;
}

#all-contacts ul li:hover a i {
	color: var(--primarycolor);
}

footer {
	border-top: var(--border);
	margin: 60px -20px 0;
	padding: 30px 20px;
	color: var(--graycolor);
}

footer section {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

footer section .left .logo {
	display: flex;
	flex-wrap: wrap;
}

footer section .left .logo a {
	text-decoration: none;
	color: var(--lcolor);
	font-weight: var(--minibold);
	display: flex;
	align-items: center;
	font-size: 18px;
	margin: 0 10px 10px 0;
}

footer section .left .logo a img {
	width: 20px;
	margin-right: 10px;
}

footer .right h5 {
	font-size: 20px;
	color: var(--lcolor);
	text-transform: capitalize;
	font-weight: var(--minibold);
	margin-bottom: 10px;
}

footer section .right {
	margin-top: 20px;
}

footer section .right .media {
	display: flex;
	list-style: none;
}

footer section .right .media li {
	margin-right: 15px;
}

footer section .right .media li i {
	font-size: 20px;
	color: var(--graycolor);
}

footer section .right .media li:hover i {
	color: var(--lcolor);
}


footer .copy-right {
	margin-top: 30px;
	text-align: center;
	color: var(--graycolor);
	font-size: 12px;
}

footer .copy-right i {
	color: var(--lcolor);
}

.contact-intro {
	display: flex;
	flex-direction: row;
	gap: 15px;
}

#contact-form-section {
	margin-top: 60px;
}

#contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	color: var(--graycolor);
	margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
	background-color: var(--background);
	border: var(--border);
	color: var(--lcolor);
	padding: 10px;
	font-family: var(--font);
	font-size: 16px;
	outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
	border-color: var(--primarycolor);
}

#contact-form button {
	border: 1px solid var(--primarycolor);
	background-color: transparent;
	color: var(--lcolor);
	padding: 10px;
	font-family: var(--font);
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	width: fit-content;
}

#contact-form button:hover {
	background-color: var(--hovercolor);
}

#response-message {
	margin-top: 10px;
	font-size: 14px;
}


/* media queries */

/* tablet */

@media screen and (min-width:640px) {

	#home {
		position: relative;
		height: 650px;
	}

	#home .quote {
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		margin-top: 20px;
		display: flex;
		justify-content: center;
		border: var(--border);
		padding: 15px;
		font-size: 20px;
		align-items: center;
		/* width: clamp(600px, 70%, 800px); */
		width: 90%;
		color: var(--graycolor);
	}

	#home .quote span {
		position: absolute;
		border: var(--border);
		padding: 8px;
		color: var(--lcolor);
		right: -1px;
		bottom: 0;
		transform: translateY(100%);
		width: fit-content;
	}

	#home .quote i {
		color: var(--lcolor);
		font-size: 25px;
		background-color: var(--background);
		padding: 5px;
		z-index: 1;
		position: absolute;
	}

	#home .quote .lf {
		top: 0;
		left: 30px;
		transform: translateY(-50%);
	}

	#home .quote .rt {
		position: absolute;
		bottom: 0;
		right: 30px;
		transform: translateY(50%);
	}

	.some_projects li {
		width: 220px;
	}

	#skills ul {
		justify-content: unset;
	}

	#contacts section {
		justify-content: space-between;
	}

	#contacts section .txt {
		width: 60%;
	}
}

/* min laptop */
@media screen and (min-width:960px) {

	.side_links {
		position: fixed;
		top: 0;
		left: 30px;
		height: 50%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.side_links .line {
		width: 0.1px;
		height: 80%;
		background-color: var(--lcolor);
	}

	.side_links ul {
		list-style: none;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.side_links ul li {
		margin: 10px 0;
	}

	.side_links ul li a i {
		color: var(--graycolor);
		font-size: 25px;
	}

	main {
		width: 80%;
	}

	#home {
		height: 450px;
	}

	.bars {
		display: none;
	}

	.nav_links {
		display: flex;
		position: unset;
		top: 0;
		left: 0;
		width: unset;
		height: unset;
		padding: 0;
		flex-direction: row;
	}

	.nav_links li {
		margin: 0 15px;
		display: flex;
		font-size: 15px;
	}

	.nav_links li a i {
		font-size: 15px;
		margin-right: 5px;
	}

	.nav_links .lang {
		font-size: 18px;
	}

	.nav_links .lang i {
		margin-left: 5px;
		font-size: 15px;
	}

	#home section {
		justify-content: space-between;
	}

	#home section .txt {
		width: 50%;
		margin: 0;
		margin-right: 20px;
	}

	#home section .img {
		width: 40%;
	}

	#home section .img #dots {
		width: 70px;
		bottom: 90px;
	}

	#home section .img #logo {
		top: 100px;
		left: 20px;
	}

	.some_projects li {
		width: 260px;
	}

	#about section {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
	}

	#about section .txt {
		width: 50%;
	}

	#about section .img #profile {
		width: 90%;
	}
}

/* large laptop  */
@media screen and (min-width:1024px) {
	main {
		width: 900px;
	}
}