/* IMPORT FONT POPPINS DARI GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&display=swap');

:root {
  --gold1: #C9A46A;
  --gold2: #9F7A47;
  --gold3: #E6C08A;
  --gold-gradient: linear-gradient(90deg, var(--gold1), var(--gold2), var(--gold3));
}

/* 1. TEMBOK (ASLI) */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  min-height: 100vh;
  color: white;
  background: url("../assets/bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  transition: opacity 0.4s ease;
}

body.fade-out {
  opacity: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: -1;
}

/* 2. HEADER */
.header {
  position: fixed;
  top: 0; 
  width: 100%;
  padding: 15px 40px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: rgba(0,0,0,0.9); 
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo { height: 50px; }

.header-slogan {
  font-size: 24px; 
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 3px; 
  background: linear-gradient(90deg, var(--gold1), #fff, var(--gold3), var(--gold2));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sloganShine 4s linear infinite;
  margin: 0 15px; 
}

@keyframes sloganShine {
  to { background-position: 200% center; }
}

@media (max-width: 768px) {
  .header { flex-direction: column; padding: 10px; }
  .header-slogan { font-size: 16px; margin: 8px 0; } 
  .header nav { margin-top: 5px; }
}

/* 3. PINTU MASUK - NAVIGASI & LOGIN */
.header nav a {
  margin-left: 20px; 
  text-decoration: none;
  color: white;
  font-size: 15px; 
  font-weight: 500; 
  transition: 0.3s;
  letter-spacing: 0.5px;
}

.header nav a:hover { color: #facc15; }

.login-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: black !important;
  font-weight: 600;
  transition: all 0.3s ease; 
}

.login-btn:hover { 
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(201, 164, 106, 0.6); 
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide {
  position: absolute;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 800px;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none; 
  padding: 30px;
  border-radius: 16px;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(1px); 
}

.slide.active { 
  opacity: 1; 
  pointer-events: auto;
  z-index: 10;
}

.slide h1 {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px; 
}

.slide p {
  font-size: 18px;
  color: #e5e7eb;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.cta {
  margin-top: 20px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  color: #121212;
  background: var(--gold-gradient);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease; 
}

.cta:hover { 
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 5px 20px rgba(201, 164, 106, 0.6); 
}

/* 4. KOTAK-KOTAK KONTEN */
.about, .services, .coverage, .ark { 
  padding: 100px 20px; 
  background: transparent; 
  color: white; 
}

.about-content, .services-content, .coverage-content, .ark-content { 
  display: inline-block; 
  padding: 40px 50px; 
  border-radius: 16px; 
  background: rgba(0,0,0,0.1); 
  backdrop-filter: blur(1px); 
}

h2 { font-size: 32px; margin-bottom: 10px; text-shadow: 0 4px 20px rgba(0,0,0,0.9); }
.section-desc { max-width: 700px; margin: auto; margin-bottom: 40px; color: #e5e7eb; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }

.about-box, .service-box, .ark-box { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

/* FIX #1: KOTAK GLASSMORPHISM DILEBARIN BIAR PROPORSIONAL */
.about-box div, .service-box div, .ark-box div { 
  background: rgba(255,255,255,0.15); 
  padding: 35px 25px; /* Padding atas-bawah dilegain dikit */
  width: 320px; /* INI KUNCINYA, dari 220px naikin ke 320px */
  border-radius: 12px; 
  backdrop-filter: blur(12px); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
  border: 1px solid transparent;
  transition: all 0.3s ease; 
}

.about-box h3, .service-box h3, .ark-box h3 { color: #ffffff; margin-bottom: 15px; font-size: 22px; }

/* GLOW EFFECT KOTAK GLASSMORPHISM PAS DI-HOVER */
.about-box div:hover, .service-box div:hover, .ark-box div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(201, 164, 106, 0.5);
  border-color: rgba(201, 164, 106, 0.4);
  background: rgba(255,255,255,0.2);
}

.map { width: 100%; max-width: 900px; border-radius: 12px; margin-top: 20px; }

/* 5. FORMULIR KONTAK */
.cta-contact { 
  padding: 80px 20px; 
  text-align: center; 
  color: white;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.cta-content {
  width: 100%;
  max-width: 600px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 15px; 
  margin-top: 20px;
  width: 100%;
}

/* FIX #2: TOMBOL KONTAK DIPAKSA 1 BARIS (FIT-CONTENT) */
.contact-list a {
  display: flex; 
  align-items: center;
  justify-content: center; 
  gap: 12px; 
  padding: 15px 35px; /* Agak dilebarin paddingnya */
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  width: fit-content; /* Kotak melar otomatis ngikutin isi teks */
  min-width: 350px;
  max-width: 95%; 
  white-space: nowrap; /* HARGA MATI, GAK BOLEH PATAH BARIS */
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.05); 
}

/* GLOW EFFECT TOMBOL KONTAK */
.contact-list a:hover { 
  background: rgba(255,255,255,0.2); 
  transform: translateY(-3px); 
  box-shadow: 0 5px 20px rgba(201, 164, 106, 0.6);
  border-color: rgba(201, 164, 106, 0.5);
}

.contact-list a i { font-size: 20px; color: var(--gold3); }

/* 6. PAPAN SPONSOR */
.clients {
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.clients-content {
  display: inline-block;
  padding: 40px 50px;
  border-radius: 16px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(1px);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

/* GLOW EFFECT PAPAN SPONSOR */
.clients-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(201, 164, 106, 0.5);
  border-color: rgba(201, 164, 106, 0.4);
}

.client-logos {
  overflow: hidden;
  width: 100%;
  margin-top: 20px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scrollLogo 15s linear infinite;
}

.logo-track img {
  height: 150px;
  object-fit: contain;
  opacity: 0.9;
}

@keyframes scrollLogo {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 7. HALAMAN LOGIN */
.login-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  width: 350px;
  padding: 40px;
  border-radius: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  text-align: center;
}

.login-box h2 {
  margin-bottom: 10px;
}

.login-box p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #ccc;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #facc15, #f59e0b);
  font-weight: bold;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.login-box button:hover {
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
  transform: translateY(-2px);
}

/* SISA BAWAAN */
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebar-item { padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.1); cursor: pointer; font-size: 12px; text-align: center; }
.sidebar-item:hover { background: rgba(255,255,255,0.25); transform: scale(1.03); transition: 0.2s; }
#nasionalBtn .sidebar-item { background: var(--gold-gradient); color: black; font-weight: bold; }