:root {
    --main-color:#fbff14;
    --white-color: #fff;
    --grey-color: rgba(255, 255, 255, 0.2);
    --black-color: #000;
    --fonts: 'Poppins', sans-serif;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    background-color: var(--black-color);
    color: var(--white-color);
    font-family: var(--fonts);
    -ms-overflow-style: none;   
    scrollbar-width: none;
    overflow-y: visible; /* Hide vertical scrollbar and deactive it */
}

html::-webkit-scrollbar {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
}

#particles-js {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: -1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    opacity: 1;
    flex-wrap: wrap;
    padding: 0 40px; /* Increase the horizontal padding */
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    position: fixed;
}

h2 {
    margin: 0;
    font-size: 5rem;
}

h3 {
    margin: 1rem;
    font-size: 1.2rem;
    color: var(--main-color);
}

a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: all ease-in-out 0.2s;
}

a:hover {
    color: var(--main-color);
    transform: scale(1.1);   
}

ul {
    display: flex;
    list-style: none;
    padding: 0;
}

ul li {
    margin: 1rem;
}

.meSection h3 {
    margin-bottom: 5.5rem;
    margin-top: 0;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    opacity: 1;
    flex-wrap: wrap;
    height: 100vh;
}

section#competences {
    display: block;
    text-align: center;
    align-items: center;
    padding-top: 10rem;
}

#competlist {
    display: flex;
    flex-direction: row;
    justify-content: space-around; 
    height: 100%;
}

div#compet {
    border-radius: 35px;
    width: 40%;
}

.ico {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.6rem;
    vertical-align: middle;
}
  
#competlist h4 {
    margin-bottom: 10px;
    
}

progress {
    width: 60%;
    height: 10px;
    border-radius: 5px;
    background-color: var(--grey-color);
    -webkit-appearance: none;
    appearance: none;
}

progress::-webkit-progress-bar {
    background-color: var(--grey-color);
    border-radius: 5px;
}

progress::-webkit-progress-value {
    background-color: var(--white-color);
    border-radius: 5px;
}

progress::-moz-progress-bar {
    background-color: var(--white-color);
    border-radius: 5px;
}

#scrollToTopButton {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: bottom ease-in-out 0.3s;
} 

#scrollToTopButton:hover {
    bottom: 25px;
} 

p{
    font-size: x-large;
    align-content: center;
    text-align: center;
}

.myFace {
    border: #fff 0.3rem solid;
    border-radius: 10rem;
    width: 20rem;
    height: 20rem;
}

.menu-toggle {
    display: none;
}

@media screen and (max-width: 800px) {
    header {
        flex-direction: column;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1;
        padding-top: 2.2rem;
      }
      .nav-menu.open {
        display: block;
      }

      .nav-menu.open ul{
        justify-content: center;
      }

      .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1.2rem;
        background: none;
        border: none;
        cursor: pointer;
        height: 2.5rem;
        width: 2.5rem;
        padding: 0;
        z-index: 2;
      }
      .menu-toggle:focus {
        outline: none;
      }
      .menu-toggle__bar {
        display: block;
        background: var(--main-color);
        height: 3px;
        width: 100%;
        position: absolute;
        left: 0;
        transition: all 0.2s ease-in-out;
      }
      .menu-toggle__bar:nth-child(1) {
        top: 0.5rem;
      }
      .menu-toggle__bar:nth-child(2) {
        top: calc(50% - 1.5px);
      }
      .menu-toggle__bar:nth-child(3) {
        bottom: 0.5rem;
      }
      .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
      }
      .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
        opacity: 0;
      }
      .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
      }
}

@media screen and (max-width: 600px) {
    header {
        font-size: 4.5vw;
        margin: 0;
        padding: 0%;
    }

    ul li {
        margin: 0.4rem;
    }

    section {
        flex-wrap: wrap;
    }

    h2 {
        font-size: 12vw;
    }

    h3 {
        font-size: 4vw;
    }
    progress {
        width: 50%;
    }

    section#competences {
        height: fit-content;
    }

    #competlist {
        flex-direction: column;
        align-items: center;
    }

    div#compet {
        border-radius: 35px;
        width: 100%;
        margin-top: 2rem;
    }

    #scrollToTopButton {
        width: 20px;
        height: 14.6px;
    } 

    .myFace {
        transform: scale(0.8);
    }

    p{
        font-size: large;
    }

    .logo {
        display: none;
    }
}
