*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  	margin: 0;
  	position: relative;
	background-color: black;
}

/* TOP BAR FADE */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px; /* adjust height */

  background: linear-gradient(
    to bottom,
	rgba(0, 0, 0, 0.8) 0%,
	rgba(0, 0, 0, 0.15) 75%,
    rgba(0, 0, 0, 0) 100%
  );

  pointer-events: none;
  z-index: 5;
}

/* BOTTOM BAR FADE */

body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
	rgba(0, 0, 0, 0.15) 75%,
    rgba(0, 0, 0, 0) 100%
  );

  pointer-events: none;
  z-index: 5;
}

/* BG VIDEO */

#bg-video-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

#bg-video-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../home_poster.jpg') center center / cover no-repeat;
  z-index: 1;
  transition: opacity 0.8s ease;
}

#bg-video-container.loaded::before {
  opacity: 0;
}

#bg-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 100vw;
  height: 100vh;

  min-width: 177.78vh;   /* 16:9 */
  min-height: 56.25vw;

  transform: translate(-50%, -50%);
}




/* HEADER */

.header {
	position:fixed;
  	width: 100%;
  	display: flex;
  	justify-content: space-between;
  	align-items: center;
  	padding: 40px 8% 100px 8%;
  	z-index: 10;            /* space from window edges */
	font-family: "gotham", sans-serif;
	font-style: normal;
	transition: transform 0.9s ease; /* smooth hide/show */

}

.header.hidden {
  transform: translateY(-100%);
}

.logo {
	font-size: 20px;
	font-weight: 700;
	z-index: 30;
	
}

.menu {
  	display: flex;
  	gap: 30px;                      /* space between WORK and ABOUT */
  	font-size: 18px;
  	font-weight: 400;
}

/* HAMBURGER */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* ADD THIS RIGHT AFTER */
body.menu-open .hamburger {
  opacity: 0;
  pointer-events: none;
}

.hamburger span {
  	width: 30px;
  	height: 3px;
  	background: white; /* or black */
}

/* FULL SCREEN MENU */

.overlay {
  	position: fixed;
  	inset: 0;
  	background: rgba(0, 0, 0, 0.8);

  	display: flex;
  	justify-content: center;
  	align-items: center;

  	opacity: 0;
  	pointer-events: none;
  	transition: opacity 0.3s ease;

  	z-index: 20;
}

.overlay.active {
  	opacity: 1;
  	pointer-events: all;
}


.overlay-menu {
  	display: flex;
  	flex-direction: column;
  	gap: 20px;
  	text-align: center;
}

.overlay-menu a {
  	color: white;
	font-family: "gotham", sans-serif;
  	font-size: 18px;
  	font-weight: 400;
  	text-decoration: none;
}

.close {
  	position: absolute;
  	top: 25px;
  	right: 23px;
  	font-family: "gotham", sans-serif;
  	font-size: 40px;
  	font-weight: 300;
  	color: white;
  	cursor: pointer;
}

@media ( max-width : 768px ){
  	.desktop-menu {
    display: none;
  }

	.header {
		padding: 40px 4% 100px 4%;
	}
  	.hamburger {
    display: flex;
  }
}


.link {
  	text-decoration: none;
  	color: white;                   /* adjust as needed */
}





/* WORK */


.work {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  	gap: 60px 50px;
	margin: 0 8%;
	padding: 200px 0 24px 0;

}


.project {
	text-decoration: none;
  	opacity: 0;
 	transform: translateY(80px);
  	transition: opacity 1s ease, transform 1.5s ease;
}

.project.visible {
  opacity: 1;
  transform: translateY(0);
}

.media {
  position: relative;
  overflow: hidden;      /* THIS is crucial */
  border-radius: 12px;   /* adjust to taste */
}

.media video,
.media img {
  	width: 100%;
  	height: 100%;
 	 object-fit: cover;
  	display: block;
	opacity: 1;
  	transition: transform 0.5s ease, opacity 0.5s ease;

}

.project:hover video,
.project:hover img {
  transform: scale(1);
  opacity: 1;
}

.project-title {
  	position: relative;
	margin: 10px 0 0 0;
	font-style: normal;
  	color: #C7C7C7;
	font-family: "gotham", sans-serif;
	font-size: 14px;
  	font-weight: 400;
}


@media ( max-width : 768px ){
  	.work {
    grid-template-columns: 1fr; /* 1 column */
	gap: 50px;
	margin: 0 4%;
	}
}


/* PROJECT */

.work-project {
	margin: 0 8%;
	padding: 200px 0 24px 0;

}

@media ( max-width : 768px ){
	.work-project {
	margin: 0 4%;
	}
}

.project-block {
	margin: 0px 0 40px 0;
  	position: relative;
	font-style: normal;
  	color: #C7C7C7;
	font-family: "gotham", sans-serif;
	font-size: 14px;
  	font-weight: 300;
	line-height: 1.4;
}

@media ( max-width : 768px ){
	.project-block {
	font-size: 12px;
	}
}

.work-project .media{
	margin: 0;
	text-decoration: none;
	opacity: 0;
 	transform: translateY(80px);
  	transition: opacity 1s ease, transform 1.5s ease;

}

.work-project .media.visible {
  opacity: 1;
  transform: translateY(0);
}





.project-grid {
  	display: grid;
  	grid-template-columns: 1fr 1fr; 
	gap: 10px;

}


.project-grid img {
  	position: relative;
  	overflow: hidden;      /* THIS is crucial */
  	border-radius: 6px;   /* adjust to taste */
  	width: 100%;
  	height: 100%;
 	object-fit: cover;
  	display: block;
	opacity: 1;
}

@media ( max-width : 768px ){
  	.project-grid {
  	grid-template-columns: 1fr;
	gap: 10px;
	}
	.project-grid img {
	border-radius: 6px;	
	}
}

/*
@media (min-width: 769px) and (max-width: 1024px) {
  	.project-grid {
  	grid-template-columns: 1fr 1fr;
	gap: 10px;
	}
}
*/


.project-block-caption {
	font-size: 10px;
	letter-spacing: 0.1em;
	color:#CBCBCB;
	margin: -40px 0 0 0;
}

@media ( max-width : 768px ){
	.project-block-caption {
	font-size: 8px;
	}
}

.project-block-description {
	margin: 80px 0 120px 0;
}

.project-block-description .media {
	margin: 24px 0;
}
.project-block-description p {
	margin: 2px;
	text-align: center;
}

.project-block-description a {
	text-decoration: none;
	color: white;
}

.project-block-description .bold {
	font-weight: 700;
	color: white;
}

.project-block-description .italic {
	font-style: italic;
	color: white;
	

}

/* ABOUT */

.about {
	margin: 0 auto;
	padding: 200px 0 24px 0;
	width: 80%;
	max-width: 500px;
}

@media ( max-width : 768px ){
	.about {
	width: 80%;
	}
}

.about .media{
	margin: 0;
	text-decoration: none;
	opacity: 0;
 	transform: translateY(80px);
  	transition: opacity 1s ease, transform 1.5s ease;

}

.about .media.visible {
  opacity: 1;
  transform: translateY(0);
}


.about .media img {
	opacity: 1;
} 

.about p {
	font-size: 15px;
	margin: 14px auto;
	text-align: justify;
	text-align-last: center;
}

@media ( max-width : 768px ){
	.about p {
	font-size: 12px;
	}
}

.about p .bold {
	font-weight: 500;
}

.about a {
	text-decoration: none;
	color:white;
	
}


/* FOOTER */

.footer-fixed {
  	position: fixed;
  	bottom: 20px;
  	left: 0;
  	width: 100%;
  	text-align: center;
	font-family: "gotham", sans-serif;
	font-style: normal;
	font-size: 12px;
	font-weight: 400;
	color: white;
	z-index: 10;
}

.footer {
  	position: relative;
  	margin: 50px auto 30px auto;
  	width: 100%;
  	text-align: center;
	font-family: "gotham", sans-serif;
	font-style: normal;
	font-size: 12px;
	font-weight: 400;
	color: white;
	z-index: 10;
}
