@font-face {
    font-family: Lobster;
    src: url(../fonts/Lobster/Lobster-Regular.ttf);
    font-display: swap;
}

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

/* 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;
    background: var(--header-color);
    transition: height 0.3s, box-shadow 0.3s;
    width: 100%;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

header.hidden {
    height: var(--header-tucked-height);
    box-shadow: 0 3px 7px rgb(0 0 0 / 10%);
}


.header-logo-a {
    height: 100%;
    display: flex;
    align-items: center;
}

.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%);
}

#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;
}


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

/* Base link style */
nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 25px;
    position: relative;
    font-family: system-ui;
    font-size: 18px;
    padding: 6px 14px;
    transition: all 0.25s ease-in-out;
}

/* Hover effect — soft background and lift */
nav ul li a:hover {
	background: white;
	color: var(--current-tab-accent);
	transform: translateY(-2px);
	box-shadow: 0 2px 6px rgb(0 0 0 / 17%);
}

/* Current (active) tab */
nav ul li a.current {
    background: var(--current-tab-accent);
    color: #fff;
    font-weight: 600;
    transform: translateY(-1px);
}

/* Optional: subtle glow on hover of the active tab */
nav ul li a.current:hover {
    box-shadow: 0 4px 12px rgba(247, 178, 103, 0.6);
}

.mobile-only {
    display: none;
}

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

.hamburger-line {
    stroke: currentColor;
    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 */

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: 800px) {
    #nav-list.show {
        opacity: 1;
        transform: unset;
    }

    .mobile-only {
        display: unset;
    }

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

    .hamburger-menu {
        display: block;
    }
    /* Mobile menu */
    #nav-list {
        background: linear-gradient(105deg, #373737, #545454);
		transition: transform 0.2s ease-in-out;
		z-index: 1000;
		height: fit-content;
		border-radius: 0;
		position: fixed;
		top: var(--header-height);
		right: 0;
		opacity: 0;
        transform: translateY(calc(-100% - var(--header-height)));
        transition: transform 0.2s ease-in-out, opacity 0.4s ease-in-out;
		left: unset;
		width: 100%;
    }

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

    #nav-list ul li a {
        color: #ffffff;
    }
    nav ul li a:hover {
	    color: black !important;
    }

    /* 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;
    }
}