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

:root {
	--main-background: black;
	--main-fonts-color: #fff;
	--main-decor-color: #00a9e2;
	--main-header-background: #21252e;
	--main-font-family: 'Poppins', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
	z-index: 1;
}

main {
	padding: 0;
	width: 100%;
	height: 100%;
	background: var(--main-background);
}

/*────────────────── 
       header
──────────────────*/

header {
	margin: 0 auto;
	width: 100%;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	background: transparent;
	position: fixed;
	top: 0;
	transition: 0.3s;
	z-index: 5;
}

.nav-show {
	opacity: 0;
}


header:hover {
	opacity: 1;
	background: var(--main-header-background);
}

.logo {
	text-decoration: none;
}

.logo img {
	padding-top: 5px;
	height: 50px;
	cursor: pointer;
}

.nav-bar {
	list-style: none;
	position: relative;
	display: inline-flex;
}

a.nav-link {
	margin: 2px;
	padding: 5px 10px;
	text-decoration: none;
	color: var(--main-fonts-color);
	font-family: var(--main-font-family);
	cursor: pointer;
	text-transform: uppercase;
	border-radius: 0px;
	animation-play-state: paused;
}

@keyframes button
{
	from{
		background: transparent;
	}
	to{
		background: var(--main-decor-color);
	}
}

.active {
	background: var(--main-decor-color);
}

.nav-link:hover {
	color: #000000;
	animation: button 1s 1;
	background: var(--main-decor-color);
}

#itchb {
	text-decoration: underline;
}

/*──────────────────
       home
──────────────────*/

#home {
	margin: auto;
	height: 100vh;
	color: var(--main-fonts-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
}

#home .filter {
	background: url('https://images.unsplash.com/photo-1544099858-75feeb57f01b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat;
	background-size: cover;
	background-position: center;
	position: absolute;
	top: 0px;
	bottom: 0;
	left: 0;
	right: 0;
	opacity: 0.25;
}


.intro {
	text-align: center;
	color: var(--main-fonts-color);
	z-index: 2;
	margin: auto;
	padding: 20px;
}

.intro p {
	margin: 5px;
	font-size: 1.2rem;
	font-family: var(--main-font-family);
	text-align: center;
}

h3 {
	padding-bottom: 15px;
	letter-spacing: normal;
	font-family: var(--main-font-family);
	font-style: normal;
	font-size: 60px;
	color: var(--main-fonts-color);
	text-shadow: 0px 0px 40px var(--main-decor-color);
}

h4 {
	padding-top: 10px;
	padding-bottom: 10px;
	letter-spacing: normal;
	font-family: 'Tektur', sans-serif;
	font-style: normal;
	text-decoration: none;
	font-size: 40px;
	color: var(--main-fonts-color);
	text-shadow: 0px 0px 40px var(--main-decor-color);
}

h5 {
	padding: 30px 0px;
	letter-spacing: normal;
	font-family: var(--main-font-family);
	font-style: normal;
	font-size: 35px;
	color: var(--main-fonts-color);
	text-shadow: 0px 0px 40px var(--main-decor-color);
}

h6{
	text-decoration: none;
	color: #cb5353;   /*#438b88*/
}

/*──────────────────
    social media
──────────────────*/

.social-media {
	padding: 10px;
	display: flex;
	position: center;
	align-items: space-around;
	justify-content: center;
}

.social-media a {
	margin: 10px;
	font-size: 2rem;
	text-align: center;
	display: inline-block;
	color: var(--main-fonts-color);
}

.social-media a i {
	cursor: pointer;
}

.social-media a:hover {
	color: var(--main-decor-color);
	animation-name: socialLogo;
	animation-duration: 1s;
	text-shadow: 0 0 50px var(--main-decor-color);
	size: 23px;
}

@keyframes socialLogo
{
	from{
		text-shadow: 0 0 0px var(--main-decor-color);
	}
	to{
		text-shadow: 0 0 50px var(--main-decor-color);
	}
}

/*──────────────────
      projects
──────────────────*/

#projects {
	margin-top: 100px;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--main-fonts-color);
}

#projects #projectImage{
	background: url('https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse4.mm.bing.net%2Fth%3Fid%3DOIP.Gn67FLVSiYsnUaU1g1TgFwHaEK%26pid%3DApi&f=1&ipt=25738cf1f89b0c022ca91b101b1c792fdc687342bec72e168982686ded26a85b&ipo=images') no-repeat;
	background-size: cover;
	position: fixed;
	background-position: bottom;
	top: 0px;
	bottom: 0;
	left: 0;
	right: 0;
	opacity: 0;
}

#projects h3 {
	padding-top: 70px;
}


.image {
	height: 170px;
	width: 300px;
}

.image-Sk {
	height: 170px;
	width: 200px;
}

.projects {
	display: block;
	margin: 45px;
	height: 260px;
	width: 300px;
	background-color: black;
	border-radius: 40px;
	padding: 17px;
}

.box-a {
	text-decoration: none;
	color: var(--main-fonts-color);
	font-size: 1.3rem;
	text-align: center;
	align-items: center;
	display: flex;
	margin: 0px 0.1%;
	text-shadow: 0px 0px 40px white;
}



.work a p {
	text-shadow: 0px 0px 30px #00ffbf;
}

.work img {
	border-radius: 38px;
}

#projects p {
	font-family: var(--main-font-family);
	font-size: 1.2rem;
	padding: 10px;
}

.work {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	padding: 20px;
	margin: 0px 100px;
}

.card {
	display: flex;
	flex-direction: column;
	margin: 20px;
	width: 200px;
	height: 250px;
	border-radius: 12px;
	background: var(--main-decor-color);
}

.card img {
	width: 100%;
	height: 70%;
	border-radius: 10px 10px 0px 0px;
}

.card .work-content {
	text-align: center;
	padding: 10px 5px;
	font-size: 1rem;
	color: var(--main-fonts-color);
	font-family: var(--main-font-family);
	cursor: pointer;
}

.card a {
	text-decoration: none;
}

.card .work-content:hover {
	color: #202020;
}

.card:hover {
	box-shadow: 0 0 1.5rem gray;
}

#project-1 {
	color: pink;
}

/*──────────────────
      Contact
──────────────────*/

#contact {
	margin: auto;
	padding-bottom: 20px;
	height: 600px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--main-fonts-color);
}

#contact p {
	padding: 10px;
	text-align: center;
	font-size: 1.2rem;
	font-family: var(--main-font-family);
}

#codebutton {
	background-color: #007BFF;
	color: white;
	border: none;
	padding: 10px 20px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
}

#codebutton:hover {
	background-color: #0056b3;
}

#buttonA {
	text-decoration: none;
	color: white;
}

/*────────────────── 
       footer
──────────────────*/

footer {
	width: 100%;
	height: 100%;
	background-color: var(--main-header-background);
}
#year
{
	display: inline-block;
}

.copyright {
	color: #fff;
	font-size: 1.2rem;
	line-height: 40px;
	text-align: center;
}

.copyright a {
	color: #fff;
	font-size: 1rem;
	letter-spacing: 1px;
	text-decoration: none;
}

.copyright a:hover {
	color: var(--main-decor-color);
}

/*──── hr ─────*/

hr {
	background: var(--main-decor-color);
	margin: 2px;
	height: 3px;
	width: 150px;
	border-radius: 5px;
	border: hidden;
	margin-inline-start: auto;
	margin-inline-end: auto;
}

/*────────────────── 
     Scrollbar
──────────────────*/
::-webkit-Scrollbar {
	width: 5px;
	background: rgba(5, 5, 5, 1);
}

::-webkit-Scrollbar-thumb {
	border-radius: 10px;
	background: var(--main-decor-color);
	box-shadow: inset 0 0 20px var(--main-decor-color);
}

::-webkit-Scrollbar-track {
	margin-top: 80px;
	border-radius: 10px;
}

/*────────────────── 
     hamburger
──────────────────*/
.hamburger {
	display: none;
}

.hamburger div {
	width: 30px;
	height: 3px;
	background: #dbdbdb;
	margin: 5px;
	transition: all 0.3s ease;
}

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

.toggle .line2 {
	opacity: 0;
}

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

@keyframes navLinkFade {
	from {
		opacity: 0;
		transform: translatex(50px);
	}

	to {
		opacity: 1;
		transform: translatex(0px);
	}
}

/*────────────────── 
    media queries
──────────────────*/

@media only screen and (max-width: 1484px) and (min-width: 1214px) {
	.work {
		padding: 20px 20%;
	}
}

@media only screen and (max-width: 1214px) and (min-width: 1000px) {
	.work {
		padding: 20px 12%;
	}
}

@media only screen and (min-width: 585px) {
	.lines {
		display: none;
	}
}

@media only screen and (max-width: 500px) {
	/*the mobile media inquary */

	#home,
	#projects,
	#contact {
		overflow-x: hidden;
	}

	header {
		background-color: var(--main-header-background);
	}
	#headingtext
	{
		padding: 0;
		font-size: 20px;
	}

	.intro {
		height: auto;
	}

	.intro p 
	{
		font-size: 1rem;
	}
	.projects{
		width: 250px;
		height: 230px;
	}

	.image {
		height: 137px;
		width: 246px;
	}
	.logo {
		position: absolute;
		top: 17px;
		left: 30px;
	}

	.nav-show {
		opacity: 1;
	}

	.nav-bar {
		position: fixed;
		top: 0px;
		right: 0;
		width: 60%;
		height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-evenly;
		background: var(--main-header-background);
		transform: translatex(100%);
		transition: transform 0.5s ease-in;
		z-index: -1;
	}

	.hamburger {
		position: absolute;
		top: 17px;
		right: 10%;
		display: block;
		cursor: pointer;
		z-index: 5;
	}

	.nav-bar li {
		opacity: 0;
	}

	#h3heading {
		padding-top: 75px;
	}

	h4 {
		font-size: 25px;
		padding-top: 15px;
	}

	.aboutme {
		font-size: 1rem;
	}
}


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