*,
*::before,
*::after {
  box-sizing: border-box;
}

@import url("https://fonts.googleapis.com/css2?family=Vollkorn:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Sacramento&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Monoton&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
h2 {
  font-family: "Times New Roman", Times, serif;
  font-weight: 600;
  font-weight: bold;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding-top: 60px;
}

nav {
  align-items: center;
  justify-content: center;
  width: 100%;
  letter-spacing: 1px;
  display: flex;
  font-family: "vollkorn";
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: top 0.5s;
}
.nav-item {
  --primary-color: #ff00bf;
  --hovered-color: #ff0000;
  position: relative;
  display: flex;
  font-weight: 600;
  gap: 0.5rem;
  align-items: center;
}
.nav-item::after {
  position: absolute;
  content: "";
  width: 0;
  left: 0;
  bottom: -7px;
  background: var(--hovered-color);
  height: 2px;
  transition: 0.3s ease-out;
  color: var(--hovered-color);
}
.nav-item:hover::after {
  width: 100%;
}
.nav-item:hover {
  display: flex;
  font-family: "Courier New", Courier, monospace;
}
.navbar-brand {
  --hovered-color: #ff0000;
  position: relative;
  display: flex;
  font-weight: 600;
  gap: 0.5rem;
  align-items: center;
}
.navbar-brand::after {
  position: absolute;
  content: "";
  width: 0;
  left: 0;
  bottom: -7px;
  background: var(--hovered-color);
  height: 2px;
  transition: 0.3s ease-out;
  color: var(--hovered-color);
}
.navbar-brand:hover {
  background-color: #b9b9b9;
  border-radius: 6px;
  display: flex;
  font-family: "Courier New", Courier, monospace;
  padding: 3px;
}

.nav-item {
  padding-left: 10px;
  font-weight: 300;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.bi {
  display: inline;
  padding: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nav-item:hover {
  background-color: #b9b9b9;
  border-radius: 10px;
}

.bi-heroes:hover {
  background-color: #b9b9b9;
  border-radius: 10px;
}

footer {
  padding: 10px;
  color: #fff;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  text-align: center;
}
footer .bi:hover {
  background-color: #b9b9b9;
  border-radius: 10px;
}

/* typing effect */
.typing-effect {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden; /* Memastikan teks tidak muncul sekaligus */
  white-space: nowrap; /* Membuat teks tidak pindah baris */
  margin: 0 auto; /* Pusatkan teks di tengah halaman */
  animation: typing 5s steps(40, end), blink-caret 0.75s step-end infinite;
  text-shadow: 2px 2px 5px rgba(0, 238, 255, 0.5);
  font-size: 30px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 3px;
}

/* Animasi ketik */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* CSS untuk tampilan mobile */
@media (max-width: 767px) {
  /* Menyusun elemen dalam flexbox dengan mengatur justify-content dan align-items menjadi center */
  .heroes .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Mengatur ukuran gambar agar sesuai dengan lebar tampilan hp */
  .heroes .col-8 {
    width: 100%;
    max-width: 250px;
  }

  /* Mengatur teks agar berada di tengah */
  .heroes .col-lg-6 {
    text-align: center;
  }

  .skill .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Mengatur kolom agar berada di tengah */
  .skill .col-md-4 {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
}

.swiper {
  width: 100%;
  height: 100%;
}
.card {
  border-radius: 10px;
  text-align: center;
}

.swiper-slide {
  text-align: center;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.swiper-slide img {
  justify-content: center;
  text-align: center;
  align-items: center;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

swiper-container {
  width: 300px;
  height: 300px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -150px;
  margin-top: -150px;
}

swiper-slide {
  background-position: center;
  background-size: cover;
}

swiper-slide img {
  display: block;
  width: 100%;
}

.underline-text {
  text-decoration: underline;
}

.brush-text {
  text-shadow: 2px 2px 5px rgba(45, 241, 255, 0.5);
}

.card {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 204, 255, 0.212);
  position: relative;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px) rotateX(10deg);
  box-shadow: 0 4px 8px rgba(0, 204, 255, 0.212);
}

.btn-cv {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 204, 255, 0.212);
  position: relative;
  transition: transform 0.3s;
}
.btn-cv:hover {
  border-radius: 10px;
  transform: translateY(-5px) rotateX(10deg);
  box-shadow: 0 4px 8px rgba(0, 204, 255, 0.212);
}
