:root {
	--color-dark-primary: hsl(0, 0%, 30%);
	--color-dark-secondary: hsl(0, 0%, 40%);

	--color-light-primary: hsl(0, 0%, 90%);
	--color-light-secondary: hsl(0, 0%, 75%);

	--color-accent-primary: hsl(55, 100%, 50%);

	--font-primary: "JetBrains Mono", monospace;
	--padding-x: 5rem;
	--container-width: 130rem;
}

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

html {
	font-size: 62.5%;
	/* 62.5% of 16px = 10px */
}

body {
	font-family: var(--font-primary);
	background-color: white;
	overflow-x: hidden;
}

section {


	overflow-x: hidden;
}

a {
	text-decoration: none;
}

/** Layout */
.section {
	position: relative;
	overflow-y: hidden;
}

.container {
	max-width: 130rem;
	position: relative;
	padding-left: var(--padding-x);
	padding-right: var(--padding-x);
	padding-top: var(--padding-x);
	padding-bottom: var(--padding-x);
	margin: 0 auto;
}

.section-title-upper-container {
	display: flex;
	gap: 0;
	align-items: center;
}

.section-title-upper {
	font-size: 2rem;
	text-transform: uppercase;
	color: var(--color-light-secondary);
	border: 1px solid var(--color-light-secondary);
	display: inline-block;
	padding: 0.6rem 1.2rem;
}

.section-title-upper-line {
	height: 1px;
	background-color: var(--color-light-secondary);
}

.section-title-upper-line:nth-child(3) {
	flex-grow: 1;
}

.section-title-upper-line:nth-child(1) {
	width: 5rem;
}

/** Typography */

h1 {
	font-size: 5rem;
}

h2 {
	font-size: 3rem;
}

p,
span,
div,
button,
li,
a {
	font-size: 2rem;
}

a {
	color: black;
	font-weight: 700;
}

.section-title {
	font-size: 20rem;
	position: absolute;
	bottom: -7rem;
	left: 0;
	user-select: none;
}

@media (width <=920px) {
	.section-title {
		font-size: 10rem;
		bottom: -3rem;
	}
}

/** Button */
.btn {
	padding: 0.7rem 1.6rem;
	font-size: 2rem;
	font-weight: 600;
	font-family: var(--font-primary);
	cursor: pointer;
}

.btn--primary {
	background-color: var(--color-accent-primary);
}

.btn:hover {
	background-color: var(--color-light-primary);
}

.btn:active {
	background-color: var(--color-light-secondary);
}

/** Header */

.nav-item {
	position: fixed;
	z-index: 100;
	right: 2rem;
	color: white;
	mix-blend-mode: difference;
	cursor: pointer;
	padding: 2px 8px;
	transition: 1s;
	display: block;
}

@media (width < 900px) {
	.nav-item {
		display: none;
	}
}

.hamburger {
	position: fixed;
	z-index: 100;
	right: 2rem;
	top: 2rem;
	background-color: var(--color-dark-secondary);
	border: 1px solid var(--color-light-secondary);
	cursor: pointer;
	width: 5rem;
	height: 5rem;
	display: none;
}

@media (width < 900px) {
	.hamburger {
		display: block;
	}
}

.hamburger:hover {
	background-color: var(--color-accent-primary);
	border: 1px solid var(--color-dark-primary);
}

.hamburger:hover .line {
	background-color: var(--color-dark-primary);
}

.hamburger .line {
	position: absolute;
	width: 60%;
	height: 3px;
	background-color: var(--color-light-primary);
	left: 50%;
	transform: translateX(-50%);
}

.hamburger .line:nth-child(1) {
	top: 35%;
}

.hamburger .line:nth-child(2) {
	top: 50%;
}

.hamburger .line:nth-child(3) {
	top: 65%;
}

.hamburger.show .line:nth-child(1) {
	top: 50%;
	left: 20%;
	transform: rotate(-45deg);
}

.hamburger.show .line:nth-child(2) {
	top: 50%;
	left: 20%;
	transform: rotate(45deg);
}

.hamburger.show .line:nth-child(3) {
	display: none;
}



.nav-item:hover {
	color: var(--color-accent-primary);
	mix-blend-mode: normal;
	background-color: black;
}

.nav-item:nth-child(1) {
	top: 40%
}

.nav-item:nth-child(2) {
	top: 45%
}

.nav-item:nth-child(3) {
	top: 50%
}

.nav-item:nth-child(4) {
	top: 55%
}

.nav-item:nth-child(5) {
	top: 60%
}

.nav-menu {
	position: fixed;
	background-color: var(--color-dark-secondary);
	width: 100%;
	height: 100vh;
	z-index: 50;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	display: none;
}

.nav-menu.show {
	display: flex;
}

.nav-menu-item {
	cursor: pointer;
	color: var(--color-light-secondary);
	padding: 1rem;
}

.nav-menu-item:hover {
	color: var(--color-accent-primary);
}

/** Hero */

.section--hero {
	min-height: 100vh;
	/* background-color: var(--color-light-primary); */
}


.section--hero .container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(1, 1fr);
	gap: 5rem;
}

@media (width <=900px) {
	.section--hero .container {
		grid-template-columns: repeat(1, 1fr);
		grid-template-rows: repeat(2, 1fr);
		gap: 5rem;
	}

	.section--hero {
		min-height: 10vh;
	}
}

.section--hero .logo {
	font-size: 5rem;
}

.section--hero .block {
	position: relative;
}

.section--hero .content {
	position: absolute;
	top: 50%;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: start;
}

.section--hero .box {
	background-color: var(--color-dark-primary);
	height: 80vh;
	width: 80%;
	position: relative;
}

@media (width <=900px) {
	.section--hero .box {
		height: 30rem;
		width: 80%;
	}
}

.section--hero .box::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: var(--color-dark-secondary);
	transform: translate(-1rem, -1rem);
}

/** About */

.section--about {
	/* min-height: 80vh; */
	padding-bottom: 25rem;
	background-color: var(--color-dark-secondary);
}

.section--about {
	color: var(--color-light-secondary);
}

.section--about p {
	margin-top: 2rem;
}

.section--about .section-title {
	color: var(--color-light-secondary);
}


/** Services */
.section--services {
	min-height: 100vh;
	background-color: var(--color-light-primary);
}

.section--services .section-title {
	color: var(--color-light-secondary);
}

.section--services .box-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5rem;
}

@media (width <=900px) {
	.section--services .box-container {
		grid-template-columns: repeat(1, 1fr);
	}
}

.section--services .box {
	background-color: var(--color-light-secondary);
	text-align: left;
	padding: 2rem 4rem 5rem 2rem;
	color: var(--color-light-primary);
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.section--services .box::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	right: 1rem;
	bottom: 1rem;
	background-color: var(--color-dark-secondary);
	/* transform: translate(-1rem, -1rem); */
	z-index: -1;
}

/** Projects */

.section--projects {
	min-height: 100vh;
	background-color: var(--color-dark-primary);
}

.section--projects .section-title {
	color: var(--color-dark-secondary);
}

.section--projects .box-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5rem;
	z-index: 1;
}

@media (width <=900px) {
	.section--projects .box-container {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		gap: 5rem;
	}
}

.section--projects .box {
	background-color: var(--color-light-primary);
	padding: 2rem;
	position: relative;
}

.section--projects .box::after {

	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	right: -1rem;
	bottom: -1rem;
	background-color: var(--color-light-secondary);
	/* transform: translate(-1rem, -1rem); */
	z-index: -1;
}

.section--projects .box a {
	display: inline-block;
	margin-top: 5rem;
	position: relative;
	z-index: 5;
	text-decoration: none;
	font-weight: bold;
	color: black;
}

.section--projects .box a::after {
	display: inline-block;
	position: absolute;
	content: "";
	background-color: var(--color-accent-primary);
	height: 1rem;
	width: 80%;
	right: 0;
	bottom: 0;
	z-index: -1;
}


.section--projects .box a:hover {
	color: var(--color-accent-primary);
}


/** Reviews */


.section--reviews {
	background-color: var(--color-light-primary);
}

.section--reviews .section-title {
	color: var(--color-light-secondary);
}

.section--reviews .review-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5rem;
}

@media (width <=900px) {
	.section--reviews .review-container {
		grid-template-columns: repeat(1, 1fr);
	}
}

.section--reviews .review {
	position: relative;
}

.quote {
	font-size: 50rem;
	position: absolute;
	top: 100%;
	left: -4rem;
	line-height: 10rem;
	color: var(--color-light-secondary);
	z-index: -1;
	user-select: none;
}

.stars {
	font-weight: 800;
	font-size: 3rem;
}

.review-source {
	text-align: end;
	padding-top: 2rem;
}

.corner {
	position: absolute;
	right: 0;
	top: 0;
	background-color: var(--color-light-secondary);
	width: 2rem;
	height: 0.2rem;
}

.corner::after {
	position: absolute;
	content: "";
	right: 0;
	top: 0;
	background-color: var(--color-light-secondary);
	width: 0.2rem;
	height: 2rem;
}

/** Contact */


.section--contact {
	background-color: var(--color-dark-secondary);
	color: white;
}

.section--contact a {
	color: white;
}

.section--contact a:hover {
	color: var(--color-accent-primary);
}

.section--contact .bottom {
	padding-top: 10px;
	padding-bottom: 10px;
	border-top: 1px solid var(--color-light-secondary);
	color: var(--color-light-secondary);
	text-align: center;
}

.section--contact .content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}


.section--contact .footer-line {
	position: relative;
	z-index: 2;
}

.section--contact .icon {
	position: absolute;
	top: -1rem;
}

/** social icons */
.icon {
	fill: var(--color-dark-primary);
	width: 5rem;
	height: 5rem;
	z-index: -1;
}

.social-icon {
	fill: white;
	width: 5rem;
	height: 5rem;
	margin-left: -0.5rem;
}

.social-icon:hover {
	fill: var(--color-accent-primary);
}