* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
  background-color: #b7c6e9;
}

#header {
  position: fixed;
  top: 0px;
  transition: top 0.3s;
  width: 100dvw;
  height: 70px;
  background-color: #000000;
  color: #fff;
  display: flex;
  align-items: center;
  /* justify-content: space-around; */
  z-index: 1;
}
.content {
  margin-top: 60px;
}
p {
  font-size: 15px;
  text-align: justify;
}

nav {
  position: fixed;
  right: 5vw;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  font-size: 18px;
}

nav ul li {
  height: auto;
  padding: 20px;
  float: left;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  /* display: block; */
  text-align: center;
}

nav ul li:hover {
  text-decoration: dotted underline 5px;
  background-color: #545c5f;
}
.pic a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

img {
  transition: transform 0.5s;
}

img:hover {
  transform: scale(1.05);
  box-shadow: 5px 10px 15px #000000;
}

#profile,
#logo {
  background-image: url("./images/profilefull.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#profile {
  width: 400px;
  height: 400px;
  margin: 4%;
  flex: 1;
}
#logo {
  position: fixed;
  background-image: url("./images/logo.png");
  height: 60px;
  width: 60px;
  left: 5vw;
}
#titles {
  position: fixed;
  left: 15vw;
}
#about_me {
  display: flex;
  overflow: hidden;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: #ffffffd3;
  border-radius: 10px;
  font-size: 18px;
  margin-bottom: 50px;
  box-shadow: 5px 5px 10px rgb(78, 78, 78);
}
hr {
  border: 1px solid white;
  width: 100%;
}
#discript {
  text-align: justify;
  font-size: 18px;
  margin: 4%;
  flex: 2;
}
section {
  padding: 20px;
  margin: 0 20% 0 20%;
}

.project {
  background-color: rgba(255, 255, 255, 0.76);
  padding: 30px;
  width: fit-content;
  margin: 0 0 30px 0;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgb(107, 106, 106);
}

footer {
  background-color: #000000;
  color: #fff;
  /* text-align: center; */
  position: fixed;
  width: 100vw;
  bottom: 0;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#contact,
#socials {
  background-color: #ffffffc7;
  box-shadow: 5px 5px 10px rgb(107, 106, 106);
  width: fit-content;
  border-radius: 20px;
  margin-bottom: 20px;
  padding: 20px;
  flex-grow: 1;
}
.connect {
  display: flex;
  justify-content: space-around;
  gap: 10%;
  margin-bottom: 20px;
}
#links {
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(3, 25px);
  gap: 50px;
}

#socials .fa-brands {
  /* padding: 25px; */
  font-size: 25px;
  text-decoration: none;
  color: black;
}

@media only screen and (min-width: 500px) and (max-width: 799px) {
  #logo {
    display: none;
  }
  #titles {
    left: 2vw;
  }
  nav {
    right: 0;
  }
  #about_me {
    flex-direction: column;
  }
  #profile {
    width: 450px;
    height: 450px;
    flex: none;
  }
  #discript {
    flex: none;
  }
  section {
    margin: 0 10% 0 10%;
  }
  .connect {
    flex-direction: column;
  }
  #links {
    grid-template-columns: repeat(5, 25px);
    width: 100%;
  }
}

@media only screen and (max-width: 499px) {
  nav {
    position: static;
    margin: auto;
  }
  nav ul li {
    padding: 18px;
  }
  #titles,
  #logo {
    display: none;
  }
  .content {
    width: 100%;
    margin: 100px 0 0 0;
    padding: 0px;
  }
  section {
    padding: 20px;
    margin: 10px 0 0 0;
  }

  #about_me {
    flex-direction: column;
    padding: 30px;
  }

  #profile {
    height: 350px;
    width: 350px;
    margin-bottom: 40px;
    flex: none;
  }

  #discript {
    flex: none;
  }
  .connect {
    flex-direction: column;
    align-items: center;
  }

  #contact {
    margin-bottom: 20px;
  }
  #contact,
  #socials {
    width: 80%;
  }
}
