* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-image: url("../image/history.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.navbar {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  padding: 15px;
  width: 100%;
  backdrop-filter: blur(1em);
  box-shadow: 0 2px 4px;
}
ul > li {
  color: white;
  font-weight: 900;
  font-size: large;
  list-style: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
li:hover {
  transform: scale(1.05);
}
.right-logo {
  position: absolute;
  right: 20px;
  top: 6%;
  margin: 0;
  cursor: grab;
  z-index: 1000;
}
.right-logo > img {
  width: 3em;
  background-color: #ffffff;
  border-radius: 100%;
  object-fit: cover;
}
.dropdown-box {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 12%;
  background-color: #444;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 10px 0;
  list-style: none;
  z-index: 1000;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}
.dropdown-box.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-box li {
  background: none;
}
.dropdown-box li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  background: none;
  transition: 0.2s;
}
.dropdown-box li a:hover {
  background-color: #da291c;
  border-radius: 8px;
  margin: 0 5px;
}
.dropdown-box hr {
  border: 0;
  border-top: 1px solid #555;
  margin: 8px 0;
}

main {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artikel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 25vh;
  color: white;
  text-align: center;
}
.judulKetik {
  width: 100%;
  font-size: 3em;
  font-weight: 900;
  font-family: "DeJavu Sans Mono", monospace;
  text-wrap: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(100);
}
@keyframes typing {
  from {
    width: 0;
  }
}

.motivation {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(152, 152, 152, 0.5);
  overflow: hidden;
  width: 90%;
  max-width: 600px;
  padding: 3rem 2rem;
  background: rgba(34, 34, 34, 0.8);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  transition: 0.3s;
}
.motivation q {
  color: white;
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}
.info-motivation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: blur;
  color: #ffffff;
  font-weight: bold;
  padding: 10px 0;
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}
.motivation:hover .info-motivation {
  transform: translateY(0%);
}
.history-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}
.history-link {
  text-decoration: none;
  padding: 0.5em 5em;
  border-radius: 50px;
  background-color: white;
  color: black;
  font-weight: bold;
  transition: 0.3s;
  border: 2px solid transparent;
  cursor: grabbing;
}
.history-link:hover {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: 10px;
  }
  .right-logo {
    top: 2px;
    right: 8px;
  }
  .right-logo > img {
    width: 2.5em;
  }

  .dropdown-box {
    width: 160px;
    right: 15px;
    top: 60px;
  }

  .judulKetik {
    font-size: 1.8em;
    white-space: normal;
    text-wrap: wrap;
    clip-path: inset(0 100% 0 0);
    animation: typing-mobile 3.5s steps(100) forwards;
  }

  @keyframes typing-mobile {
    to {
      clip-path: inset(0 0 0 0);
    }
  }

  .motivation {
    width: 90%;
    padding: 2rem 1.5rem;
    margin: 1rem auto;
  }
  .motivation q {
    font-size: 1rem;
  }
  .info-motivation {
    padding: 20px 0 10px 0;
    background: transparent;
  }

  .history-container {
    padding: 20px 15px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }
  .history-link {
    padding: 0.5em 5em;
    display: inline-block;
  }
}