/*--- 01 Typography System:

html : {
font-size : 62.5%; || 10px
}

FONT SIZE : 
- Normal Text : / 10 / 12 / 14 / 16 / 18 /
- Sub-Titles :  / 20 / 24 / 30 / 36 /
- Titles : / 44 / 52 / 62 / 74 / 86 / 98 /

 Font weights
- Default : 400
- Medium : 500
- Semi-bold : 600
- Bold : 700

  Line heights : 
- Default : 1 
- Small : 1.05
- Medium : 1.2
- Large : 1.8

- Paragraph default : 1.6   
- For small text, use line height of 1.5≥
- For titles or sub-titles, use line height of 1.5≤

Letter Spacing :
- 0.5px
- 0.75px


--- 02 Colors

- Brand color (Primary): 
- Tint : 
- Shades :
- Accent : 
- Greys : 


--- 05 SHADOWS


--- 06 BORDER-RADIUS

Default : 9px


--- 07 WHITESPACE

- SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128


FONT-NAME : Inter*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #fc3d03;
  --black-color: #2f2f2f;
  --black-color-light: hsl(0, 0%, 40%);
  --white-color: hsl(0, 0%, 95%);
  --title-color: hsl(0, 0%, 0%);
  --text-color: hsl(0, 0%, 35%);
  --text-color-light: hsl(0, 0%, 64%);
  --body-color: hsl(0, 0%, 87%);
  --container-color: hsl(0, 0%, 83%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Inter", sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 3rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3,
h4 {
  color: var(--black-color);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/
.nav__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

/*========== 
      Color changes in some parts of 
      the website, in dark theme
  ==========*/

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 4rem 0 2rem 0;
}

.section__title-1,
.section__title-2 {
  position: relative;
  font-size: var(--h1-font-size);
  width: max-content;
  margin: 0.75rem auto 2rem;
}

.section__title-1 span,
.section__title-2 span {
  z-index: 5;
  position: relative;
}

.section__title-1::after,
.section__title-2::after {
  content: "";
  width: 40px;
  height: 28px;
  background-color: hsla(14, 98%, 50%, 0.2);
  position: absolute;
  top: -16px;
  right: -16px;
}

.section__title-2::after {
  top: initial;
  bottom: -4px;
}

.geometric-box {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--first-color);
  rotate: -30deg;
}

.geometric-box::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--black-color);
  left: -5px;
  top: -5px;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow 0.4s ease-in-out;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  column-gap: 0.5rem;
  align-items: center;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.nav__logo-circle,
.nav__toggle {
  width: 2rem;
  height: 2rem;
  background-color: var(--black-color);
  color: var(--white-color);
  display: grid;
  place-items: center;
}

.nav__logo-circle {
  border-radius: 50%;
}

.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (width <= 1150px) {
  /* Bedimcode styles */
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    background-color: #00000073;
    width: 100%;
    /* Padding-block (padding-vertical) adalah shorthand dari padding-block-start & padding-block-end
    padding-block-start mengatur padding di atas, padding-block-end mengatur padding di bawah */

    /* Padding-inline (padding-horizontal) mengatur padding kiri(padding-inline-start) dan padding kanan
    (padding-inline-end) */
    padding-block: 1.8rem 5rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease-in-out;
  }
}

.nav__title,
.nav__name,
.nav__close {
  color: var(--white-color);
}

.nav__title {
  display: block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 3.5rem;
}

.nav__name {
  position: relative;
  width: max-content;

  /* top:0; right & left: auto; bottom:3rem; 
   since left isn't specified it'll be set to auto following the right */
  margin: 0 auto 3rem;

  font-size: var(--h2-font-size);
}

.nav__name::after,
.nav__name::before {
  content: "";
  width: 20px;
  height: 1px;
  background-color: var(--text-color-light);
  position: absolute;
  top: 50%;
  left: -3rem;
}

.nav__name::before {
  /* So, left: initial; is used here to
  reset the left property to its default value
  if you remove the left: initial; the right property won't
  have any effect cuz the prev left still applied */
  left: initial;

  right: -3rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  position: relative;
  color: var(--text-color-light);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: color 0.3s ease-in-out;
}

.nav__link::after {
  content: "";
  width: 0%;
  height: 2px;
  background-color: var(--white-color);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: width 0.3s ease-in-out;
}

.nav__link:hover {
  color: var(--white-color);
}

.nav__link:hover::after {
  width: 25%;
}

.nav__close {
  position: absolute;
  font-size: 1.5rem;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  transform: translateY(0%);
}

/* Add shadow header */
.shadow-header {
  box-shadow: 0 1px 16px hsla(0, 0%, 0%, 0.12);
}

/* Active link */
.active-link {
  color: var(--white-color);
}

.active-link::after {
  width: 25%;
  background-color: var(--first-color);
}

/*=============== HOME ===============*/

.home__container {
  padding-top: 2rem;
}

.home__name {
  text-align: center;
  font-size: var(--biggest-font-size);
}

.home__hasan {
  position: relative;
  justify-self: center;
}

.home__image {
  width: 220px;
}

.home-img {
  position: relative;
  z-index: 10;
}

.home__shadow {
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  border: 4px solid var(--black-color);
  z-index: -1;
}

.home__arrow,
.home__line {
  position: absolute;
  filter: invert(1);
  z-index: -3;
}

.home__arrow {
  left: 40%;
  bottom: -6rem;
}

.home__line {
  right: -2rem;
  bottom: -0.5rem;
}

.home__hasan .geometric-box {
  top: 2.5rem;
  left: -0.8rem;
  z-index: 10;
}

.home__social {
  height: max-content;
  position: absolute;
  left: -5rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  display: grid;
  row-gap: 1rem;
}

.home__social-link {
  background-color: var(--black-color-light);
  color: var(--white-color);
  font-size: 1.25rem;
  padding: 6px;
  display: grid;
  place-items: center;
  transition: background-color 0.3s ease-in-out;
}

.home__social-link:hover {
  background-color: var(--black-color);
}

.home__info {
  margin-top: 6rem;
}

.home_description {
  text-align: center;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.home_description b {
  background: linear-gradient(90deg, #fee7155b, hsl(0, 0%, 87%));
}

.home__scroll {
  display: block;
  width: max-content;
  margin: 0 auto;
}

.home__scroll-text {
  display: none;
}

.home__scroll-box {
  background-color: var(--black-color);
  color: var(--white-color);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.4s ease-in-out;
}

.home__scroll-box i {
  animation: scroll-down 2s infinite;
}

/* Animate scroll icon */
@keyframes scroll-down {
  0% {
    transform: translateY(-1rem);
    opacity: 0;
  }
  50% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(0.6rem);
    opacity: 0;
  }
}

/*=============== BUTTON ===============*/
.button .button__ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}

.button {
  background-color: var(--black-color);
  padding: 1.1rem 1.5rem;
  display: block;
  color: var(--white-color);
  font-weight: var(--font-medium);
  transition: background-color 0.3s ease-in-out;
}

.button i {
  font-size: 1.25rem;
}

.button:hover {
  background-color: var(--first-color);
}

.button__ghost {
  border: 3px solid var(--black-color);
  color: var(--black-color);
  padding: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.button__ghost i {
  font-size: 1.25rem;
}

.button__ghost:hover {
  border: 3px solid var(--first-color);
}

/*=============== ABOUT ===============*/
.about {
  background-color: var(--container-color);
  transition: background-color 0.3s ease-in-out;
}

.about__container {
  row-gap: 0;
}

.about__hasan {
  position: relative;
  justify-self: center;
  /* Margin block, margin yang terdiri dari 2 shorthadn
  margin-block-start(mengatur margin atas) dan margin-block-end (mengatur margin bawah) */
  margin-block: 2.5rem 4.5rem;
}

.about__image {
  width: 220px;
}

.about__img {
  position: relative;
  border: 4px solid var(--black-color);
  z-index: 1;
}

.about__shadow,
.about__line,
.about__box {
  position: absolute;
}

.about__shadow {
  width: 150px;
  height: 365px;
  background-color: var(--body-color);
  top: -3.5rem;
  right: -3.5rem;
  border-bottom: 4px solid var(--first-color);
  transition: background-color 0.4s;
}

.about__hasan .geometric-box {
  top: 1.5rem;
  right: -2.8rem;
}

.about__line {
  filter: invert(1);
  right: -2rem;
  top: 6rem;
  width: 50px;
}

.about__box {
  width: 40px;
  height: 40px;
  background-color: var(--first-color);
  right: -0.5rem;
  bottom: 1.5rem;
}

.about__info {
  padding-left: 1.5rem;
}

.about__description {
  position: relative;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.about__description::after {
  content: "";
  width: 20px;
  background-color: var(--black-color);
  height: 1px;
  position: absolute;
  top: 0.5rem;
  left: -2.5rem;
  transition: all 0.3s ease-in-out;
}

.about__list {
  list-style: square;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  color: var(--title-color);
  margin-bottom: 3rem;
}

.about__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
}
/*=============== SERVICES ===============*/
.services__container {
  grid-template-columns: 250px;
  justify-content: center;
  row-gap: 2rem;
  padding-top: 1rem;
  margin: 0 auto;
}

.services__card {
  position: relative;
}

.services__content {
  height: 100%;
  background-color: var(--body-color);
  border: 4px solid black;
  padding: 6rem 1rem 3rem;
  z-index: 5;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.services__border {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid var(--first-color);
  top: 0;
  left: 0;
  transition: transform 0.4s ease-in-out;
}

.services__card:hover .services__border {
  transform: translate(0.75rem, 0.75rem);
}

.services__icon {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

.services__icon i {
  font-size: 2rem;
  color: var(--black-color);
  position: relative;
  z-index: 5;
}

.services__box {
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: red;
  top: -0.5rem;
  right: -0.3rem;
  z-index: -1;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.25rem;
}
/*=============== PROJECTS ===============*/
.projects {
  background-color: var(--container-color);
  transition: all 0.3s ease-in-out;
}

.projects__container {
  row-gap: 3.2rem;
}

.projects__card {
  padding-block: 1rem 2rem;
  padding-inline: 1rem;
  transition: all 0.3s ease-in-out;
}

.projects__image {
  position: relative;
  margin-bottom: 0.75rem;
}

.projects__button {
  position: absolute;
  right: 2rem;
  transform: translateY(-50%);
  padding: 1rem;
}

.projects__content {
  margin-bottom: 1.6rem;
}

.projects__subtitle {
  position: relative;
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: 1.75rem;
  padding-left: 1.6rem;
}

.projects__subtitle::after,
.projects__subtitle::before {
  content: "";
  width: 15px;
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  top: 50%;
}

.projects__subtitle::before {
  left: 0rem;
}

.projects__subtitle::after {
  right: -1.6rem;
}

.projects__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease-in-out;
}

.projects__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.projects__link {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: color 0.4s ease-in-out;
}

.projects__link i {
  font-size: 1.2rem;
  color: var(--title-color);
  transition: color 0.3s ease-in-out;
}

.projects__link:hover,
.projects__link:hover i {
  color: var(--first-color);
}

.projects__card:hover {
  background-color: var(--white-color);
}

/*=============== CONTACT ===============*/
.contact {
  padding-bottom: 0;
}

.contact__container {
  position: relative;
  grid-template-rows: 300px max-content max-content;
  row-gap: 0;
}

.contact__data {
  position: relative;
  width: 70%;
  height: 70%;
  background-color: var(--container-color);
  padding: 3rem 1.5rem 3.5rem;
  margin-inline: auto;
  border-bottom: 4px solid var(--first-color);
  z-index: 5;
  transition: background-color 0.4s ease-in-out;
  justify-self: center;
  align-self: start;
}

.contact__data .section__title-2 {
  margin-bottom: 1.6rem;
}

.contact__description-1 {
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-bottom: 2rem;
}

.contact__description-2 {
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.contact__data .geometric-box {
  top: 2rem;
  right: 2.5rem;
  position: absolute;
}

.contact__mail {
  position: relative;
  background-color: var(--black-color);
  padding-block: 5rem 2.5rem;
  padding-inline: 1.5rem;
  margin-top: -2.5rem;
  transition: background-color 0.3s ease-in-out;
}

.contact__title {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
  text-align: center;
}

.contact__form,
.contact__group {
  display: grid;
  row-gap: 1.25rem;
}

.contact__form {
  position: relative;
}

.contact__box {
  position: relative;
  width: 100%;
  height: 50px;
}

.contact__input,
.contact__button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  outline: none;
  border: none;
}

.contact__input {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--black-color);
  border: 3px solid var(--black-color-light);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  font-weight: var(--font-medium);
  transition: border 0.3s ease-in-out;
}

.contact__input::placeholder {
  color: var(--text-color-light);
  transition: opacity 0.4s ease-in-out;
}

.contact__input:focus {
  border: 3px solid var(--white-color);
}

.contact__input:-webkit-autofill {
  transition: background-color 6000s, color 6000s;
}

.contact__label {
  position: absolute;
  transform: translate(10px, 53%);
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  background-color: var(--black-color);
  width: auto;
  padding: 0.5rem;
  text-align: center;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  opacity: 0;
}

.contact__form .contact__area {
  height: 10rem;
}

.contact__area textarea {
  resize: none;
  padding-top: 1rem;
}

.contact__button {
  background-color: var(--first-color);
  cursor: pointer;
}

/* Opaque placeholder */
.contact__input:focus::placeholder {
  opacity: 0;
}

/* Move label up & sticky label */
.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown).contact__input:not(:focus)
  + .contact__label {
  opacity: 1;
  transform: translate(10px, -50%);
}

.contact__social {
  display: grid;
  justify-content: center;
  align-items: center;
  background-color: #1c1c1c;
  padding-block: 1rem 2rem;
  row-gap: 1.25rem;
  text-align: center;
}

.contact__social-arrow {
  width: 33%;
  margin-inline: auto;
}

.contact__social-description-1,
.contact__social-description-2 {
  color: #f4f4f4;
  font-weight: var(--small-font-size);
  font-size: var(--small-font-size);
  margin-bottom: 1.2rem;
}

.contact__description-2 {
  font-size: var(--font-medium);
}

.contact__social-links {
  display: flex;
  justify-content: center;
  column-gap: 1.2rem;
}

.contact__social-link {
  color: var(--white-color);
  font-size: 1.2rem;
  background-color: var(--black-color);
  padding: 0.5rem;
  display: grid;
  place-items: center;
  transition: all 0.3s ease-in-out;
}

.contact__social-link:hover {
  background-color: var(--first-color);
}

/* EMAIL-JS */
.contact__message {
  color: var(--white-color);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--black-color);
}
.footer__container {
  padding-block: 3rem 2rem;
  row-gap: 2.5rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.footer__link {
  color: var(--white-color);
  transition: color 0.4s ease-in-out;
}

.footer__link:hover {
  color: var(--text-color-light);
}

.footer__copy {
  color: var(--text-color-light);
  text-align: center;
  font-size: var(--small-font-size);
}

.footer__copy a {
  color: var(--white-color);
  font-size: var(--font-medium);
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 65%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 55%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--black-color);
  display: inline-flex;
  font-size: 1.25rem;
  color: var(--white-color);
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 0 3px 0px black;
  z-index: var(--z-tooltip);
  transition: all 0.3s ease-in-out;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 5%;
}
/*=============== BREAKPOINTS ===============*/
/* For small devices */

/* For medium devices */

/* For large devices */
