.main-container {
  position: relative;
  flex: 1; /* Otomatis menghabiskan sisa ruang kosong antara navbar dan footer */
  padding-top: 8rem;
  padding-bottom: 4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.emoji-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  user-select: none;
  font-size: var(--size);
  left: var(--x);
  top: var(--y);
  opacity: 0.25;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  animation: floatAnimation var(--duration) ease-in-out infinite alternate;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

[data-theme="dark"] .floating-emoji {
  opacity: 0.15;
  filter: drop-shadow(0 4px 12px rgba(254, 249, 195, 0.2));
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    transform: translateY(-40px) rotate(var(--rot)) scale(1.05);
  }
}

.hero-section {
  max-width: 800px;
  margin: 0 auto 5rem auto;
  text-align: center;
  padding: 0 2rem;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-body);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary {
  border: 2px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-section h1 { font-size: 2.5rem; }
  .hero-section p { font-size: 1rem; }
  .main-container { padding-top: 6rem; }
}