@font-face {
  font-family: Montserrat;
  src: url(../../assets/fonts/Montserrat-VariableFont_wght.ttf);
}

* {
    font-family: Montserrat;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #499F9F;
    --accentuation-color: #9A3CF4;
    --base-color: #C2D4D4;
    --darker-primary-color: #1A6665;
    --lighter-primary-color: #E7EAEA;
    --light: #F6FEFE;
    --dark: #020D0D;
}

::selection {
  color: var(--lighter-primary-color);
  background-color: var(--darker-primary-color);
}

html {
    font-family: Helvetica_round;
    background-color: var(--lighter-primary-color);
    color: var(--dark);
    font-size: 15px;
    overflow-x: clip;
}

.contentWrapper {
    min-height: 80vh;
}

header {
    width: 100%;
    padding: 7px 20px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: 0.7s;
}

a:hover {
    cursor: pointer;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--dark);
}

.logo a {
    text-decoration: none;
    height: 50px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

/* Navigation Styles */
header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 1em 0.75em;
    border-radius: 0.1em;
    font-size: 15px;
}

header {
    background-color: var(--light);
}

header nav a {
    color: var(--darker-primary-color);
    padding-bottom: 10px;
}

header nav a:hover {
    text-decoration: none;
    border-bottom: var(--darker-primary-color) 2px;
    border-bottom-style: inset;
}

.hamburger {
    color: black;
}


/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.8em;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}


.center-text {
    text-align: center;
    margin: auto;
}




.nav-links li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 1.9em;
    left: 0; /* Default left alignment */
    background-color: #ffffffe0;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0.1em;
    min-width: 7em;
    max-width: 17em;
    width: 15vw;
}

.dropdown-menu li a {
    display: block;
    padding: 1em 1.5em;
    text-decoration: none;
    color: var(--darker-primary-color);
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--lighter-primary-color);
    text-decoration: none;
    border-bottom: none;
}

.nav-links li:hover .dropdown-menu {
    display: block;
}



/* Responsive: Mobile-Friendly */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .hamburger {
        display: block;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: inherit;
        padding: 15px;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
        width: min(80%, 200px);
        padding: 1.5em 0.5em 1em 1em;
    }

    nav ul.active {
        display: flex;
        background-color: #ffffffe0;
    }
    
    
    header nav a:hover {
        text-decoration: none;
        padding-bottom: 3px;
        border-bottom-style: inset;
    }
    
        .nav-links.active .has-dropdown > a {
        border-bottom: none;
    }

    .nav-links.active .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        padding: 0;
        margin-left: 20px;
        border-radius: 0;
        min-width: auto; /* Reset min-width for mobile */
        width: auto;
    }

    .nav-links.active .dropdown-menu li a {
        padding: 0.8em 1.5em;
    }
}

