* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  border: none;
  outline: none;
}

:root {
  --bg-color: black;
  --second-bg-color: #101010;
  --main-color: #bd212f;
  --text-color: #fff;
  --second-color: #e4e4e4;
  --other-color: #c6c9d8bf;

  --h1-font: 7rem;
  --h2-font: 3.5rem;
  --p-font: 1.1rem;
}

body {
  color: var(--text-color);
  background: var(--second-bg-color);
}

header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-color);
  padding: 28px 11%;
  border-bottom: 1px solid #4e5055;
  transition: all ease 0.5s;
}

.logo img {
  width: 50px;
  height: auto;
}

.navlist {
  display: flex;
}

.navlist a {
  color: var(--second-color);
  font-size: var(--p-font);
  font-weight: 600;
  margin: 0 40px;
  transition: all ease 0.4s;
}

.navlist a:hover {
  color: var(--main-color);
}

#menu-icon {
  font-size: 42px;
  color: var(--text-color);
  z-index: 10001;
  cursor: pointer;
  display: none;
}

section {
  padding: 120px 19% 100px;
}

.home {
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.6);

  position: relative;
  min-height: 100vh;
  width: 100%;
  background-image: url("../img/sang.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-text {
  margin: auto;
  align-items: center;
  text-align: center;

  /*
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  text-align: center;
  */
}

.hero-text h3 {
  color: var(--second-color);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  word-spacing: 2px;
}

.hero-text h1 {
  font-family: "Libre Barcode 39 Text", cursive;
  font-size: var(--h1-font);
  font-weight: lighter;
  color: var(--text-color);
  margin-bottom: 20px;
}

.hero-text h4 {
  color: var(--second-color);
  font-size: 25px;
  font-weight: 600;
  word-spacing: 2px;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-block;
  padding: 16px 45px;
  background: var(--main-color);
  color: var(--text-color);
  font-size: var(--p-font);
  font-weight: 600;
  border: 2px solid var(--main-color);
  transition: all ease 0.5s;
}

.btn:hover {
  transform: scale(1.1);
  background: transparent;
}

header.sticky {
  padding: 15px 11%;
  border-bottom: 1px solid #4e5055;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  align-items: center;
  gap: 2rem;
}

.about-img img {
  width: 100%;
  height: auto;
}

.about-text h2 {
  font-family: "Dosis", sans-serif;
  font-size: var(--h2-font);
  font-weight: 800;
  margin-bottom: 10px;
}

.about-text h5 {
  font-size: 22px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-text .quote {
  color: var(--main-color);
}

.about-text p {
  color: var(--other-color);
  font-size: var(--p-font);
  line-height: 30px;
  margin-bottom: 3rem;
}

.portfolio {
  background: var(--bg-color);
}

.text-center {
  text-align: center;
}

.text-center h2 {
  font-family: "Dosis", sans-serif;
  font-size: var(--h2-font);
  font-weight: 800;
  margin-bottom: 10px;
}

.text-center h4 {
  font-size: 22px;
  font-weight: 500;
}

.portfolio-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, auto));
  align-items: center;
  gap: 2.2rem;
  text-align: center;
  margin-top: 4rem;
}

.portfolio-box {
  padding: 45px 30px;
  background: var(--second-bg-color);
  border-radius: 0.8rem;
  border: 1px solid transparent;
  transition: all ease 0.5s;
}

.portfolio i {
  font-size: 50px;
  color: var(--main-color);
  margin-bottom: 10px;
}

.portfolio h3 {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 12px;
}

.portfolio p {
  color: var(--other-color);
  font-size: var(--p-font);
  line-height: 30px;
  margin-bottom: 1.5rem;
}

.p-btn {
  display: inline-block;
  padding: 9px 24px;
  background: var(--main-color);
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--main-color);
  border-radius: 2rem;
  transition: all ease 0.5s;
}

.p-btn:hover {
  transform: scale(1.1);
  background: transparent;
}

.portfolio-box:hover {
  transform: translateY(-8px);
  border: 1px solid #4e5055;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  width: 80%;
}

.contact-container h2 {
  font-family: "Dosis", sans-serif;
  font-size: var(--h2-font);
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
}

.contact-container .row100 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact-container .row100 .col {
  width: 100%;
  position: relative;

  padding: 0 10px;
  margin: 30px 0 10px;

  transition: 0.5s;
}

.contact-container .row100 .inputbox {
  position: relative;

  width: 100%;
  height: 40px;

  color: var(--main-color);
}

.contact-container .row100 .inputbox input,
.contact-container .row100 .inputbox.textarea textarea {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow: none;
  border: none;
  outline: none;

  font-size: 18px;
  padding: 0 10px;

  z-index: 1;
  color: var(--bg-color);
}

.contact-container .row100 .inputbox .text {
  position: absolute;
  top: 0;
  left: 0;

  line-height: 40px;
  font-size: 18px;
  padding: 0 10px;

  display: block;
  transition: 0.5s;
  pointer-events: none;
}

.contact-container .row100 .inputbox.active .text {
  top: -35px;
  left: -10px;
}

.contact-container .row100 .inputbox .line {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: var(--second-color);
  transition: 0.5s;
  pointer-events: none;
}

.contact-container .row100 .inputbox.active .line {
  height: 100%;
}

.contact-container .row100 .inputbox.textarea {
  position: relative;
  width: 100%;
  height: 100px;
}

.contact-container .row100 .inputbox.textarea textarea {
  padding-top: 10px;
  padding-bottom: 10px;
  height: 100%;
  resize: none;
}

.f-btn {
  display: inline-block;
  padding: 9px 24px;
  background: var(--main-color);
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--main-color);
  transition: all ease 0.5s;
  cursor: pointer;
}

.f-btn:hover {
  transform: scale(1.1);
  background: transparent;
}

#msg {
  color: var(--main-color);
  margin-top: 20px;
  display: block;
}

.end-section {
  padding: 80px 19% 70px;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.end-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 10px;
}

.end-section p {
  color: var(--other-color);
  font-size: var(--p-font);
  line-height: 30px;
}

.end-section i {
  height: 40px;
  width: 40px;
  background: var(--main-color);
  color: var(--text-color);
  border: 2px solid var(--main-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  margin: 0 9px;
  transition: all ease, 0.5s;
}

.end-section i:hover {
  transform: translateY(-5px);
  background: transparent;
  border: 2px solid var(--main-color);
}

.scroll-btn {
  position: fixed;
  display: flex;
  right: 2.2rem;
  bottom: 2.2rem;
  color: var(--text-color);
  background: var(--main-color);
  font-size: 23px;
  padding: 9px;
  border-radius: 0.8rem;
}

/************Might Not Use************/
.projects {
  min-height: calc(100vh - 254px);

  background: var(--second-bg-color-color);
  padding-top: 146px;
}

.projects-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, auto));
  align-items: center;
  gap: 2.2rem;
  text-align: center;
  margin-top: 4rem;
}

.projects-box {
  height: 400px;

  padding: 45px 30px;
  background: var(--bg-color);
  border-radius: 0.8rem;
  border: 1px solid transparent;
  transition: all ease 0.5s;
}

.projects i {
  font-size: 50px;
  color: var(--main-color);
  margin-bottom: 10px;
}

.projects h3 {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 12px;
}

.projects p {
  color: var(--other-color);
  font-size: var(--p-font);
  line-height: 30px;
  margin-bottom: 1.5rem;
}

.prj-btn {
  margin-left: 50px;
  margin-right: 50px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-bottom: 20px;

  display: inline-block;
  padding: 9px 24px;
  background: var(--main-color);
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--main-color);
  border-radius: 2rem;
  transition: all ease 0.5s;
}

.prj-btn:hover {
  transform: scale(1.1);
  background: transparent;
}

.projects-box:hover {
  transform: translateY(-8px);
  border: 1px solid #4e5055;
}

/******* Skills *******/
.skills {
  min-height: calc(100vh - 254px);

  background: var(--second-bg-color-color);
  padding-top: 146px;
}

.skills-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-gap: 1rem;
  font-size: var(--p-font);
  margin-top: 4rem;
}

.skills-box {
  height: 350px;

  padding: 45px 30px;
  background: var(--bg-color);
  border-radius: 0.8rem;
}

.img {
  width: 90px;
  height: 90px;
  position: relative;
  border-radius: 45px;
  background-color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

.img:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 90px;
  background-color: rgba(100, 100, 100, 0.6);
  border-radius: 45px 0 0 45px;
}

.skills-box:hover > .skills-title:after,
.skills-box:hover > .skills-title:before {
  width: 35px;
}

.skills-box:hover .img {
  transform: translateY(-10px);
}

.skills-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.skills-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 4px;
  border-radius: 2px 0 0 2px;
  background-color: var(--main-color);
  transition: 0.5s;
}

.skills-title:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background-color: var(--main-color);
  transition: 0.5s;
}

.skills-title h3 {
  color: var(--text-color);
  margin-top: 0.5rem;
  font-size: 23px;
}

.skills-box p {
  color: var(--other-color);
}

.skills-icon {
  width: 50px;
  z-index: 2;
}

@media screen and (max-width: 990px) {
  .skills-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 650px) {
  .skills-main {
    grid-template-columns: 1fr;
  }
}
/*************************************/

@media (max-width: 1600px) {
  header {
    padding: 14px 4%;
  }
  header.sticky {
    padding: 8px 4%;
  }
  section {
    padding: 100px 5% 80px;
  }
}

@media (max-width: 1200px) {
  .home {
    min-height: 90vh;
  }
  .navlist a {
    margin: 0 20px;
  }
  :root {
    --h1-font: 5rem;
    --h2-font: 3.1rem;
    --p-font: 1rem;
  }
}

@media (max-width: 1060px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about-img {
    text-align: center;
    order: 0;
  }
  .about-img img {
    max-width: 100%;
    width: 600px;
    height: auto;
  }
}

@media (max-width: 870px) {
  #menu-icon {
    display: block;
  }
  .navlist {
    position: absolute;
    top: -800px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    padding: 20px 0;
    text-align: center;
    transition: all ease 0.5s;
  }
  .navlist a {
    display: block;
    font-size: 22px;
    padding: 12px 0;
  }
  .navlist.open {
    top: 100%;
  }
}

@media (max-width: 660px) {
  .home {
    min-height: 80vh;
  }
  :root {
    --h1-font: 3.8rem;
    --h2-font: 2.7rem;
    --p-font: 15px;
  }
  .hero-text h4 {
    font-size: 18px;
    word-spacing: 2px;
    margin-bottom: 30px;
  }
  .btn {
    padding: 10px 35px;
  }
}

@media (max-width: 460px) {
  :root {
    --h1-font: 3.5rem;
    --h2-font: 2.5rem;
  }
  .hero-text h4 {
    font-size: 16px;
    word-spacing: 2px;
  }
}

/******* Blog *******/
.blog {
  min-height: calc(100vh - 254px);

  background: var(--second-bg-color-color);
  padding-top: 146px;
}
