/* Import Inter font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #f4f6f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 20px;
}

.bsn {
  font-weight: bold;
  font-size: 18px;
  color: #3d5547;
  margin: 15px 0;
}
/* Rounded border */
hr.rounded {
  border-top: 3px solid #dfdfdf;
  border-radius: auto;
}
.links-section {
  margin-bottom: 8rem;
}

.container {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.header {
  margin-top: 30px;
}

.logo {
  width: 150px;
  margin: 0 auto;
  display: block;
}

.header h2 {
  font-size: 18px;
  color: #3d5547;
  margin: 15px 0;
}

.header h2 span {
  font-weight: 700;
}

.links {
  margin-top: 20px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #fff;
  border-radius: 30px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}

.link-item:hover {
  background-color: #f0f8f0;
}

.icon {
  width: auto;
  height: 30px;
  border-radius: 50%;
  margin-right: 15px;
}

.link-item p {
  font-size: 16px;
  color: #3d5547;
  font-weight: 500;
  margin: 0;
}

.footer {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 300px;
  align-items: center;
  background-color: #181d2a;
  padding: 15px;
  border-radius: 3rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 90%;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s, color 0.3s;
}

.footer-item:hover {
  transform: translateY(-5px);
  color: #87c340;
}

.footer-icon {
  width: auto;
  max-width: 21px;
  margin-bottom: 5px;
  transition: filter 0.3s;
}

.footer-item:hover .footer-icon {
  filter: brightness(1.2);
}

.footer-item p {
  font-size: 8px;
  font-weight: bold;
  margin: 0;
}

.copyright {
  background-color: #f4f6f9;
  font-size: 12px;
  color: #a0a0a0;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.footer-item.active {
  border-bottom: 3px solid #87c340;
  padding-bottom: 5px;
}

/* Ecommerce Section */

.ecommerce-logos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.ecommerce-logos a img {
  max-width: 100px;
  height: auto;
  transition: transform 0.3s ease;
}

.ecommerce-logos a:hover img {
  transform: scale(1.1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tambahkan animasi pada setiap link-item */
.link-item {
  animation: slideIn 0.5s ease-in-out forwards;
  opacity: 0; /* Atur opacity awal menjadi 0 */
}

/* Tambahkan delay agar setiap item muncul berurutan */
.link-item:nth-child(1) {
  animation-delay: 0.2s;
}
.link-item:nth-child(2) {
  animation-delay: 0.4s;
}
.link-item:nth-child(3) {
  animation-delay: 0.6s;
}
.link-item:nth-child(4) {
  animation-delay: 0.8s;
}
.link-item:nth-child(5) {
  animation-delay: 1s;
}
.link-item:nth-child(6) {
  animation-delay: 1.2s;
}
.link-item:nth-child(7) {
  animation-delay: 1.4s;
}

/* Ecommerce logo animation */
.ecommerce-logos a img {
  animation: slideIn 0.5s ease-in-out forwards;
  opacity: 0;
}
.ecommerce-logos a:nth-child(1) img {
  animation-delay: 0.2s;
}
.ecommerce-logos a:nth-child(2) img {
  animation-delay: 0.4s;
}
.ecommerce-logos a:nth-child(3) img {
  animation-delay: 0.6s;
}
.ecommerce-logos a:nth-child(4) img {
  animation-delay: 0.8s;
}

/* Apply the fade-in animation to the main container */
.container {
  animation: fadeIn 1.5s ease-in-out;
}
.fade-in {
  animation: fadeIn 1s ease-in-out forwards;
}
