@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap");

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

html {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
}

body {
    font-family: "Montserrat", sans-serif !important;
    background: #f7f7f7; /* Light gray background */
    animation: gradientAnimation 10s ease infinite;
    height: 100%;
    margin: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: #9C6;
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    z-index: 5000;
    height: 80px;
}

header #button-menu {
    font-size: 30px;
    color: #FFFFFF;
    cursor: pointer;
}

#particles-js {
    position: fixed; /* Stays in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Cover entire body */
    z-index: -1; /* Keeps it behind content */
    pointer-events: auto; /* Ensures it can be clicked */
}


.atechnav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 0%;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
}

.atechnav ul {
    width: 320px;
    height: 90vh;
    background: #fff;
    list-style: none;
    position: absolute;
    top: 0;
    left: -320px;
    transition: left 0.3s;
    overflow-y: auto;
}

.atechnav .submenu {
    pointer-events: auto;
}

.atechnav .menu {
    pointer-events: auto;
    position: fixed;
    top: 80px; /* Adjust this value to the height of your header */
    left: -320px;
    width: 320px;
    height: calc(100vh - 80px); /* Full height of the viewport minus the header */
    background-color: #fff;
    overflow-y: auto; /* Allow scrolling if content exceeds height */
    z-index: 9998; /* Ensure the main menu stays just below the submenu */
    transition: left 0.3s ease-in-out;
}

.atechnav .menu li.title-menu {
    padding: 20px;
    background: #9C6;
    color: #fff;
    text-align: center;
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.atechnav .menu a {
    display: block;
    padding: 20px;
    border-bottom: 1px solid #c6d0da;
    font-size: 22px;
    font-weight: 200;
    text-decoration: none;
    color: #575d69;
}

.atechnav .menu a:hover {
    background: #9C6;
    color: #fff;
    transition: all 0.5s ease;
}

.atechnav .menu li span.icon-menu {
    margin-right: 12px;
}

.atechnav .menu .item-submenu > a::after {
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f105";
    float: right;
    color: #c5c5c5;
}

/* Submenu ============*/
.atechnav .submenu {
    position: fixed;
    top: 80px;
    left: -320px;
    width: 320px;
    max-height: calc(100vh - 80px);
    background-color: #ffffff; /* White background for submenu */
    overflow-y: auto;
    z-index: 9997;
    transition: left 0.3s ease-in-out;
}

.atechnav .submenu.open {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.atechnav .submenu li.title-menu {
    background: #fff;
    color: #575d69;
}

.atechnav .submenu li.go-back {
    padding: 10px 20px;
    background: #9C6;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.atechnav .submenu li.go-back::before {
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f0d9";
    margin-right: 10px;
}

@media screen and (max-width: 320px) {
    .atechnav ul {
        width: 100%;
    }
}
