/* If Width will break anything, delete on the go */

section.home {
		width: 100%;
}

section.home video {
	z-index: 1;
	transition: 1s;
}

section.home div video:hover {
	filter: grayscale(50%);
	transform: scale(1.05);
	
}

section.home div img {
	z-index: 1;
	transition: 1s;
}

section.home div img:hover {
	filter: grayscale(50%);
	transform: scale(1.05);
	
}

/* CV Popup Download Page */

.popup-overlay {
  display: none; /* Hide it initially */
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-content {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.popup-content h2 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.popup-content ul {
  list-style: none;
  padding: 0;
}

.popup-content li {
  margin: 0.5rem 0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.cv-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.nav-button {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: #444;
}

@media (min-width: 1655px) { 
	
	section.home  { 
		display: grid;
		grid-template-columns: repeat(12, [col] 1fr);
		grid-template-rows: auto;
		grid-column-gap: 0.625em;   /*  .625% of 16 = 10, 0.625em = 10px ...  */
		grid-row-gap: 0.625em;
		grid-template-areas:
		".. .. .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. g1 g1 g1 g1 g2 g2 g2 g2 .."
		"n1 n1 .. g1 g1 g1 g1 g2 g2 g2 g2 .."
		"n1 n1 .. g3 g3 g3 g3 g3 g3 g3 g3 .."
		"n1 n1 .. g3 g3 g3 g3 g3 g3 g3 g3 .."
		"n1 n1 .. g4 g4 g4 g4 g5 g5 g5 g5 .."
		"n1 n1 .. g4 g4 g4 g4 g5 g5 g5 g5 .."
		"n1 n1 .. g6 g6 g6 g6 g5 g5 g5 g5 .."
		"n1 n1 .. g6 g6 g6 g6 g5 g5 g5 g5 .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		".. .. .. .. .. .. .. .. .. .. .. .."
		"cr cr cr cr cr cr cr cr cr cr cr cr"
		;
	}
	
	section.home div {  } 
	section.home div.n1 { grid-area: n1; }
	section.home div.g1 { grid-area: g1; } /* Start, End, Fit, Justify align-self: center;*/
	section.home div.g2 { grid-area: g2; }
	section.home div.g3 { grid-area: g3; }
	section.home div.g4 { grid-area: g4; }
	section.home div.g5 { grid-area: g5; }
	section.home div.g6 { grid-area: g6; }
	section.home div.g7 { grid-area: g7; }
	section.home div.g8 { grid-area: g8; }
	section.home div.cr { grid-area: cr; }
	
}

/*------------------------------------------------------------------------------*/

/* Sub-Pages Links Navigation (For the grid see project-des for reference)*/

/* Navigation Decorations */

div.n1 p {
	text-align: left;
	margin-right: 30px;
}

div.nav_des {
	margin: 0px 0px 0px 20px;
}

div.nav_des2 {
	margin: 0px 0px 0px 20px;
}

/* Navigation Line IDs */

div.line_nav {
	width: 90%;
}

#line_1 {
	background-color: var(--line-color);
	height: 5px;
	
}

#line_2 {
	background-color: var(--line-color);
	height: 5px;
	margin: 0px 0px 0px 0px;
	
}

#line_3 {
	background-color: var(--line-color);
	height: 5px;
	margin: 40px 0px 0px 0px;
	
}

/* Navigation Buttons */
					/*Sticky Menu Check if it works*/

/* Navigation Buttons */
					/*Sticky Menu Check if it works*/

div.n1 {
	position: sticky;
	position: -webkit-sticky;
	top: 0px;
	overflow: hidden;
	align-self: start;
	z-index: 2;
}

/* Navigation Menu */
div.nav-2 {
    position: sticky;
    top: 20px;
    left: 20px;
    z-index: 100;
}

div.nav-2 nav ul {
    list-style-type: none;
    padding: 0;
	margin-left: 4px;
}

div.nav-2 nav ul li {
    margin-bottom: 10px;
}

.nav-button {
    background-color: black; /* Dark Mode button color */
    color: white; /* Text color */
    padding: 10px 20px; /* Spacing */
    border: 2px solid white; /* Border similar to other buttons */
    border-radius: 5px; /* Rounded edges */
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 150px; /* Adjust width as needed */
    display: block;
	font-family: 'Anonymous Pro';
}

.nav-button:hover {
    background-color: gray; /* Match hover color */
}

/* Align buttons properly */
div.nav-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Own Image Size Fit */

div.g2 {
	width: 50%;
	margin: 0 auto;
}

/*------------------------ Project Overview Divisions ------------------------*/

/* Decorations Divisions */

div.line {
	background-color: var(--line-color);
	width: 100%;
	height: 5px;
}

/* G2 - G3 Divisions */


/* G2 - G3 Divisions */

div.g8 {
}

/* Viewport 1530px ------- Visual Fix */

@media screen and (min-width: 865px) and (max-width: 1654px) {
	
	section.home  { 
		display: grid;
		grid-template-columns: repeat(12, [col] 1fr);
		grid-template-rows: auto;
		grid-column-gap: 0.625em;   /*  .625% of 16 = 10, 0.625em = 10px ...  */
		grid-row-gap: 0.625em;
		grid-template-areas:
		".. .. .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. g1 g1 g1 g1 g1 g1 g1 g1 .."
		"n1 n1 .. g2 g2 g2 g2 g2 g2 g2 g2 .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. g3 g3 g3 g3 g3 g3 g3 g3 .."
		"n1 n1 .. g3 g3 g3 g3 g3 g3 g3 g3 .."
		"n1 n1 .. g4 g4 g4 g4 g4 g4 g4 g4 .."
		"n1 n1 .. g5 g5 g5 g5 g5 g5 g5 g5 .."
		"n1 n1 .. g6 g6 g6 g6 g6 g6 g6 g6 .."
		"n1 n1 .. g6 g6 g6 g6 g6 g6 g6 g6 .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		"n1 n1 .. .. .. .. .. .. .. .. .. .."
		".. .. .. .. .. .. .. .. .. .. .. .."
		"cr cr cr cr cr cr cr cr cr cr cr cr"
		;
	}
	
	section.home div {  } 
	section.home div.n1 { grid-area: n1; }
	section.home div.g1 { grid-area: g1; } /* Start, End, Fit, Justify align-self: center;*/
	section.home div.g2 { grid-area: g2; }
	section.home div.g3 { grid-area: g3; }
	section.home div.g4 { grid-area: g4; }
	section.home div.g5 { grid-area: g5; }
	section.home div.g6 { grid-area: g6; }
	section.home div.g7 { grid-area: g7; }
	section.home div.g8 { grid-area: g8; }
	section.home div.cr { grid-area: cr; }
	
}


/*------------------------ Mobile Version (Originally 864px) ------------------------*/

@media screen and (max-width: 864px) {
	
	/* Section Home Paragraph Fix */
	
	section.home h2 {
		margin: 20px;
		
	}
	
	section.home p {
		margin: 20px;
	}
	
	/* My Image Mobile */
	
	div.g2 {
		padding-top: 5px;
	}
	
	/* Mobile Menu */
	
	div.n1 nav ul {
	float: left;
	list-style-type: none;
	padding: 0;
	margin: -12px 0px 0px 0px;
	width: auto;
	}

	div.n1 nav ul li {
	display: inline-block;
	float: left;
	height: 0%;
	}
	
	div.n1 {
		position: sticky;
		background-color: transparent; /* Original "var(--bg-color-nav)" for dark mode */
		height: 40px; /* Original 61px - Changed for the Fix */
		margin-top: -25px;
	}
	
	div.nav_des {
		margin: 0px 0px 0px 150px;
		display: none;
	}
	
	div.n1 nav ul li button {
		letter-spacing: 1px;
		display: inline;
		margin: 0px 1px;
	}
	
	div.nav-2 {
		top: 0px; /* Keeps Button at Top in Mobile Menu */
	}
	
	/* Line Properties */
	
	div.line_nav {
		width: 100%;
	}
	
	#line_1 {
		height: 1.5px;
	}
	
	#line_2 {
		margin: 55px 0px 0px 0px;
		height: 2.5px;
	}
	
	div.nav_des2 {
		display: none;
	}
	

}

/*4K Optimisation */

@media screen and (min-width: 2560px) {
	
	
	#line_2 {
		margin: 0px 0px 0px 0px;
	}
	
	div.n1 nav ul li button {
		font-size: 36px;
		width: 240px;
	}
	
	h3 {
		font-size: 34px;
	}
	
	h2 {
		font-size: 38px;
	}
	
	p {
		font-size: 24px;
	}
	
}