/* Reset umum */
body,
ul,
li,
a,
h1,
h2,
h3,
p {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid #eaeaea;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 26px;
  font-weight: 600;
  color: #333;
  animation: moveRight 2s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-brand:hover {
  transform: translateX(10px);
  color: #007bff;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  flex-grow: 1;
  justify-content: center;
  transition: all 0.3s ease;
}

.navbar-menu a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.3s ease;
  border-radius: 5px;
  position: relative;
  display: inline-block;
}

.navbar-menu a.active {
  font-weight: bold;
  color: #007bff;
}

.navbar-menu a:hover {
  color: #007bff;
  transform: translateY(-2px);
}

.navbar-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.contact-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Hamburger Menu */
.navbar-toggle {
  display: none;
  font-size: 30px;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.navbar-toggle.open {
  transform: rotate(90deg);
}

.navbar-menu.active {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-top: 1px solid #eaeaea;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Responsivitas */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: start;
    gap: 15px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .navbar-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-menu a {
    width: 100%;
    text-align: left;
    padding: 10px 0;
  }

  .navbar-menu a::after {
    left: 0;
    width: 0;
  }

  .navbar-menu a:hover::after,
  .navbar-menu a.active::after {
    width: 100%;
  }

  .contact-btn {
    display: none;
  }
}

/* Keyframes untuk animasi logo */
@keyframes moveRight {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}
