@charset "utf-8";
/* CSS Document */

html {
	scroll-behavior: smooth;
}

body {
	margin: 0px;
	padding: 0px;
	font-family: "Poppins", sans-serif;
	scroll-behavior: smooth;
}

* {
	box-sizing: border-box;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

/* Top section */
#main {
	width: 100%;
	height: 100vh;
	position: relative;
}

/* Top nav bar */
nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 5px 10px 30px rgba(0, 0, 0, 0.02);
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	z-index: 1;
	background-color: white;
	padding: 0% 5%;
}

.logo img {
	height: 50px;
}

nav ul {
	display: flex;
}

nav ul li a {
	height: 40px;
	line-height: 43px;
	margin: 3px;
	padding: 2px 25px;
	font-size: 0.8rem;
	text-transform: uppercase;
	font-weight: 500;
	color: #585b5b;
	letter-spacing: 1px;
}

.hey {
	color: #0099ff;
	font-weight: 500;
	font-size: 0.9rem;
}

nav ul li a:hover {
	background-color: #44b1fa;
	border-radius: 3px;
	color: white;
	box-shadow: 5px 10px 20px rgba(54, 138, 194, 0.25);
	transition: all ease 0.2s;
	cursor: pointer;
}

nav .menu-btn,
.menu-icon {
	display: none;
}

/* Intro */
.model img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding-right: 30px;
}

.model {
	width: 500px;
	height: 500px;
}

.content {
	width: 90%;
	display: flex;
	justify-content: space-around;
	align-items: center;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.main-text {
	width: 50%;
}

.main-text h1 {
	font-size: 3.5rem;
	color: #1c3548;
	margin: 0px 0px 10px 0px;
	line-height: 60px;
}

.main-text p {
	color: #747474;
}

.portfolio-btn {
	width: 190px;
	height: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	background: linear-gradient(#44ccff, #0088ff);
	border-radius: 25px;
	box-shadow: 4px 10px 20px rgba(24, 103, 139, 0.25);
}

.portfolio-btn:hover,
.contact-input a:hover {
	background: #008cff;
	cursor: pointer;
}

.line {
	margin: 40px;
	width: 80%;
	border: 0;
	height: 1px;
	background-image: linear-gradient(
		to right,
		rgba(0, 0, 0, 0),
		rgba(0, 0, 0, 0.1),
		rgba(0, 0, 0, 0)
	);
}

/* Projects */
#project {
	width: 100%;
	padding: 50px 0px;
	background-image: url("images/bg.png");
	background-position: center;
	background-size: 1400px;
}

.project-heading {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.project-heading h3,
#contact h3 {
	color: #1c3548;
	font-size: 3rem;
	margin: 0px;
	font-weight: 400;
	letter-spacing: 1px;
}

.project-container {
	display: flex;
	flex-wrap: wrap;
	margin: 20px 15px;
}

.project-box {
	display: flex;
	flex-direction: column;
	flex: 0 0 calc(33.333% - 20px);
	align-items: center;
	justify-content: flex-end;
	margin: 10px;
	padding: 20px;
	width: 100%;
	max-height: 500px;
	min-height: 100px;
	border-radius: 5px;
	background-color: white;
	box-shadow: 5px 10px 30px rgba(0, 0, 0, 0.08);
}

.project-box img {
	max-height: 200px;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 15px;
	object-fit: contain;
	border-radius: 3px;
	box-shadow: 2px 3px 7px rgba(0, 0, 0, 0.1);
}

.project-box strong {
	color: #1c3548;
	margin: 10px 0px;
	font-size: 1rem;
	font-weight: 600;
}

.project-box p {
	color: #747474;
	font-size: 0.9rem;
	margin: 0px;
	text-align: center;
	display: block;
	display: -webkit-box;
	max-width: 80%;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.project-box:hover {
	box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
	transition: all ease 0.5s;
	cursor: pointer;
}

/* Project Links */
.project-links {
	display: flex;
	flex-direction: row;
}

.project-links a {
	padding: 1px 10px;
	color: white;
	display: flex;
	font-size: 0.8rem;
	justify-content: center;
	align-items: center;
	margin: 5px 5px;
	border-radius: 4px;
}

.project-code {
	background: linear-gradient(#55e268, #00b928);
}

.project-demo {
	background: linear-gradient(#44ccff, #0088ff);
}

.project-code:hover {
	background: #00b928;
}

.project-demo:hover {
	background: #008cff;
}

/* Contact */
#contact {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 40px 0px;
}

#contact p {
	padding: 0 30px;
	text-align: center;
	display: block;
}

.contact-links {
	font-size: 3em;
	display: flex;
	flex-direction: row;
}

.contact-links a {
	margin: 10px;
	color: #008cff;
}

.contact-links a:hover {
	transform: translateY(-10px);
	color: #44b1fa;
	transition: ease 0.3s;
}

footer {
	display: flex;
	justify-content: space-around;
	border-top: 5px solid rgba(232, 232, 232, 0.5);
	background-color: #eeeeee;
}

footer p {
	margin: 15px 0px;
	color: #5f5f5f;
	font-size: 0.9rem;
}

@media (max-width: 900px) {
	.content {
		width: 100%;
	}
	/* Nav */
	.menu-icon {
		display: block;
	}
	nav {
		justify-content: space-between;
		height: 65px;
		padding: 0px 30px;
	}
	.logo img {
		height: 35px;
	}
	.menu {
		display: none;
		position: absolute;
		top: 65px;
		left: 0px;
		background-color: #ffffff;
		border-bottom: 4px solid #44b1fa;
		width: 100%;
		padding: 0px;
		margin: 0px;
	}
	.menu li {
		width: 100%;
	}
	nav .menu li a {
		display: flex;
		width: 100%;
		height: 40px;
		justify-content: center;
		align-items: center;
		margin: 0px;
		padding: 25px;
		border: 1px solid rgba(38, 38, 38, 0.03);
	}
	nav .menu-icon {
		cursor: pointer;
		float: right;
		padding: 28px 20px;
		position: relative;
		user-select: none;
	}
	nav .menu-icon .nav-icon {
		background-color: #333333;
		display: block;
		height: 2px;
		position: relative;
		transition: background 0.2s ease-out;
		width: 18px;
	}
	nav .menu-icon .nav-icon:before,
	nav .menu-icon .nav-icon:after {
		background: #333;
		content: "";
		display: block;
		height: 100%;
		position: absolute;
		transition: all ease-out 0.2s;
		width: 100%;
	}
	nav .menu-icon .nav-icon:before {
		top: 5px;
	}
	nav .menu-icon .nav-icon:after {
		top: -5px;
	}
	nav .menu-btn:checked ~ .menu-icon .nav-icon {
		background: transparent;
	}
	nav .menu-btn:checked ~ .menu-icon .nav-icon:before {
		transform: rotate(-45deg);
		top: 0;
	}
	nav .menu-btn:checked ~ .menu-icon .nav-icon:after {
		transform: rotate(45deg);
		top: 0;
	}
	nav .menu-btn {
		display: none;
	}
	nav .menu-btn:checked ~ .menu {
		display: block;
	}
	.model {
		width: 400px;
		height: 400px;
		margin-left: 30px;
	}
	.main-text h1 {
		font-size: 3rem;
	}
	.project-box {
		flex: 0 0 calc(50% - 20px);
	}
}

@media (max-width: 720px) {
}

@media (max-width: 580px) {
	.content {
		flex-direction: column;
	}
	.model {
		width: 90%;
	}
	.main-text {
		display: flex;
		flex-direction: column;
		width: 90%;
		align-items: center;
		margin: 0;
	}

	#project {
		margin-left: 5%;
		width: 85%;
	}

	.project-container {
		flex-direction: column;
		width: 100%;
		z-index: 1;
		margin: 0;
	}

	.project-box {
		height: auto;
	}
}
@media (max-width: 400px) {
	.main-text h1 {
		font-size: 2.5rem;
	}
	.portfolio-btn {
		width: 150px;
		height: 35px;
	}
	.project-heading h3,
	#contact h3 {
		font-size: 2.5rem;
	}
}
