body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bolder;
  font-size: 150%;
  color: white;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

* {
  padding: 10px;
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

header {
  position: fixed;
  display: flex;
  width: 100%;
  top: 0;
  left: 0;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  background-color: black; 
  padding: 10px 20px; 
}

.header:hover {
  text-decoration: underline orange;
}

a {
  text-decoration: none;
  color: white;  
}

.hamburger {
  font-size: 30px;
  color: white;
  cursor: pointer; 
}

/* Navigation Styles */
nav {
  position: fixed;
  display: flex;
  justify-content: center; 
  gap: 20px; 
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  transition: background-color 0.3s; 
}

.nav a:hover {
  background-color: #555;
}

.home {
  display: flex;
  flex-wrap: wrap;
  height: 100vh;
}

.home h1 {
  color: #FFDE59;
  font-size: 600%;
  margin-top: 10rem;
}

.home p {
  margin-top: 25rem;
  margin-left: -20rem;
  font-size: 150%;
  background: linear-gradient(to bottom, black 0%, grey 100%);
  box-shadow: 2px 1px 20px rgba(255, 255, 255, 0.863);
  height: 5rem;
  border-radius: 2rem;
}

.home img {
  margin-left: 10rem;
  height: 70%;
}

.about {
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-content: center;
}

.about p {
  background: linear-gradient(to bottom, black 0%, grey 100%);
  box-shadow: 2px 1px 20px rgba(255, 255, 255, 0.863);
  height: 8rem;
  border-radius: 2rem;
  padding: 2rem;
}

.about img {
  width: 20%;
  height: 30%;
  border-radius: 50%;
}

.skills {
  place-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  height: 120vh;
  gap: 2rem;
}

.Ms {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30%;
  height: 18rem;
  border-radius: 1rem;
  border: 0.1rem solid white;
  background-color: black;
  padding: 1rem;
  box-shadow: 2px 1px 20px rgba(255, 255, 255, 0.863); 
  transition: transform 0.3s, opacity 0.3s; 
}

.Ms:hover {
  transform: scale(1.05); 
  opacity: 0.9; 
}

.skills img {
  width: 30%;
}

.progress {
  color: white;
  background-color: #545454;
  border-radius: 5px;
  height: 3rem;
  width: 20rem;
}

.progress-bar {
  height: 100%;
  background-color: #f1c40f;
  border-radius: 5px;
}

.project {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 100vh;
  gap: 2rem;
}

.project img {
  width: 50%;
}

.Mp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: 18rem;
  border-radius: 1rem;
  border: 0.1rem solid white;
  background-color: black;
  padding: 1rem;
  box-shadow: 2px 1px 20px rgba(255, 255, 255, 0.863); 
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  height: 100vh;
}

.Ct {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: 18rem;
  border-radius: 1rem;
  border: 0.1rem solid white;
  background-color: black;
  padding: 2rem;
  box-shadow: 2px 1px 20px rgba(255, 255, 255, 0.863);
}

.contact img {
  width: 30%;
}


@media (max-width: 767px){
  @media (max-width: 767px) {
    .hamburger {
        display: block; 
    }

    .nav {
        display: none; 
        flex-direction: column; 
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: black;
    }

    .hamburger-toggle:checked + .hamburger + .nav {
        display: flex;
    }

    .nav a {
        padding: 15px;
        border-bottom: 1px solid white;
    }
}

  .hamburger {
    display: block; 
  }

  .nav {
    flex-direction: column; 
    display: none; 
    position: absolute;
    top: 60px; 
    left: 0;
    width: 100%;
    background-color: black;
    z-index: 5;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 15px;
    border-bottom: 1px solid white; 
  }
  .nav a:last-child {
    border-bottom: none; 
  }

  .home h1 {
    font-size: 300%;
  }

  .home p {
    color: white;
    font-size: 100%;
    height: 3rem;
    margin-top: 0rem;
    margin-left: 2rem;
  }

  .home img {
    margin-left: -2rem;
    width: 122%;
  }

  .about {
    display: flex;
    flex-wrap: wrap;
  }

  .about img {
    margin-left: 1rem;
    width: 600%;
  }

  .about p {
    height: 18rem;
    border-radius: 2rem;
    padding: 2rem;
  }

  .skills {
    display: flex;
    flex-wrap: wrap;
    height: auto; 
  }
  .project {
    display: flex;
    flex-wrap: wrap;
    height: auto; 
  }
           /* Set a fixed height */
    

  .contact{
    flex-wrap: wrap;
  }
  }

  