* {
  font-family: san-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  text-align: center;
}

p {
  font-size: 1rem;
}

header {
  padding: 0.4rem;
  position: sticky;
  top: 0;
  background-color: rgba(20, 101, 158, 0.9);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

header:after {
  content: " ";
  display: block;
  clear: both;
}

#logo {
  float: left;
  letter-spacing: 5px;
  font-size: 1.5em;
  margin-left: 40px;
  color: #fff;
}

nav {
  float: right;
  width: auto;
  font-weight: bold;
  font-size: 1rem;
  padding: 0;
}

nav button {
  padding: 0;
  margin: 0;
}

section#about-section {
  padding: 3rem;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

section#about-section h1 {
  margin-bottom: 2rem;
}

#about #aboutMeWriteUp {
  float: left;
  width: 50%;
  font-size: 1.4rem;
  margin-top: 2rem;
  display: inline;
}

#aboutPhoto {
  width: 50%;
  float: right;
  padding: 1%;
  height: auto;
}

#aboutPhoto img {
  width: 100%;
  border-radius: 20px;
  height: auto;
}

section#about-section:after {
  content: " ";
  clear: both;
  display: block;
}

section#projects-section {
  margin-top: 5rem;
  padding: 4rem;
  box-shadow: 0 0.6px 0.6px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

section#projects-section:after {
  content: " ";
  display: block;
  clear: both;
}

.projects {
  float: left;
  width: 31.33%;
  margin: 1%;
  margin-top: 2rem;
  text-align: center;
  padding: 10px;
  transition: 3s;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.projects img {
  width: 100%;
  height: auto;
}

h3 {
  text-align: center;
  margin-top: 1rem;
}

.github_link {
  padding: 10px 18px;
  margin-top: 1rem;
  border: 1px solid rgba(20, 101, 158, 0.9);
  border-top-left-radius: 50px;
  border-bottom-right-radius: 50px;
  transition: 1s;
}

.github_link:hover {
  background-color: lightblue;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

section#contact-section {
  margin-top: 5rem;
  text-align: center;
  padding: 3rem;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

h1 {
  font-size: 2.5rem;
  text-align: center;
}

section#contact-section p {
  font-size: 1.4rem;
  margin-top: 1rem;
}

#social-media {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

#social-media img {
  padding: 0.1rem;
  margin-left: 10px;
}

footer {
  text-align: center;
  margin-top: 3rem;
}

/*RESPONSIVE DESIGN FOR MOBILE VIEW*/
@media screen and (max-width: 600px) {
  header {
    background-color: rgba(20, 101, 158, 0.9);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

  #logo {
    float: left;
    letter-spacing: 0;
    font-size: 0.2rem;
    margin-left: 0;
    color: #fff;
  }

  nav {
    float: right;
    width: auto;
    font-weight: bold;
    font-size: 1rem;
  }

  nav button {
    padding: 0;
    margin: 0;
  }

  section#about-section {
    padding: 1rem;
  }

  #about #aboutMeWriteUp {
    float: none;
    width: 100%;
    font-size: 1.4rem;
    margin-top: 2rem;
    display: inline;
  }

  #aboutPhoto {
    width: 100%;
    float: none;
    padding: 1%;
    height: auto;
  }

  #aboutPhoto img {
    width: 100%;
    height: auto;
    animation-name: move;
    animation-duration: 1s;
    animation-direction: alternate;
  }

  @keyframes move {
    0% {
      width: 0%;
    }

    100% {
      width: 100%;
    }
  }

  section#projects-section {
    margin-top: 5rem;
    padding: 1rem;
  }

  .projects {
    float: none;
    width: 100%;
    margin: 1%;
    margin-top: 2rem;
    text-align: center;
  }

  .projects img {
    width: 100%;
    height: auto;
  }
}

/* RESPONSIVE FOR TABLET VIEW */
@media screen and (min-width: 601px) {
  .projects {
    float: left;
    width: 48%;
    margin: 1%;
    margin-top: 2rem;
    text-align: center;
    padding: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

  #about #aboutMeWriteUp {
    float: none;
    width: 100%;
    font-size: 1.4rem;
    margin-top: 2rem;
    display: inline;
  }

  #aboutPhoto {
    width: 100%;
    float: none;
    padding: 1%;
    height: auto;
  }

  #aboutPhoto img {
    width: 100%;
    border-radius: 20px;
    height: auto;
  }
}

/*Desktop View */
@media screen and (min-width: 992px) {
  section#about-section {
    padding: 3rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

  section#about-section h1 {
    margin-bottom: 2rem;
  }

  #about #aboutMeWriteUp {
    float: left;
    width: 50%;
    font-size: 1.4rem;
    margin-top: 2rem;
    display: inline;
  }

  #aboutPhoto {
    width: 50%;
    float: right;
    padding: 1%;
    height: auto;
  }

  #aboutPhoto img {
    width: 100%;
    border-radius: 20px;
    height: auto;
  }

  .projects {
    float: left;
    width: 31.33%;
    margin: 1%;
    margin-top: 2rem;
    text-align: center;
    padding: 10px;
    height: 550px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
}