* {
  padding: 0;
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: sans-serif;
  background-color: #f9f9f9;
  display: flex;
  font-weight: 800;
  min-height: 100%;
  flex-direction: column;
  scroll-behavior: smooth;
}

footer {
  background: blueviolet;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

nav {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links li a:hover,
.social-contacts a:hover {
  color: red;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  text-decoration: none;
  color: black;
}
.nav-links li a,
footer .social-contacts a {
  color: black;
}
.container {
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  padding: 5px 200px;
  width: 100%;
}

footer h3,
p,
div {
  padding-bottom: 15px;
}
.intro {
  max-width: 700px;
  margin: 50px auto;
  text-align: center;
  padding: 0 20px;
}
.intro h1 {
  font-size: 32px;
  margin-bottom: 20px;
}
.intro p {
  font-size: 16px;
  color: #00000094;
}
.profile-img {
  margin-top: 20px;
  width: 180px;
  border-radius: 12px;
}
.roboto {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}
.roboto h2 {
  font-size: 40px;
  margin-bottom: 30px;
}
.skill {
  display: flex;
  padding: 20px;
  width: 100%;
  justify-content: center;
  gap: 20px;
}
.skill h2 {
  color: blueviolet;
  font-size: 22px;
  padding-top: 15px;
}
.skill p {
  font-size: 15px;
  color: #00000094;
  padding-bottom: 48px;
}
.item {
  width: 400px;
  border: 1px solid rgba(176, 166, 166, 0.213);
  display: flex;
  flex-direction: column;
  border-radius: 1%;
  align-items: stretch;
  max-height: 100%;
}
main {
  flex-grow: 1;
}
.text {
  border: 1px solid rgba(176, 166, 166, 0.213);
  box-shadow: -2px -16px 5px -5px rgba(0, 144, 255, 1) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-left: 60px;
  padding-right: 60px;
  border-radius: 15px;
}
.grids {
  display: grid;
  grid-template-columns: 1fr 3fr;
  margin: 200px;
  gap: 60px;
}
.text h2 {
  font-size: 32px;
  color: blueviolet;
}
.text p {
  font-size: 15px;
  color: #00000094;
  padding-bottom: 48px;
}

@media (max-width: 900px) {
  .container,
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
     justify-content: space-between;

  }
  .nav-links,
  .social-contacts {
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
  }
  /* .skill {
    grid-template-columns: 1fr;
    margin: 20px;
  } */
  .intro {
    margin: 40px 20px;
  }
  .intro p {
    font-size: 18px;
    padding: 20px;
  }
  .grids{
    margin: 20px;
    grid-template-columns: 1fr;
    row-gap: 40px;
    text-align: center;
  }
}

.item p {
  padding-left: 60px;
  padding-right: 60px;
}
