.menu-btn {
  position: absolute;
  z-index: 3;
  right: 20px;
  top: 20px;
  cursor: pointer;
  transition: all 0.5s ease-out; }
  .menu-btn .btn-line {
    width: 28px;
    height: 3px;
    margin: 0 0 5px 0;
    background: #eece1a;
    transition: all 0.5s ease-out; }
  .menu-btn.close {
    transform: rotate(180deg); }
    .menu-btn.close .btn-line:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px); }
    .menu-btn.close .btn-line:nth-child(2) {
      opacity: 0; }
    .menu-btn.close .btn-line:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px); }

.menu {
  position: fixed;
  top: 0;
  width: 100%;
  opacity: 0.9;
  visibility: hidden; }
  .menu.show {
    visibility: visible; }
  .menu-branding, .menu-nav {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
    float: left;
    width: 50%;
    height: 100vh;
    overflow: hidden; }
  .menu-nav {
    margin: 0;
    padding: 0;
    background: #373737;
    list-style: none;
    transform: translate3d(0, -100%, 0);
    transition: all 0.5s ease-out; }
    .menu-nav.show {
      transform: translate3d(0, 0, 0); }
  .menu-branding {
    background: #444;
    transition: all 0.5s ease-out;
    transform: translate3d(0, 100%, 0); }
    .menu-branding.show {
      transform: translate3d(0, 0, 0); }
    .menu-branding .portrait {
      width: 350px;
      height: 350px;
      background: url(../IMG/profile.png) no-repeat center;
      background-size: cover;
      border-radius: 50%;
      border: solid 6px #675908; }
  .menu .nav-item {
    transform: translate3d(600px, 0, 0);
    transition: all 0.5s ease-out; }
    .menu .nav-item.show {
      transform: translate3d(0, 0, 0); }
    .menu .nav-item.current > a {
      color: #eece1a; }
  .menu .nav-link {
    display: inline-block;
    position: relative;
    font-size: 30px;
    text-transform: uppercase;
    padding: 1rem 0;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    transition: all 0.5s ease-out; }
    .menu .nav-link:hover {
      color: #eece1a; }

.nav-item:nth-child(1) {
  transition-delay: 0.1s; }

.nav-item:nth-child(2) {
  transition-delay: 0.2s; }

.nav-item:nth-child(3) {
  transition-delay: 0.3s; }

.nav-item:nth-child(4) {
  transition-delay: 0.4s; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins';
  line-height: 1.5;
  scrollbar-width: 50px;
  scrollbar-color: #444 #eece1a;
  /* Works in WebKit browsers (Chrome, Safari, Edge) */ }
  * ::-webkit-scrollbar {
    width: 12px; }
  * ::-webkit-scrollbar-track {
    background: #eece1a;
    /* light background */
    border-radius: 10px; }
  * ::-webkit-scrollbar-thumb {
    background: #444;
    /* gray scrollbar */
    border-radius: 10px; }
  * ::-webkit-scrollbar-thumb:hover {
    background: #7f6d09;
    /* darker on hover */ }

body {
  background: #444;
  color: #fff; }
  body#bg-img {
    background: url(../IMG/background.jpg);
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    z-index: 0; }
    body#bg-img::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 100%;
      height: 100%;
      background: rgba(68, 68, 68, 0.9);
      z-index: -1; }

h1, h2, h3 {
  font-weight: 400; }
  h1.lg-heading, h2.lg-heading, h3.lg-heading {
    font-size: 6rem;
    font-weight: bold; }
  h1.sm-heading, h2.sm-heading, h3.sm-heading {
    margin-bottom: 2rem;
    padding: 0.2rem 1rem;
    background: rgba(73, 73, 73, 0.5); }

a {
  color: #fff;
  text-decoration: none; }

header {
  position: fixed;
  z-index: 2;
  width: 100%; }

.text-secondary {
  color: #eece1a; }

main {
  padding: 4rem;
  min-height: calc(100vh - 40px); }
  main .icons {
    margin-top: 1rem; }
    main .icons a {
      padding: 0.4rem; }
      main .icons a:hover {
        color: #eece1a;
        transition: all 0.5s ease-out; }
  main#home {
    overflow: hidden; }
    main#home h1 {
      margin-top: 20vh; }
  main#aboutme .cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
    color: #eece1a; }

@keyframes blink {
  0%, 100% {
    opacity: 1; }
  50% {
    opacity: 0; } }
  main#aboutme .about-info {
    display: grid;
    grid-gap: 30px;
    grid-template-areas: 'bioimage bio bio' 'job1 job2 job3';
    grid-template-columns: repeat(3, 1fr); }
    main#aboutme .about-info .bio-image {
      grid-area: bioimage;
      margin: auto;
      border-radius: 50%;
      border: #eece1a 3px solid;
      width: 250px;
      height: 250px; }
    main#aboutme .about-info .bio {
      grid-area: bio;
      font-size: 1.2rem; }
      main#aboutme .about-info .bio h3 {
        font-size: 2.1rem; }
    main#aboutme .about-info .job-1 {
      grid-area: job1; }
    main#aboutme .about-info .job-2 {
      grid-area: job2; }
    main#aboutme .about-info .job-3 {
      grid-area: job3; }
    main#aboutme .about-info .job {
      background: #515151;
      padding: 0.5rem;
      border-bottom: #eece1a 5px solid; }
      main#aboutme .about-info .job h3 {
        text-transform: capitalize;
        color: #eece1a;
        font-weight: bolder;
        border-bottom: 2px solid #eece1a; }
      main#aboutme .about-info .job h6 {
        color: #c6ab0f;
        text-transform: uppercase;
        border-bottom: 2px solid #eece1a;
        margin: 0.2rem 0; }
      main#aboutme .about-info .job p {
        text-transform: capitalize; }

main#work .cursor {
  display: inline-block;
  animation: blink 0.7s infinite;
  color: #eece1a; }

@keyframes blink {
  0%, 100% {
    opacity: 1; }
  50% {
    opacity: 0; } }

main#work .projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.7rem; }
  main#work .projects img {
    width: 100%;
    border: #eece1a 5px solid;
    border-radius: 10px; }
    main#work .projects img:hover {
      opacity: 0.3;
      border-color: #c4c4c4;
      transition: all 0.6s ease-out; }
  main#work .projects .btn, main#work .projects .btn-dark, main#work .projects .btn-light {
    display: block;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 10px;
    margin-bottom: 0.3rem;
    text-align: center; }
    main#work .projects .btn:hover, main#work .projects .btn-dark:hover, main#work .projects .btn-light:hover {
      background: #eece1a;
      color: #000;
      transition: all 0.6s ease-out; }
  main#work .projects .btn-dark {
    background: black;
    color: #fff; }
  main#work .projects .btn-light {
    background: #c4c4c4;
    color: #444; }

main#contactme .cursor {
  display: inline-block;
  animation: blink 0.7s infinite;
  color: #eece1a; }

@keyframes blink {
  0%, 100% {
    opacity: 1; }
  50% {
    opacity: 0; } }

main#contactme .boxes {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 25px; }
  main#contactme .boxes div {
    font-size: 25px;
    border: #eece1a 4px solid;
    padding: 25px 40px;
    margin-bottom: 1rem; }
    main#contactme .boxes div:hover {
      padding: 15px 20px;
      background: #eece1a;
      color: #000;
      transition: all 0.5s ease-out; }
      main#contactme .boxes div:hover span {
        color: #000; }
  main#contactme .boxes section.contact {
    font-size: 25px;
    padding: 25px 40px;
    border: #eece1a 4px solid; }
    main#contactme .boxes section.contact form {
      display: flex;
      flex-direction: column; }
      main#contactme .boxes section.contact form label {
        margin-top: 10px;
        color: #eece1a; }
      main#contactme .boxes section.contact form input, main#contactme .boxes section.contact form textarea {
        padding: 10px;
        font-size: 16px;
        margin-top: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        outline: none; }
      main#contactme .boxes section.contact form button {
        margin-top: 20px;
        padding: 10px;
        background-color: #eece1a;
        color: #000;
        border: none;
        font-size: 16px;
        border-radius: 5px;
        cursor: pointer; }
      main#contactme .boxes section.contact form button:hover {
        background-color: #444;
        color: #fff;
        border: #eece1a 3px solid;
        transition: all 0.5s ease-out; }

#main-footer {
  text-align: center;
  padding: 0.5rem;
  background: #2b2b2b;
  color: #fff; }

@media screen and (min-width: 1171px) {
  .projects {
    grid-template-columns: repeat(4, 1fr); } }

@media screen and (min-width: 769px) and (max-width: 1170px) {
  .projects {
    grid-template-columns: repeat(3, 1fr); } }

@media screen and (max-width: 768px) {
  main {
    align-items: center;
    text-align: center; }
    main .lg-heading {
      line-height: 1;
      margin-bottom: 1rem; }
    main#home {
      height: 100vh; }
      main#home .lg-heading {
        font-size: 3rem; }
  ul.menu-nav, div.menu-branding {
    float: none;
    width: 100%;
    min-height: 0; }
    ul.menu-nav.show, div.menu-branding.show {
      transform: translate3d(0, 0, 0); }
  .menu-nav {
    height: 75vh;
    transform: translate3d(-100%, 0, 0);
    font-size: 24px; }
  .menu-branding {
    height: 25vh;
    transform: translate3d(100%, 0, 0); }
    .menu-branding .portrait {
      width: 150px;
      height: 150px; }
  .about-info {
    grid-template-areas: 'bioimage' 'bio' 'job1' 'job2' 'job3';
    grid-template-columns: 1fr; }
  .projects {
    grid-template-columns: repeat(2, 1fr); } }

@media screen and (max-width: 500px) {
  main#home h1 {
    margin-top: 10vh; }
  main#aboutme {
    padding: 1rem; }
    main#aboutme .lg-heading {
      font-size: 3rem; }
    main#aboutme .bio {
      font-size: 1rem; }
    main#aboutme .about-info {
      grid-template-areas: 'bioimage' 'bio' 'job1' 'job2' 'job3';
      grid-template-columns: 1fr; }
  main#work {
    padding: 1rem; }
    main#work .lg-heading {
      font-size: 3rem; }
    main#work .projects {
      grid-template-columns: 1fr; }
  main#contactme {
    padding: 0.9rem;
    flex-direction: column;
    align-items: stretch; }
    main#contactme .lg-heading {
      font-size: 2.5rem; }
    main#contactme div {
      font-size: 1rem !important;
      padding: 10px !important;
      width: 100%;
      text-align: center; }
      main#contactme div.boxes {
        align-items: normal; }
    main#contactme section.contact {
      width: 100%;
      padding: 10px !important; }
      main#contactme section.contact form label {
        font-size: 1rem; } }
