:root{
  --primary: #090f5f;
}

*{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: "Poppins", sans-serif;
}

/* ================= NAVBAR ================= */
.navbar{
  padding: 14px 0;
  z-index: 100;
  transition: all 0.3s ease;
}

/* navbar awal (transparan) */
.bg-transparent{
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* navbar saat scroll */
.nav-color{
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ================= LOGO ================= */
.navbar-brand{
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

.navbar-brand img{
  width: 26px;
}

.brand-text{
  color: inherit;
}

/* ================= MENU ================= */
.navbar-nav .nav-link{
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover{
  opacity: 0.8;
}

.navbar-nav .nav-link.active{
  font-weight: 600;
}

/* warna menu saat navbar putih */
.nav-color .nav-link,
.nav-color .brand-text{
  color: #000;
}

/* ================= BUTTON ================= */
.nav-action .btn{
  font-size: 14px;
  padding: 6px 16px;
}

/* ================= HERO HOME ================= */
.hero-home {
  position: relative;
  height: 100vh;
  background: url("../asset/desain2.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(4,12,60,.85),
    rgba(4,12,60,.5),
    rgba(4,12,60,.2)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: 80px;
  padding-top: 180px;
  color: #fff;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 68px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 32px;
}

/* ================= BUTTON HERO ================= */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 18px 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: .3s ease;
}

.btn-hero::after {
  content: "→";
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

/* ================= SEARCH SECTION ================= */
#search {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("../asset/interior4.jpeg") center / cover no-repeat;
}

#search h2 {
  font-size: 48px;
  font-weight: 600;
  color: #fff;
}

#search p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* ================= TABS ================= */
.nav-tabs {
  border: none;
}

.nav-tabs .nav-link {
  background: rgba(255,255,255,.6);
  border: none;
  padding: 12px 24px;
  color: #000;
}

.nav-tabs .nav-link.active {
  background: #fff;
  color: var(--primary);
  font-weight: 500;
  border-radius: 8px 8px 0 0;
}

.tab-content {
  background: rgba(255,255,255,.95);
  border-radius: 0 0 12px 12px;
}

/* ================= SEARCH BOX ================= */
.input-cari {
  height: 72px;
  flex-wrap: nowrap;
}

.input-cari .button-secondary {
  min-width: 180px;
  background: #f8f8f8;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  white-space: nowrap;
}

.input-cari .form-control {
  height: 72px;
  border: none;
  font-size: 16px;
}

.input-cari .form-control:focus {
  box-shadow: none;
}

.input-cari .button-primary {
  height: 72px;
  padding: 0 36px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 0 12px 12px 0;
}

/* ================= ICON ================= */
.icon-input {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ================= ABOUT PERUSAHAAN ================= */
.about-section {
  background: #f8f9fa;
}

.about-section .about-photo {
  flex: 1 1 300px; /* fleksibel dan responsif */
}

.about-section .about-photo img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border: 4px solid var(--primary); /* border kotak */
  border-radius: 8px; /* sudut sedikit membulat */
}

.about-section .about-text {
  flex: 2 1 400px; /* lebih lebar untuk teks */
}

.about-section .about-text h2 {
  font-size: 40px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-section .about-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

@media (max-width: 991px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-section .about-photo img {
    margin: 0 auto 15px;
  }
}

/* ================= REKOMENDASI ================= */
.rekomendasi-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.filter-buttons button {
  border: none;
  padding: 10px 22px;
  margin: 5px;
  border-radius: 30px;
  background: #ddd;
  cursor: pointer;
  transition: .3s;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: #0a1b4f;
  color: #fff;
}

/* GALERI */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 15px;
  animation: fadeUp .6s ease;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: pointer;
  transition: transform .4s;
}

.gallery-item img:hover {
  transform: scale(1.08);
}

/* ANIMASI */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* POPUP */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* ================= FITUR SECTION ================= */
#Fitur {
  position: relative;
  padding: 80px 0;
  background: #f8f9fa;
}

/* row scrollable */
#Fitur .col-12.d-flex {
  overflow-x: auto;                 /* aktifkan scroll horizontal */
  scroll-behavior: smooth;          /* smooth scroll */
  -webkit-overflow-scrolling: touch; /* smooth di mobile */
  gap: 16px;                        /* jarak antar card */
  padding-bottom: 16px;
}

/* sembunyikan scroll bar di desktop */
#Fitur .col-12.d-flex::-webkit-scrollbar {
  display: none;
}

/* CARD FITUR */
.card-fitur {
  flex: 0 0 auto;                   /* card tidak shrink */
  width: 260px;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid transparent;
  display: flex;
  align-items: stretch;
}

/* gambar */
.card-fitur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay card */
.card-fitur .overlay {
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

/* hover overlay */
.card-fitur:hover .overlay {
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

/* isi overlay */
.overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* teks overlay */
.card-fitur h5 {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-fitur button.btn-open-gallery {
  background-color: var(--primary);
  color: #fff;
  border: none;
  width: 150px;
  height: 45px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
}

.card-fitur button.btn-open-gallery:hover {
  opacity: 0.85;
}

/* tombol panah scroll */
.button-arrow-left,
.button-arrow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.button-arrow-left { left: -20px; }
.button-arrow-right { right: -20px; }

/* ================= POPUP GALERI ================= */
#popup-gallery {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
}

#popup-gallery .popup-inner {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  width: 800px;
}

#popup-gallery .popup-inner h3 {
  text-align: center;
  margin-bottom: 20px;
}

#popup-gallery .popup-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

#popup-gallery .popup-images img {
  max-width: 30%;
  cursor: pointer;
  border-radius: 8px;
}

#popup-gallery .popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
}


/*contact*/
/* ================= CONTACT SECTION ================= */
#Contact {
  background-image: url(../asset/interior1.jpg);
  margin-top: 158px;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

#Contact .overlay {
  background: rgba(0, 0, 0, 0.55);
}

#Contact .container {
  padding: 120px 0;
}

/* teks kiri */
#Contact h3 {
  font-weight: 600;
  font-size: 40px;
  line-height: 56px;
  color: #fff;
  max-width: 460px;
}

/* sub judul */
#Contact h6 {
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin: 24px 0 12px;
}

/* ================= KONTAK ITEM ================= */
#Contact .mb-3 {
  display: flex;
  align-items: center;
  gap: 14px;
}

#Contact .mb-3 img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.kontak a,
#Contact a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

/* sosial media */
#Contact .sosial-media {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

#Contact .sosial-media img,
#Contact a img {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  display: block;
}

#Contact .rmg {
  font-size: 16px;
  color: #fff;
}

/* ================= CARD FORM ================= */
.card-contact {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
}

.card-contact h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  text-align: center;
}

.button-kontak {
  width: 100%;
  background-color: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.button-kontak:hover {
  background-color: #050949;
}

/* ================= FOOTER ================= */
footer {
  width: 100%;
  background: #000;
  padding: 40px 0 70px;
  position: relative;
}

/* logo footer */
.logo-footer{
  height: 26px;
  width: auto;
}

.footer-brand {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.footer-brand:hover {
  color: #fff; /* tetap putih saat hover */
}


footer a {
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

footer .col-md-5 a {
  font-size: 16px;   /* kecilkan di sini */
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

footer .col-md-5 a:hover {
  color: #fff;
}


/* menu footer */
footer .col-md-5 a {
  font-size: 18px;
}

/* copyright */
.copyright {
  bottom: 16px;
  font-size: 14px;
  color: #fff;
  text-align: center;
}

footer .border-top p {
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
}


