body {
  background-color: #000;
  color: #fff; /* Set default text color to white for better visibility */
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/bannerman-1.jpg");
  background-size: cover; /* Cover the entire page */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Prevent repeating the background image */
  opacity: 0.4; /* Set the opacity */
  z-index: -1; /* Ensure the background is behind all other content */
}

.hero {
  padding: 10px; /* Vertical padding */
  text-align: center; /* Center text and buttons */
  background: none; /* Remove background */
}

.hero h1 {
  font-size: 2rem; 
  padding: 0 15px; 
}

.hero h4 {
  font-size: 1.2rem; 
  padding: 0 15px; 
}

@media (max-width: 576px) {
  .hero h1 {
      font-size: 15px; 
  }
  .hero h4 {
      font-size: 12px; 
  }
  .hero img {
      max-width: 100px;
      width: 130px;
  }
}

.btn-rounded {
  border-radius: 10px; /* atau sesuaikan sesuai kebutuhan */
}

.hero img {
  max-width: 200px; /* Adjust size as needed */
  margin-bottom: 1rem;
}

.card {
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect for cards */
  border: none; /* Remove card border */
  transition: all 0.3s ease; /* Smooth transition for hover effect */
  background: rgba(255, 255, 255, 0.8); /* Slightly transparent background */
  height: 100%; /* Ensure cards are full height within their column */
}

.card:hover {
  background: rgba(0, 123, 255, 0.8); /* Blue background on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhanced shadow effect on hover */
  transform: scale(1.05); /* Slightly scale up the card on hover */
}

.card:hover .card-body {
  color: #fff; /* White text color on hover */
}

.card:hover .icon {
  color: #fff; /* White icon color on hover */
}

.card-body {
  text-align: center;
  padding: 1rem; /* Ensure consistent padding inside cards */
}

.icon {
  font-size: 2rem; /* Icon size */
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem; /* Adjust font size for card titles */
  margin: 0; /* Remove default margin */
  overflow: hidden; /* Ensure overflow is hidden */
  text-overflow: ellipsis; /* Add ellipsis for overflowing text */
  white-space: nowrap; /* Prevent text wrapping */
}

.card-container {
  max-width: 300px; /* Limit card width */
  margin: 1rem auto; /* Center cards horizontally and add vertical margin */
}

.row-cols-md-3 > .col {
  margin-bottom: 1.5rem; /* Space between rows of cards */
}

/* text animation */
.typing-animation {
  font-family: inherit; /* Keep the original font */
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: typing 20s steps(100, end) forwards, blink-caret 1s step-end 20s 1;
  width: 0; /* Start with width 0 */
  position: relative; /* Ensure positioning for caret */
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: black; }
}

.typing-animation.finished {
  border-right: none; /* Hide the caret when finished */
  animation: none; /* Stop the blinking animation */
  width: auto; /* Set width to auto to fit content */
}
