/*
================================================
  PENGATURAN DASAR, TIPOGRAFI, & GAYA UMUM
================================================
*/

/* --- Pengaturan Dasar Body & HTML --- */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

html {
  font-size: 100%;
}

body {
  background: #ffffff;
  font-family: 'Source Sans Pro', sans-serif;
  font-style: normal;
  font-weight: 300;
  position: relative;
}

/* --- Box Sizing Reset --- */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

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

/* --- Tipografi (Headings, Paragraphs, Links) --- */
h1,
h2,
h3,
h4 {
  font-weight: 300;
}

h1 {
  font-size: 32px;
  line-height: 48px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 8px;
}

h2 {
  color: #e35536;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h3 {
  color: #2c4d36;
  font-size: 20px;
  letter-spacing: 0px;
  line-height: 34px;
}

p {
  color: #2c4d36;
  font-size: 20px;
  letter-spacing: 0px;
  line-height: 34px;
}

a {
  color: #e35536;
  transition: 0.5s;
  text-decoration: none !important;
}

a:hover,
a:active,
a:focus {
  color: #e35536;
  outline: none;
}

/* --- Komponen Tombol (Button) --- */
.btn {
  border: none;
  border-radius: 10px;
  transition: all 0.4s ease-in-out;
}

.btn:focus {
  background: #e35536;
  border-color: transparent;
}

.btn-success {
  background: #e35536;
  font-weight: 300;
  letter-spacing: 2px;
  padding: 14px 32px;
  margin-top: 26px;
}

.btn-success:hover {
  background: #222;
}


/*
================================================
  KOMPONEN & STRUKTUR HALAMAN
================================================
*/

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.sk-spinner-pulse {
  width: 60px;
  height: 60px;
  background-color: #e35536;
  border-radius: 100%;
  margin: 40px auto;
  animation: sk-pulseScaleOut 1s infinite ease-in-out;
}

@keyframes sk-pulseScaleOut {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* --- Navigasi Utama --- */
.navbar-default {
  background: #ffffff;
  box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.04);
  border: none;
  margin-bottom: 0px !important;
}

.navbar-default .navbar-brand {
  color: #2c4d36;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0;
}

.navbar-default .navbar-nav li a {
  color: #777;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.4s ease-in-out;
  padding: 0 22px;
}

.navbar-default .navbar-nav li a span {
  position: relative;
  display: block;
  padding-bottom: 2px;
}

.navbar-default .navbar-nav li a span:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #2c4d36;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.navbar-default .navbar-nav li a:hover span:before,
.navbar-default .navbar-nav li.active a span:before {
  visibility: visible;
  transform: scaleX(1);
}

.navbar-default .navbar-nav>li a:hover {
  color: #2c4d36 !important;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
  color: #777;
  background-color: transparent;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
  color: #2c4d36;
  background-color: transparent;
}

.navbar-default .navbar-toggle {
  border: none;
  padding-top: 10px;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #2c4d36;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: transparent;
}


/* --- Struktur Section Umum--- */
.section-title {
  padding-bottom: 62px;
}

#about,
#gallery,
#contact {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
}

#gallery,
#contact,
footer {
  text-align: center;
}

.overlay {
  background: #2c4d36;
  opacity: 0.9;
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}

/*
================================================
  GAYA SPESIFIK PER BAGIAN (SECTION)
================================================
*/

/* --- Bagian: Home --- */
#home {
  display: flex;
  align-items: center;
  height: 100vh;
  text-align: center;
}

#home h1 {
  color: #ffffff;
}

#home .col-md-8 {
  padding-left: 62px;
}

#home p {
  color: #f9f9f9;
}

/* --- Bagian: About --- */
#about {
  background: #f0f0f0;
}

#about .section-title {
  padding-top: 82px;
}

#about .section-title h1 {
  margin-bottom: 0px;
  padding-bottom: 0px;
}

#about .about-thumb {
  background: #ffffff;
  border-radius: 20px;
  padding: 100px;
  position: relative;
  filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.2));
}

#about .about-img img {
  border: 8px solid #ffffff;
  position: absolute;
  left: -120px;
  bottom: -325px;
  padding: 12px;
  filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.2));
}

/* --- Komponen Tim di Bagian About (FINAL) --- */
#about .team-thumb {
  width: 100%; /* Membuat lebar fleksibel */
  max-width: 360px; /* Menetapkan batas lebar maksimal untuk desktop */
  height: 400px;
  margin-top: 50px; /* TAMBAHKAN BARIS INI */
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  transition: all 0.3s ease;
  padding-bottom: 50px;
  position: relative;
  display: inline-block;
  vertical-align: top;
}

/* --- Perbaikan Animasi Terpotong di Desktop --- */
#about .owl-item:hover {
  z-index: 10;
}

#about .team-thumb:hover {
  background: #2c4d36;
}

#about .team-thumb .image-holder {
  position: relative;
  top: 40px;
  display: inline-block;
  margin-bottom: 40px;
  padding: 10px;
  transition: all 0.3s ease;
}

#about .team-thumb:hover .image-holder {
  top: -40px;
  margin-bottom: 0px;
}

#about .team-thumb .heading {
  font-weight: bold;
  position: relative;
  top: 10px;
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#about .team-thumb:hover .heading {
  top: -50px;
}

#about .team-thumb .description {
  font-size: 18px;
  width: 80%;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative; /* DITAMBAHKAN */
  top: 0;             /* DITAMBAHKAN */
}

#about .team-thumb:hover .description {
  opacity: 1;
  transform: scale(1);
  top: -40px; /* DITAMBAHKAN: Deskripsi ikut naik */
}

#about .team-thumb:hover p.description {
  color: #ffffff;
}

.team-social-icons {
  opacity: 0;
  transform: scale(0.5);
  transition: all 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
}

#about .team-thumb:hover .team-social-icons {
  opacity: 1;
  transform: scale(1);
}

.team-social-icons a {
  font-size: 22px;
  margin: 0 10px;
  color: #ffffff;
}

.team-social-icons a:hover {
  color: #e35536;
  transform: scale(1.1);
}


/* --- Bagian: Gallery --- */
#gallery {
  background: #ffffff;
}

#gallery .gallery-thumb {
  background-color: #ffffff;
  box-shadow: 0px 1px 2px 0px rgba(90, 91, 95, 0.15);
  cursor: pointer;
  display: block;
  margin-bottom: 25px;
  position: relative;
  top: 0px;
  transition: all 0.4s ease-in-out;
}

#gallery .gallery-thumb:hover {
  box-shadow: 0px 16px 22px 0px rgba(90, 91, 95, 0.3);
  top: -5px;
}

#gallery .gallery-thumb img {
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  width: 100%;
}


/* --- Bagian: Contact & Footer --- */
#contact,
footer {
  background: #2c4d36;
  color: #ffffff;
}

footer {
  padding-bottom: 80px;
}

#contact p,
footer p {
  color: #f9f9f9;
}

#contact .form-control {
  background: transparent;
  box-shadow: none;
  border: 1px solid #f9f9f9;
  color: #ccc;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 14px;
  transition: all 0.4s ease-in-out;
}

#contact .form-control:focus {
  border-color: #e35536;
  color: #ffffff;
}

#contact input {
  height: 55px;
}

#contact input[type="submit"] {
  background: #e35536;
  border: none;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 1px;
}

#contact input[type="submit"]:hover {
  background: #222;
  color: #ffffff;
}

/* --- Ikon Sosial Media (Umum) --- */
.social-icon {
  padding: 0;
  margin: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
}

.social-icon li a {
  border-radius: 10px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 20px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  margin: 10px 10px 42px 10px;
  padding: 0px;
  display: inline-block;
}

.social-icon li a:hover {
  background: #ffffff;
  color: #e35536;
}

/*
================================================
  KOMPONEN TAMBAHAN
================================================
*/

/* --- Tombol "Back to Top" --- */
.go-top {
  background-color: #ffffff;
  box-shadow: 1px 1.732px 12px 0px rgba(0, 0, 0, .14), 1px 1.732px 3px 0px rgba(0, 0, 0, .12);
  transition: all 1s ease;
  bottom: 2em;
  right: 2em;
  color: #222;
  font-size: 26px;
  display: none;
  position: fixed;
  text-decoration: none;
  width: 40px;
  height: 40px;
  line-height: 35px;
  text-align: center;
  border-radius: 100%;
}

.go-top:hover {
  background: #e35536;
  color: #ffffff;
}

/* --- Kontainer Video YouTube --- */
.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  padding-top: 56.25%;
  margin: 30px auto 0;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/*
================================================
  MODAL POPUP (VERSI OPTIMAL)
================================================
*/
body.modal-open {
  overflow: hidden !important;
}

.custom-modal {
  display: none;
  position: fixed !important;
  z-index: 999999 !important;
  left: 0;
  top: 0;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
  justify-content: center;
  align-items: center;
}

.custom-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.custom-modal-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  position: relative;
  text-align: center;
  animation: fadeInUp 0.4s ease-out;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* --- Konten di dalam Modal --- */
.custom-modal-content img.slideshow-img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.slide-caption {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

.wa-button {
  margin-top: 20px;
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
}

.modal-list-wrapper ul {
  text-align: left;
  padding-left: 20px;
}

/* Navigasi Slideshow Modal */
.slide-nav {
  margin: 10px 0;
}

.slide-nav button {
  padding: 8px 12px;
  margin: 0 5px;
  font-size: 16px;
  cursor: pointer;
  background: #f0f0f0;
  border: 1px solid #ccc;
}

/* Animasi Modal */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*
================================================
  RESPONSIVE DESIGN (MEDIA QUERIES)
================================================
*/

@media (max-width: 980px) {
  #about .team-thumb {
    margin: 32px auto;
    /* Center a thumb if it's alone in a row */
  }
}

@media (max-width: 768px) {

  #home,
  .overlay {
    height: 100vh;
  }

  #about .about-thumb {
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
  }

  #about .col-md-3 img {
    position: relative;
    top: 0;
    left: 0;
  }

  /* Navigasi pada layar kecil */
  .navbar-default .navbar-nav li a span:before {
    background: transparent !important;
  }

  .navbar-default .navbar-nav li.active a {
    color: #2c4d36 !important;
    background: transparent;
  }
}

@media (max-width: 650px) {
  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 18px;
  }

  img {
    width: 100%;
  }

  #about,
  #gallery,
  #contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
