/* Home: the hero.
   One file per section; each screen size has its block below. */

/* Laptop and desktop */
@media screen and (min-width: 1025px) {
	.hero {
		width: 73rem;
		position: relative;
		min-height: 48rem;
		margin-top: 1.5rem;

		h2 {
			position: absolute;
			top: 2rem;
			left: 50%;
			transform: translateX(-50%);
			font-size: 2rem;
		}
		h1 {
			position: absolute;
			left: 50%;
			transform: translateX(-50%);
			font-size: 9rem;
		}
	}
	.hero-image {
		width: 27rem;
		height: 33.5rem;
		position: absolute;
		top: 7.5rem;
		left: 50%;
		transform: translateX(-4%) rotate(1deg);
		overflow: hidden;
		z-index: 1;
		transform-origin: center -1740%;

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			object-position: top;
			display: block;
		}
	}

	.hero-cards-container {
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		position: absolute;
		top: 38.5rem;

		> :nth-child(1) {
			h3 {
				line-height: 1.1;
			}
			width: 19rem;
			bottom: 10.5rem;
			left: -1rem;
			margin-left: 3.8rem;
		}
		> :nth-child(2) {
			width: 23.5rem;
			z-index: 2;
			box-shadow:
				1rem -10rem 4rem rgba(237, 237, 237, 0.45),
				1rem -5rem 2rem rgba(237, 237, 237, 0.7),
				2rem -1rem 2rem rgba(237, 237, 237, 0.7);
		}
		> :nth-child(3) {
			h3 {
				line-height: 1.1;
			}
			width: 19.5rem;
			bottom: 22rem;
			right: 1.5rem;
		}
	}

	.hero-card {
		padding: 1rem 2rem;
		border-radius: 1rem;
		background: linear-gradient(
			145deg,
			rgba(62, 62, 62, 0.5) 3%,
			rgba(14, 14, 14, 0.8) 35%,
			rgba(0, 0, 0, 0.5)
		);
		backdrop-filter: blur(5px);
		-webkit-backdrop-filter: blur(25px);
		border: 1px solid rgba(255, 255, 255, 0.14);
		box-shadow:
			inset 0 1px 1px rgba(255, 255, 255, 0.18),
			inset 0 -30px 50px rgba(0, 0, 0, 0.5),
			0 25px 60px rgba(0, 0, 0, 0.25);

		position: relative;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-items: start;
		justify-content: center;
		gap: 0.2rem;

		h3 {
			font-size: 1.8rem;
			color: #fff;
			position: relative;
			z-index: 1;
			font-weight: 400;
		}
		p {
			font-family: "Poppins";
			font-size: 0.9rem;
			color: #fff;
			position: relative;
			z-index: 1;
			word-spacing: 2px;
		}

		&::before {
			content: "";
			position: absolute;
			inset: 0;
			background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
			opacity: 0.9;
			mix-blend-mode: soft-light;
			pointer-events: none;
		}
		&::after {
			content: "";
			position: absolute;
			inset: 0;
			background: linear-gradient(
				120deg,
				rgba(255, 255, 255, 0.18),
				transparent 25%,
				transparent 70%,
				rgba(255, 255, 255, 0.04)
			);
			opacity: 0.9;
			pointer-events: none;
		}
	}
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.hero {
		width: 54.8rem;
		position: relative;
		min-height: 48rem;
		margin-top: 2rem;

		h2 {
			position: absolute;
			top: 2rem;
			left: 50%;
			transform: translateX(-50%);
			font-size: 2rem;
		}
		h1 {
			position: absolute;
			left: 50%;
			transform: translateX(-50%);
			font-size: 9rem;
		}
	}
	.hero-image {
		width: 25rem;
		height: 35rem;
		position: absolute;
		top: 7.5rem;
		left: 50%;
		transform: translateX(0%) rotate(2deg);
		overflow: hidden;
		z-index: 1;
		transform-origin: center -827%;

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			object-position: top;
			display: block;
		}
	}

	.hero-cards-container {
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		position: absolute;
		top: 38.5rem;

		> :nth-child(1) {
			h3 {
				line-height: 1.1;
			}
			width: 29%;
			bottom: 10.5rem;
			left: 1.5rem;
		}
		> :nth-child(2) {
			width: 44%;
			z-index: 2;
			box-shadow:
				1rem -10rem 4rem rgba(237, 237, 237, 0.45),
				1rem -5rem 2rem rgba(237, 237, 237, 0.7),
				2rem -1rem 2rem rgba(237, 237, 237, 0.7);
		}
		> :nth-child(3) {
			h3 {
				line-height: 1.1;
			}
			width: 27%;
			bottom: 22rem;
			right: 1rem;
		}
	}

	.hero-card {
		padding: 1rem 2rem;
		border-radius: 1rem;
		background: linear-gradient(
			145deg,
			rgba(62, 62, 62, 0.5) 3%,
			rgba(14, 14, 14, 0.8) 35%,
			rgba(0, 0, 0, 0.5)
		);
		backdrop-filter: blur(5px);
		-webkit-backdrop-filter: blur(25px);
		border: 1px solid rgba(255, 255, 255, 0.14);
		box-shadow:
			inset 0 1px 1px rgba(255, 255, 255, 0.18),
			inset 0 -30px 50px rgba(0, 0, 0, 0.5),
			0 25px 60px rgba(0, 0, 0, 0.25);

		position: relative;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-items: start;
		justify-content: center;
		gap: 0.2rem;

		h3 {
			font-size: 1.8rem;
			color: #fff;
			position: relative;
			z-index: 1;
			font-weight: 400;
		}
		p {
			font-family: "Poppins";
			font-size: 0.9rem;
			color: #fff;
			position: relative;
			z-index: 1;
			word-spacing: 2px;
		}

		&::before {
			content: "";
			position: absolute;
			inset: 0;
			background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
			opacity: 0.9;
			mix-blend-mode: soft-light;
			pointer-events: none;
		}
		&::after {
			content: "";
			position: absolute;
			inset: 0;
			background: linear-gradient(
				120deg,
				rgba(255, 255, 255, 0.18),
				transparent 25%,
				transparent 70%,
				rgba(255, 255, 255, 0.04)
			);
			opacity: 0.9;
			pointer-events: none;
		}
	}
}

/* Mobile */
@media screen and (min-width: 320px) and (max-width: 767px) {
	.hero {
		width: 22.85rem;
		position: relative;
		height: 36.5rem;
		margin-top: 4rem;

		h2 {
			position: absolute;
			top: 1.2rem;
			left: 50%;
			transform: translateX(-50%);
			font-size: 1.5rem;
		}
		h1 {
			position: absolute;
			left: 50%;
			transform: translateX(-50%) translateY(-3px);
			font-size: 7rem;
		}
	}
	.hero-image {
		width: 19rem;
		height: 25.5rem;
		position: absolute;
		top: 6.55rem;
		left: 50%;
		transform: translateX(-3%) rotate(2deg);
		overflow: hidden;
		z-index: 1;
		transform-origin: center -827%;

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			object-position: top;
			display: block;
		}
	}

	.hero-cards-container {
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		position: absolute;
		top: 20.75rem;

		> :nth-child(1) {
			h3 {
				line-height: 1.1;
			}
			width: 7.8rem;
			bottom: 4.5rem;
			right: 9.4rem;
			z-index: 4;
		}
		> :nth-child(2) {
			right: -0.65rem;
			width: 15rem;
			z-index: 2;
			box-shadow:
				1rem -10rem 4rem rgba(237, 237, 237, 0.45),
				1rem -5rem 2rem rgba(237, 237, 237, 0.7),
				2rem -1rem 2rem rgba(237, 237, 237, 0.7);
		}
		> :nth-child(3) {
			h3 {
				line-height: 1.1;
			}
			width: 8.7rem;
			bottom: 27.2rem;
			left: 9rem;
		}
		@media screen and (max-width: 320px){
			> :nth-child(1) {
				width: 7.6rem;
				bottom: 6rem;
				right: 7.45rem;
			}
		}	
	}

	.hero-card {
		padding: 1rem 0.9rem;
		border-radius: 1rem;
		background: linear-gradient(
			145deg,
			rgba(62, 62, 62, 0.5) 3%,
			rgba(14, 14, 14, 0.8) 35%,
			rgba(0, 0, 0, 0.5)
		);
		backdrop-filter: blur(5px);
		-webkit-backdrop-filter: blur(25px);
		border: 1px solid rgba(255, 255, 255, 0.14);
		box-shadow:
			inset 0 1px 1px rgba(255, 255, 255, 0.18),
			inset 0 -30px 50px rgba(0, 0, 0, 0.5),
			0 25px 60px rgba(0, 0, 0, 0.25);

		position: relative;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-items: start;
		justify-content: center;
		gap: 0.2rem;

		h3 {
			font-size: 1.2rem;
			color: #fff;
			position: relative;
			z-index: 1;
			font-weight: 300;
			line-height: 1.1;
			margin-bottom: 0.2rem;
		}
		p {
			font-family: "Poppins";
			font-size: 0.62rem;
			color: #fff;
			position: relative;
			z-index: 1;
			word-spacing: 2px;
		}

		&::before {
			content: "";
			position: absolute;
			inset: 0;
			background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
			opacity: 0.9;
			mix-blend-mode: soft-light;
			pointer-events: none;
		}
		&::after {
			content: "";
			position: absolute;
			inset: 0;
			background: linear-gradient(
				120deg,
				rgba(255, 255, 255, 0.18),
				transparent 25%,
				transparent 70%,
				rgba(255, 255, 255, 0.04)
			);
			opacity: 0.9;
			pointer-events: none;
		}
	}
}
