nav.mobile {
	display: none;
}

nav:not(.mobile) {
	display: block;
	max-width: 1300px;
	width: 100%;
	position: fixed;
	transform: translateX(-50%);
	left: 50%;
	top: 40px;
	padding: 18px 24px;
	z-index: 1000;
	-webkit-backdrop-filter: blur(10px);
  	backdrop-filter: blur(10px);
	border-radius: 4px;
	transition: all 0.9s cubic-bezier(0.135, 0.9, 0.15, 1), -webkit-backdrop-filter 0s, backdrop-filter 0s;
}

nav:not(.mobile).fixed {
	max-width: calc(100% - 80px);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

nav:not(.mobile).hide {
	top: -120px;
}

nav:not(.mobile).fixed .background {
	opacity: 0;
}

nav:not(.mobile) .background {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.28) 100%);
	opacity: 0.4;
	border-radius: 2px;
	z-index: 99;
	transition: all 0.3s ease;
}

nav:not(.mobile) .nav-parts {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	z-index: 101;
}

nav:not(.mobile) .nav-parts .items {
	display: flex;
	gap: 80px;
	flex-wrap: nowrap;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

nav:not(.mobile) .nav-parts .items a {
	color: var(--white);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	text-decoration: none;
	position: relative;
	padding: 0 2px;
}

nav:not(.mobile) .nav-parts .items a:after {
	content: '';
	background-image: url('../images/icons/border-bottom-right.svg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	width: 30px;
	height: 30px;
	display: block;
	position: absolute;
	z-index: 102;
	transform: translate(-50%, -50%) scale(0);
	transform-origin: bottom right;
	top: 100%;
	left: 100%;
	transition: 0.3s all ease;
}

nav:not(.mobile) .nav-parts .items a:before {
	content: '';
	background-image: url('../images/icons/border-top-left.svg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	width: 30px;
	height: 30px;
	display: block;
	position: absolute;
	z-index: 102;
	transform: translate(-50%, -50%) scale(0);
	transform-origin: top left;
	top: 0;
	left: 0;
	transition: 0.3s all ease;
}

nav:not(.mobile) .nav-parts .items a:hover:after {
	transform: translate(-50%, -50%) scale(1);
	transition: 0.3s all ease;
}

nav:not(.mobile) .nav-parts .items a:hover:before {
	transform: translate(-50%, -50%) scale(1);
	transition: 0.3s all ease;
}

nav:not(.mobile) .nav-parts .logo img {
	height: 52px;
	margin-bottom: 5px;
	padding-left: 10px;
}

nav:not(.mobile) .nav-parts .button {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 40px;
}

nav:not(.mobile).hide .nav-parts .button .language-wrapper .dropdown {
	display: none;
}

nav:not(.mobile) .nav-parts .button .language-wrapper .dropdown {
	background-color: var(--white);
	border-radius: 4px;
	padding: 10px 0;
	position: absolute;
	top: calc(100% + 15px);
	left: 50%;
	transform: translate(-50%, -4px);
	opacity: 0;
	pointer-events: none;
	cursor: auto;
	display: block;
	transition: all 0.3s ease;
}

nav:not(.mobile) .nav-parts .button .language-wrapper .dropdown .language {
	padding: 5px 20px;
	padding-left: 45px;
}

nav:not(.mobile) .nav-parts .button .language-wrapper .dropdown .language:before {
	left: 20px;
}

nav:not(.mobile) .nav-parts .button .language-wrapper .dropdown .language:hover {
	background-color: var(--cyan-a);
	color: var(--white);
	cursor: pointer;
}

nav:not(.mobile) .nav-parts .button .language-wrapper .dropdown.visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
	transition: all 0.3s ease;
}

nav:not(.mobile) .nav-parts .button .language-wrapper .dropdown:before {
	content: '';
	width: 12px;
	height: 12px;
	position: absolute;
	display: block;
	top: -4px;
	left: 50%;
	background-color: var(--white);
	border-radius: 3px;
	transform: translate(-50%, 10px) rotate(45deg);
	transition: all 0.3s ease;
}

nav:not(.mobile) .nav-parts .button .language-wrapper .dropdown.visible:before {
	transform: translate(-50%, 0) rotate(45deg);
	transition: all 0.3s ease;
}

nav:not(.mobile) .nav-parts .button .language-wrapper {
	position: relative;
	cursor: pointer;
	padding-left: 20px;
}

.language {
	color: var(--grey-a);
	font-size: 14px;
	font-weight: 200;
	position: relative;
}

.language:before {
	content: '';
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	width: 15px;
	height: 15px;
	position: absolute;
	display: block;
	transform: translateY(-50%);
	top: 50%;
	left: -25px;
}

.language.sl:before {
	background-image: url('../images/icons/flags/sl.svg');
}

.language.en:before {
	background-image: url('../images/icons/flags/en.svg');
}

.language.de:before {
	background-image: url('../images/icons/flags/de.svg');
}

nav:not(.mobile) .border-c :is(.border-tl, .border-tr, .border-bl, .border-br) {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	width: 40px;
	height: 40px;
	display: block;
	position: absolute;
	z-index: 102;
	transform: translate(-50%, -50%) scale(1);
	transition: all 0.3s ease;
}

nav:not(.mobile).fixed .border-c :is(.border-tl, .border-tr, .border-bl, .border-br) {
	transform: translate(-50%, -50%) scale(0);
}

nav:not(.mobile) .border-c .border-tl {
	background-image: url('../images/icons/border-top-left.svg');
	top: 0;
	left: 0;
	transform-origin: top left;
}

nav:not(.mobile) .border-c .border-tr {
	background-image: url('../images/icons/border-top-right.svg');
	top: 0;
	left: 100%;
	transform-origin: top right;
}

nav:not(.mobile) .border-c .border-bl {
	background-image: url('../images/icons/border-bottom-left.svg');
	top: 100%;
	left: 0;
	transform-origin: bottom left;
}

nav:not(.mobile) .border-c .border-br {
	background-image: url('../images/icons/border-bottom-right.svg');
	top: 100%;
	left: 100%;
	transform-origin: bottom right;
}

.mobile-menu {
	display: none;
}

@media screen and (min-width: 1280px) and (max-width: 1440px){

	nav:not(.mobile) .nav-parts .items {
		gap: 40px;
	}

}

@media screen and (max-width: 1280px) {

	nav:not(.mobile) .nav-parts .items {
		gap: 20px;
	}

	nav:not(.mobile) {
		max-width: calc(100% - 80px);
	}

}

@media screen and (max-width: 1024px) {

	nav:not(.mobile) {
		display: none;
	}

	nav.mobile {
		display: block;
		width: calc(100% - 40px);
		height: calc(65px);
		position: fixed;
		transform: translateX(-50%);
		left: 50%;
		top: 20px;
		padding: 16px 24px;
		z-index: 1000;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		border-radius: 4px;
		transition: all 0.9s cubic-bezier(0.135, 0.9, 0.15, 1);
	}

	nav.mobile .background {
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		position: absolute;
		background: linear-gradient(to right, rgba(89, 116, 151, 0.212) 0%, rgba(255, 255, 255, 0.212) 100%), #00000000;
		opacity: 0.4;
		border-radius: 2px;
		z-index: 99;
		transition: all 0.3s ease;
	}

	nav.mobile .nav-parts {
		position: relative;
		display: flex;
		flex-wrap: nowrap;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		z-index: 101;
	}

	nav.mobile .nav-parts .logo img {
		height: 30px;
		margin-bottom: 3px;
	}

	nav.mobile .nav-parts .button {
		display: flex;
		align-items: center;
		justify-content: end;
	}

	nav.mobile .nav-parts .button .hamburger-menu {
		display: flex;
		flex-direction: column;
		align-items: end;
		gap: 4px;
		position: absolute;
        padding: 20px;
        right: -20px;
	}

	nav.mobile .nav-parts .button .hamburger-menu div {
		width: 15px;
		height: 2px;
		border-radius: 2px;
		background-color: var(--white);
	}

	nav.mobile .nav-parts .button .hamburger-menu div:nth-child(2) {
		width: 25px;
	}


	nav.mobile .border-c :is(.border-tl, .border-tr, .border-bl, .border-br) {
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
		width: 30px;
		height: 30px;
		display: block;
		position: absolute;
		z-index: 102;
		transform: translate(-50%, -50%) scale(1);
		transition: all 0.3s ease;
	}

	nav.mobile .border-c .border-tl {
		background-image: url('../images/icons/border-top-left.svg');
		top: 0;
		left: 0;
		transform-origin: top left;
	}

	nav.mobile .border-c .border-tr {
		background-image: url('../images/icons/border-top-right.svg');
		top: 0;
		left: 100%;
		transform-origin: top right;
	}

	nav.mobile .border-c .border-bl {
		background-image: url('../images/icons/border-bottom-left.svg');
		top: 100%;
		left: 0;
		transform-origin: bottom left;
	}

	nav.mobile .border-c .border-br {
		background-image: url('../images/icons/border-bottom-right.svg');
		top: 100%;
		left: 100%;
		transform-origin: bottom right;
	}

	nav.mobile .items {
		padding-top: 40px;
		position: absolute;
		display: flex;
		flex-wrap: nowrap;
		flex-direction: column;
		gap: 20px;
		z-index: 1000;
		overflow: hidden;
		max-height: 0;
		transition: all 0.3s ease;
	}

	nav.mobile .languages {
		position: absolute;
		display: none;
		bottom: 24px;
		width: calc(100% - 48px);
		justify-content: space-around;
		z-index: 1000;
	}

	nav.mobile .languages .language:before {
		left: 0;
	}

	nav.mobile .languages .language {
		padding-left: 25px;
	}

	nav.mobile.expanded .languages {
		display: flex;
	}

	nav.mobile.expanded .items {
		max-height: 100%;
		transition: all 0.3s ease;
	}

	nav.mobile .items a {
		color: var(--white);
		font-weight: 700;
		font-size: 16px;
		text-decoration: none;
		position: relative;
		text-transform: uppercase;
		transition: all 0.3s ease;
	}

	nav.mobile .items a:before {
		content: '';
		background-image: url('../images/icons/triple-arrow.svg');
		background-size: contain;
		background-position: center;
		background-repeat: no-repeat;
		height: 40px;
		width: 40px;
		display: block;
		position: absolute;
		left: -35px;
		transform: translateY(-50%) scale(0);
		top: 50%;
		transition: all 0.3s ease;
	}

	nav.mobile .items a:hover:before {
		left: -15px;
		transform: translateY(-50%) scale(1);
		transition: all 0.3s ease;
	}

	nav.mobile .items a:hover {
		padding-left: 20px;
		transition: all 0.3s ease;
	}

	nav.mobile .items div:last-child {
		padding-top: 20px;
	}

	nav.mobile.expanded {
		height: calc(100%);
		width: calc(100%);
		top: 0;
		-webkit-backdrop-filter: blur(50px);
		backdrop-filter: blur(50px);
		transition: all 0.9s cubic-bezier(0.135, 0.9, 0.15, 1);
	}

	nav.mobile.expanded .background {
		background: linear-gradient(to right, rgba(89, 116, 151, 0.212) 0%, rgba(255, 255, 255, 0.212) 100%), var(--backround-color-p);
	}

	nav.mobile.expanded .border-c :is(.border-tl, .border-tr, .border-bl, .border-br) {
		transform: translate(-50%, -50%) scale(0);
	}

	nav.mobile.hide:not(.expanded) {
		top: -100px;
	}

}