/* =====================================
   Reset & Base
===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: #f9fafb;
  color: #1f2937;
}

/* Container Custom */
.container-custom {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================
   Fade-in Animations
===================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  animation-timing-function: ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in on scroll */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.fade-in-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay */
.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }
.fade-in-delay-4 { animation-delay: 0.8s; }

/* =====================================
   Smooth Scroll
===================================== */
html {
  scroll-behavior: smooth;
}

/* =====================================
   Buttons
===================================== */
button, .btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: none;
  font-size: 1rem;
  font-weight: bold;
}

/* Primary buttons */
.btn-primary {
  background-color: #1e40af; /* Blue-900 */
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #1e3a8a;
}

.btn-yellow {
  background-color: #facc15; /* Yellow-400 */
  color: #1e40af;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

.btn-yellow:hover {
  background-color: #fcd34d;
}

/* =====================================
   Navbar
===================================== */
nav a {
  text-decoration: none;
}

nav a:hover {
  color: #facc15; /* Yellow-400 */
}

#mobile-menu {
  transition: max-height 0.3s ease;
}

/* =====================================
   Hero Section
===================================== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh; /* full viewport height */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hero canvas background */
#net-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -10;
}

/* =====================================
   Forms & Inputs
===================================== */
input, textarea {
  border: 1px solid #d1d5db; /* Gray-300 */
  border-radius: 0.5rem;
  padding: 0.5rem;
  width: 100%;
  transition: all 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #2563eb; /* Blue-600 */
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

form button {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
}

/* =====================================
   Footer
===================================== */
footer {
  font-size: 0.875rem;
}

footer a:hover {
  text-decoration: underline;
}

/* =====================================
   Responsive Helpers
===================================== */
@media (max-width: 768px) {
  #hero {
    text-align: center;
  }

  #hero .container-custom {
    grid-template-columns: 1fr;
  }

  #contact .container-custom {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   Misc
===================================== */
.shadow {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rounded-lg {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.text-blue-900 {
  color: #1e40af;
}

.bg-blue-900 {
  background-color: #1e40af;
}

.bg-yellow-400 {
  background-color: #facc15;
}

.text-yellow-400 {
  color: #facc15;
}
#loading-screen {
  position: fixed;       /* selalu di atas semua konten */
  top: 0;
  left: 0;
  width: 100vw;          /* full layar */
  height: 100vh;         /* full layar */
  background-color: #1e3a8a; /* biru gelap seperti hero */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;         /* di atas semua elemen lain */
  transition: opacity 0.3s ease;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
  }