/* CSS VARIABLES UNTUK DUAL-THEME */
:root {
  --gold-light: #4A90E2;
  /* Aksen Biru Tech */
  --gold-dark: #0056b3;
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold-dark));

  /* Light Mode Default */
  --bg-main: #f4f6f9;
  --bg-card: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --border-color: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.9);
  --bottom-nav-bg: rgba(255, 255, 255, 0.95);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --input-bg: rgba(0, 0, 0, 0.03);
  --social-bg: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  /* Dark Mode */
  --bg-main: #0f1014;
  --bg-card: #1c1d22;
  --text-main: #ffffff;
  --text-muted: #8e8e93;
  --border-color: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(15, 16, 20, 0.85);
  --bottom-nav-bg: rgba(28, 29, 34, 0.95);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  --input-bg: rgba(255, 255, 255, 0.05);
  --social-bg: rgba(255, 255, 255, 0.05);
}

/* GLOBAL STYLES */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.text-main {
  color: var(--text-main) !important;
}

.text-muted-custom {
  color: var(--text-muted) !important;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-main);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  padding-bottom: 80px;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.btn-action {
  background: var(--gold-gradient);
  color: #fff;
  border-radius: 12px;
  font-weight: bold;
  padding: 12px;
  border: none;
  width: 100%;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-action:active {
  transform: scale(0.98);
}

.premium-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s;
}

.premium-card:active {
  transform: scale(0.98);
}

.list-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.product-img-grid {
  height: 120px;
  width: 100%;
  overflow: hidden;
}

.product-img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-img-container {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.detail-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filter-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 5px;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  transition: 0.3s;
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
  font-weight: bold;
}

.tech-badge {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  color: var(--text-main);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
}

.timeline-mini {
  border-left: 2px solid var(--border-color);
  padding-left: 15px;
  margin-left: 10px;
  margin-top: 10px;
}

.timeline-mini-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-mini-item:last-child {
  margin-bottom: 0;
}

.timeline-mini-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 5px var(--gold-light);
}

/* Style List Prestasi */
.prestasi-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.prestasi-list li {
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Style Link Kontak */
.contact-card-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--social-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: 0.3s;
}

.contact-card-item:hover {
  background: var(--gold-light);
  color: #fff !important;
  border-color: var(--gold-light);
}

.contact-card-item i {
  font-size: 24px;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.contact-card-item span {
  font-size: 14px;
  font-weight: bold;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--bottom-nav-bg);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-around;
  padding: 10px 15px 25px 15px;
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  width: 20%;
  transition: color 0.3s;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
  transition: 0.2s;
}

.nav-item.active {
  color: var(--gold-light);
}

.nav-item.active i {
  transform: translateY(-3px);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 4px;
  background: var(--gold-gradient);
  border-radius: 0 0 4px 4px;
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--gold-light);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Modal untuk Zoom Sertifikat */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.image-modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 480px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover {
  color: #bbb;
}

.form-control-custom {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  width: 100%;
  transition: 0.3s;
}

.form-control-custom:focus {
  background: var(--input-bg);
  border-color: var(--gold-light);
  color: var(--text-main);
  outline: none;
  box-shadow: none;
}

.form-control-custom::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}