@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@100;200;500;600&display=swap');

/* General */
html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	min-height: 100vh;
	height: auto;
	background-color: #161616;
	font-family: 'Barlow', sans-serif;
}

section {
	min-height: 100vh;
}

.section-title h2 {
	font-size: 4rem;
	color: #fff;
	font-weight: 500;
}

/* Navigation */
.menu-icon {
	position: fixed;
	top: 15px;
	left: 15px;
	width: 2rem;
	height: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	cursor: pointer;
	z-index: 10;
}

.menu-icon div {
	height: 0.25rem;
	background-color: white;
	transition: all 0.3s ease-in-out;
}

.active .bar1 {
	transform: translateY(0.6rem) rotate(-45deg);
}

.active .bar2 {
	opacity: 0;
}

.active .bar3 {
	transform: translateY(-0.75rem) rotate(45deg);
}

.nav-wrapper {
	height: 60px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
}

nav {
	height: 100%;
	color: white;
	position: fixed;
	top: 0;
	left: 0;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	width: 200px;
	z-index: 2;
}

nav ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 85%;
	font-size: 2rem;
}

nav ul li {
	margin: 1rem 0;
}

nav a {
	text-decoration: none;
	color: white;

	&:hover {
		padding-bottom: 5px;
		border-bottom: 5px solid white;
	}
}

nav.active {
	transform: translateX(0);
}

/* Home Section --------------------------------*/
#home {
	display: grid;
	place-items: center;
}

.slideshow {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	position: relative;
}

.slideshow::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .3);
	pointer-events: none;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 2s;
}

.slide.active {
	opacity: 1;

}

/* Title */
.page-title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	text-align: center;
}

.page-title h1 {
	font-size: 5rem;
	color: #fff;
	font-weight: 200;
	margin: 0;
}

/* Scroll Down Animation */
.mouse {
	width: 45px;
	height: 80px;
	border: 3px solid #fff;
	border-radius: 60px;
	position: absolute;
	bottom: 20px;
}

.mouse::before {
	content: '';
	width: 12px;
	height: 12px;
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 50%;
	background: #fff;
	opacity: 1;
	animation: wheelAnimation 2s infinite;
}

@keyframes wheelAnimation {
	to {
		opacity: 0;
		top: 60px;
	}
}

/* About Section -------------------------------- */
.about-container {
	display: grid;
	place-items: center;
}

.about-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: auto;
	grid-gap: 5px;
	color: #fff;
	width: 50vw;
}

.box1 {
	grid-area: 1 / 1 / 3 / 3;
}

.box2 {
	grid-area: 3 / 1 / 5 / 2;
}

.box3 {
	grid-area: 3 / 2 / 5 / 3;
}

.box4 {
	grid-area: 5 / 1 / 7 / 2;
}

.box5 {
	grid-area: 5 / 2 / 7 / 3;
}

.box6 {
	grid-area: 7 / 1 / 9 / 3;
}

.about-grid div {
	background: #05668d;
	display: grid;
	place-items: center;
	line-height: 1.5;
}

.text-box {
	box-sizing: border-box;
	width: 75ch;
	padding: 70px;
}

.icon-box {
	padding: 20%;
	text-align: center;
	color: black;
}

.icon-box i {
	font-size: 50px;
}

.icon-box:nth-child(2) {
	background: #028090;
}

.icon-box:nth-child(3) {
	background: #00a896;
}

.icon-box:nth-child(4) {
	background: #02c39a;
}

.icon-box:nth-child(5) {
	background: #f0f3bd;
}

/* Projects Section -------------------------------- */
.projects-container {
	text-align: center;
	margin-bottom: 100px;
	padding-top: 25px;
}

.projects-grid {
	display: grid;
	grid-gap: 20px;
	margin: 0 20%;
}

/* Mobile View: 1 column */
.projects-grid {
	grid-template-columns: 1fr;
}

/* Tablet View: 2 columns */
@media only screen and (min-width: 768px) {
	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Desktop View: 3 columns */
@media only screen and (min-width: 1025px) {
	.projects-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.grid-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.grid-item img {
	max-width: 300px;
	cursor: pointer;
}

.mockup {
	transition: transform 0.2s;

	&:hover {
		transform: scale(1.05);
	}
}

.github-link, .live-link {
	margin-top: 8px;
	padding: 6px 12px;
	border: 1px solid #333;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.3s ease;
	color: #fff;

	&:hover {
		background-color: #333;
	}
}

/* Contact Section --------------------------------*/
#contact {
	--parallelowow-tile-width: 60;
	--parallelowow-base-color: #78e3e3;
	--parallelowow-color-step: 0;
	--parallelowow-probability: 0.25;
	--parallelowow-stroke-weight: 0.5;
	background: paint(parallelowow), var(--parallelowow-base-color);
	color: #fff;
}

.contact-container {
	display: grid;
	place-items: center;
	height: 100vh;
	position: relative;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
}

.banner-link {
	display: block;
	height: 50px;
	width: 100%;
	position: relative;
	text-decoration: none;
	color: #fff;
}

.banner {
	position: absolute;
	left: 0;
	bottom: 10%;
	width: 100vw;
	height: 50px;
	background-color: #0e7d69;
	overflow: hidden;
	transform: rotate(-5deg);
	transform-origin: 0 100%;
	display: flex;
	align-items: center;
}

.banner-content {
	white-space: nowrap;
	display: inline-block;
	position: absolute;
	left: 0;
	animation: scrollBanner 60s linear infinite;
	transition: font-size 0.3s ease-in-out;
	font-size: 1rem;

	&:hover {
		font-size: 1.05rem;
	}
}

@keyframes scrollBanner {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.contact-message {
	margin-right: 50px;
}

/* Footer */
footer {
	position: relative;
}

.social-media-icons {
	width: 100%;
	font-size: 30px;
	position: absolute;
	bottom: 60px;
	display: flex;
	justify-content: center;
}

.social-media-icons i {
	cursor: pointer;

	&:hover {
		transform: scale(1.1);
	}
}

.social-media-icons i:not(:first-child) {
	margin-left: 10px;
}

footer small {
	position: absolute;
	bottom: 20px;
	width: 100%;
	text-align: center;
}

/* Media Queries ----------------------------------- */

/* All Mobile Devices */
@media screen and (max-width: 1180px) {
	html {
		scroll-behavior: auto;
	}

	nav {
		width: 100%;
		background: black;
	}

	nav ul {
		padding-left: 0;
	}
}

/* Tablet Vertical (Large) */
@media screen and (orientation: portrait) and (max-width: 1180px) {
	.about-grid {
		width: 80vw;
	}

	.text-box {
		width: 80vw;
		padding: 50px;
	}

	.projects-grid {
		margin: 0 10%;
	}

	.banner {
		transform: rotate(0deg);
	}
}

/* Tablet Horizontal (Large) */
@media screen and (min-width: 800px) and (max-width: 1180px) {
	.about-grid {
		width: 80vw;
	}

	.text-box {
		padding: 50px;
	}

	.projects-grid {
		margin: 0 10%;
	}
}

/* Tablet Horizontal (Small) */
@media screen and (orientation: landscape) and (max-height: 769px) {
	.section-title h2 {
		font-size: 3rem;
	}

	.banner {
		transform: rotate(0deg);
	}
}

/* Smartphone Horizontal */
@media screen and (min-width: 600px) and (max-width: 950px) {
	.page-title h1 {
		font-size: 4rem;
	}

	.banner {
		bottom: 80px;
	}
}

/* Smartphone Vertical */
@media screen and (max-width: 600px) {
	.section-title h2 {
		font-size: 3rem;
	}

	.about-grid {
		grid-template-columns: 1fr;
		width: 100vw;
	}

	.box1, .box2, .box3, .box4, .box5, .box6 {
		grid-area: unset;
		grid-column: 1;
	}

	.text-box {
		width: 90vw;
		padding: 40px;
	}

	.banner {
		transform: rotate(0deg);
	}
}