/* ==========================================
   1. GLOBAL & ANIMATED BACKGROUND
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  /* Background animasi tetap di body, sebagai lapisan paling dasar */
  background: linear-gradient(-45deg, #02163d, #152238, #1150cf, #1e3799, #0c2461);
  background-size: 400% 400%;
  animation: gradientAnimation 12s ease infinite;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Content Wrapper */
.content-wrapper {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  width: 100%;
  position: relative;
  z-index: 10; /* Berada di atas background body */
}


/* PASTIKAN SEMUA ELEMEN INTERAKTIF BISA DIKLIK */
a, button, input, select, textarea, .nav-link, .card {
  pointer-events: auto !important; /* Tombol & input tetap bisa diklik sempurna */
  position: relative;
  z-index: 100; /* Naikkan layer elemen interaktif di atas partikel */
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================
   2. HEADER & TOPBAR STYLES
   ========================================== */
.header {
  /* Opaque background untuk menutupi partikel */
  background: rgba(21, 34, 56, 1); /* Full opaque */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 100; /* Pastikan di atas main content */
}

.topbar {
  background: rgba(21, 34, 56, 0.95);
  font-size: 14px;
  color: #ffffff;
  padding: 8px 0;
}

.branding .logo a {
  color: #ffffff;
  text-decoration: none;
  font-size: 28px;
  letter-spacing: 2px;
  font-family: 'Monoton', cursive, sans-serif !important; /* KUNCI: Tambahkan !important */
}

.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 15px;
}

.navmenu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  transition: 0.3s;
}

.navmenu a:hover, 
.navmenu a.active {
  color: #38ef7d;
}

/* ==========================================
   3. FOOTER STYLES
   ========================================== */
/* FOOTER: Terkunci di Paling Bawah */
footer, .footer {
  flex-shrink: 0 !important;
  margin-top: auto !important;
  /* Opaque background untuk menutupi partikel */
  background: rgba(15, 25, 42, 1); /* Full opaque */
  color: #ffffff;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 100; /* Pastikan di atas main content */
}


.footer a {
  color: #38ef7d;
  text-decoration: none;
}

/* ==========================================
   4. FORM & UI COMPONENTS
   ========================================== */
/* MAIN CONTENT: Mengambil Seluruh Sisa Ruang Kosong */
main, .main {
  flex: 1 0 auto !important;
  position: relative; /* KUNCI: Membuat konteks posisi untuk partikel */
  z-index: 50; /* Di bawah header & footer, tapi di atas wrapper */
  overflow: visible; /* Biarkan konten meluap jika perlu */
}

/* KANVAS PARTIKEL - Diletakkan di DALAM <main> */
#particles-js {
  position: absolute; /* Relative terhadap elemen <main> */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Berada DI BELAKANG konten di dalam <main> */
  pointer-events: all; /* Agar bereaksi dengan kursor */
}

.main-content-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.get-in-touch {
  width: 100%;
  max-width: 800px;
  margin: 50px auto;
  position: relative;
}

.get-in-touch .title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 3.2em;
  line-height: 48px;
  padding-bottom: 48px;
  color: #5543ca;
  background: #5543ca;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.contact-form .form-field {
  position: relative;
  margin: 32px 0;
}

.contact-form .input-text {
  display: block;
  width: 100%;
  height: 36px;
  border-width: 0 0 2px 0;
  border-color: #5543ca;
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  padding-left: 5px;
}

.contact-form .input-text:focus {
  outline: none;
}

.contact-form .submit-btn {
  display: inline-block;
  background-color: #000;
  background-image: linear-gradient(125deg,#a72879,#064497);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 16px;
  padding: 8px 16px;
  border: none;
  width: 200px;
  cursor: pointer;
}


/* ==========================================
   5. BUTTON GRID & DASHBOARD COMPONENTS
   ========================================== */
.app-title {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  display: inline-block;
  background: linear-gradient(110deg, #ffffff 35%, #99f6ff 48%, #ffffff 55%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer; 
}

.app-title:hover {
  transform: translateY(-8px) scale(1.03);
  animation: shineGlow 1.6s infinite linear;
}

@keyframes shineGlow {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Grid Layout 3 Kolom */
.button-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* Menggunakan 6 unit grid agar fleksibel menengahkan 2 tombol */
  gap: 25px;
  width: 100%;
  max-width: 1200px;
}

/* Tombol Standar (Memakan 2 unit kolom = sama dengan 1/3 dari 6 unit) */
.btn-custom {
  grid-column: span 2;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px; /* Ukuran Tombol Dibuat Lebih Tinggi */
  padding: 25px;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pengaturan khusus agar 2 tombol terakhir berada di tengah baris ke-4 */
.btn-bottom-left {
  grid-column: 2 / span 2; /* Dimulai dari kolom ke-2 */
}

.btn-bottom-right {
  grid-column: 4 / span 2; /* Dimulai dari kolom ke-4 */
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
  z-index: 2;
  transition: transform 0.3s ease;
}

.btn-content i {
  font-size: 2.6rem; /* Icon diperbesar */
  color: #99f6ff;
  transition: all 0.3s ease;
}

/* TULISAN DALAM TOMBOL (Diperbesar & Font Raleway) */
.btn-content span {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem; /* Ukuran Tulisan Diperbesar */
  font-weight: 700;  /* Tulisan dibuat Tebal/Bold */
  line-height: 1.35;
  letter-spacing: 0.5px;
}

/* Animasi Hover Tombol */
.btn-custom::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: #38ef7d;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(56, 239, 125, 0.8);
  z-index: 1;
}

.btn-custom:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-custom:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.btn-custom:hover .btn-content i {
  color: #38ef7d;
  transform: scale(1.15) rotate(-5deg);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .button-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn-custom {
    grid-column: span 1;
  }
  .btn-bottom-left, .btn-bottom-right {
    grid-column: span 1; /* Kembali normal di tablet */
  }
}

@media (max-width: 600px) {
  .button-grid {
    grid-template-columns: 1fr;
  }
  .app-title {
    font-size: 2rem;
  }
  .btn-custom {
    height: 150px;
  }
  .btn-content span {
    font-size: 1.1rem;
  }
}