@import url('normalize.css');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@100..900&display=swap');

:root {
	--primary-color: #000;
	--secondary-color: #fff;
	--tertiary-color: #f0f0f0;
	--color-accent: #f7c0cb;
	--color-bg: #a58c9d;
	--color-main: #93838b;

	--title-font-family: 'Bebas Neue', sans-serif;
	--text-font-family: Arial, sans-serif;
	--text-color: #111;

	--padding: 3vw;
	--max-width: 1200px;
}

::-webkit-scrollbar {
	width: 2px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background-color: #000;
}

::-webkit-scrollbar-thumb:hover {
	background-color: #000;
}

html {
	scroll-behavior: smooth;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--text-font-family);
	background-color: var(--color-bg);
	/* border: 3rem solid white; */
}

h1,
h2,
h3 {
	font-family: var(--title-font-family);
	margin: 0;
	padding: 0;
}

h1 {
}
h2 {
	font-size: 3rem;
	line-height: 3.5rem;

	&:last-child {
		margin-bottom: 0;
	}
}
h3 {
	font-size: 1.5rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
	color: var(--text-color);

	&:last-child {
		margin-bottom: 0;
	}
}

p {
	font-size: 1.2rem;
	line-height: 1.6rem;
	margin-bottom: 1rem;
	color: var(--text-color);
	max-width: var(--max-width);

	&:last-child {
		margin-bottom: 0;
	}

	a {
		/* text-decoration: underline; */
		color: var(--secondary-color);
	}
}

a {
	text-decoration: none;
	color: var(--primary-color);
}

/* Custom Components */
.logo {
	line-height: 1;
	top: var(--padding);
	font-size: calc(2 * var(--padding));
	font-family: var(--title-font-family);
	color: var(--primary-color);
	color: var(--text-color);
	position: fixed;
	z-index: 8000;
	/* text-shadow: 5px 5px 0 var(--color-accent), -5px 5px 0 var(--color-accent),
		5px -5px 0 var(--color-accent), -5px -5px 0 var(--color-accent); */

	@media screen and (max-width: 420px) {
		font-size: calc(6 * var(--padding));
	}

	> div {
		position: relative;
		height: 100px;
		width: 300px;
		text-align: left;
		img {
			position: absolute;
			top: 0;
			left: 0;
			height: 100px;
			transition: opacity 0.4s ease, filter 0.4s ease;

			&.logo-handwritten {
				opacity: 0;
				filter: blur(5px);
				pointer-events: none;
			}
		}
	}

	&:hover .logo-clean {
		opacity: 0;
		filter: blur(5px);
	}

	&:hover .logo-handwritten {
		opacity: 1;
		filter: blur(0px);
	}
}

.slogan {
	font-size: 2.5rem;
	/* position: fixed;
    z-index: 8000;
    bottom: calc(var(--padding) * 4); */

	p {
		max-width: 75%;

		@media screen and (max-width: 768px) {
			max-width: 100%;
		}
	}
}

.col {
	width: 100%;
	/* display: flex; */
	/* flex-wrap: wrap; */
	/* gap: calc(2 * var(--padding)); */

	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: calc(2 * var(--padding));

	> div {
		min-width: 320px;
		flex: 1;
	}

	@media screen and (max-width: 768px) {
		display: block;

		> div {
			min-width: 100%;
		}
	}
}
.space {
	height: 5rem;
}

p {
    opacity: 0.75;
}

header {
	position: relative;
	padding: var(--padding);
	width: 100%;
	/* height: 80dvh; */
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: flex-end;

	.slogan {
		padding-top: 60dvh;
		@media screen and (max-width: 768px) {
			padding-top: 70dvh;
		}
	}

	video {
		position: absolute;
		top: 50%;
		left: 50%;
		min-width: 100%;
		min-height: 100%;
		width: auto;
		height: auto;
		z-index: -2;
		transform: translate(-50%, -50%);
		object-fit: cover;
		pointer-events: none;
		/* filter: grayscale(100%); */

		filter: saturate(150%);
	}

	.bg-image {
		position: absolute;
		left: 0;
		top: 0;
		/* top: 50%; */
		/* left: 50%; */
		min-width: 100%;
		min-height: 100%;
		width: auto;
		height: auto;
		z-index: -2;
		/* transform: translate(-50%, -50%); */
		/* object-fit: cover; */
		pointer-events: none;
		background-size: cover;
		background-position: center;

		img {
			min-width: 100%;
			min-height: 100%;
		}
	}

	.video-overlay {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		/* background: linear-gradient(
			to bottom,
			rgba(255, 105, 180, 0),
			rgba(58, 45, 54, 1)
		); */
		background: linear-gradient(
			to bottom,
			rgba(255, 105, 180, 0),
			var(--color-accent)
		);
		z-index: -1;

		@media screen and (max-width: 480px) {
			/* background: linear-gradient(
				to bottom,
				rgb(58, 45, 54),
				rgba(255, 105, 180, 0),
				rgb(58, 45, 54)
			); */
			background: linear-gradient(
				to bottom,
				var(--color-accent),
				rgba(255, 105, 180, 0),
				var(--color-accent)
			);
		}
	}
}

nav {
	position: fixed;
	z-index: 8000;
	right: var(--padding);
	top: var(--padding);
	display: flex;
	gap: var(--padding);
	font-weight: bold;
	font-size: 2rem;
	text-transform: uppercase;
	font-family: var(--title-font-family);

	a {
		display: flex;
		color: var(--text-color);

		&.active,
		&:hover,
		&:focus {
			color: var(--secondary-color);
		}
		
		svg{
			margin-top:-5px;
			height:40px;
		}
	}
}

.page-template-template-contact {
	nav {
		a {
			color: rgba(255, 255, 255, 0.5);

			&.active {
				color: var(--text-color);
			}
		}
	}
}

picture {
	position: relative;
	filter: opacity(100%);

	img {
		width: 100%;
	}
}

.picture-overlay {
	position: relative;

	div {
		position: absolute;
		z-index: 1;
		width: 100%;
		height: 100%;
		&::before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: linear-gradient(
				to bottom,
				rgba(247, 192, 203, 1),
				rgba(247, 192, 203, 0.1),
				rgba(247, 192, 203, 0.2),
				rgba(247, 192, 203, 0.4),
				rgba(247, 192, 203, 1)
			);
		}
	}
}

main {
	section {
		.space {
			display: none;
		}

		p {
			/* opacity: 0.5; */
			color: var(color-main);
		}
		img {
			width: 100%;
			height: auto;
		}
	}
}

main,
footer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	section {
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 10vh var(--padding);

		@media screen and (max-width: 768px) {
			padding-bottom: 0;
		}

		&:first-child {
			padding-top: var(--padding);
		}

		> h2 {
			margin: 0 0 var(--padding) 0;
			font-size: 3rem;
		}

		&.work {
			.work-container {
				display: grid;
				grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
				gap: calc(2 * var(--padding));

				@media screen and (max-width: 768px) {
					display: block;
				}
			}

			.work-tags {
				display: flex;
				flex-wrap: wrap;
				gap: 1rem;
				margin-top: 1rem;
				margin-bottom: 1rem;
				span {
					/* background-color: #000; */
					color: var(--text-color);
					opacity: 0.75;

					&::before {
						content: '#';
					}
				}
			}
		}

		&.contact {
			margin-top: -25vw;
			padding-bottom: 0;
			z-index: 1;
			display: flex;
			flex-wrap: wrap;
			flex-direction: row;
			gap: var(--padding);
			article {
				/* text-align: center; */
				display: flex;
				flex-direction: column;
				/* justify-content: center; */
				/* align-items: center; */

				p {
					max-width: 480px;
					/* color: var(--color-main); */

					strong {
						font-weight: normal;
						color: var(--text-color);
						font-size: 1.5rem;
						font-family: var(--title-font-family);
					}
				}
			}
		}
	}
}

footer {
	padding: 10vh;

	section {
		padding: 0 !important;
		margin: 0 !important;
		text-align: center;
		justify-content: center;
		align-items: center;

		p {
			margin: 0;
		}

		a {
			color: inherit;
		}

		div {
			text-align: left;
		}

		.flex {
			margin-top: 2rem;
			display: flex;
			flex-wrap: wrap;
			gap: var(--padding);

			> div {
				min-width: 240px;
			}
		}
	}
}

.video-container {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	background-color: rgba(0, 0, 0, 0.1);
}
.work-item {
	h2 {
		margin: 1rem 0 0 0;
	}
}

.work-video {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	aspect-ratio: 16 / 9;
	/* clip-path: url(#uMask); */
}

/* Hide default controls */
.work-video::-webkit-media-controls,
.work-video::-webkit-media-controls-panel,
.work-video::-webkit-media-controls-play-button,
.work-video::-webkit-media-controls-start-playback-button,
.work-video::-webkit-media-controls-volume-slider-container {
	display: none !important;
}

/* Blur elements */
.work-container {
	position: relative;
	transition: filter 0.3s ease;
}

.work-item {
	position: relative;
	transition: transform 0.3s ease, filter 0.3s ease, z-index 0s ease;
	z-index: 10;
}

.work-item:hover {
	/* transform: scale(1.05); */
	z-index: 20;
}

.work-item:hover ~ .work-item,
.work-container > :not(.work-item:hover) {
	filter: blur(8px);
	transition: filter 0.3s ease;
}

.work-item:hover ~ .work-item:hover {
	filter: none;
	transition: filter 0.3s ease;
}

.blurred {
	filter: blur(8px);
}

.sharp {
	z-index: 1000;
	/* transform: scale(1.05); */
}
