body {
  margin: 0;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
  background-color: #000; /* Warna hitam di belakang AR scene */
}

/* ==================== DASHBOARD ==================== */
#dashboard-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Animasi Partikel Lingkaran di Background */
.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  z-index: -1;
}
.circle1 { width: 300px; height: 300px; top: -100px; left: -100px; animation: float 6s infinite ease-in-out; }
.circle2 { width: 200px; height: 200px; bottom: -50px; right: -50px; animation: float 4s infinite ease-in-out reverse; }
.circle3 { width: 150px; height: 150px; top: 50%; left: 80%; animation: float 5s infinite ease-in-out; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 30px;
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 95%;
  width: 1000px; /* Dibuat jauh lebih lebar agar menu bisa bersebelahan */
  border: 5px solid #fff;
  backdrop-filter: blur(10px);
  transform: translateY(0);
  animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.bounce-title {
  font-family: 'Fredoka One', cursive;
  color: #FF6B6B;
  margin-top: 0;
  font-size: 38px;
  text-shadow: 3px 3px 0px #FFD93D;
  animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.dashboard-card p {
  color: #555;
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ==================== PREMIUM MENU GRID ==================== */
/* Animasi Bouncy untuk Judul */
.bounce-title {
  font-family: 'Fredoka One', cursive;
  font-size: 3.5rem; /* Lebih besar lagi */
  color: #FFD93D; /* Kuning terang agar kontras dengan putih */
  text-shadow: 4px 4px 0px #4D96FF, 8px 8px 0px rgba(0,0,0,0.2); /* Bayangan biru */
  margin-bottom: 10px;
  animation: floatTitle 3s ease-in-out infinite;
}

@keyframes floatTitle {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #f0f0f0;
  font-weight: bold;
}

/* KOTAK MENU RAKSASA (KIDS UI) */
.menu-grid-giant {
  display: flex;
  flex-direction: row; /* Susun ke samping */
  justify-content: center;
  flex-wrap: wrap; /* Izinkan turun jika layar HP kecil */
  gap: 20px;
  width: 100%;
  margin-bottom: 30px;
}

.giant-card {
  flex: 1;
  min-width: 260px; /* Lebar minimum per kartu */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 25px; /* Dibuat jauh lebih besar */
  border-radius: 30px; /* Sudut lebih melengkung */
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  border: 6px solid rgba(255,255,255,0.6);
  overflow: hidden;
  margin-bottom: 5px;
}

.giant-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0));
  border-radius: 24px;
}

.giant-card:active {
  transform: scale(0.92);
}

.card-icon {
  font-size: 5rem; /* Ikon diperbesar */
  margin-right: 25px;
  filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.3));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.giant-card:hover {
  transform: scale(1.05) translateY(-5px);
  border-color: white;
}

.giant-card:hover .card-icon {
  transform: scale(1.3) rotate(15deg);
  animation: wiggle 0.5s ease-in-out infinite alternate;
}

@keyframes wiggle {
  0% { transform: scale(1.3) rotate(15deg); }
  100% { transform: scale(1.3) rotate(-15deg); }
}

.card-text {
  z-index: 2;
}

.giant-card h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.8rem; /* Tulisan diperbesar */
  margin: 0;
  color: white;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.4);
  line-height: 1.1;
  letter-spacing: 1px;
}

.giant-card p {
  margin: 0;
  font-size: 1.4rem; /* Subjudul diperbesar */
  font-weight: 900;
  color: rgba(255,255,255,1);
  background: rgba(0,0,0,0.3);
  padding: 5px 15px;
  border-radius: 15px;
  display: inline-block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Warna Khusus Setiap Kartu (Sangat Berbeda dan Mencolok) */
.card-buah {
  background: linear-gradient(135deg, #FF3366, #FF9933);
  box-shadow: 0 10px 25px rgba(255, 51, 102, 0.5);
}

.card-sayur {
  background: linear-gradient(135deg, #00C9FF, #92FE9D);
  box-shadow: 0 10px 25px rgba(0, 201, 255, 0.5);
}

.card-hewan {
  background: linear-gradient(135deg, #8E2DE2, #4A00E0);
  box-shadow: 0 10px 25px rgba(142, 45, 226, 0.5);
}

.card-kendaraan {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  box-shadow: 0 10px 25px rgba(0, 114, 255, 0.5);
}

/* ==================== AR UI OVERLAY ==================== */

.btn-download-premium-bottom {
  position: absolute;
  bottom: 30px;
  padding: 15px 40px;
  border-radius: 30px;
  background: linear-gradient(135deg, #4D96FF, #397CE0);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(77, 150, 255, 0.5);
  transition: all 0.3s;
  border: 4px solid #fff;
  z-index: 10;
  animation: bounce 2s infinite alternate;
}

.btn-download-premium-bottom:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(77, 150, 255, 0.7);
}

/* ==================== AR UI OVERLAY ==================== */
#ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.header {
  background: linear-gradient(135deg, #FF6B6B, #FFD93D);
  color: white;
  text-align: center;
  padding: 15px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  margin: 0 15px;
  pointer-events: auto;
  border: 5px solid #ffffff;
  border-top: none;
  position: relative;
  transition: background 0.5s;
}

.btn-back {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  color: #FF6B6B;
  font-weight: bold;
  transition: all 0.2s;
}
.btn-back:hover { transform: translateY(-50%) scale(1.1); }
.btn-back:active { transform: translateY(-50%) scale(0.9); }

.header h1 {
  margin: 0;
  font-family: 'Fredoka One', cursive;
  font-size: 26px;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

/* Wrapper untuk menempelkan navigasi dan footer ke dasar layar */
.bottom-ui {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Navigasi Papan Nama Buah (Kiri Kanan) */
.ar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  pointer-events: auto;
  margin: 0 15px;
}

.btn-nav {
  background: white;
  border: 5px solid #4D96FF;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  color: #4D96FF;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-nav:hover { transform: scale(1.1); background: #f0f8ff; }
.btn-nav:active { transform: scale(0.9); border-color: #397CE0; }

.ar-info-card {
  background: white;
  padding: 15px 30px;
  border-radius: 20px;
  border: 5px solid #FFD93D;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  text-align: center;
  min-width: 150px;
  animation: pulse 2s infinite;
  transition: all 0.3s;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 217, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0); }
}

.ar-info-card h2 {
  margin: 0;
  font-family: 'Fredoka One', cursive;
  color: #FF6B6B;
  font-size: 24px; /* Dibuat lebih kecil dari bahasa Inggris */
}

.ar-info-card h3 {
  margin: 5px 0 0 0;
  color: #4D96FF;
  font-size: 46px; /* Kata Bahasa Inggris Dibuat Super Besar */
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.footer {
  background: white;
  margin: 20px;
  padding: 15px 20px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  pointer-events: auto;
  border: 5px solid #6BCB77;
  animation: bounce 2s infinite;
}

.footer p {
  margin: 0;
  color: #6BCB77;
  font-size: 18px;
  font-weight: 900;
}
