:root {
	--header-height: 90px;
	--header-tucked-height: 70px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    color: var(--text-color);
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: height 0.3s;
    width: 100%;

}
header {
  user-select: none;
}


.header-bg {
	background: var(--header-color);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: -1;
}

header.hidden {
    height: var(--header-tucked-height);
}


.header-logo-a {
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: none !important;
}

.header-logo-and-nav {
    display: flex;
    align-items: center;
    margin-left: 50px;
    gap: 30px;
}

.logo {
    height: calc(100% - 20px);
    transition: height 0.3s, margin-left 0.3s;
    margin-left: 10px;
}

#nav-list {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    height: 100%;
}

#nav-list-collapse {
    font-size: 25px;
    margin-left: 10px;
    top: 10px;
    position: absolute;
    color: var(--text-color);
    cursor: pointer;
}

#nav-list ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    list-style-type: none;
    padding-left: 0;
    text-align: center;
    list-style-type: none;
    margin: 0;
    height: 100%;
}


#nav-list ul li {
    margin: 15px 0;
}

/* Base link style */
nav ul li a {
	color: #000000;
	text-decoration: none;
	white-space: nowrap;
	position: relative;
	font-family: system-ui;
	font-size: 18px;
    padding-bottom: 3px;
    border-bottom: 3px solid transparent;
	transition: border-bottom 0.25s ease-in-out;
}

/* Hover effect — soft background and lift */
nav ul li a:hover {
	color: #000000;
	border-color: #000000;
}

/* Current (active) tab */
nav ul li a.current {
	color: #000000;
	border-color: var(--logo-dark-contrast);
}

.nav-list-logo {
    height: 100%;
	margin: 0;
    border-bottom: none !important;
}
.nav-list-logo:hover {
    border-bottom: none !important;
}


.mobile-only {
    display: none;
}

#hamburger-icon {
    cursor: pointer;
	margin-right: 10px;
}

.hamburger-line {
	stroke: black;
    stroke-width: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Default (Hamburger) State */
.hamburger-line.nav_top {
    transform-origin: center;
}

.hamburger-line.nav_middle {
    opacity: 1;
}

.hamburger-line.nav_bottom {
    transform-origin: center;
}

/* Active (X) State */
#hamburger-icon.nav_active .hamburger-line.nav_top {
    transform: translateY(6px) translateX(-6px) rotate(45deg);
}

#hamburger-icon.nav_active .hamburger-line.nav_middle {
    opacity: 0;
}

#hamburger-icon.nav_active .hamburger-line.nav_bottom {
    transform: translateY(-6px) translateX(-6px) rotate(-45deg);
}

/* End of Header */

/* ~~~~~~~~~~~~~ */

/* Start of Body */

.background-image {
	height: 100vh;
	position: fixed;
	width: 100%;
	object-fit: cover;
	z-index: 0;
}

.landing-image-container img {
    height: 100%;
	width: 100%;
	object-fit: cover;
}

body {
    font-family: system-ui;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    color: #000000;
    background-color:  var(--main-content-background);
}

.modal-open {
    overflow: hidden !important;
}

main {
    transition: filter 0.3s;
}

body.modal-open main {
    filter: brightness(0.6);
    pointer-events: none;
}


main {
    margin-top: var(--header-height);
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    background: var(--main-content-background);
    min-height: calc(100vh - var(--header-height));
    transition: filter 0.3s, margin-top 0.3s;
}

main.hidden {
    margin-top: var(--header-tucked-height);
}


.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 40px);
    max-width: 1000px;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 20px;
}

/* End of Body */

/* ~~~~~~~~~~~~~ */

.no-select {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.no-select img {
    pointer-events: none;
    -webkit-user-drag: none;
}

@media (max-width: 1150px) {

    :root {
        --header-height: 70px;
        --header-tucked-height: 60px;
    }

    #nav-list.show {
        opacity: 1;
        transform: unset;
    }

    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: flex;
    }

    .header-logo-and-nav {
        margin-left: 0px;
    }

    .hamburger-menu {
        display: block;
    }
    /* Mobile menu */
    #nav-list {
		transition: transform 0.2s ease-in-out;
		z-index: 1000;
		height: auto;
		border-bottom-left-radius: 15px;
		position: fixed;
		top: var(--header-height);
		right: 0;
		opacity: 0;
        transform: translateX(100%);
        transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
		left: unset;
		width: fit-content;
        background: linear-gradient(to bottom, var(--header-color) 0%, var(--lightaccent3-color) 100%);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    #nav-list ul {
        flex-direction: column;
        margin: 0 60px;
        gap: 0;
    }

    /* Class that will be toggled by JavaScript */
    header {
        justify-content: space-between;
    }

    #tucked-header.hidden #nav-list {
        top: var(--header-tucked-height);
    }
}


@media (max-width: 768px) {
    :root {
        --header-height: 65px;
        --header-tucked-height: 60px;
    }

    #nav-list ul {
        margin: 10px 20px;
    }

    .logo {
        max-width: 250px;
        object-fit: contain;
    }
}