html {
	scroll-behavior: smooth;
	box-sizing: border-box;
}
*, *::before, *::after {
	box-sizing: inherit;
	max-width: 100%;
}
body {
	margin: 0;
	font-family: 'Prompt', sans-serif;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ddd;
	background-image:
		linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
	background-size: 30px 30px;
	z-index: -1;
	mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}
#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

*:focus {
    outline: none;
}

header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: top;
    padding: 20px 20px;
    z-index: 1000;
    height: 170px;
    pointer-events: none;
    box-sizing: border-box;
}

.nav-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 170px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 999;
    pointer-events: none;
    box-sizing: border-box;
}

.logo {
	pointer-events: all;
}

.logo img {
	width:300px;
}

.menu {
    display: flex;
    align-items: center;
	margin-right: 10%;
	pointer-events: all;
	font-family: 'Prompt', sans-serif;
	font-weight:500;
	text-transform: uppercase;

}

.menu a {
    margin-left: 20px;
    text-decoration: none;
	color: #000000;
    font-size: .8em;
    transition: color 0.3s;
	padding: 8px 16px;
	border-radius: 48px;
}

.menu a:hover, .menu a:focus {
	background: #000;
	color: #fff;
}

.menu a:hover i {
	color: #fff;
}

.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 2em;
    color: #000;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
}
#main-wrapper {
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}
.containerBG {
	z-index: 0;
	position: relative;
	width: 100%;
	margin-top: 160px;
}
.container {
	position: relative;
	height: auto;
	min-height: 400px;
	box-sizing: border-box;
	overflow: visible;
	perspective: 800px;
	margin: 20px 40px 40px 25px;
}

/* Common project styles */
.project {
    position: absolute;
    width: 270px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
    transition: left 0.5s ease-out, top 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s, opacity 0.5s ease-out;
    box-shadow: 0 12px 6px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
}
.show {
	opacity: 1;
}
.project img {
	width: 100%;
    height: 100%;
	pointer-events: none;
}

/* Hover effect */
.project:hover {
    box-shadow: 0 48px 32px rgba(0, 0, 0, 0.6);
    z-index: 100 !important;
	width: 360px;
    height: 200px;
	margin-left: -5px;
	margin-top:-40px;
	animation: moveUpDown 2s ease-in-out infinite;
	cursor:pointer;
	transition: .5s;
}

	
@keyframes moveUpDown {
	0% {
		transform: rotateX(18deg) translate3d(0px, 0px, -10px);
		box-shadow: 0 48px 32px rgba(0, 0, 0, 0.5);
	}
	50% {
		transform: rotateX(18deg) translate3d(0px, 0px, 10px);
		margin-top:-10px;
		box-shadow: 0 38px 16px rgba(0, 0, 0, 0.5);
	}
	100% {
		transform: rotateX(18deg) translate3d(0px, 0px, -10px);
		box-shadow: 0 48px 32px rgba(0, 0, 0, 0.5);
	}
}


#allprojects {
	margin-top:50px;
	padding:40px;
	z-index:5px;
}
.projectsList {
	display: grid;
	margin: auto;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.column {
	box-sizing: border-box;
}
.header {
	font-family: 'Zalando Sans Expanded', sans-serif;
	font-weight: 900;
	font-style: italic;
	font-size: 1.4em;
	text-transform: uppercase;
	margin-top: 30px;
	margin-bottom: 50px;
	border: 3px solid #000;
	border-radius: 40px;
	background: transparent;
	padding: 8px 28px 8px 26px;
	display: table;
	margin-left: auto;
	margin-right: auto;
}



/* Tablet nav responsive */
@media (max-width: 1000px) {
	header {
		max-width: 100%;
		left: 0;
		transform: none;
	}

	.menu-toggle {
		margin: auto;
		pointer-events: all;
		display: block;
		z-index: 10002;
	}

	.menu {
		display: none;
		flex-direction: column;
		position: fixed;
		background: rgba(255, 255, 255, 0.98);
		width: 100%;
		height: 100%;
		overflow-y: auto;
		z-index: 10001;
		top: 0;
		left: 0;
		padding: 80px 40px 40px;
		box-sizing: border-box;
		pointer-events: all;
		transition: opacity 0.2s ease-in-out;
	}

	.menu.show {
		display: flex;
		opacity: 1;
		border-radius: 24px;
	}
	.menu.show a {
		border-radius: 40px;
	}

	.menu a {
		margin: 15px 0;
		text-align: center;
		padding: 15px 25px;
		display: block;
		box-sizing: border-box;
		font-size: 1.2em;
		border-radius: 24px;
	}
}

/* Mobile responsive */
@media (max-width: 600px) {
	html, body {
		max-width: 100vw;
		overflow-x: hidden;
	}

	#scrollIndicator {
		display: none;
	}

	header {
		width: 100%;
		max-width: 100vw;
		left: 0;
		transform: none;
		padding: 15px 15px;
	}

	.logo img {
		width: 200px;
	}

	.menu-toggle {
		margin: auto;
		pointer-events: all;
		display: block;
		z-index: 10002;
	}

	.menu {
		display: none;
		flex-direction: column;
		position: fixed;
		background: rgba(255, 255, 255, 0.95);
		width: 100%;
		height: 100%;
		overflow-y: auto;
		z-index: 10001;
		top: 0;
		left: 0;
		padding: 80px 20px 20px;
		box-sizing: border-box;
		pointer-events: all;
		transition: opacity 0.3s ease-in-out;
	}

	.menu.show {
		display: flex;
		opacity: 1;
	}

	.menu a {
		margin: 15px 0;
		text-align: center;
		padding: 15px;
		display: block;
		box-sizing: border-box;
		font-size: 1.2em;
		border-radius: 40px;
	}

	#main-wrapper {
		min-width: auto;
	}

	.container {
		height: auto;
		margin-top: 75px;
	}

	.containerBG {
		padding-bottom: 0;
		margin-top: 60px;
	}

	.project {
		position: relative !important;
		width: 100%;
		max-width: 300px;
		height: auto;
		margin: 0 auto 30px auto !important;
		left: auto !important;
		top: auto !important;
		transform: none !important;
		opacity: 1 !important;
		transition: transform 0.3s, box-shadow 0.3s;
		border-radius: 12px;
		overflow: hidden;
		box-shadow: none;
	}

	.project:hover {
		animation: none;
		width: 300px;
		height: auto;
		transform: scale(1.02) !important;
		transition: transform 0.3s !important;
		z-index: 10;
	}

	.project:hover img {
		display: block;
		transition: transform 0.3s;
	}

	.project img {
		width: 100%;
		height: auto;
		display: block;
		transition: transform 0.3s;
	}

	.projectsList {
		grid-template-columns: 1fr;
	}

	#allprojects {
		margin-top:10px;
		padding: 10px 20px;
	}

	.header {
		font-size: 1.4em;
		padding-bottom: 15px;
	}

	.about-container {
		grid-template-columns: 1fr !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 30px;
	}

	.about-image {
		display: flex;
		justify-content: center;
	}

	.about-image img {
		max-width: 200px;
		margin: 0 auto;
	}
}

i {
    font-size: 16px; /* Adjust size */
    color: #666; /* Change color */
    transition: color 0.3s; /* Smooth color transition */
}

.projectListItem {
	padding-bottom:16px;
	font-weight: 500;
	font-family: 'Prompt', sans-serif;
}
.studioName {
	font-size: 1em;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 500;
}
#scrollIndicator {
	margin: auto;
	text-align: center;
	width:100%;
	height:50px;
	padding-top: 20px;
}
#scrollIndicator i {
	font-size:5em;
	color: #ababab;
}
.scrollIcon {
	animation: scrollIconAnim 2s ease-in-out infinite;
}
@keyframes scrollIconAnim {
	0% {
		margin-top:0px;
	}
	50% {
		margin-top:-10px;
	}
	100% {
		margin-top:0px;
	}
}
.project img:hover {
	width:230px;
	height:180px;
}

.about-section {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

.about-container {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 40px;
	align-items: center;
}

.about-image {
	text-align: center;
}

.about-image img {
	width: 100%;
	max-width: 300px;
	height: auto;
}

.about-content p {
	font-family: 'Prompt', sans-serif;
	font-size: 1.1em;
	line-height: 1.7;
	color: #333;
}

/* Project Page Styles */
.hero-video {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	pointer-events: none;
	opacity: 0.25;
}

.hero-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 140px 20px 60px;
}

.project-title {
	font-family: 'Zalando Sans Expanded', sans-serif;
	font-weight: 900;
	font-style: italic;
	font-size: 3.5em;
	text-transform: uppercase;
	margin-bottom: 30px;
}

.project-title-line {
	height: 4px;
	background-color: #ccc;
	border-radius: 4px;
	margin-bottom: 40px;
}

.project-content {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-bottom: 50px;
}

.project-content .project-meta-row {
	display: flex;
	justify-content: flex-start;
	gap: 60px;
	flex-wrap: wrap;
}

.project-content .project-meta-row .project-meta-item {
	margin-bottom: 0;
}

.project-content .project-description {
	margin-bottom: 0;
}

.video-wrapper {
	margin: 25px 175px;
	border-radius: 40px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
	border-radius: 40px;
}

.video-wrapper video {
	transition: transform 0.3s ease;
}

.video-wrapper:hover video {
	transform: scale(1.02);
}

.project-description {
	font-size: 1.1em;
	line-height: 1.7;
	color: #333;
}

.project-meta {
	font-family: 'Prompt', sans-serif;
}

.project-meta-item {
	margin-bottom: 20px;
}

.project-meta-label {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85em;
	color: #666;
	margin-bottom: 5px;
}

.project-meta-value {
	font-size: 1.1em;
}

.project-meta-row {
	display: flex;
	justify-content: flex-start;
	gap: 60px;
	flex-wrap: wrap;
}

.project-meta-row .project-meta-item {
	margin-bottom: 0;
}

.gallery-label {
	margin-top: 100px;
}

.masonry-gallery {
	columns: 3;
	column-gap: 20px;
}

.gallery-item {
	break-inside: avoid;
	margin-bottom: 20px;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.3s;
	transform-style: preserve-3d;
}

.gallery-item img {
	width: 100%;
	display: block;
	border-radius: 12px;
	transform-style: preserve-3d;
}

.gallery-item:hover {
	box-shadow: 0 48px 32px rgba(0, 0, 0, 0.6);
}

.gallery-item.tilting img {
	transform-origin: center center;
}

.gallery-item-label {
	font-family: 'Prompt', sans-serif;
	font-size: 0.9em;
	color: #666;
	margin-bottom: 8px;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-label {
	opacity: 1;
}

/* Project Page Media Queries */
@media (max-width: 960px) {
	.project-page header {
		max-width: 100%;
		left: 0;
		transform: none;
	}
	.project-page {
		padding: 130px 20px 60px;
	}
	.menu-toggle {
		margin: auto;
		pointer-events: all;
		display: block;
		z-index: 10002;
	}

	.menu {
		display: none;
		flex-direction: column;
		position: fixed;
		background: rgba(255, 255, 255, 0.98);
		width: 100%;
		height: 100%;
		overflow-y: auto;
		z-index: 10001;
		top: 0;
		left: 0;
		padding: 80px 40px 40px;
		box-sizing: border-box;
		pointer-events: all;
		transition: opacity 0.2s ease-in-out;
	}

	.menu.show {
		display: flex;
		opacity: 1;
	}

	.menu a {
		margin: 15px 0;
		text-align: center;
		padding: 15px 25px;
		display: block;
		box-sizing: border-box;
		font-size: 1.2em;
		border-radius: 8px;
	}
}

@media (max-width: 768px) {
	.project-page {
		padding: 150px 20px 60px;
	}

	.masonry-gallery {
		columns: 1;
	}

	.project-title {
		font-size: 2.5em;
		margin-top: 0;
	}

	.project-content {
		display: flex;
		flex-direction: column;
	}

	.project-content .project-meta-row {
		order: 1;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 30px;
		margin-bottom: 30px;
	}

	.project-content .project-description {
		order: 2;
	}

	.video-wrapper {
		order: 3;
	}

	.project-meta-row {
		flex-direction: column;
		gap: 20px;
	}

	.gallery-label {
		margin-top: 60px;
	}
}