@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Viga&display=swap");

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

body {
  font-family: "Lato", "Courier New", Courier, monospace;
  position: relative;
  z-index: 1;
  overflow: auto;
  overflow-x: hidden;
  overflow: -moz-hidden-unscrollable;
  text-align: center;
  /* background-color: rgb(42, 50, 53); */

  background-color: rgb(227, 227, 227); /* putih */
  background-image: linear-gradient(
      rgba(150, 150, 150, 0.1) 1px,
      /* 0.1 lebih pudar */ transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(150, 150, 150, 0.1) 1px,
      /* 0.1 lebih pudar */ transparent 1px
    );
  background-size: 50px 50px; /* ukuran kotak */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  /* Tech-stack icons kiri & kanan */
  background-image: 
  /* Kiri */ url("../img/tech-stack/icon-css.webp"),
    url("../img/tech-stack/icon-html.webp"),
    url("../img/tech-stack/icon-js.webp"), url("../img/tech-stack/icon-ts.webp"),
    url("../img/tech-stack/icon-tailwind.webp"),
    url("../img/tech-stack/icon-react-query.webp"),
    /* Kanan */ url("../img/tech-stack/icon-laravel.webp"),
    url("../img/tech-stack/icon-node.webp"),
    url("../img/tech-stack/icon-express.webp"),
    url("../img/tech-stack/icon-mongo.webp"),
    url("../img/tech-stack/icon-react.webp"),
    url("../img/tech-stack/icon-next.webp");

  background-repeat: no-repeat;

  background-position: 
  /* Kiri */ 40px 12%, /* CSS */ 80px 28%,
    /* HTML */ 55px 47%, /* JS */ 100px 68%, /* TS */ 60px 82%,
    /* Tailwind */ 90px 93%, /* React Query */ /* Kanan */ calc(100% - 60px) 8%,
    /* Laravel */ calc(100% - 100px) 24%, /* Node */ calc(100% - 70px) 42%,
    /* Express */ calc(100% - 110px) 63%, /* Mongo */ calc(100% - 50px) 78%,
    /* React */ calc(100% - 90px) 92%; /* Next */

  background-size: 
  /* Kiri */ 35px auto, /* CSS kecil */ 65px auto,
    /* HTML besar */ 42px auto, /* JS sedang */ 75px auto,
    /* TS besar */ 28px auto, /* Tailwind kecil */ 55px auto,
    /* React Query sedang */ /* Kanan */ 70px auto,
    /* Laravel besar */ 38px auto, /* Node sedang */ 60px auto,
    /* Express besar */ 30px auto, /* Mongo kecil */ 80px auto,
    /* React besar */ 45px auto; /* Next sedang */

  opacity: 0.8; /* Ini bikin icon lebih pudar */
  z-index: 0;
}

/* CSS Cursor */
.cursor-dot {
  width: 10px;
  height: 10px;
  background: rgba(3, 68, 90, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  z-index: 9999;
}

.cursor-dot.hover {
  width: 20px;
  height: 20px;
  background: rgba(3, 68, 90, 0.2);
}

hr {
  margin: 12px 0;
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
}

div.container {
  /* MEMBUAT SELURUH ISI DI CONTAINER KE TENGAH SECARA VERTIKAL DAN HORIZONTAL */
  display: flex; /* jadikan flex container */
  flex-direction: column; /* susun anak vertikal */
  justify-content: center; /* CENTER vertikal seluruh isi sebagai satu grup */
  align-items: center; /* CENTER horizontal */
  min-height: 100vh;
  /* MEMBUAT SELURUH ISI DI CONTAINER KE TENGAH SECARA VERTIKAL DAN HORIZONTAL */

  background-image: linear-gradient(
    rgb(7, 132, 182),
    rgb(10, 221, 158),
    rgb(8, 175, 226)
  );
  /* background-color: rgba(255, 255, 255, 1); */
  position: relative;
  margin: 0 auto;
  padding: 20px 0 0;
  width: 500px;
  min-height: 100vh;
  height: 100%;
  box-sizing: border-box;
  border-left: 1px solid #0896b1;
  border-right: 1px solid #0896b1;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}
/* MEMBUAT SELURUH ISI DI CONTAINER KE TENGAH SECARA VERTIKAL DAN HORIZONTAL */
div.container > * {
  width: 100%; /* header, hr, article, footer tetap full width 500px */
}
/* MEMBUAT SELURUH ISI DI CONTAINER KE TENGAH SECARA VERTIKAL DAN HORIZONTAL */

.row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap; /* biar turun kalau sempit */
}

header {
  font-family: "Viga", sans-serif;
}
header figure {
  text-align: center;
}
header figure img {
  position: relative;
  border-radius: 100%;
  width: 120px;
  border: 4px solid #fff;
  box-shadow: 0 1px 3px rgba(000, 000, 000, 0.8);
}
header figure span.sayHello {
  background-color: rgb(221, 121, 7);
  position: absolute;
  top: 65px;
  right: 170px;
  padding: 6px;
  font-size: 0.9em;
  font-weight: bold;
}
header figure span.sayHello:hover {
  cursor: help;
}
header figure img:hover {
  cursor: help;
}
header figure figcaption {
  background-color: rgb(221, 121, 7);
  display: block; /* turun ke bawah */
  width: fit-content; /* lebar mengikuti konten */
  min-width: 180px;
  max-width: 80%;
  padding: 2px 10px;
  margin: 4px auto; /* auto center */
  color: #fff;
  border-radius: 50px;
  white-space: nowrap;
}

header .title {
  margin-top: 15px;
}
header .title h2 {
  font-size: 2em;
  margin-bottom: -3px;
}

#subscriber-count,
#follower-count,
#repo-count {
  /* background-color: yellow; */
  padding: 0px 4px;
  font-weight: bold;
}

.sosmed img {
  width: 20px;
  margin: 8px 8px 0;
}
.sosmed img:hover {
  filter: contrast(0.5);
}

.sosmed a .icon-sosmed {
  background-color: var(--icon-bg, #333);
  margin-top: 5px;
  padding: 2px 3.5px;
  border-radius: 5px;
  color: #fff;
  font-size: 1.2em;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
}
.sosmed a:hover .icon-sosmed {
  transform: scale(1.1);
  filter: contrast(0.8);
}

.sosmed-footer a .icon-sosmed {
  margin-top: 5px;
  color: #333;
  font-size: 1.2em;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
}
.sosmed-footer a:hover .icon-sosmed {
  transform: scale(1.1);
  filter: contrast(0.8);
}

article section.btn-link {
  margin-top: 15px;
}
article section.btn-link a {
  text-decoration: none;
  color: #000;
}
article section.btn-link li {
  background-color: rgb(237, 254, 255);
  width: 85%;
  padding: 10px;
  margin: 8px auto;
  border: 2px solid rgb(221, 121, 7);
  box-shadow: 1px 2px 4px rgba(000, 000, 000, 0.3);
  border-radius: 40px;
  list-style-type: none;
  transition: all 0.3s;
}
article section.btn-link li:hover {
  background-color: rgb(221, 121, 7);
  border: 2px solid rgb(198, 250, 253);
  width: 87%;
  color: #fff;
}

footer {
  margin-top: 30px;
  padding-bottom: 20px;
  color: #000;
  line-height: 20px;
}
footer span {
  color: rgb(245, 9, 48);
}
footer a {
  text-decoration: none;
  color: #000;
  transition: all 0.3s;
}
footer a:hover {
  font-weight: bold;
}
footer .love-icon {
  transition: all 0.5s;
}
footer .love-icon:hover {
  font-size: 1.5em;
}

/* Mobile Responsive */
@media only screen and (max-width: 580px) {
  body {
    background-image: none;
  }
  div.container {
    width: 100%;
  }
  .main-content {
    top: 35px;
  }
  header figure img {
    box-shadow: 0 1px 3px rgba(000, 000, 000, 0.7);
  }
  article section.btn-link li {
    width: 87%;
    transition: all 0.5s;
  }
  article section.btn-link li:hover {
    width: 90%;
  }
  article .col h3 {
    font-size: 0.9em;
    font-weight: bold;
  }
  article .col p {
    font-size: 0.8em;
  }
  header figure span.sayHello {
    top: 65px;
    right: 95px;
  }
  .sosmed img {
    width: 15px;
  }
  footer p {
    font-size: 0.9em;
  }
}
