@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 999;

    /* Gradient fade */
   /* background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.3) 70%,
            rgba(0, 0, 0, 0) 100%);*/
}

/* CONTAINER */
.header-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;

    background: rgba(0, 0, 0, 0.5); /* black transparent */
    backdrop-filter: blur(10px); /* glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari */

    margin-top: 14px;
    border-radius: 15px;

    border: 1px solid rgba(255, 255, 255, 0.1); /* subtle glass border */
}

/* LOGO */
.logo img {
    width: 170px;
    height: auto;
    /* keeps logo ratio correct */
}

/* ===== NAV ===== */
.nav ul {
    list-style: none;
    display: flex;
}

/* spacing ONLY for main menu */
.nav>ul>li {
    margin-right: 30px;
}

.nav>ul>li:last-child {
    margin-right: 0;
}

.nav ul li {
    position: relative;
}

/* LINKS */
.nav ul li a {
    font-family: "Montserrat", sans-serif;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    font-weight: 500;
    padding-bottom: 5px;
}

/* underline */
.nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #ffd600;
    transition: 0.3s;
}

.nav ul li:hover>a::after {
    width: 100%;
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;

    background: #2c2c2c;
    min-width: 230px;

    /*border-top: 4px solid #ffd600;*/
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);

    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.nav ul li:hover>.dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    padding: 12px 18px;
}

.dropdown li a {
    color: #ccc !important;
}

.dropdown li:hover {
    background: #3a3a3a;
}

.dropdown li:hover a {
    color: #fff !important;
}

/* ===== MOBILE ===== */
.menu-toggle {
    font-family: "Montserrat", sans-serif;
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

@media(max-width:768px) {

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #000;
        display: none;
        flex-direction: column;
        padding: 15px 20px;
    }

    .nav.active {
        display: flex;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
    }

    /* remove desktop spacing */
    .nav>ul>li {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .nav ul li a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 0;
    }

    /* mobile dropdown */
    .dropdown {
        position: static;
        margin-top: 5px;
        display: none;
        background: #2c2c2c;
        border-top: 3px solid #ffd600;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    .nav ul li.active .dropdown {
        display: flex;
    }

    .dropdown li {
        padding: 10px 15px;
    }
}