html {
	background: transparent;
	overflow-y: scroll;
}

body {
	font-family: system-ui, sans-serif;
	max-width: 900px;
	margin: auto;
	padding: 2rem;
	background: var(--back);
	color: #fff6c7;
}

nav {
  background-color: #fff6c7;
  padding: 1rem;
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 16px;
}

nav a {
  color: #436343;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}

nav a:hover {
  color: #669666;
}


html.area {
	background: #010201;
}

body.area {
	font-family: system-ui, sans-serif;
	max-width: 900px;
	margin: auto;
	padding: 2rem;
	background: #010201;
	color: #ffc000;
}
body.area nav {
	background-color: #ffc000;
	padding: 1rem;
	text-align: center;
	margin-bottom: 2rem;
	border-radius: 16px;
}

body.area nav a {
	color: #010201;
	text-decoration: none;
	margin: 0 1rem;
	font-weight: bold;
}

body.area nav a:hover {
	color: #94e500;
}

.profile-pic{
	width: 300px;
	height: 300px;
	border-radius: 50%;
	object-fit: cover;
	border: 7px solid #253025;
	display: block;
	margin: 0 auto;
}

.about-pic{
	width: 600px;
	height: 600px;
	border-radius: 50%;
	object-fit: cover;
	border: 7px solid #253025;
	display: block;
	margin: 0 auto;
}

.home-container{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	margin: 2rem 0;
}

.home-text{
	flex: 1;
	min-width: 250px;
}

.home-photo{
	flex: 1;
	min-width: 150px;
	display: flex;
	justify-content: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: #fff6c7;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #253025;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projects-grid.odd-count .project-card:first-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.project-image {
  height: 75%;
}

.project-image img,
.project-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1rem;
  background-color: #fff6c7;
}

.project-info h3 {
  margin: 0 0 0.5rem 0;
  color: #436343;
}

.project-info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.projects-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.projects-photo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
	flex-shrink: 0;
}

.image-frame {
    width: 480px;
    height: 270px;
	border: 7px solid var(--accent);
    border-radius: 16px;
    overflow: hidden;
	box-sizing: border-box;
}

.project-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-video{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}


.projects-text{
	flex: 1;
	min-width: 250px;
}

body.index{
	--accent: #253025;
	--back: #436343;
	--2nd: #fff6c7;
	--hover: #669666;
}


body.area {
	--accent: #ffc000;
	--back: #010201;
	--2nd: #ffc000;
	--hover: #04e500;
}

.project-link {
	text-align: center;
	margin: 2rem 0;
	font-size:2rem;
}

.project-link a {
		color: var(--back);
		text-decoration: none;
		font-weight: bold;
		display: inline-block;
		background-color: var(--2nd);
		padding: 0.75rem 1.5rem;
		border-radius: 5px;
		border: 2px solid var(--2nd);
		transition: all 0.3s ease;
}

.project-link a:hover {
			color: var(--hover);
			background-color: var(--2nd);
			border-color: var(--2nd);
}

.centered{
	text-align: center;
}

.button-container {
    text-align: center;
    margin: 1rem 0;
}

.top-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 1rem 0.5rem;
    background-color: var(--2nd);
    color: var(--back);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.top-button:hover {
    color: var(--hover);
}

.folder-buttons,
.file-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.contact-bar {
  text-align: center;
  margin: 0.5rem 0 2rem 0;
}

.contact-button {
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  margin: 0 0.3rem;
  background-color: var(--back);
  color: var(--2nd);
  text-decoration: none;
  border: 2px solid var(--2nd);
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.contact-button:hover {
  background-color: var(--2nd);
  color: var(--hover);
}

.blueprint-item {
	display: none;
	margin-top: 3rem;
	text-align: center;
}

.blueprint-image {
	width: 100%;
	max-width: 900px;
	border-radius: 16px;
	border: 4px solid var(--accent);
	display: block;
	margin: 0 auto 1.5rem auto;
}

.video-wrapper {
	position: relative;
	width: 100%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	margin: 0 auto 1.5rem auto;
	border-radius: 16px;
	overflow: hidden;
	border: 4px solid var(--accent);
}

.video-wrapper iframe {
	width: 100%;
	height: 100%;
	display: block;
}

.blueprint-item p {
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
}

.blueprint-item.active {
	display: block;
}

.image-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	padding-top: 40px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 90%;
	border-radius: 10px;
}

.close-modal {
	position: absolute;
	top: 20px;
	right: 35px;
	color: white;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
}

.blueprint-image {
	cursor: pointer;
	transition: transform 0.2s ease;
}

.blueprint-image:hover {
	transform: scale(1.01);
}

.carousel-container {
	position: relative;
	width: 80%;
	max-width: 800px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.5);
	margin: 20px auto;
}

.carousel-track {
	width: 100%;
	height: 100%;
	position: relative;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	z-index: 1;
}

	.carousel-slide.active {
		opacity: 1;
		z-index: 2;
	}

.yt-player {
	width: 100%;
	height: 100%;
}

iframe {
	width: 100% !important;
	height: 100% !important;
	border: none;
}

.carousel-wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	box-sizing: border-box;
}

.carousel-container {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.carousel-track {
	width: 100%;
	height: 100%;
	position: relative;
}

.carousel-slide {
	display: none;
	width: 100%;
	height: 100%;
}

.carousel-slide.active {
	display: block;
}


.carousel-slide iframe,
.yt-player,
.carousel-gif {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	border: none;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.6);
	color: white;
	border: none;
	font-size: 24px;
	padding: 12px 16px;
	cursor: pointer;
	z-index: 10;
	border-radius: 50%;
	transition: background 0.3s;
}

.carousel-btn:hover {
	background: rgba(255, 255, 255, 0.8);
	color: black;
}

.prev { left: 15px; }
.next { right: 15px; }