/* Global Font */
body {
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
#mainNav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
  box-shadow: none;
  padding: 0.8rem 1rem;
  user-select: text;
}

#mainNav .navbar-brand span {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#mainNav .nav-link {
  font-weight: 500;
  color: #fff;
  /* putih saat transparan */
  margin-left: 1rem;
  transition: color 0.3s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #ffd54f !important;
  /* kuning hover saat transparan */
}

/* Saat discroll keluar hero */
.navbar-scrolled {
  background-color: #E3E3E3 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #bfbfbf;
}

/* Default link di scrolled */
.navbar-scrolled .nav-link {
  color: #000000 !important;
  /* gelap */
}

.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link.active {
  color: #d49300 !important;
  /* kuning hover */
}

/* PT. MULQI SEJAHTERA BERSAMA */
.nama-brand {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;

  /* Gradient emas */
  background: radial-gradient(103.64% 3380.09% at 103.64% 50%, #DBA115 0%, #FEE75B 42.88%, #DBA115 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

}


/* Saat discroll -> brand berubah jadi warna solid */
.navbar-scrolled .nama-brand {
  background: radial-gradient(103.64% 3380.09% at 103.64% 50%, #DBA115 0%, #FEE75B 42.88%, #DBA115 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

section {
  user-select: none;
}

/* CLOSE Navbar */

/* HERO */
/* Hero / Banner Section */
.hero {
  position: relative;
  min-height: 100vh;
  /* full layar */
  background: url("../images/banner/banner.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

svg text {
  /* Outline putih + shadow */
  stroke: #fff;
  stroke-width: 10px;
  paint-order: stroke fill;
  filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.6));
  text-transform: uppercase;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* overlay gelap */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

/* CLOSE HERO */


/* PROJECT SECTION*/
.projectSwiper .swiper-slide {
  display: flex;
  justify-content: center;
}

.projectSwiper .card {
  max-width: 350px;
  /* biar rapi */
  margin: auto;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projectSwiper .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.projectSwiper .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}


.projectSwiper .btn {
  border-radius: 0.5rem;
}

/* CLOSE PROJECT SECTION*/

/* ABOUT */
/* Section About (Visi Misi Sejarah) */
#about {
  position: relative;
  min-height: 100vh;
  background: url("../images/bg/bg-about.png") no-repeat center center/cover;
  user-select: text;
}

#about .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #BF8F29 0%, #AAAAAA 100%);
  opacity: 0.9;
  z-index: 1;
}

#about .container {
  position: relative;
  z-index: 2;
}

#about .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 320px;
  /* batasi lebar card */
  margin: 0 auto;
  /* biar rata tengah di kolom */
  padding: 1.5rem;
  /* isi dalam card */
}

#about .card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

#about .card p {
  font-size: 0.9rem;
  line-height: 1.4;
}

#about .card:hover {
  /* transform: translateY(-8px); */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* CLOSE ABOUT */


/* TESTIMONI */

#testimoni .swiper {
  padding: 20px 10px;
}

#testimoni .swiper-slide {
  display: flex;
  justify-content: center;
}

#testimoni .card {
  width: 100%;
  max-width: 300px;
  /* lebar card */
  height: 500px;
  /* tinggi seragam */
  margin: auto;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
}

/* Project card styles */
#project .project-img-wrapper {
  height: 250px;
  /* Tinggi yang konsisten untuk semua gambar */
  overflow: hidden;
}

#project .project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#project .card {
  height: 100%;
}

#testimoni .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* gambar isi penuh tanpa distorsi */
  border-radius: 1rem;
}

/* CLOSE TESTIMONI */


/* BROSUR */
#brosur .swiper {
  padding: 20px 10px;
  /* tambah padding seperti testimoni */
}

#brosur .card {
  max-width: 600px;
  /* ukuran sedang, tidak terlalu besar */
  margin: auto;
  border-radius: 1rem;
  overflow: visible;
  /* ubah dari hidden ke visible agar overlay tidak terpotong */
}

#brosur .card img {
  width: 100%;
  height: auto;
  /* ubah dari height: 100% ke auto agar tidak terpotong */
  max-height: 400px;
  object-fit: contain;
  /* agar tidak terpotong tapi tetap proporsional */
  border-radius: 1rem;
  /* pindahkan border-radius ke img */
}

.brosurSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  /* tambah padding vertikal untuk ruang hover */
}

/* Brosur Hover Overlay */
.brosur-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.brosur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 1rem;
  z-index: 10;
  /* tambah z-index agar overlay di atas */
}

.brosur-card:hover .brosur-overlay {
  opacity: 1;
}

.brosur-overlay-content {
  text-align: center;
  color: white;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.brosur-overlay-content i {
  color: #dba52f;
}

.brosur-overlay-content p {
  margin: 0;
  font-size: 1.1rem;
  color: white;
}

.brosur-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brosur-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Modal styling akan menggunakan CSS yang sama dengan denah dari project-detail.css */

/* Responsive untuk Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  #brosur .card {
    max-width: 500px;
  }
  
  #brosur .card img {
    max-height: 350px;
  }
}

/* Responsive untuk Tablet kecil/HP besar (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  #brosur .card {
    max-width: 400px;
  }
  
  #brosur .card img {
    max-height: 300px;
  }
}

/* Responsive untuk HP (max 480px) */
@media (max-width: 480px) {
  #brosur .card {
    max-width: 280px;
    margin: 0 10px;
  }
  
  #brosur .card img {
    max-height: 250px;
  }
}

/* Jika layar kecil (HP), jangan terlalu keluar */
@media (max-width: 768px) {
  .brosurSwiper .swiper-button-prev,
  .mySwiper .swiper-button-prev,
  .akadSwiper .swiper-button-prev {
    left: 10px;
  }

  .brosurSwiper .swiper-button-next,
  .mySwiper .swiper-button-next, 
  .akadSwiper .swiper-button-next {
    right: 10px;
  }
}


/* CLOSE BROSUR */

/* Hide swiper buttons in hero section specifically */
.hero .swiper-button-next,
.hero .swiper-button-prev,
section:not([id]) .swiper-button-next,
section:not([id]) .swiper-button-prev {
  display: none !important;
}


/* CONTACT US */
#contact .contact-box {
  background: linear-gradient(135deg, #b8860b, #daa520);
  /* gold gradient */
  color: white;
  padding: 2rem;
  border-radius: 1rem;
}

#contact .form-label {
  display: flex;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: white;
  /* biar label tetap terlihat jelas */
}

#contact .form-control {
  border-radius: 0.5rem;
  border: none;
  padding: 0.75rem 1rem;
}

#contact .form-control:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

#contact .btn-success {
  border-radius: 50px;
  padding: 0.6rem 2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #28a745;
  border: none;
}

#contact .btn-success:hover {
  background-color: #218838;
  transform: scale(1.05);
}

/* Atur spacing antar kolom */
#contact .row .col-md-6 {
  margin-bottom: 1rem;
}

/* Agar input full width di HP */
@media (max-width: 768px) {
  #contact .row .col-md-6 {
    margin-bottom: 1.5rem;
  }
}


/* CLOSE Contact Us */



/* FOOTER */
.footer {
  background-color: #E3E3E3;
  user-select: text;
}

.nama-brand-mini {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;

  /* Gradient emas */
  background: radial-gradient(103.64% 3380.09% at 103.64% 50%, #DBA115 0%, #FEE75B 42.88%, #DBA115 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

}

.footer h5 {
  margin-bottom: 1rem;
  color: #ffd54f;
  /* warna kuning highlight */
}

.footer a:hover {
  color: #ffd54f !important;
}

.footer h6 {
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .footer .row>div {
    text-align: center !important;
  }

  .footer .d-flex {
    justify-content: center !important;
  }
}

/* CLOSE FOOTER */

/* ========================== */
/* RESPONSIVE FIX NAVBAR OVERLAP */
/* ========================== */
@media (max-width: 576px) {

  #mainNav .container,
  #mainNav .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* jangan biar turun ke bawah */
  }

  /* Logo */
  #mainNav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    /* jarak logo - teks */
    flex-shrink: 1;
    /* biar bisa mengecil */
    min-width: 0;
    /* penting biar text bisa wrap/ellipsis */
  }

  #mainNav .navbar-brand img {
    height: 32px;
    /* kecilin logo */
    flex-shrink: 0;
    /* jangan sampai logo ilang */
  }

  #mainNav .nama-brand {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    /* batasi lebar teks brand */
  }

  /* Tombol hamburger */
  #mainNav .navbar-toggler {
    padding: 4px 6px;
    font-size: 1rem;
    margin-left: auto;
    /* dorong ke kanan */
    flex-shrink: 0;
  }
}

/* Style tombol swiper khusus project, testimoni, brosur */
.projectSwiper .swiper-button-next,
.projectSwiper .swiper-button-prev,
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev,
.brosurSwiper .swiper-button-next,
.brosurSwiper .swiper-button-prev {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #b8860b;
  /* emas */
  color: #fff;
  border: 3px solid #fff;
  /* border putih */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.projectSwiper .swiper-button-next::after,
.projectSwiper .swiper-button-prev::after,
.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after,
.brosurSwiper .swiper-button-next::after,
.brosurSwiper .swiper-button-prev::after {
  font-size: 20px;
  font-weight: bold;
}

/* Hover effect */
.projectSwiper .swiper-button-next:hover,
.projectSwiper .swiper-button-prev:hover,
.mySwiper .swiper-button-next:hover,
.mySwiper .swiper-button-prev:hover,
.brosurSwiper .swiper-button-next:hover,
.brosurSwiper .swiper-button-prev:hover {
  background: #d4a017;
  /* emas lebih terang saat hover */
}