/* 
  Code by Erwin Aris Prayogo
  FullStack Developer
  */
  
  /* Font  */
  
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
  
  
  * 
  {
    margin: 0;
    padding: 0;
    text-decoration: none;
    background-color: --bg;
    color: var(--color);
  }

  *:hover {
    color: var(--hover);
  }
  
  /* 
  using width 100% in the html element and using overflow property in the body
  */
html
{
  margin: 0;
  padding: 0;
  /* overflow-x: hidden; */
  scroll-behavior: smooth; /* smooth scrolling down and up */
  /* width: 100%; */
}

body
{
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden !important;
  font-family: 'Inter', sans-serif;
}
  

/* THEME DARK */

/* GLOBAL STYLES */
#theme-light 
{
  --bg: #dddddd;
  --color: #201f1f;
  --slider: rgba(221, 221, 221, 0.863);
  background-color: var(--bg);
  padding-top: 5em;
  display: flex;
  justify-content: center;
  z-index: -99;
  margin: 0;
  padding: 0;
  color: var(--color);
}

#theme-dark 
{
  --bg: #201f1f;
  --color: #ffffff;
  --slider: rgba(32, 31, 31, 0.863);
  background-color: var(--bg);
  padding-top: 5em;
  display: flex;
  justify-content: center;
  z-index: -99;
  margin: 0;
  padding: 0;
  color: var(--color);
}

.dark-mode 
{
  position: fixed;
  bottom: 20px;
  left: 30px;
  z-index: 99;
}

/* ---------------- SYNTAX HIGHLIGHTER ---------------- */

.syntax-higlighter 
{
  font-family: monospace;
  z-index: -99;
  position: fixed;
  top: 50%;
}

.syntax-higlighter a 
{
  /* text-transform: lowercase; */
  text-decoration: none;
}

.syntax-higlighter h5, span 
{
  color: #4baccc;
  /* text-indent: 20px; */
}

.syntax-higlighter h5.indent 
{
  text-indent: 20px;
}

.syntax-higlighter .star 
{
  color: #ff0000;
}

.syntax-higlighter .property 
{
  color: #b144fa;
}

.default 
{
  color: var(--color);
}


  

/* HEADER NavBar using float*/

/* nav ul
{
  float: right;
  font-weight: 800;
  margin-right: 70px;
  text-transform: uppercase;
}

nav ul li
{
  display: inline-block;
  list-style-type: none;
  padding: 15px;
}

nav ul li a
{
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: #383b3b;
  text-decoration: none;
  padding: 10px;
  position: relative;
}

nav ul li a:hover
{
  color: #f3003d;
  transition: 0.3s;
} */


/* HEADER NavBar using inline */


nav 
{
  /* background-color: #4baccc; */
  display: flex;
  justify-content: space-between;
  /* padding: 10px; */
  margin: 25px 0px 0 10px;
  width: 100%; /* untuk merubah navbar menjadi position: fixed maka perlu menambahkan width: 100%*/
  position: fixed;
  overflow-x: hidden;
  z-index: 99;
}

.menu-toggle 
{
  display: none;
  /* justify-content: space-between; */
}


nav h4.logo
{
  padding: 13px;
  font-weight: 800;
  color: var(--color);
  text-transform: capitalize;
}

nav ul
{
  padding: 10px;
  font-weight: 800;
  list-style-type: none;
  margin-right: 100px;
  width: 25%;
  text-transform: uppercase;
  z-index: 99;
  display: flex;
  justify-content: space-around;
}

nav ul li
{
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0px 2px 8px rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 10px;
  /* left: 170px; */
  /* position: relative; */
  z-index: 99;
}

nav ul li a 
{
  /* border:1px solid rgba(255, 255, 255, 0.486); */
  color: var(--color);
  cursor: pointer;
}

nav ul li a:hover
{
  color: #4baccc;
  transition: 0.3s;
}



/* GRID */

.grid-rows
{
  /* background-color: #f3003d; */
  display: grid;
  grid-template-rows: auto;
}

.grid-columns
{
  /* background-color: #fcf7f7; */
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-evenly;
}

.title-name {
  padding: 20px;
  left: 100px;
  position: relative;
  top: 200px;
  width: 500px;
  
}

.title-name h1
{
  color: #4baccc;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.title-name h2 
{
  text-transform: capitalize;
}

/* .title-name span:nth-child(2) {
  color: var(-);
} */


.circle
{
  /* background-color: rgba(255, 255, 255, 0.342); */
  background-image: url('../assets/images/erwin1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  /* position: relative; */
  /* overflow-x: hidden !important; */
  top: 0px;
  right: 0px;
  height: 500px;
  width: 500px;
  /* border-radius: 50%; */
  filter: grayscale(1);
  z-index: 1;
  /* opacity: 0.7; */
  transition: 1s;
}


.circle:hover 
{
  /* transform: scale(2); */
  filter: grayscale(0);
  height: 520px;
  width: 520px;
}

/* HIRE ME button */

.hire-me
{
  background-image: linear-gradient(to top, #4baccc, #58c6eb, #a9ddee);
  border-radius: 10px;
  box-shadow: 5px 2px 10px #4baccc;
  color: #ffffffce;
  cursor: pointer;
  font-weight: 700;
  padding: 10px;
  position: absolute;
  right: 140px;
  text-transform: capitalize;
  top: 520px;
}

.hire-me i 
{
  color: #ffffffce;
}

.hire-me i:hover
{
  color: #ffffff;
}


.hire-me:hover
{
  color: #ffffff;
  transition: ease-in-out 0.3s;
}


/* MAIN */

.container
{
  /* background-color: #f3003d; */
  height: 400px;
  /* width: 100%; */
  margin: 0 0 200px 0;
}

span
{
  color: #4baccc;
}

/* .hr
{
  background-color: tomato;
  width: 300px;
  height: 20px;
  position: relative;
}

.hr:hover {
  
} */

.title h2
{
  font-size: 2em;
  /* font-size: 3vw; */
  font-weight: 800;
  text-align: center;
  text-transform: capitalize;
}

/* 

RIENCE */

.skill
{
  backdrop-filter: blur(10px);
  -moz-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: auto auto;
  background-color: rgba(255, 255, 255, 0.164);
  border-width: 1px 3px 2px;
  border-color: rgba(255, 255, 255, 0.486);
  border-right-style: solid;
  border-top-style: solid;
  border-bottom-style: solid;
  border-radius: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.16);
  height: 200px;
  padding: 8px;
  width: 400px;
  transition: 0.4s ease-in-out; /* transition must here */
  position: relative;
}

.skill img
{
  position: relative;
  top: 40px;
  left: 40px;
  height: 130px;
  width: 130px;
}

.skill h4
{
  color: var(--color);
  padding: 50px;
  top: 10px;
  text-transform: capitalize;
  text-align: left;
  position: relative;
}

.skill:hover
{
  /* transition: 0.4s ease-in-out;  */
  /* transition not here ^, this effect not smooth up */
  transform: translateY(1em);
}


/* CARD */

.card
{
  backdrop-filter: blur(10px);
  -moz-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.164);
  border: 1px solid rgba(255, 255, 255, 0.432);
  border-radius: 15px;
  margin: 0 5px 0 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.16);
  height: 300px;
  padding: 8px;
  width: 400px;
  transition: 0.4s ease-in-out; /* transition must here */
}

.card:hover
{
  /* transition: 0.4s ease-in-out;  */
  /* transition not here ^, this effect not smooth up */
  transform: translateY(1em);
}


#card h1
{
  /* position: absolute; */
  z-index: 99999;
}

.card img
{
  background-size:cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 15px;
  height: 300px;
  width: 400px;
}


footer
{
  /* background-color: #fa255b; */
  position: relative;
  padding: 50px;
  /* top: 50px; */
}


footer .text {
  font-size: 18px;
  padding: 50px;
}


footer ul
{
  display: inline;
}

footer ul li
{
  list-style-type: none;
  padding: 8px;
}

footer ul li a
{
  color: var(--color);
  text-decoration: none;
  text-align: center;
}

footer ul li a:hover
{
  color: #4baccc;
  transition: 0.3s;
}

#back-to-top
{
  background-color: rgba(75, 172, 204, 0.856);
  cursor: pointer;
  clip-path: circle();
  height: 50px;
  padding-top: 25px;
  position: absolute;
  right: 50px;
  width: 50px;
  text-align: center;
  top: 260px;
}

#back-to-top a
{
  color: #ffffff;
}

#back-to-top i
{
  color: #ffffffce;
  font-size: 25px;
}

#back-to-top i:hover
{
  color: #ffffff;
  font-size: 25px;
}


/* --------------------------TYPING TEXT-------------------------- */

#typing {
  color:#ffffff;
  /* text-indent: 17px; */
  /* text-transform: capitalize; */
}


#typing a {
  text-decoration: none;
  cursor: none;
}


/* ----------------------------@MEDIA SCREEN 768px----------------------------------------- */

@media only screen and (max-width: 768px) {


  .container
{
  /* background-color: #f3003d; */
  height: 650px;
  /* width: 100%; */
  margin: 0 0 150px 0;
}

  nav
  {
    margin-top: 30px;
    /* background-color: #ff0000; */
    padding: 4px;
  }  

  nav ul
  {
    background-color: var(--slider);
    position: absolute;
    justify-content: space-evenly;
    flex-direction: column;
    height: 100vh;
    margin-right: 0px;
    width: 50%;
    right: 0;
    top: 0;
    align-items: center;
    transform: translateX(100%);
    font-size: 13px;
    transition: all 1s;
    opacity: 0;
    position: fixed;
  }

  nav ul.slider {
    opacity: 1;
    transform: translateX(0);
  }
  
  nav ul li {
    display: flex;
    z-index: 99;
  }

    nav ul li a 
  {
    box-shadow: 0px;
    border:0px;
    border-radius: 10px;
  }

  nav h4.logo
  {
    padding: 0;
    margin-left: 20px;
  }
  

  /* Hamburgur menu */

  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 99;
    /* cursor: pointer; */
    margin-right: 80px;
    position: relative;
    /* background-color: #4baccc; */
    /* font-size: 25px; */
  }

  .menu-toggle input 
  {
    position: absolute;
    left: -4px;
    top: -4px;
    width: 35px;
    height: 32px;
    opacity: 0;
    cursor: pointer;
    z-index: 99;
  }
  
  .menu-toggle span
  {
    border-radius: 3px;
    display: block;
    background-color: var(--color);
    width: 28px;
    height: 3px;
    transition: all 0.8s;
    z-index: -1;
  }

  .menu-toggle span:nth-child(2)
  {
    transform-origin: 1px 0;
  }

  .menu-toggle span:nth-child(4)
  {
    transform-origin: 0 100%;
  }

  .menu-toggle input:checked ~ span:nth-child(2)
  {
    margin-right: 150px;
    transform: rotate(45deg) translate(-1px, -1px);
  }

  .menu-toggle input:checked ~ span:nth-child(3)
  {
    transform: scale(0);
  }

  .menu-toggle input:checked ~ span:nth-child(4)
  {
    transform: rotate(-45deg) translate(-1px, 0);
  }

  
  nav h4 {
    z-index: 99;
  }
  
  
  .circle
  {
    /* overflow-x: hidden !important; */
    height: 440px;
    width: 440px;
  }
  
  .circle:hover {
    height: 460px;
    width: 460px;
  }
  
  
  .title-name {
    top: 600px;
  }

  .title h2 
  {
    font-size: 1.8em;
  }
  

  .skill
  {
    height: 150px;
    padding: 8px;
    width: 400px;
    margin-top: 17px;
  }
  
  .skill img
  {
    top: 30px;
    height: 100px;
    width: 100px;
  }
  
  .skill h4
  {
    padding: 50px;
    top: -20px;
  }
  
  .hire-me
  {
    right: 100px;
    top: 470px;
  }
  
  .card
  {
    margin-top: 20px;
  }
  
  
  .grid-rows
  {
    /* background-color: #f3003d; */
    display: grid;
    grid-template-rows: auto;
    justify-content: space-around;
  }
  
  .grid-columns
  {
    /* background-color: #fcf7f7; */
    display: grid;
    grid-template-columns: auto;
    /* justify-content: space-evenly; */
  }
  
  footer
  {
    position: relative;
    /* padding: 10px; */
    top: 300px;
  }
  
  footer .text
  {
    padding: 10px;
    font-size: 15px;
  }
    
  footer ul li
  {
    list-style-type: none;
    padding: 6px;
  }
  
  footer ul li a
  {
    padding: 20px;
  }
  
}


/* -------------------------------------@MEDIA SCREEN 576px----------------------------- */

@media only screen and (max-width: 576px) {


  
  .title-name {
    top: 550px;
    width: 380px;
    left: 20px;
  }

  .title-name h2
  {
    font-size: 1.2em;
  }

  .title-name h1 
  {
    font-size: 1.5em;
  }

  /* Hamburgur menu */

  .menu-toggle
  {
    margin-right: 40px;
  }
  

  .menu-toggle input 
  {
    width: 30px;
    height: 29px;
    /* opacity: 0.7; */
    left: -2px;
    top: -2px;
  }
  
  .menu-toggle span
  {
    width: 25px;
    height: 3px;
  }

  .menu-toggle input:checked ~ span:nth-child(2)
  {
    margin-right: 75px;
  }

  .menu-toggle span:nth-child(2)
  {
    transform-origin: -1.5px 0;
  }

  .circle
  {
    /* overflow-x: hidden !important; */
    height: 400px;
    width: 400px;
  }

  .circle:hover {
    height: 420px;
    width: 420px;
  }

  .skill h4
  {
    color: var(--color);
    padding: 50px;
    top: -1px;
  }

  .title h2 {
    font-size: 1.5em;
  }

  .title p {
    font-size: 13px;
    left: -10px;
  }

  .hire-me
  {
    font-size: 14px;
    right: 100px;
    top: 450px;
  }

  footer .text
  {
    padding: 20px;
    font-size: 15px;
  }
}



/* ------------------------------------------- @MEDIA SCREEN 375px ---------------------------------- */

@media only screen and (max-width: 375px) {

  nav ul
  {
    font-size: 12px;
  }
  

  .menu-toggle input 
  {
    /* opacity: 0.8; */
    left: -3px;
    top: -3px;
    height: 27px;
    width: 28px;
  }
  
  .menu-toggle span
  {
    width: 22px;
    height: 3px;
  }

  .menu-toggle input:checked ~ span:nth-child(2)
  {
    margin-right: 60px;
  }

  .menu-toggle span:nth-child(2)
  {
    transform-origin: -4.5px 1px;
  }
  
  .circle
  {
    /* overflow-x: hidden !important; */
    height: 300px;
    width: 300px;
  }

  .circle:hover {
    height: 320px;
    width: 320px;
  }

  .hire-me
  {
    font-size: 13px;
    top: 350px;
  }

  .title-name {
    font-size: 13px;
    top: 550px;
    left: 10px;
    width: 300px;
  }

  .title h2
  {
    font-size: 1.2em;
  }
    
  .skill
  {
    font-size: 13px;
    height: 150px;
    width: 330px;
  }

  .skill img
  {
    top: 30px;
    left: 40px;
    height: 90px;
    width: 90px;
  }

  .skill h4
  {
    top: -1px;
  }
  
  .card
  {
    height: 250px;
    width: 330px;
  }
  
  .card img {
    height: 250px;
    width: 330px;
  }
  
  
  
  footer
  {
    position: relative;
    top: 150px;
  }

  footer .text
  {
    padding: 20px;
    font-size: 13px;
  }


  footer ul li
  {
    font-size: 13px;
  }

  footer ul li a
  {
    padding: 10px;
  }

}
