/* ========== GLOBAL FIX ========== */

/* Hilangkan scroll kiri-kanan */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0; /* ❌ jangan pakai padding-top di body */
}

/* Biar semua elemen gak bikin layar melebar */
* {
  max-width: 100%;
  box-sizing: border-box;
}


/* ========== NAVBAR ========== */

/* Navbar sticky atas */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  height: 80px; /* pastikan tinggi fixed header jelas */
}

/* Bottom navbar versi mobile */
@media (max-width: 768px) {
  header {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 60px; /* lebih kecil di mobile */
  }

  header .container {
    justify-content: space-around;
  }

  header nav {
    display: flex !important;
    gap: 2rem;
  }
}


/* ========== HERO SECTION ========== */

@keyframes float {
  0% {transform: translatey(0px);}
  50% {transform: translatey(-10px);}
  100% {transform: translatey(0px);}
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}


/* HERO SECTION */ 
#hero {
  min-height: 100vh; /* full layar */
  margin-top: 80px;  /* kasih jarak sesuai tinggi header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to right, #2563eb, #3b82f6);
  color: white;
}

#hero h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  font-weight: bold;
}

#hero p {
  font-size: 1.1rem;
  margin: 0.5rem 0 1.5rem;
}

#hero a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: bold;
}


/* Scrollbar kecil semua browser */
.small-scroll {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

/* Scrollbar kecil untuk Webkit (Chrome, Edge, Safari) */
.small-scroll::-webkit-scrollbar {
  width: 4px;
}
.small-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.small-scroll::-webkit-scrollbar-track {
  background: transparent;
}


/* ANIMASI PEMBELIAN */ 
@keyframes slideUp {
  0% { transform: translateY(100%); opacity: 0; }
  20% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
.animate-slide-up {
  animation: slideUp 6s ease-in-out forwards;
}
