/* Base */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #050505;
  color: #ffffff;
  overflow-x: hidden;
  width: 100%;
  color-scheme: dark;
}

/* Freeze scroll when menu open */
body.menu-open { overflow: hidden !important; height: 100vh; }

/* =========================
   3D CANVAS BACKGROUND (NEW)
   ========================= */
#bg3d{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;            /* paling bawah */
  pointer-events: none;  /* biar klik UI tidak keganggu */
  display: block;
}

/* Ensure main layers above canvas */
nav, main, footer {
  position: relative;
  z-index: 10;
}

/* Theme */
.bg-deep { background-color: #050505; }
.bg-subtle { background-color: #121212; border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); }

/* Hero visuals */
.hero-wrapper { position: relative; overflow: hidden; background-color: transparent; }
.aurora-hero {
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 1;
  filter: blur(80px);
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.4), transparent 50%),
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.4), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(147, 51, 234, 0.4), transparent 50%);
  animation: auroraSpin 20s linear infinite;
  pointer-events: none;
  will-change: transform;
}
@keyframes auroraSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.grid-overlay {
  position: absolute; inset: 0; z-index: 2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
}

/* Orbs */
.orb-container { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.float-orb { position: absolute; border-radius: 50%; filter: blur(25px); opacity: 0.6; animation: floatAnimation 4s infinite ease-in-out alternate; }
.orb-1 { width: 80px; height: 80px; background: #4ade80; top: 20%; left: 10%; animation-delay: 0s; }
.orb-2 { width: 60px; height: 60px; background: #3b82f6; top: 60%; right: 15%; animation-delay: -1.2s; }
.orb-3 { width: 40px; height: 40px; background: #a855f7; bottom: 10%; left: 30%; animation-delay: -2.5s; }
@keyframes floatAnimation { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(0,-50px) scale(1.1); } }

/* Glass */
.glass-nav { width: 100%; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); background: transparent; border-bottom: 1px solid transparent; padding: 1rem 0; }
.glass-nav.scrolled { background: rgba(5,5,5,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 30px rgba(0,0,0,0.3); padding: 0.5rem 0; }

.glass-card {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  position: relative;
  z-index: 10;
}

/* Hover */
.card-hover-effect { transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), background-color 0.3s ease, border-color 0.3s ease; }
.card-hover-effect:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(74,222,128,0.4); background-color: rgba(255,255,255,0.04); }

.text-gradient { background: linear-gradient(to right, #4ade80, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Nav link underline */
.nav-link { position: relative; display: inline-block; padding-bottom: 2px; }
.nav-link::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: -2px; left: 50%;
  background-color: #4ade80;
  transform: translateX(-50%);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(74,222,128,0.8);
  border-radius: 2px;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #fff !important; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* Mobile menu */
.mobile-menu-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(5,5,5,0.98);
  backdrop-filter: blur(20px);
  z-index: 55;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }

.mobile-menu-close {
  position: absolute; top: 2rem; right: 2rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 60;
}
.mobile-menu-close:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.5);
  color: #f87171;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(239,68,68,0.2);
}

/* Forms */
.input-group { position: relative; width: 100%; }
.input-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  font-size: 1.1rem;
  z-index: 20;
}
.input-field {
  width: 100%;
  display: block;
  box-sizing: border-box;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}
.input-field:focus {
  background: rgba(0,0,0,0.6);
  border-color: #4ade80;
  outline: none;
  box-shadow: 0 0 0 1px rgba(74,222,128,0.5);
}
.input-field.no-icon { padding-left: 1rem; }

.custom-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); margin: 10px 0; border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* Captcha */
.bot-field { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }
.captcha-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.captcha-question { font-weight: 800; color: #4ade80; letter-spacing: 2px; font-size: 1.1rem; user-select: none; }

/* Accordion */
.accordion-content { transition: max-height 0.3s ease-out, opacity 0.3s ease-out; max-height: 0; overflow: hidden; opacity: 0; }
.accordion-content.active { max-height: 500px; opacity: 1; }
.rotate-icon { transition: transform 0.3s ease; }
.rotate-icon.active { transform: rotate(180deg); }

/* Scroll to top */
.scroll-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 3.5rem; height: 3.5rem;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  backdrop-filter: blur(5px);
  color: #4ade80;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  z-index: 99;
}
.scroll-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================
   3D Canvas Background Fix
   ========================= */
#bg3d{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;              /* paling belakang */
  pointer-events: none;    /* tidak ganggu klik */
  display: block;
}

/* Pastikan konten di atas canvas */
nav, main, footer{
  position: relative;
  z-index: 2;
}

/* Biar background section tidak menutup 3D */
.bg-deep{
  background: rgba(5, 5, 5, 0.62) !important;
}
.bg-subtle{
  background: rgba(18, 18, 18, 0.62) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* Optional: semua section punya "veil" halus supaya teks tetap kebaca */
section{
  position: relative;
  z-index: 2;
}
section::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, rgba(0,0,0,0.10), rgba(0,0,0,0.35)) !important;
}

section > *{
  position: relative;
  z-index: 2;
}

/* =========================
   Scroll-to-top Button Fix
   ========================= */
.scroll-to-top{
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999 !important;
  pointer-events: auto !important;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.scroll-to-top.show{
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
