* {
  box-sizing: border-box; 
}

/* menu button global /////////////////////////////////*/
.menu-btn {
  position: absolute;
  z-index: 3; /* show on top */
  right: 35px;
  top: 35px;
  cursor: pointer; /* cursor = pointer on menu button */
  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; 
}

/*Make the menu lines Rotate Into X */
.menu-btn.close {
  transform: rotate(180deg); 
}

/*Line 1 - Rotate */
.menu-btn.close .btn-line:nth-child(1) { /* first child */
  transform: rotate(45deg) translate(5px, 5px); 
}

/*Line 2 - Hide */
.menu-btn.close .btn-line:nth-child(2) { /* second child */
  opacity: 0; 
}

/*Line 3 - Rotate */
.menu-btn.close .btn-line:nth-child(3) { /* third child */
  transform: rotate(-45deg) translate(7px, -6px); 
}

#nav-text {
  display: none; 
}

/*Menu overlay */
.menu {
  position: fixed; /*Always show menu */
  top: 0;
  width: 100%;
  opacity: 1; /*Menu background opacity, change to see through */
  visibility: hidden; /*Hidden when closed */
}

/*Visible when open */
.menu.show {
  visibility: visible; 
}

.menu-branding, .menu-nav { 
  display: flex; 
  flex-flow: column wrap; 
  align-items: center;
  justify-content: center;
  float: left;
  width: 50%; /*to cut in 2 screens */
  height: 100vh; /*full screen height */
  overflow: hidden; 
}

.menu-nav {
  margin: 0;
  padding: 0;
  background: #070E14;
  list-style: none;
  transform: translate3d(0, -100%, 0); /*Hide oustide the top screen */
  transition: all 0.5s ease-out; 
}

/*slide in from top */
.menu-nav.show { 
  transform: translate3d(0, 0, 0); 
}

/*Hide outside the right screen */ 
.menu .nav-item {
  transform: translate3d(600px, 0, 0); 
  transition: all 0.5s ease-out;
}

/*slide in from the right */
.menu .nav-item.show {
  transform: translate3d(0, 0, 0); 
}

/*current page link color */
.menu .nav-item.current > a {
  color: #eece1a; 
}

/*Left side menu */
.menu-branding {
  background: #0F181F;
  transform: translate3d(0, 100%, 0); /*Hide outside the bottom screen */
  transition: all 0.5s ease-out; 
}

/*slide in from bottom */
.menu-branding.show {
  transform: translate3d(0, 0, 0); 
}

.menu .nav-link {
  display: inline-block; 
  position: relative;
  font-size: 30px;
  text-transform: uppercase;
  padding: 1rem 0;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: all 0.5s ease-out; 
}

/* Menu links animation come in screen with 0.1s delay each*/
.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; 
}

/*menu link color on hover */
.menu .nav-link:hover {
  color: #eece1a; 
}

/* menu animated text */
.menu .menu-text {
  text-align: center;
  position: absolute;
  align-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
}

.menu .menu-text span {
  text-transform: uppercase;
  display: block; 
}

.menu .text1 {
  color: #fff;
  font-size: 1.9em;
  font-weight: 700;
  margin-bottom: 0.16666666666666666em;
  letter-spacing: 0.5rem;
  background: #0F181F;
  position: relative;
  animation: text 3s 1;
  border-radius: 0.2em; 
}

.menu .text2 {
  color: #eece1a;
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: 0.5rem; 
}

@keyframes text {
  0% {
    color: black;
    margin-bottom: -40px; }
  30% {
    letter-spacing: 15px;
    margin-bottom: -40px; }
  85% {
    letter-spacing: 8px;
    margin-bottom: -40px; } 
}

/* body global /////////////////////////////////////////*/
body {
  background: #0F181F;
  color: #fff;
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5; 
}

/* home page background image */
body#bg-img {
  background: url(../img/background7.jpg);
  background-attachment: fixed; /* will not scroll */
  background-size: cover; /* cover full screen */
}

body#bg-img:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* set opacity to change look  */
}

/* Global headings */
h1, h2, h3 {
  margin: 0;
  font-weight: 400; 
}

h1.lg-heading, h2.lg-heading, h3.lg-heading {
  font-size: 6rem; 
}

h1.sm-heading, h2.sm-heading, h3.sm-heading {
  margin-bottom: 2rem;
  padding: 0.2rem 1rem;
  background: rgba(23, 37, 48, 0); /* change the last number to give the animated text on home page a background opacity */
}

header {
  position: fixed;
  z-index: 2; /* show header over background */
  width: 100%; }

/* second word in headers */  
.text-secondary {
  color: #eece1a; }

main {
  padding: 4rem;
  /* for the footer to stay we use 100vh - 60px from footer*/
  min-height: calc(100vh - 60px); 
}

/* home page animated text ///////////////////////////////////*/
#home > h2 {
  animation: type 5s; /* add steps(26) to give a type effect */
  overflow: hidden;
  white-space: nowrap;
  width: 26ch; 
}

@keyframes type {
  0% {
    width: 0ch; /* start at 0 characters*/
  } 
  100% {
    width: 26ch; /* ends at 26 characters*/
  } 
}

/* highlight the < and /> in the h2 */
.highlight {
  color: #eece1a; }

/* home page social media icons //////////////////////////////*/
a {
  color: #fff;/*icon color home page */
  text-decoration: none; 
}

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; 
}

/* ABOUT PAGE //////////////////////////*/
#about > h1 {
  text-align: center;
  line-height: 2;
}

#about > h2 {
  background: #172530;
  border-radius: 12px;
  text-align: center; 
}

.about-info {
  display: grid;
  grid-gap: 30px; /* Space between the two grid areas */
  grid-template-areas: 
  "bioimage bio bio" 
  "job1 job2 job3"; /* show on page like this 3 then 3 below*/
  grid-template-columns: repeat(3, 1fr); /* 3 columns of 1 fraction*/
}

/* My image*/
.about-info .bio-image {
  grid-area: bioimage;
  margin: auto;
  border-radius: 12%; /* 50% to make it round*/
  border: #eece1a 3px solid; 
}

.about-info .bio {
  grid-area: bio;
  font-size: 1.5rem; 
}

/* hobbies */
.about-info .job-1 {
  grid-area: job1; 
}

.about-info .job-2 {
  grid-area: job2; 
}

.about-info .job-3 {
  grid-area: job3; 
}

.about-info .job {
  text-align: center;
  background: #172530;
  padding: 0.5rem;
  border-bottom: #eece1a 5px solid;
  border-radius: 12px; 
}

/* about me hobby images */
.about-info .job > img {
  width: 90px;
  height: 80px; 
}

.about-info .job > h3 {
  color: #eece1a; 
}


/* projects page ////////////////////////////////////*/
#my-project > h1 {
  text-align: center;
  line-height: 2; 
}

#my-project > h2 {
  background: #172530;
  border-radius: 12px;
  text-align: center; 
}

div.projects {
  display: grid;
  grid-gap: 30px; /* space between*/
  grid-template-columns: repeat(3, 1fr); 
}

.projects img {
  width: 100%;
  border: 3px #fff solid; 
}

.projects img:hover {
  opacity: 0.5;
  border-color: #eece1a;
  transition: all 0.5s ease-out; 
}

/* my skills section */
#my-skills > h2 {
  background: #172530;
  border-radius: 12px;
  text-align: center;
  color: #fff; 
}

.skill-info {
  display: grid;
  grid-gap: 30px;
  grid-template-areas: 
  'skill1 skill2'
  'skill3 skill4';
  grid-template-columns: repeat(2, 1fr); 
}

.skill-info .skill-1 {
  grid-area: skill1; 
}

.skill-info .skill-2 {
  grid-area: skill2; 
}

.skill-info .skill-3 {
  grid-area: skill3; 
}

.skill-info .skill-4 {
  grid-area: skill4; 
}


.skill-info .skills {
  text-align: center;
  background: #172530;
  padding: 0.5rem;
  border-bottom: #eece1a 5px solid;
  border-radius: 12px; 
}

.skill-info .skills > img {
  width: 90px;
  height: 80px; 
}

.skill-info .skills > h3 {
  color: #eece1a; }

/* my certificates section */  
#my-certificates > h2 {
  background: #172530;
  border-radius: 12px;
  text-align: center;
  color: #fff; 
}

.projects {
  display: grid;
  grid-gap: 0.7rem;
  grid-template-columns: repeat(3, 1fr); 
}

.projects img {
  width: 100%;
  border: 3px #fff solid; 
}

.projects img:hover {
  opacity: 0.5;
  border-color: #eece1a;
  transition: all 0.5s ease-out; 
}


/* Contact Page /////////////////////////////////////*/
#contact > h1 {
  text-align: center;
  line-height: 2;
}

#contact > h2 {
  background: #172530;
  border-radius: 12px; 
  text-align: center;
}

/*contact boxes */  
.boxes {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 1rem;
}

.boxes div {
  font-size: 2rem;
  border: 3px #fff solid;
  border-radius: 12px;
  padding: 1.5rem 2.5rem;
  margin-bottom: 3rem;
  transition: all 0.5s ease-out;
  background: #172530; 
}

.boxes div:hover {
  padding: 0.5rem 1.5rem;
  background: #eece1a;
  color: #000; 
}

.boxes div:hover span {
  color: #000; 
}

/* contact box on click */
.btn, .btn-dark, .btn-light {
  display: block;
  padding: 0.5rem 1rem;
  border: 0;
  margin-bottom: 0.3rem; 
}

.btn:hover, .btn-dark:hover, .btn-light:hover {
  background: #eece1a;
  color: #000; 
}

.btn-dark {
  background: #000;
  color: #fff; 
}

.btn-light {
  background: #000;
  color: #fff; 
}

/* Footer /////////////////////////////////////////////////*/
#main-footer {
  text-align: center;
  padding: 1rem;
  background: #070E14;
  color: #fff;
  height: 60px; 
}
  
/* Responsive///////////////////////////////////////////////*/
@media screen and (min-width: 1171px) {
  div.projects {
    grid-template-columns: repeat(3, 1fr); 
  } 
}

/* min width screen 769px max width screen 1170px///////////*/
@media screen and (min-width: 769px) and (max-width: 1170px) {
/* Home page */
  main .lg-heading {
    line-height: 1;
    margin-bottom: 1rem; 
  }

  body#bg-img {
    background: url(../img/background7.jpg);
    background-attachment: fixed;
    background-size: cover; 
    background-position: center;
  }
  
/* about page */
  #about > .lg-heading {
    line-height: 2;
    text-align: center;
  }

  #about > .sm-heading {
    font-size: 22px;
    text-align: center;
  }

/* my projects page */
  #my-project > .lg-heading {
    line-height: 2;
    text-align: center;
  }

  #my-project > .sm-heading {
    text-align: center;
  }

  div.projects {
    grid-template-columns: repeat(2, 1fr);
  }

  main#my-skills {
    min-height: calc(50vh - 60px);
  }

  .skill-info {
    grid-template-areas: 
    'skill1 skill2'
    'skill3 skill4';
    grid-template-columns: repeat(2, 1fr);
  }

  main#my-certificates {
      min-height: calc(50vh - 60px);
  }
  
/* contact page */
  #contact > .lg-heading {
    line-height: 2;
    text-align: center;
  }

  #contact > .sm-heading {
    text-align: center;
  }

  .boxes {
    flex-direction: column;
    line-height: 2;
  }

}

/* max width screen 768px //////////////////////////////////*/
@media screen and (max-width: 768px) {
/* home page */
  main .lg-heading {
    line-height: 1;
    margin-bottom: 1rem; 
  }

  body#bg-img {
    background: url(../img/background7.jpg);
    background-attachment: fixed;
    background-size: cover; 
    background-position: center;
  }

/* menu */
  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: 70vh;
    transform: translate3d(-100%, 0, 0);
    /* font-size: 24px;  */
  }

  .menu-branding {
    height: 30vh;
    transform: translate3d(100%, 0, 0); 
  }

  .menu .nav-link {
    font-size: 20px;
    text-transform: uppercase;
    padding: 1rem 0;
    font-weight: 500;
  }

/* about page */
  #about > .lg-heading {
    line-height: 2;
    font-size: 50px;
    text-align: center;
  }

  #about > .sm-heading {
    font-size: 22px;
    text-align: center;
  }

  .about-info {
    grid-template-areas: 
    'bioimage'
    'bio'
    'job1'
    'job2'
    'job3';
    grid-template-columns: 1fr; 
  }

  .bio {
    text-align: center;
  }

/* my projects */
  #my-project > .lg-heading {
    line-height: 2;
    font-size: 50px;
    text-align: center;
  }

  #my-project > .sm-heading {
    font-size: 22px;
    text-align: center;
  }

  div.projects {
    grid-template-columns: repeat(2, 1fr); 
  }

  main#my-skills {
    min-height: calc(50vh - 60px);
  }

  .skill-info {
    grid-template-areas: 
    'skill1 skill2'
    'skill3 skill4';
    grid-template-columns: repeat(2, 1fr);
  }

  main#my-certificates {
    min-height: calc(50vh - 60px);
  }

/* contact page */
  #contact > .lg-heading {
    line-height: 2;
    font-size: 50px;
    text-align: center;
  }

  #contact > .sm-heading {
    font-size: 22px;
    text-align: center;
  }
}

/* max width screen 500px //////////////////////////////////*/
@media screen and (max-width: 500px) {
/* home page */  
  main#home h1 {
    margin-top: 10vh;
    font-size: 60px; 
  }

  main#home h2 {
    font-size: 16px;
  }

/* about page */
  #about > .lg-heading {
    line-height: 1;
    font-size: 50px;
    text-align: center;
  }

  #about > .sm-heading {
    font-size: 20px;
    text-align: center;
  }

  #about > .bio-image {
    border: 6px solid red;
  }

/*my projects page */
  div.projects {
    grid-template-columns: 1fr; 
  }

  #my-project > .lg-heading {
    line-height: 1;
    font-size: 50px;
    text-align: center;
  }

  #my-project > .sm-heading {
    font-size: 25px;
    text-align: center;
  }

  .skill-info {
    grid-template-areas: 
    'skill1' 
    'skill2'
    'skill3' 
    'skill4';
    grid-template-columns: repeat(1, 1fr);
  }

/* contact page */
  #contact > .lg-heading {
    line-height: 1;
    font-size: 50px;
    text-align: center;
  }

  #contact > .sm-heading {
    line-height: 1;
    font-size: 25px;
    text-align: center;
  }

  #contact > .boxes {
    font-size: 18px;
  }
}
