:root {
	--color-primary: hsl(180, 66%, 49%);
	--color-primary-dark: hsl(257, 27%, 26%);

	--color-secondary-red: hsl(0, 87%, 67%);

	--color-gray: hsl(0, 0%, 75%);
	--color-gray-violet: hsl(257, 7%, 63%);
	--color-blue-dark: hsl(255, 11%, 22%);
	--color-violet-dark: hsl(260, 8%, 14%);
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: inherit;
}

body {
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
	font-size: 1.8rem;
}

html {
	font-size: 62.5%;
}

.nav {
	display: flex;
	padding: 3.5rem 9rem;
}

.nav__logo {
	margin-right: 2rem;
}

.nav__icon {
	display: none;
}

.nav__container {
	display: flex;
	flex-basis: 100%;
	align-items: center;
}

.nav__list {
	list-style: none;
	display: flex;
	align-items: center;
}

.nav__list-left {
	margin-right: auto;
}

.nav__link {
	text-decoration: none;
	color: var(--color-gray-violet);
	font-weight: 500;
	padding: 1rem 2rem;
	font-size: 1.4rem;
	transition: all 0.3s;
}

.nav__link:hover {
	color: var(--color-violet-dark);
}

/* BUTTON STYLES */

.btn {
	border: none;
	border-radius: 0;
	font-family: inherit;
	font-weight: 700;
	font-size: 1.6rem;
	color: #fff;
	padding: 1rem 2.5rem;
	background-color: var(--color-primary);
	cursor: pointer;
	transition: all 0.3s;
}

.btn:hover {
	background-color: var(--color-gray-violet);
}

.btn-round {
	border-radius: 3rem;
}

.btn-curve {
	border-radius: 8px;
}

.btn-copy:hover {
	background-color: var(--color-primary-dark);
}

.btn-active {
	background-color: var(--color-primary-dark);
}

/* TYPOGRAPY STYLES */
.heading-1 {
	font-weight: 700;
	font-size: 6rem;
	line-height: 1.2;
}

.heading-2 {
	font-weight: 700;
	font-size: 3rem;
	text-align: center;
}

.heading-2--dark {
	color: var(--color-primary-dark);
}

.heading-2--light {
	color: #fff;
}

.heading-3 {
	font-weight: 700;
	font-size: 1.8rem;
	color: var(--color-primary-dark);
}

.heading-4 {
	font-size: 1.4rem;
}

.paragraph {
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--color-blue-dark);
}

.warning-text {
	color: var(--color-secondary-red);
	text-align: center;
	padding-top: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	transform: translateY(-100%);
	font-size: 1.4rem;
}

/* UTILITY CLASSES */

.mb-sm {
	margin-bottom: 1.5rem;
}

.mb-md {
	margin-bottom: 3rem;
}

.mb-lg {
	margin-bottom: 4rem;
}

.mb-bg {
	margin-bottom: 10rem;
}

/* LOADER STYLES */
.loader {
	padding: 4rem;
	margin-bottom: 2rem;
	background-image: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.3) 0%,
		transparent 50%,
		rgba(255, 255, 255, 0.3) 100%
	);
	background-size: 100%;
	transition: all 0.4s;
	width: 100%;
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	display: none;
	animation: loading 0.7s infinite forwards;
}

@keyframes loading {
	0% {
		background-size: 150%;
	}

	25% {
		background-size: 100%;
	}

	75% {
		background-size: 50%;
	}

	100% {
		background-size: 25%;
	}
}

.appear {
	opacity: 1;
	visibility: visible;
	display: block;
	transform: translateY(0);
}

/* HEADER STYLES */
.header {
	padding: 2rem 9rem;
	padding-right: 0;
	display: flex;
	justify-content: space-between;
	overflow: hidden;
}

.header__text {
	padding: 5rem 0;
}

.header__text-paragraph {
	color: var(--color-blue-dark);
	width: 90%;
}

.header__img-box {
	width: 100%;
}

.header__img {
	transform: translateX(15%);
}

/* SHORTEN SECTION STYLES */

main {
	background-color: var(--color-primary);
}
.section-shorten {
	margin: 2rem 9rem 1rem;
	padding: 6rem;
	text-align: center;
	background-color: var(--color-primary-dark);
	border-radius: 4px;
	background-image: url(../images/bg-shorten-desktop.svg);
	background-size: cover;
	transform: translateY(-50%);
	position: relative;
}

.shorten-input {
	font-family: inherit;
	border: none;
	width: 70%;
	padding: 1.2rem 2.5rem;
	border-radius: 4px;
	position: relative;
	margin-right: 2rem;
}

.shorten-label {
	position: absolute;
	left: 15%;
	z-index: -200;
}

/* LINKS SECTION STYLES */
.section-links {
	margin: 2rem 9rem;
}

.shorten__link {
	border-radius: 4px;
	background-color: #fff;
	display: flex;
	align-items: center;
	padding: 2rem;
	margin-bottom: 2rem;
}

.shorten__link-text {
	margin-right: auto;
}

.shorten__link-input {
	padding: 1rem;
	font-family: inherit;
	background-color: transparent;
	border: none;
	color: var(--color-primary);
	font-size: inherit;
}

/* STATS SECTION STYLES */
.section-stats {
	padding: 3rem 9rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
}

.main-pg {
	text-align: center;
	width: 40%;
}

.stat__box-container {
	display: flex;
	padding: 7rem 0 14rem;
}

.stat__box-container::after {
	content: '';
	background-color: var(--color-gray-violet);
	height: 5px;
	width: 80%;
	position: absolute;
	top: 60%;
	z-index: 1;
}

.stat__box {
	z-index: 3;
}

.stat__box-icon {
	background-color: var(--color-primary-dark);
	padding: 2rem;
	border-radius: 50%;
	transform: translate(20%, 50%);
}

.stat__box-details {
	background-color: #fff;
	padding: 6rem 2rem;
	border-radius: 4px;
}

.stat__box:not(:last-child) {
	margin-right: 3rem;
}

.stat__box:nth-child(2) {
	transform: translateY(3rem);
}

.stat__box:nth-child(3) {
	transform: translateY(6rem);
}

/* BOOST SECTION STYLES */
.section-boost {
	background-color: var(--color-primary-dark);
	text-align: center;
	padding: 4rem;
	background-image: url(../images/bg-boost-desktop.svg);
	background-size: cover;
}

/* BOOST SECTION STYLES */
.footer {
	background-color: var(--color-violet-dark);
	color: #fff;
	display: flex;
	padding: 4.5rem 9rem;
	flex-wrap: wrap;
}

.footer-brand {
	margin-right: auto;
}

.footer__nav {
	display: flex;
	margin-bottom: 6rem;
}

.footer__nav-box {
	margin-right: 8rem;
}

.footer__nav-list {
	list-style: none;
}

.footer__nav-items {
	font-size: 1.2rem;
	padding: 0.8rem 0;
}

.footer__nav-links {
	text-decoration: none;
	color: #fff;
}

.footer-icon {
	margin-right: 1rem;
}

.attribution {
	flex-basis: 100%;
}

.attribution a {
	text-decoration: none;
	color: var(--color-primary);
}

/* MEDIA QUERIES */
@media only screen and (max-width: 75em) {
	.heading-1 {
		font-size: 4.5rem;
	}

	.header__text-paragraph {
		font-size: 1.6rem;
	}
}

@media only screen and (max-width: 68.75em) {
	.heading-1 {
		font-size: 4rem;
	}

	.header__img-box {
		width: 70%;
	}

	.header__text-paragraph {
		width: 100%;
	}
}

@media only screen and (max-width: 64em) {
	.heading-1 {
		font-size: 4.5rem;
	}

	.header__img-box {
		width: 60%;
	}

	.header__img {
		transform: translateX(0);
	}
}

@media only screen and (max-width: 50em) {
	html {
		font-size: 56.25%;
	}

	.header__text {
		width: 50vw;
	}

	.header__img {
		max-width: 100%;
	}

	.header__text-paragraph {
		width: 80%;
	}

	.footer__nav-box {
		margin-right: 4rem;
	}

	.stat__box-container::after {
		width: 70%;
	}
}

@media only screen and (max-width: 43.75em) {
	html {
		font-size: 50%;
	}
}

@media only screen and (max-width: 37.5em) {
	.nav {
		padding: 3.5rem 4rem;
		position: relative;
	}

	.nav-brand {
		margin-right: auto;
	}

	.nav__logo {
		margin-right: 0;
	}

	.nav__icon {
		display: inline-block;
		height: 3rem;
		position: relative;
	}

	.nav__icon img {
		height: 3rem;
	}

	.nav__icon-open,
	.nav__icon-close {
		position: absolute;
		right: 0;
		transition: all 0.3s;
	}

	.nav__icon-fade {
		opacity: 0;
		visibility: hidden;
	}

	.nav__container {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-80%);
		position: absolute;
		top: 100%;
		left: 2.5rem;
		flex-direction: column;
		width: 90vw;
		background-color: var(--color-primary-dark);
		padding: 4rem;
		z-index: 0;
		border-radius: 8px;
		transition: all 0.6s ease-in;
	}

	.nav-display {
		opacity: 1;
		visibility: visible;
		pointer-events: initial;
		transform: translateY(0);
		z-index: 3;
	}

	.nav__list {
		display: flex;
		flex-direction: column;
		justify-items: center;
		align-content: center;
		width: 100%;
	}

	.nav__list-left {
		margin-right: 0;
		margin-bottom: 3rem;
		border-bottom: 1px solid var(--color-primary);
	}

	.nav__list-left,
	.nav__list-right {
		width: 100%;
	}

	.nav__item {
		margin-bottom: 4rem;
	}

	.nav__link {
		color: #fff;
		padding: 4rem 2rem;
		font-size: 2.4rem;
		transition: all 0.3s;
	}

	.nav__link:hover {
		color: var(--color-secondary-red);
	}

	.nav__list-right button {
		width: 90%;
	}

	/* TYPOGRAPHY STYLES */
	.heading-1 {
		font-size: 5rem;
		width: 80%;
	}

	.heading-2 {
		font-size: 4.5rem;
	}

	.heading-3 {
		font-size: 2.8rem;
	}

	.paragraph {
		font-size: 2.4rem;
	}

	.main-pg {
		width: 80%;
	}

	.mb-bg {
		margin-bottom: 15rem;
	}

	/* HEADER STYLES */
	.header {
		flex-direction: column-reverse;
		text-align: center;
		padding: 0;
		padding-right: 0;
		overflow: hidden;
	}

	.header__text {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 5rem 1rem;
		width: 100%;
	}

	.header__text-paragraph {
		width: 75%;
		text-align: center;
		font-size: 2.4rem;
	}

	.header__img-box {
		width: 90vw;
	}

	.header__img {
		transform: translateX(5%);
		display: block;
		overflow: hidden;
		max-width: 100%;
	}

	.shorten-input {
		width: 100%;
	}

	/* BUTTON STYLES */

	.btn {
		display: inline-block;
		font-size: 2.4rem;
	}

	.btn-round {
		padding: 1.5rem 6rem;
	}

	.btn-curve {
		width: 100%;
		padding: 2rem;
	}

	/* SHORTEN SECTION STYLES */
	.section-shorten {
		background-image: url(../images/bg-shorten-mobile.svg);
		background-position-x: 15rem;
		background-repeat: no-repeat;
		margin: 2rem 4rem;
	}

	.shorten-input {
		margin-right: 0;
		margin-bottom: 3rem;
		padding: 2rem;
		font-size: 1.8rem;
	}

	.shorten-label {
		top: 25%;
	}

	/* LINKS SECTION STYLES */
	.section-links {
		margin: 2rem 4rem;
	}

	.shorten__link {
		flex-direction: column;
		align-items: flex-start;
	}

	.shorten__link-text {
		margin-right: 0;
		margin-bottom: 1rem;
	}

	.shorten__link-input {
		padding: 1.5rem 0;
	}

	/* STATS SECTION STYLES */

	.stat__box-container {
		flex-direction: column;
		text-align: center;
	}

	.stat__box-container::after {
		width: 100%;
		transform: rotate(90deg);
		left: 0;
	}

	.stat__box:not(:last-child) {
		margin-right: 0;
	}

	.stat__box:nth-child(2),
	.stat__box:nth-child(3) {
		transform: translateY(0);
	}

	.stat__box-icon {
		transform: translate(0%, 50%);
	}

	/* BOOST SECTION STYLES */
	.section-boost {
		padding: 8rem;
		background-image: url(../images/bg-boost-mobile.svg);
		background-size: cover;
	}

	/* FOOTER STYLES */

	.footer {
		flex-direction: column;
		align-items: center;
		align-content: center;
	}

	.footer-brand {
		margin-right: 0;
		margin-bottom: 3rem;
	}

	.footer__nav {
		flex-direction: column;
		align-items: center;
		align-content: center;
	}

	.footer__nav-box {
		margin-right: 0;
		text-align: center;
	}

	.footer-icons {
		margin-bottom: 2rem;
		margin-right: 0;
	}

	.footer-icon:not(:last-child) {
		margin-right: 3rem;
	}

	.warning-text {
		font-size: 1.2rem;
	}
}

@media only screen and (max-width: 375px) {
	.heading-1 {
		font-size: 4rem;
	}

	.heading-2 {
		font-size: 3rem;
	}

	.paragraph,
	.header__text-paragraph {
		font-size: 1.8rem;
	}

	.stat__box-container::after {
		width: 150%;
		left: -25%;
	}

	.section-shorten {
		padding: 3.5rem;
	}

	.section-stats {
		padding: 3rem 4rem;
	}

	.section-boost {
		padding: 6rem;
	}

	.footer {
		padding: 4.5rem 4rem;
	}
}
