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

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #00000027;
        display: flex;
        z-index: 1000;
    }

    .scrolled {
        background: rgb(59, 59, 59);
    }

    section {
        padding: 0% 3%;
        z-index: 1;
    }

section.hero {
    padding-top: 20%;
}
    /* Hide dropdown menu by default */
.dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #333333;
    padding: 10px;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    z-index:  1000;
    transition: height 0.3s ease, opacity 0.3s ease;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Show dropdown when toggled */
.show-menu {
    display: flex;
    padding: 10px;
    height: fit-content;
    opacity: 1;
}

/* Dropdown button styling */
.dropdown-toggle {
    visibility: visible;
    background-color: #02818c;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.dropdown-toggle:hover {
    background-color: #005f5f;
}

/* Style for dropdown menu links */
.dropdown-menu li {
    padding: 8px 0px;
    border-bottom: 1px solid #5e5e5e;
    width: 100%;
    transition: 0.3s ease;
}

.dropdown-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 10px;
    width: 100%;
}

.dropdown-menu li:hover {
    background-color: #02818c;
    color: #fff;
}

.dropdown-menu li:hover a {
    color: #fff;
    background: none;
}

}
