html {
  scroll-behavior: smooth;
}

* {
  padding: 0;
  margin: 0;
  font-family: monospace;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: rgb(38, 54, 89);
}

h2 {
  font-size: 1.7rem;
}
body {
  background-color: rgb(241, 233, 234);
}

#about,
#projects,
#main {
  scroll-margin-top: 150px;
}

header {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 10px;
  position: fixed;
  top: 5px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header a {
  text-decoration: none;
}

nav ul {
  display: flex;
  justify-content: space-between;
}

nav li {
  margin: 10px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: rgb(38, 54, 89);
  font-weight: 500;
  transition: border-bottom 0.3s;
  font-size: 15px;
}

nav a:hover {
  font-weight: 700;
  font-size: 2.2vm;
}

/* nav a:focus,
nav a:target {
  background-color: aqua;
  border-bottom: rgb(38, 54, 89) solid 2px;
} */

main {
  margin-top: 120px;
}

.container {
  width: 80%;
  margin: 100px auto;
}

#introduction {
  display: flex;
  justify-content: space-between;
}
#content {
  margin-top: 30px;
}
#introduction h2 {
  margin: 10px 0px;
}

#content p {
  font-size: 15px;
  margin-right: 20px;
}

#intro {
  background-color: rgb(91, 135, 234);
  font-weight: 700;
  padding: 10px;
  margin: 10px 0px;
  border-radius: 10px;
  display: inline-block;
}

.mybtn {
  display: inline-block;
  margin: 20px 0;
  color: #fff;
  background-color: rgb(38, 54, 89);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 17px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.mybtn:hover {
  opacity: 0.9;
}

#email {
  margin-top: 10px;
}

aside img {
  width: 300px;
  height: 400px;
  border-radius: 15px;
  margin: 10px 0px;
}

#about {
  text-align: center;
  margin-top: 20px;
}

#about p {
  margin: 20px 0px;
  font-size: 18px;
}

#about h3 {
  display: inline-block;
  margin: 10px 0;
  font-size: 1.5rem;
}

#skills {
  display: flex;
  justify-content: space-between;
  margin: 0 20px;
}

#skills h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

#skills i {
  font-size: 24px;
}

article li {
  list-style: none;
  margin: 5px 0px;
  font-size: 16px;
}

#projects {
  text-align: center;
}

#projects #sub {
  font-size: 1rem;
}

#projects h2 {
  margin: 10px 0px;
}
#projects h3 {
  font-size: 1.8rem;
}

#projects p {
  margin: 10px 0px;
  font-size: 15px;
}

#project {
  display: flex;
  justify-content: space-between;
  margin: 20px 0px;
}

#project img {
  height: 300px;
  width: 300px;
  border-radius: 20px;
}

#project aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0px 20px;
}

#contact {
  text-align: center;
}

#contact h2 {
  margin: 30px 0px;
}

.cont {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 20px;
}

i {
  color: rgb(38, 54, 89);
}

#contact-form {
  text-align: left;
  max-width: 400px;
}

#contact-form form {
  display: flex;
  flex-direction: column;
}

#contact-form div {
  margin: 3px 0px;
  width: 100%;
}

#contact-form input {
  width: 100%;
  height: 30px;
  border-radius: 5px;
}
#contact-form label {
  display: block;
  font-size: 1.2rem;
}
textarea {
  border-radius: 5px;
  width: 100%;
}

button {
  padding: 7px;
  background-color: rgb(38, 54, 89);
  color: #fff;
  font-weight: 600;
  border-radius: 5px;
}

button:hover {
  opacity: 0.8;
}

#socials {
  margin: 50px 0px;
  text-align: center;
}

#socials i {
  font-size: 24px;
  margin: 10px 0px;
}

#socials p {
  display: inline;
  font-size: 16px;
}

#socials a {
  text-decoration: none;
}

#socials div {
  margin: 5px 0px;
}

footer {
  height: 80px;
  background-color: rgb(38, 54, 89);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: #fff;
  margin: 0px 10px;
  font-size: 1.1rem;
}

footer span {
  display: block;
}

@media (max-width: 600px) {
  .container {
    text-align: center;
    margin: 100px auto;
  }
  #introduction {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #intro {
    margin: 15px 0px;
  }
  #content a {
    margin: 10px 0px;
  }
  #stat {
    flex-direction: column;
  }
  #skills {
    margin: 0px;
  }
  #project {
    flex-direction: column;
  }
  #project aside {
    margin: 20px 0px;
  }
}
