/* ========================================================= */
/* ARKAC BALI - Dark Industrial Theme                        */
/* ========================================================= */

:root {
  --bg-black: #000000;
  --card-bg: #111111;
  --border-color: #262626;
  --text-white: #ffffff;
  --text-muted: #e5e7eb;
  --brand-red: #ff0000;
  --brand-red-hover: #cc0000;
  --font-main: 'Poppins', sans-serif;
}

/* ========================================================= */
/* 1. CORE & TYPOGRAPHY OVERRIDES                            */
/* ========================================================= */
body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-main);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-muted-custom {
  color: var(--text-muted) !important;
}

.section-title {
  position: relative;
  padding-left: 15px;
  border-left: 4px solid var(--brand-red);
}

/* Custom Scrollbar Tema Dark Industrial */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}

/* ========================================================= */
/* 2. BRAND BUTTONS & BADGES                                 */
/* ========================================================= */
.btn-crimson {
  background-color: var(--brand-red);
  color: var(--text-white);
  border: 1px solid var(--brand-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 28px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-crimson:hover {
  background-color: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  color: var(--text-white);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.btn-outline-crimson {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--brand-red);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-outline-crimson:hover {
  background-color: var(--brand-red);
  color: var(--text-white);
}

.badge-crimson {
  background-color: var(--brand-red);
  color: var(--text-white);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ========================================================= */
/* 3. NAVIGATION BAR                                         */
/* ========================================================= */
.navbar-custom {
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-white);
  letter-spacing: 2px;
}

.navbar-custom .navbar-brand span {
  color: var(--brand-red);
}

.navbar-custom .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 1px;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--brand-red);
}

/* ========================================================= */
/* 4. CARDS & SUB-BRAND COMPONENTS                            */
/* ========================================================= */
.card-industrial {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-industrial:hover {
  border-color: var(--brand-red);
}

.subbrand-card {
  position: relative;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: block;
  text-decoration: none;
}

/* Optimalisasi Kecerahan Gambar Sub-Brand (Tidak Terlalu Gelap) */
.subbrand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) contrast(1.05);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.subbrand-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.9) contrast(1.1);
}

.subbrand-card .overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.subbrand-badge {
  background-color: rgba(255, 0, 0, 0.2);
  border: 1px solid var(--brand-red);
  color: var(--brand-red);
  font-size: 0.68rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

/* Dynamic Brightness & Hover Zoom untuk Semua Galeri/Card */
.card-industrial img,
.gallery-thumb-card img,
.ratio-16x9-card {
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.card-industrial:hover img,
.gallery-thumb-card:hover img {
  filter: brightness(1.05) contrast(1.1);
  transform: scale(1.04);
}

/* ========================================================= */
/* 5. TABS & FORM CONTROLS                                   */
/* ========================================================= */

/* Pembungkus Tab dengan Efek Indicator Gradient di Kanan */
.menu-tabs-wrapper {
  position: relative;
}

.menu-tabs-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 25px;
  background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.95));
  pointer-events: none;
  z-index: 2;
}

/* Nav Tabs Industrial Base Style */
.nav-tabs-industrial {
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

/* Sembunyikan Scrollbar */
.nav-tabs-industrial::-webkit-scrollbar {
  display: none;
}

.nav-tabs-industrial .nav-item {
  flex: 0 0 auto;
}

.nav-tabs-industrial .nav-link {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 20px;
  margin-bottom: -1px;
  display: block;
  transition: all 0.2s ease;
}

.nav-tabs-industrial .nav-link.active {
  color: var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
  background: transparent;
}

/* OPTIMASI LAYAR HP (MOBILE RESPONSIVE): PRESISI 4 TAB KELIHATAN SEMUA */
@media (max-width: 576px) {
  .menu-tabs-wrapper::after {
    display: none; /* Sembunyikan gradient karena semua tab muat sekaligus */
  }

  .nav-tabs-industrial {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
  }

  .nav-tabs-industrial .nav-item {
    flex: 1 1 auto !important;
    text-align: center;
  }

  .nav-tabs-industrial .nav-link {
    padding: 10px 4px !important;
    font-size: 0.72rem !important; /* Ukuran font disesuaikan presisi untuk HP */
    letter-spacing: 0px !important;
  }
}

/* Form Controls Custom Industrial */
.form-control-industrial,
.form-select-industrial {
  background-color: #1a1a1a;
  border: 1px solid var(--border-color);
  color: var(--text-white);
  border-radius: 6px;
  padding: 12px 16px;
}

.form-control-industrial:focus,
.form-select-industrial:focus {
  background-color: #1a1a1a;
  border-color: var(--brand-red);
  color: var(--text-white);
  box-shadow: none;
}

/* Perbaikan Kontras Warna Placeholder (Jelas & Terbaca) */
.form-control-industrial::placeholder,
.form-select-industrial::placeholder,
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
}

.form-control:focus::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* ========================================================= */
/* 6. MEDIA ASPECT RATIOS & UTILITIES                        */
/* ========================================================= */
.ratio-16x9-card {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.ratio-poster-4x5 {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.ratio-story-9x16 {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
}

.img-contain-fit {
  object-fit: contain !important;
  background-color: #050505;
}

/* Poster Container 4:6 (Dynamic Height - Anti Crop/Terpotong) */
.poster-container-4x6 {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.poster-container-4x6:hover {
  border-color: var(--brand-red);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 0, 0, 0.4);
  transform: translateY(-4px);
}

.poster-img-4x6 {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Alternatif Dynamic Auto Height (Opsional) */
.poster-container-dynamic {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.poster-container-dynamic img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================================= */
/* 7. SECTION BACKGROUNDS & OVERLAYS                         */
/* ========================================================= */
/* RESERVATION SECTION */
.section-reservation-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.reservation-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
  z-index: 1;
}

#reservation .card-industrial {
  background-color: rgba(17, 17, 17, 0.92) !important;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
}

/* UPCOMING EVENT SPOTLIGHT SECTION */
.section-event-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.event-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 0, 0, 0.88) 50%, rgba(0, 0, 0, 0.96) 100%);
  z-index: 1;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.countdown-box:hover {
  border-color: var(--brand-red);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* ABOUT SECTION */
.about-image-wrapper {
  position: relative;
  padding: 10px;
}

.about-img-main {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.about-image-wrapper:hover .about-img-main {
  border-color: var(--brand-red) !important;
  transform: scale(1.01);
}

.about-stat-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: var(--card-bg);
  border: 2px solid var(--brand-red);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  text-align: center;
  z-index: 2;
}

/* Highlight Box Dark Industrial Kontras Tinggi */
.highlight-box {
  background-color: #111111;
  border: 1px solid #262626;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group-highlight:hover .highlight-box {
  background-color: #1a0505; /* Efek merah sangat gelap */
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.25);
  transform: translateY(-2px);
}

.group-highlight:hover span {
  color: #ffffff !important;
}

/* ========================================================= */
/* 8. MOBILE EXPERIENCE & MICRO-INTERACTIONS                  */
/* ========================================================= */

/* Smooth Scrolling Seluruh Halaman */
html {
  scroll-behavior: smooth;
}

/* Fix Fixed Navbar Overlay (Biar pas diklik anchor link, judul section gak ketutupan navbar) */
section {
  scroll-margin-top: 80px; 
}

/* Touch Target Optimization untuk Mobile */
@media (max-width: 768px) {
  .btn, 
  .btn-crimson, 
  .btn-outline-crimson {
    padding: 14px 20px !important;
    font-size: 0.9rem !important;
  }

  .section-reservation-bg,
  .section-event-bg {
    background-attachment: scroll !important;
  }

  .card-industrial {
    padding: 1rem !important;
  }
}

/* Active Tap Feedback */
.btn:active, 
.subbrand-card:active {
  transform: scale(0.97);
}

/* Subtle Hover Glow buat Card di Desktop */
@media (min-width: 992px) {
  .card-industrial:hover {
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.12);
  }
}

/* Custom Gallery Grid & Hover Effect */
.gallery-thumb-card {
  cursor: pointer;
  overflow: hidden;
  background-color: #111;
  border: 1px solid #262626;
  transition: all 0.3s ease-in-out;
}

.gallery-thumb-card img {
  transition: transform 0.4s ease, filter 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-card:hover img {
  transform: scale(1.08);
}

.gallery-thumb-card:hover {
  border-color: #FF0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

/* Clean Minimalist Modal dengan Caption di Dalam Gambar */
#galleryPreviewModal .modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.gallery-modal-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.gallery-modal-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 25px 20px 15px 20px;
  text-align: left;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.gallery-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-modal-close:hover {
  background: #FF0000;
  border-color: #FF0000;
}