@media (prefers-reduced-motion: no-preference) {
    * {
      scroll-behavior: smooth;
    }
  }
  
  :root {
    --header-color1:#16161f;
    --button-color1:#575252;
    --button-color2:#fcfcfb;
    --button-color3:#343232;
  }
  
  * {
    box-sizing:border-box;
    margin:0;
    padding:0;
  }
  
  body {
    background-color:var(--button-color2);
  }
  .navbar {
    height:50px;
    position:fixed;
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    background:var(--header-color1);
    width:100%;
    color: white;
  }
  
  #navbar {
    display:fixed;
    padding-right:10px;
  }
  
  .navbar h2 {
    padding-left:50px;
    font-family:Poetsen One, Tahoma, sans serif;
  
  }
  .navbar a:hover {
    background:var(--button-color3);
    color: var(--header-color1);
    padding:5px;
    border-radius:5px;
    box-shadow: 0 0 20px rgba(106,13,173,0.8), 0 0 30px rgba(74,144,226,0.8), 0 0 40px rgba(243,156,18,0.8);
  }
  
  .navbar a:active {
    background: linear-gradient(45deg, #6a0dad, #4a90e2, #f39c12);
    box-shadow: 0 0 20px rgba(106,13,173,0.8), 0 0 30px rgba(74,144,226,0.8), 0 0 40px rgba(243,156,18,0.8);
 
  }

  #navbar ul {
    list-style-type:none;
    display:flex;
    flex-direction:row;
    justify-content:space-evenly;
    align-items:center;
    flex-wrap:nowrap;
  }
  
  #navbar ul li a {
    margin-left:8px;
    text-decoration:none;
    color:beige;
  }
  #navbar ul li a:last-of-type {
    padding-right:10px;
  }
  
  .welcome-section {
    padding:50px 10px 10px 10px;
    text-align:center;
  }
  
  .welcome-section input {
    display:flex;
    margin:0 auto;
    background:var(--button-color1);
    padding:10px;
    color:var(--button-color2);
    border-radius:5px;
    border:none;
    z-index:0;
  }
  .welcome-section input:hover {
    background-color:var(--button-color3);
    scale:1.01;
  }
  
  @media only screen @ (max-width:1080px;) {
  * {
    scale:0.5;
  }
  
  .navbar {
    justify-content:space-between;
}

}
  
  #contact {
    display: flex;
    margin: 60px auto;
    flex-direction:row;
    justify-content: space-evenly;
    background:#808080;
    padding: 30px;
    align-items:center;
    flex-wrap:nowrap;
  }
  .contact-description {
    text-align:left;
  }
  
  .projects {
    width:100%;
    border:1px solid black;
    display:flex;
    margin:0 auto;
    flex-direction:row;
    justify-content:space-evenly;
    align-items:center;
    margin-bottom:10vh;
    padding:25px 10px;
    background:var(--header-color1);
    z-index: 1;
  }
  
  .project-tile {
    width:30%;
    height:28vh;
    border: 1px solid black;
    border-radius:5%;
    z-index:1;
    background:var(--button-color2);
    }

    /* form */

    .contactForm, .contactForm h1 {
      padding-top:50px;
      display: block;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .form  {
      display:flex;
      flex-direction: column;
      background: white;
      border: linear-gradient(violet 30%,lime 30%,purple 40%);
      margin: 10px auto;
      height; 30px;
      width: 350px;
    }

    .contactForm label, .contactForm input, .contactForm textarea, .contactForm select {
      display: block;
      margin-bottom: 5px;
      border-radius: 5px;
      width: 300px;
      padding: 0 auto;
    }

    .contactForm input {
      border: 0.5px solid var(--button-color3);
    }

    .contactForm p , .contactForm h1 {
      text-align:center;
    }

    .contactForm button , .profile button {
      background: var(--button-color1);
      color: var(--button-color2);
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      padding: 4px auto;
      margin: 5px auto;
      width: 100px;
      height: 30px;
    }

    .glow-button:hover {
      background: linear-gradient(45deg, #6a0dad, #4a90e2, #f39c12);
      box-shadow: 0 0 20px rgba(106,13,173,0.8), 0 0 30px rgba(74,144,226,0.8), 0 0 40px rgba(243,156,18,0.8);
    }

    .contactForm {
      width:80%;
      height: 100%;
      box-shadow: #343232;
      margin:auto;
      padding: auto;
    }

    /*Profile*/

    .profile {
      display: flex;
      margin-top:50px auto;
      flex-direction: row;
      justify-content: space-evenly;
      align-items: center;
      text-align: center;
    }

    /*Menu*/
  
  .menu-container {
    position: relative;
  }
  
  .menu {
    height: 100vh;
    width: 100vw; /* Width of the sliding menu */
    position: fixed;
    top: -100vh;
    left: 0; /* Hide menu off-screen */
    background-color: var(--header-color1);
    overflow-x: hidden;
    transition: 0.3s; /* Smooth slide transition */
    padding-top: 60px;
    z-index: 99;
  }
  
  .menu a {
    padding: 8px 16px;
    text-decoration: none;
    font-size: 25px;
    color: var(--button-color2);
    display: block;
    transition: 0.3s;
    text-align: center;
  }
  
  .menu a:hover {
    background-color: var(--button-color1);
  }
  
  .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 45px;
    margin-left: 50px;
    font-weight: 300;
  }
  
  .openbtn {
    font-size: 20px;
    cursor: pointer;
    padding: 7.5px 15px;
    background-color: var(--header-color1);
    color: var(--button-color2);
    border: none;
    position: fixed;
    z-index: 2;
    top:0;
    right:10px;
    border-radius: 50%;
  }