* {
	margin: 0;
	/* padding: 0; */
	box-sizing: border-box;
}

body {
	font-family: "Lato", Arial, serif;
	line-height: 1.3;
	color: white;
	background: #FECEA8;
	background-image: url("/images/patterns/gradient-squares_large.png"), linear-gradient(#99B898, #FECEA8, #c4655e, #7a2732, #2A363B 90%);
	/* background-image: url("/images/patterns/gradient-squares.png"), linear-gradient(#99B898, #FECEA8, #FF847C, #E84A5F, #2A363B 90%); */
	/* background-image: linear-gradient(#99B898, #FECEA8, #FF847C, #E84A5F, #2A363B 90%); */
	/* will-change: transform; */
	/* transform: translateZ(0);  */
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	background-attachment: fixed; 
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Patua One", Arial, serif;
	text-align: center;  
	color: #E84A5F;
}

h1 { font-size: 2rem; margin-bottom: 1.5rem; color: black }
h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 1.0rem; }
p { font-size: 1.0rem; margin-bottom: 1.0rem; color: white; font-family: "Lato", Arial, serif; }
li { font-size: 1.0rem; color: white; font-family: "Lato", Arial, serif; }

/* ul { margin-bottom: 1rem;} */

/* --- Nav & Logo --- */
.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 5%;
	position: fixed;
	width: 100%;
	top: 0;
	background: #1a1a1a;
	background-image: url("/images/patterns/dark-leather.png");
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	border-bottom: 2px solid #99B898;
	font-family: "Patua One", Arial, serif;
}

.logo {
	font-size: 1.2rem;
}

.logo-name {
	font-size: 1.5rem;
	color: #E84A5F;
	text-decoration: none;
	display: inline-block;
	position: relative;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 2rem;
}

.nav-links a {
	text-decoration: none;
	font-size: 1.2rem;
	font-family: "Patua One", Arial, serif;
	color: white;
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: #E84A5F;
}

/* --- Hero Section --- */
.hero {
	position: relative;
	height: 100vh;
	overflow: hidden;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 5%;
	margin-top: 60px; 
}

.hero-bg-slider {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-bg-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: translateX(100%);
	transition: transform 1.1s ease-in-out;
	z-index: 0;
}

.hero-bg-slide.active {
	transform: translateX(0);
	z-index: 2;
}

.hero-bg-slide.prev {
	transform: translateX(0);
	z-index: 1;
}

.hero-bg-slide.no-transition {
	transition: none;
}


.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(26, 26, 26, 0.25);
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 2;
	background: rgba(26, 26, 26, 0.90);
	padding: 1rem;
}

.hero-content h1 {
	color: #E84A5F;
}

.hero-content p {
	color: white;
}

/* --- Button --- */
.btn {
	display: inline-block;
	padding: 0.8rem 2rem;
	background: #222;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	margin-top: 1rem;
	transition: background 0.3s;
	border: 2px solid #99B898;
}

.btn:hover { 
	background: #E84A5F;
}

/* --- Layout Sections --- */
.section {
	/* padding: 5rem 5%; */
	padding: 2rem;
	padding-left: 5rem 5%;
	padding-right: 5rem 5%;
	max-width: 1400px;
	margin: 0 auto;
}

.fg-dark {
	background-image: linear-gradient(to right, #1a1a1a, hsla(0, 0%, 0%, 0.0) );
	max-width: 100%;
	/* display: inline-flex; 
    flex-direction: column;  */
		text-align: center;
	/* max-width: 800px; */
		margin: 0 auto;

}

.bg-dark {
	max-width: 100%;
	/* background-color: rgba(27, 27, 27, 0.95); */
	/* background-color: rgba(42, 54, 59, 0.95); */
	background: 
		linear-gradient(to right, #1a1a1a, hsla(0, 0%, 0%, 0.0)),
		url("/images/patterns/random-grey-variations.png"),
		rgba(42, 54, 59, 0.95);
	
	
	;


/* background-image: linear-gradient(to right, #1a1a1a, hsla(0, 0%, 0%, 0.0) )
	url("/images/patterns/random-grey-variations.png"); */

	/* background-image: url("/images/patterns/random-grey-variations.png"); */
	/* background-image: url("/images/patterns/random-grey-variations.png"), linear-gradient(to right, #1a1a1a, hsla(0, 0%, 0%, 0.0) ); */
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	padding: 3.5rem 2rem;
	border: 2px solid #99B898;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* --- Timeline Container --- */
.timeline {
	position: relative;
	max-width: 1400px;
	margin: 3rem auto;
}

.timeline h2 {
	color: #E84A5F;
}

.timeline-description {
	text-align: center;
	color:white;
	max-width: 600px;
	margin: 2rem auto;
}

/* Central Vertical Line */
.timeline::after {
	content: '';
	position: absolute;
	width: 2px;
	background-color: #222;
	top: 0;
	bottom: 0;
	left: 10%;
	transform: translateX(-50%);
}

.timeline-item {
	padding: 10px 25px;
	position: relative;
	width: 90%;
	left: 10%;
}

.timeline-item.left {
	left: 0;
	text-align: right;
}

.timeline-item.right {
	left: 10%;
	text-align: left;
}

.timeline-dot {
	position: absolute;
	width: 14px;
	height: 14px;
	right: -8px;
	background-color: #fff;
	border: 3px solid #222;
	/* top: 25px; */
	/* top: 3rem; */
	top: 5rem;
	border-radius: 50%;
	z-index: 2;
}

.timeline-item.right .timeline-dot {
	left: -8px;
}

.timeline-content {
	padding: 1.0rem;
	/* background-color: #fff; */
	/* border: 1px solid #eaeaea; */
	border: 2px solid #99B898;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
	background-color: rgba(42, 54, 59, 0.95);
	background-image: url("/images/patterns/random-grey-variations.png");
}

.timeline-content .date {
	font-size: 0.8rem;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0.4rem;
	display: block;
}

.timeline-content {
	padding: 0;
	overflow: hidden;
}

.project-cover {
	position: relative;
	/* display: inline-block; */
}

.project-cover img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* Header & Metadata */
.project-header {
	padding: 1rem;
	/* background-image: url("/images/patterns/dark-leather.png"), linear-gradient(to right, #1a1a1a, hsla(0, 0%, 0%, 0.0) ); */
	background-image: linear-gradient(to right, #1a1a1a, #1a1a1a, hsla(0, 0%, 10%, 0.90), hsla(0, 0%, 10%, 0.95), hsla(0, 0%, 0%, 0.0) );
	position: absolute;
	top: 0%;
	left: 0%;
	text-align: left;
}

.year-badge {
	font-size: 1.25rem;
	font-weight: 700;
	color: #343434;
	background: #f0f0f0;
	padding: 0.2rem;
	border-radius: 4px;
	text-align: center;
	/* margin: -0.2rem; */
	/* margin-right: 0.5rem */
}

.game-title {
	/* font-size: 2rem; */
	font-size: clamp(1.75rem, 5vw, 2rem);

	/* margin: 0.3rem; */
	margin-bottom: 0.3rem;
	text-align: left;
	/* margin-bottom: 0.5rem; */
	/* font-size: 2rem; */
}

.project-meta {
	font-size: 1.1rem;
	color: #e9e9e9;
	text-align: left;
	margin-top: 0.5rem;

	display: flex;
	flex-wrap: wrap; 
	/* align-items: center; */
	/* gap: 8px;  */
}

.project-meta .divider {
	margin: 0 0.4rem;
	color: #ccc;
}

.corner {
  position: absolute;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6); 
  color: white;
  font-family: sans-serif;
}

.top-left {
  top: 0;
  left: 0;
}

.project-body {
	padding: 1rem 1.5rem 1.5rem;
	/* background-image: url("/images/patterns/dark-leather.png"), linear-gradient(to right, #1a1a1a, hsla(0, 0%, 0%, 0.0) ); */
	background-image: linear-gradient(to right, #1a1a1a, hsla(0, 0%, 0%, 0.0) );
}

.project-body h4 {
	text-align: justify;
	font-size: 1.25rem;

}

.project-body h5 {
	text-align: justify;
	font-size: 1.125rem;

}

.project-body p {
	margin-bottom: 1.25rem;
	text-align: justify;
}

.project-body ul {
	margin-bottom: 1rem;
}


.work-videocontainer {
  width: 100%;            
  aspect-ratio: 16 / 9;  
  margin-bottom: 1rem;
}

.work-videocontainer iframe {
  width: 100%;
  height: 100%;
  display: block;   
}



.media-frame {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 Ratio */
	height: 0;
	margin: 1.5rem 0;
	border-radius: 6px;
	overflow: hidden;
	background: #000;
}

.media-frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Embedded Media Gallery */
.media-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	
	margin: 1.5rem 0;
}

.media-gallery img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 6px;
	transition: opacity 0.3s ease;
}

.media-gallery img:hover {
	opacity: 0.9;
}

.project-card {
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.project-card:hover {
	transform: translateY(-5px);
}

.project-image {
	background: #ddd;
	height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
}

.project-card h3 {
	margin: 1rem 1rem 0.5rem;
	font-size: 1.2rem;
}

.project-card p {
	margin: 0 1rem 1.5rem;
	font-size: 0.9rem;
}

footer {
	text-align: center;
	padding: 2rem;
	color: #fff;
	background: #1a1a1a;
	background-image: url("/images/patterns/dark-leather.png");
}

footer p { color: #ccc; margin: 0; font-size: 0.9rem; }

.indie-content p {
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

.about-image {
  /* margin: 15px; */
  /* max-width: 250px; */
  border: 3px solid white;
  /* object-fit: cover; */
  box-shadow: 0px 0px 10px 1px black;
  /* background-size: cover; */
  max-width: 100% !important;
  height: auto;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background-color: #18181b;
}

.social-links {
  display: flex;
  gap: 3.25rem;
  justify-content: center;
  align-items: center;
	margin-bottom: 2rem;
}

.social-links a {
  color: #a1a1aa;
  font-size: 1.5rem; 
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: #E84A5F;
  transform: translateY(-2px);
}

/* Custom underlines */
/* .nav-links a::after */
.social-links a::after, 
.logo-name::after  {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px; 
  bottom: 0;
  left: 0;
  background-color: #E84A5F; 
  
  transform: scaleX(0);
  transform-origin: bottom center;
  
  transition: transform 0.3s ease-out; 
}

.social-links a:hover::after, 
.logo-name:hover::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle, .burger-icon {
  display: none;
}

@media (max-width: 1024px) {

}

@media screen and (max-width: 768px) {
	.timeline::after {
		left: 20px;
	}
	
	.timeline-item {
		width: 100%;
		padding-left: 0px;
		padding-right: 0px;
	}

	.timeline-item.left, 
	.timeline-item.right {
		left: 0;
		text-align: left;
	}

	.timeline-dot,
	.timeline-item.right .timeline-dot {
		/* left: 13px; */
		display: none;
	}
	.timeline::after {
		display: none;
	}

	.project-body {
		padding: 1rem;
	}

	.logo-blurb {
		display: none;
	}

	.project-meta {
        flex-direction: column;
        align-items: flex-start;
    }

	.project-meta .divider {
		display: none;
  	}

	.burger-icon {
		display: block;
		font-size: 1.8rem;
		cursor: pointer;
		user-select: none;
  	}

	.menu-toggle {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.nav-links {
		display: none; /* Hidden by default */
		flex-direction: column;
		width: 100%;
		position: absolute;
		top: 60px; /* Adjust based on navbar height */
		left: 0;
		background-color: #333;
		padding: 1rem 0;
		text-align: center;
	}

	.nav-links li {
		padding: 10px 0;
	}

	/* MAGIC TRICK: When the checkbox is checked, display the menu */
	.menu-toggle:checked ~ .nav-links {
		display: flex;
	}
}


@media (max-width: 480px) {
  .section {
	padding-left: 0;
	padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
	.hero-bg-slide {
		transition: none;
	}
}
