@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap");

:root {
  --bg-main: #080d14;
  --bg-card: #0d1520;
  --bg-card-hover: #111e2e;
  --bg-elevated: #121c2b;
  --text-main: #e8f0fe;
  --text-muted: #6b82a0;
  --text-soft: #94aac4;
  --accent: #00c2ff;
  --accent-dim: rgba(0, 194, 255, 0.12);
  --accent-hover: #00a8dd;
  --accent-glow: rgba(0, 194, 255, 0.35);
  --green: #00e5a0;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 194, 255, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 194, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  margin: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.main-content {
  flex: 1;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
header {
  background: rgba(8, 13, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 15px 24px;
  display: flex;
  flex-direction: row; 
  justify-content: space-between; 
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap; 
  gap: 15px;
}

header::after {
  display: none; 
}

.header-text h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.75em;
  letter-spacing: -0.03em;
  text-align: left; 
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-text p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-weight: 400;
  text-align: left; 
  font-size: 0.85em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── FOOTER ── */
footer {
  background: rgba(8, 13, 20, 0.9);
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82em;
  letter-spacing: 0.02em;
}

footer .footer-brand {
  color: var(--accent);
  font-weight: 600;
}

.social-links {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  background: var(--bg-card);
}

.social-icon:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── NAV TABS ── */
.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0; 
  flex-wrap: wrap;
}

.nav-tabs button {
  background: var(--bg-card);
  color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 10px 18px; 
  cursor: pointer;
  border-radius: 8px;
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.nav-tabs button:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-tabs button.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border-hover);
  box-shadow:
    0 0 20px rgba(0, 194, 255, 0.15),
    inset 0 0 12px rgba(0, 194, 255, 0.05);
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  padding: 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow: var(--shadow-card);
  animation: cardFadeUp 0.5s ease both;
}

.card:nth-child(1) {
  animation-delay: 0.05s;
}
.card:nth-child(2) {
  animation-delay: 0.1s;
}
.card:nth-child(3) {
  animation-delay: 0.15s;
}
.card:nth-child(4) {
  animation-delay: 0.2s;
}
.card:nth-child(5) {
  animation-delay: 0.25s;
}
.card:nth-child(6) {
  animation-delay: 0.3s;
}

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

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.card-img-wrapper {
  width: 100%;
  padding-top: 72%;
  position: relative;
  background: #04080f;
  overflow: hidden;
}

.card-img-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(13, 21, 32, 0.7), transparent);
  pointer-events: none;
}

.card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.card:hover .card img,
.card:hover img {
  transform: scale(1.04);
}

.card-content {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
}

.card h3 {
  margin: 0 0 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card p.harga {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05em;
  margin: 0;
  letter-spacing: -0.01em;
}

/* empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  margin-bottom: 16px;
}

/* ── FORM KONSULTASI ── */
.form-container {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  animation: cardFadeUp 0.4s ease both;
}

.form-card {
  background: var(--bg-card);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.form-card h2 {
  margin: 0 0 8px;
  font-family: "DM Sans", sans-serif;
  color: var(--accent);
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form-card > p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
  font-size: 0.95em;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.88em;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.08);
  background: rgba(0, 194, 255, 0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-size: 0.9em;
}

/* ── BUTTONS ── */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #25d366, #1db954);
  color: white;
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2dde6e, #22c55e);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-elevated);
  width: 92%;
  max-width: 900px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 92vh;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 194, 255, 0.05);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
    overflow: hidden;
  }
  .modal-gallery {
    width: 55%;
    overflow-y: auto;
    padding: 24px;
    background: #04080f;
  }
  .modal-info {
    width: 45%;
    padding: 32px;
    overflow-y: auto;
  }
}

.main-img-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #000;
}

.main-img-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  aspect-ratio: 4/3;
  transition: transform 0.4s ease;
}

.thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnails::-webkit-scrollbar {
  height: 3px;
}
.thumbnails::-webkit-scrollbar-track {
  background: transparent;
}
.thumbnails::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.thumbnails img {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  flex-shrink: 0;
}

.thumbnails img:hover,
.thumbnails img.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-soft);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
  font-family: inherit;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.modal-info h2 {
  margin: 0 0 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-info .harga-detail {
  color: var(--accent);
  font-size: 1.6em;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  font-family: "DM Sans", sans-serif;
}

.modal-info h4 {
  margin: 24px 0 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78em;
  font-weight: 500;
}

.modal-info p {
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 24px;
  white-space: pre-wrap;
  font-size: 0.95em;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
