/* Future-facing redesign for PT Rumah Keramik Indonesia */
:root {
  --accent: #ff2a33;
  --accent-strong: #e0151e;
  --accent-soft: #ff4d5a;
  --accent-glow: rgba(255, 42, 51, 0.55);
  --ink: #f8fafc;
  --muted: #9aa4b2;
  --bg: #0b0f14;
  --surface: rgba(16, 22, 30, 0.88);
  --surface-2: rgba(23, 28, 38, 0.68);
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(14, 18, 26, 0.6);
  --shadow-1: 0 18px 42px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 36px 90px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --radius-lg: 28px;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-display: "Rajdhani", "Manrope", "Segoe UI", Arial, sans-serif;
  --grid: rgba(255, 255, 255, 0.04);
  --hud-line: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(10, 14, 20, 0.6);
  --nav-text: #f8fafc;

  /* compatibility */
  --primary: var(--accent);
  --card-bg: var(--surface);
}

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

body {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

html[data-theme="light"] {
  --accent: #e50914;
  --accent-strong: #c00f18;
  --accent-soft: #ff5a48;
  --accent-glow: rgba(229, 9, 20, 0.35);
  --ink: #1b1f24;
  --muted: #616b78;
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --line: #e5e7eb;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-1: 0 14px 32px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 28px 64px rgba(15, 23, 42, 0.16);
  --grid: rgba(15, 23, 42, 0.06);
  --hud-line: rgba(15, 23, 42, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-text: #0b1220;
}

html.rki-future body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background-color 0.35s ease, color 0.35s ease;
}

html.rki-future body,
.card,
.card-glass,
.feature-card,
.product-card,
.produk-card,
.stat-card,
.pabrik-card,
.karir-lowongan,
.karir-form,
.kontak-form,
.kontak-info,
.info-card,
.map-container,
.intro-card,
.vision-mission,
.story-card,
.process-card {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

html.rki-future body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  background:
    radial-gradient(1200px 620px at 12% 12%, rgba(255, 42, 51, 0.22), transparent 60%),
    radial-gradient(1100px 600px at 88% 18%, rgba(42, 58, 92, 0.35), transparent 65%),
    linear-gradient(135deg, rgba(6, 10, 18, 0.95), rgba(6, 10, 18, 0));
  z-index: -2;
  pointer-events: none;
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(229, 9, 20, 0.14), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(15, 23, 42, 0.08), transparent 65%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
}

html.rki-future body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
a:not(.btn):hover {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 42, 51, 0.45);
}

.container { width: min(1200px, 92%); margin: 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section { padding: 96px 0; }
.section--soft {
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.88), rgba(10, 14, 20, 0.96));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.section--edge { padding: 72px 0; }
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.section-head {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-head--stack { flex-direction: column; align-items: flex-start; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.section-desc { max-width: 560px; color: var(--muted); margin-top: 8px; }
.section-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 52px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 42, 51, 0.6);
}

.lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.muted { color: var(--muted); }
.accent { color: var(--accent); text-shadow: 0 0 12px rgba(255, 42, 51, 0.5); }
.sp-24 { height: 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #ff6a74);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 42, 51, 0.45), 0 12px 28px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  opacity: 0.35;
  transform: translateY(-35%);
  pointer-events: none;
}
.btn-outline {
  background: rgba(12, 18, 28, 0.6);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
}
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.card-glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(14px);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

/* Storytelling */
.story-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .story-grid { grid-template-columns: 1fr; }
}
.story-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
}
.story-card h3 { margin: 12px 0 6px; font-size: 18px; }
.story-card p { margin: 0; color: var(--muted); }
.story-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 51, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 0 16px rgba(255, 42, 51, 0.3);
}

/* Process highlights */
.process-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}
@media (max-width: 1100px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
}
.process-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
}
.process-card h3 { margin: 12px 0 6px; font-size: 17px; }
.process-card p { margin: 0; color: var(--muted); }
.process-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 42, 51, 0.24), rgba(255, 42, 51, 0.7));
  color: #fff;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 0 14px rgba(255, 42, 51, 0.35);
}

/* Features */
.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.feature-card h3 { margin: 0 0 6px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 42, 51, 0.2), rgba(255, 42, 51, 0.75));
  color: #fff;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 0 18px rgba(255, 42, 51, 0.35);
}

/* Products */
.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  perspective: 1200px;
}
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 42, 51, 0.35);
}
.product-card:hover::after { opacity: 1; }
.product-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.6), rgba(6, 10, 18, 0));
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 16px 18px 20px; }
.product-body h4 { margin: 0 0 6px; font-size: 18px; }
.product-body p { margin: 0; color: var(--muted); }

/* Split layout */
.split {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background: var(--surface);
  backdrop-filter: blur(18px);
}
.media-frame iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }

.checklist {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
  padding: 0;
}
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }
.checklist li { list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.checklist i { color: var(--accent); margin-top: 4px; }

/* Stats */
.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-align: center;
  backdrop-filter: blur(16px);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(255, 42, 51, 0.55);
}
.stat-label { color: var(--muted); font-weight: 600; }

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent);
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee var(--marquee-duration, 28s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
  min-width: 220px;
  height: 92px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
}
.marquee-card img { max-height: 60px; max-width: 100%; object-fit: contain; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Reveal */
.reveal-set .reveal-item {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(2px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}
.reveal-set.in .reveal-item {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-set .reveal-item { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Forms */
.form { display: grid; gap: 14px; }
.input, .textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 24, 0.7);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(14px);
}
.input:focus, .textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 42, 51, 0.25), 0 0 18px rgba(255, 42, 51, 0.2);
}
.textarea { min-height: 120px; resize: vertical; }

/* Intro section after hero */
.intro-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
}

/* Visi & Misi */
.vision-mission {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  line-height: 1.8;
  backdrop-filter: blur(16px);
}
.vision-mission h2, .vision-mission h3 { color: var(--accent); margin-bottom: 12px; }
.vision-mission p { color: var(--muted); }
.vision-mission ul { margin: 0; padding-left: 18px; color: var(--muted); }


/* Produk page */
.produk-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  align-items: end;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
}
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-item label { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 768px) {
  .produk-filter { grid-template-columns: 1fr; }
}
.produk-filter .btn { height: 44px; }
.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  perspective: 1200px;
}
@media (min-width: 1280px) {
  .produk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.produk-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding-bottom: 86px;
  isolation: isolate;
}
.produk-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 42, 51, 0.35);
}
.produk-image {
  background: linear-gradient(160deg, rgba(6, 10, 18, 0.55), rgba(6, 10, 18, 0.25));
  aspect-ratio: 4 / 5;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.produk-image img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; object-position: center; background: transparent; filter: drop-shadow(0 12px 26px rgba(0,0,0,0.2)); transition: transform 0.4s ease; }
.produk-card:hover .produk-image img { transform: scale(1.05); }
.produk-brand,
.modal-brand {
  display: none !important; /* Hilangkan logo badge agar gambar produk lebih jelas */
}
.produk-brand__logo img,
.modal-brand__logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.produk-brand__name,
.modal-brand__name {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.produk-info { padding: 18px 18px 0; background: var(--surface); text-align: center; }
.produk-info h3 { margin: 0 0 6px; }
.produk-cat {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.produk-meta { margin-top: 12px; color: var(--muted); }
.produk-meta--chips { display: flex; flex-wrap: wrap; gap: 10px; }
.produk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 42, 51, 0.08);
  border: 1px solid var(--line);
}
.produk-chip__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.produk-meta .meta-value {
  color: var(--ink);
  font-weight: 800;
}
.produk-cta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px 12px;
  border-radius: 14px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(255, 42, 51, 0.95);
  color: #fff;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 20;
  cursor: pointer;
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.produk-cta:hover {
  background: #ff2a33;
  box-shadow: 0 8px 20px rgba(255, 42, 51, 0.4);
  transform: translateY(-2px);
}
/* .produk-card:hover .produk-cta {
  opacity: 1;
  transform: translateY(0);
} */
@media (hover: none) {
  .produk-cta {
    opacity: 1;
    transform: none;
  }
}
.produk-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 42, 51, 0.16), rgba(255, 42, 51, 0.4));
  color: #ffe2e5;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 12px;
}
html[data-theme="light"] .produk-price {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.16), rgba(229, 9, 20, 0.28));
  color: #b80710;
  box-shadow: 0 10px 22px rgba(229, 9, 20, 0.16);
}
.produk-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.produk-note span { color: var(--accent); font-weight: 700; }
.produk-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}
@supports not (aspect-ratio: 4 / 3) {
  .produk-image { height: 340px; }
  @media (max-width: 480px) { .produk-image { height: 260px; } }
}

/* Pabrik gallery */
.pabrik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.pabrik-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pabrik-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 42, 51, 0.25);
}
.pabrik-image { position: relative; }
.pabrik-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pabrik-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
}
.caption-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(5, 10, 18, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pabrik-card:hover .caption-label { opacity: 1; transform: translateY(-2px); }
.pabrik-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}

/* Karir */
.karir-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; align-items: flex-start; }
@media (max-width: 980px) { .karir-container { grid-template-columns: 1fr; } }
.karir-lowongan, .karir-form {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
}
.karir-form { position: sticky; top: 96px; }
@media (max-width: 980px) { .karir-form { position: static; } }
.karir-form input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(10, 14, 24, 0.55);
}
.karir-upload-note {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(12px);
}
.lowongan-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 12px;
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lowongan-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.job-qual-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.lowongan-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 42, 51, 0.18);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(255, 42, 51, 0.3);
}
.lowongan-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(12, 18, 28, 0.6);
  color: var(--ink);
}
.badge.deadline { background: rgba(255, 42, 51, 0.18); border-color: rgba(255, 42, 51, 0.35); color: #ffb0b6; }
.badge.quota { background: rgba(56, 109, 240, 0.18); border-color: rgba(56, 109, 240, 0.35); color: #a7c2ff; }
.badge.closed { background: rgba(148, 163, 184, 0.18); border-color: rgba(148, 163, 184, 0.35); color: #cbd5f5; }
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #ff6a74);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 42, 51, 0.4), 0 12px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 42, 51, 0.45), 0 16px 32px rgba(0, 0, 0, 0.45);
}
.toggle-btn .arrow { transition: transform 0.3s ease; }
.toggle-btn.active .arrow { transform: rotate(180deg); }

/* Kontak */
.kontak-container { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 980px) { .kontak-container { grid-template-columns: 1fr; } }
.kontak-form, .kontak-info {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
}
.kontak-form .btn,
.karir-form .btn { width: 100%; }
.kontak-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kontak-info li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.kontak-info li i { color: var(--accent); }
.kontak-info li > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.map-embed { width: 100%; height: 260px; border: 0; display: block; }
.info-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.map-container { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 18, 0.9);
  z-index: 100000;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}
.modal.show { opacity: 1; }
body.modal-open { overflow: hidden; }

.modal-panel {
  position: relative;
  width: min(1100px, 94vw);
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  backdrop-filter: blur(18px);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.modal.show .modal-panel { transform: translateY(0); opacity: 1; }
.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 20px;
  align-items: center;
}
.modal-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(6, 10, 18, 0.7), rgba(6, 10, 18, 0.3));
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.modal-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  transform: scale(1.12);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(0,0,0,0.32);
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
}
.modal-eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
}
.modal-body h2 { margin: 0 0 6px; }
.modal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 42, 51, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.modal-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 42, 51, 0.18), rgba(255, 42, 51, 0.42));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  width: fit-content;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-close,
.modal .close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 28px;
  font-weight: 400;
  cursor: pointer;
  z-index: 100002;
  transition: all 0.3s ease;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.modal-close:hover,
.modal .close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg) scale(1.02);
}

.modal-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Let clicks pass through to close */
}

.modal-content-wrapper > * {
  pointer-events: auto;
}

img.modal-content {
  display: block;
  max-width: 600px;
  max-height: 60vh;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px rgba(0, 0, 0, 0.8);
  margin: 0 auto;
  background: transparent;
  padding: 0;
  border: none;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}

.modal.show img.modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Image switch animation classes */
img.modal-content.switching {
  opacity: 0.5;
  transform: scale(0.98);
}

#modalCaption {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  max-width: 800px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s 0.1s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s 0.1s ease;
}

.modal.show #modalCaption {
  transform: translateY(0);
  opacity: 1;
}

/* Navigation Buttons */
.modal-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.modal-nav.prev { left: 32px; }
.modal-nav.next { right: 32px; }

@media (max-width: 960px) {
  .modal-panel { max-height: 94vh; overflow-y: auto; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-media { min-height: 320px; }
  .modal-media img { max-height: 58vh; transform: scale(1.05); }
}

@media (max-width: 768px) {
  .modal { padding: 16px; }
  .modal-media { min-height: 240px; }
  .modal-nav {
    width: 48px;
    height: 48px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
  }
  .modal-nav.prev { left: 16px; }
  .modal-nav.next { right: 16px; }
  
  .modal-close,
  .modal .close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 26px;
    background: rgba(0, 0, 0, 0.5);
  }
  
  img.modal-content { max-width: 95vw; max-height: 70vh; }
  #modalCaption { font-size: 1rem; padding: 0 20px; }
}

/* Light theme overrides */
html[data-theme="light"] .section--soft {
  background: var(--surface-2);
}
html[data-theme="light"] .btn-outline {
  background: var(--glass);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="light"] .input,
html[data-theme="light"] .textarea,
html[data-theme="light"] select {
  background: var(--surface);
}
html[data-theme="light"] .produk-image {
  background: var(--surface-2);
}
html[data-theme="light"] .produk-brand,
html[data-theme="light"] .modal-brand {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 18px rgba(15,23,42,0.12);
}
html[data-theme="light"] .badge {
  background: var(--surface-2);
  color: var(--ink);
}
html[data-theme="light"] .badge.deadline { background: #fff1f2; border-color: #fecaca; color: #b91c1c; }
html[data-theme="light"] .badge.quota { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
html[data-theme="light"] .badge.closed { background: #f3f4f6; border-color: #e5e7eb; color: #6b7280; }
html[data-theme="light"] .produk-cta {
  background: linear-gradient(135deg, #e50914, #ff5a48);
  box-shadow: 0 12px 24px rgba(229, 9, 20, 0.25);
}
html[data-theme="light"] .produk-chip {
  background: rgba(229, 9, 20, 0.08);
  border-color: rgba(229, 9, 20, 0.2);
}
html[data-theme="light"] .pill {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.28);
  color: #b80710;
}
html[data-theme="light"] .modal-price {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.18), rgba(229, 9, 20, 0.3));
  color: #b80710;
  box-shadow: 0 12px 24px rgba(229, 9, 20, 0.15);
}
html[data-theme="light"] .modal-media {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
}
html[data-theme="light"] .caption-label {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}
