/* Navigation Top */

@media screen and (min-width: 1041px) and (max-width: 2559px) {
	
.nav-div {
	z-index: 1;
	position: relative;
}
	
}
.logo {
	margin: -1px 10px 15px 10px; /* Changed Margin top from -5px to -1px for aligment with Dark Mode Button */
	float: left;
	position: relative;
}

.logo a {
      color: var(--text-color-nav);
	  transition: color 0.3s ease-in-out;
      text-transform: uppercase;
      font-weight: 700;
      font-size: 32px;
      letter-spacing: 0px;
      text-decoration: none;
}

/* Language Toggle Button */

#langToggle {
  	background: transparent;
  	color: #757575; /* Grey text for light mode */
  	border: 2px solid #757575; /* Grey border in light mode */
  	padding: 8px 15px;
  	font-size: 16px;
  	font-weight: bold;
  	text-transform: uppercase;
  	cursor: pointer;
  	transition: all 0.3s ease-in-out;
  	border-radius: 5px;
  	position: fixed;
  	top: 10px;
  	right: 20px;
}

#langToggle:hover {
  	background: black;
  	color: white;
}

/* Dark Mode Styles */
.dark-mode #langToggle {
  	color: white;
  	border-color: white;
}

.dark-mode #langToggle:hover {
  	background: white;
  	color: black;
}

/* Button Decoration for Dark Mode */

#themeToggle {
  	background: transparent;
  	color: #757575; /* Grey text for light mode */
  	border: 2px solid #757575; /* Grey border in light mode */
  	padding: 8px 15px;
  	font-size: 16px;
  	font-weight: bold;
  	text-transform: uppercase;
  	cursor: pointer;
  	transition: all 0.3s ease-in-out;
  	border-radius: 5px;
  	position: fixed;
  	top: 10px;
  	right: 90px; /* Originaly 20px (Maybe 80px) - Moved to fit Language Button */
}

#themeToggle:hover {
  	background: black;
  	color: white;
}

/* Dark Mode Styles */
.dark-mode #themeToggle {
  	color: white;
  	border-color: white;
}

.dark-mode #themeToggle:hover {
  	background: white;
  	color: black;
}



/* Dark Mode Impelemntation */ /* Delete Later on */

:root {
  --bg-color-nav: white;
}

.dark-mode {
  --bg-color-nav: #333; /* Dark mode background color */
}

.navigation_top {
	background-color: var(--bg-color-nav);
	transition: background-color 0.3s ease-in-out;
	/*box-shadow: 0px 5px 50px 0px grey;*/
	padding: 10px;
	padding-bottom: 50px;
	/*max-width: 960px;*/
	margin: 0 auto;
	float: center;

}

.navigation_top nav ul {
	float: right;
	list-style-type: none;
	padding:0;
	margin:0px 20px 0px 0px; /* Added Margin-Left 20px in order to fit darkmode and language toggle buttons */
}

.navigation_top nav ul li {
	display: inline-block;
	float: left;
	height: 0%;
	margin-left: 148px; /*Navigation Fixed Line-up - Original (48px) and (128px) - I had to move it to the left to fit Dark Mode Button - 98px with Dark Mode Button*/
}

.navigation_top nav ul li:not(:first-child) {
	margin-left: 48px; /* Original 48px - Changed to fit Overlay Versions */ /* Updated on 24 of June 2025 */
	margin-top: 4px; /* Added to alighn with the Dark Mode Button */
}

.navigation_top nav ul li:last-child {
	margin-right: 24px;
}

/* Text Colour Change for Dark Mode */ /* Delete Later on */

:root {
  --text-color-nav: #000; /* Default (light mode) text color */
}

.dark-mode {
  --text-color-nav: #fff; /* Dark mode text color */
}

/* Navigation Buttons */
.navigation_top nav ul li a, .dark-mode-button {
    display: inline-block;
    padding: 4px 12px;
    /* border: 2px solid var(--border-color); */
    border-radius: 5px;
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
	font-size: 20px;
    text-transform: uppercase;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out, border 0.3s ease-in-out;
}

.navigation_top nav ul li a:hover, .dark-mode-button:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Website Optimisation for 4K */

@media screen and (min-width: 2560px) { 
	
	.logo a {
		font-size: 58px;
	}
	
	.navigation_top nav ul li a {
		margin-top: 7px;
		font-size: 32px;
		font-weight: 700;
	}
	
	.nav-div {
		z-index: 1;
		position: relative;
	}
	
	div.navigation_top {
		height: 30px;
	}
	
	#themeToggle {
		margin-top: 14px;
	}
	
	#langToggle {
		margin-top: 14px;
	}

}

/* Responsive Menu Navigation and Logo */

@media screen and (max-width: 1040px) { /* Original 940px - Changed for the alighnment of Dark Mode */
	
	.nav-div {
		width: 100%;
		background-color: white;
	}
	.navigation_top {
		padding-bottom: 50px;
	}
	
	/* Added because of the changes to Dark Mode and Language Toggle Button */
	
	.navigation_top nav ul {
		margin: 0;
	}
	
	/* Changes ends here */
	
	.logo {
		margin: -1px 0px -1px 10px; /* Original 5px - Changed for the alighnment with Dark Mode */
	}
	
/* Dark Mode Function Attributes for the Mobile Menu */
	
#themeToggle {
		position: static;
		margin-right: 108px;
	}
	
/* Language Function Attributes for the Mobile Menu */
	
#langToggle {
		position: static;
		margin-right: 14px;
	}


	
	.nav-justify {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: -1;
		background: var(--bg-color-nav);
		opacity: 0;
		transition: all 0.2s ease;
		
	}
	
	.nav-justify ul {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 80%;
	}
	
	.nav-justify ul li {
		display: block;
		float: none;
		width: 100%;
		text-align: right;
		margin-bottom: 10px;
	}
	
	.nav-justify ul li:nth-child(1) a {
		transition-delay: 0.2s;
	}
	
	.nav-justify ul li:nth-child(2) a {
		transition-delay: 0.3s;
	}
	
	.nav-justify ul li:nth-child(3) a {
		transition-delay: 0.4s;
	}
	
	.nav-justify ul li:nth-child(4) a {
		transition-delay: 0.5s;
	}
	
	.nav-justify ul li:not(:first-child) {
		margin-left: 0;
	}
	
	.nav-justify ul li a {
		padding: 10px 24px 0px 0px;
		opacity: 0;
		color: var(--text-color-nav);
		font-size: 22px;
		font-weight: 600;
		letter-spacing: 1.2px;
		transform: translateX(-20px);
		transition: all 0.2 ease;
	}
	
	.nav-btn {
		position: fixed;
		right: 10px;
		top: 5px;
		display: block;
		width: 48px;
		height: 48px;
		cursor: pointer;
		z-index: 9999;
		border-radius: 50%;
		background-color: white;
	}
	
	.nav-btn i {
		display: block;
		width: 20px;
		height: 2px;
		background: #000;
		border-radius: 2px;
		margin-left: 14px;
	}
	
	.nav-btn i:nth-child(1) {
		margin-top: 16px;
	}
	
	.nav-btn i:nth-child(2) {
		margin-top: 4px;
		opacity: 1;
	}
	
	.nav-btn i:nth-child(3) {
		margin-top: 4px;
	}
	
}

#nav:checked + .nav-btn {
	transform: rotate(45deg);
}

#nav:checked + .nav-btn i {
	background: #000;
	transition: transform 0.2s ease;
}

#nav:checked + .nav-btn i:nth-child(1) {
	transform: translateY(6px) rotate(180deg);
}

#nav:checked + .nav-btn i:nth-child(2) {
	opacity: 0;
}

#nav:checked + .nav-btn i:nth-child(3) {
	transform: translateY(-6px) rotate(90deg);
}

#nav:checked ~ .nav-justify {
	z-index: 9990;
	opacity: 1;
}

#nav:checked ~ .nav-justify ul li a {
	opacity: 1;
	transform: translateX(0);
}

.hidden {
	display: none;
}
