/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:wght@500;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
/* Pusat pengaturan warna, font, dan ukuran */
:root {
  --header-height: 3rem;
  --hue-color: 190;
  --first-color: hsl(var(--hue-color), 64%, 22%);
  --first-color-second: hsl(var(--hue-color), 64%, 22%);
  --first-color-alt: hsl(var(--hue-color), 64%, 15%);
  --title-color: hsl(var(--hue-color), 64%, 18%);
  --text-color: hsl(var(--hue-color), 24%, 35%);
  --text-color-light: hsl(var(--hue-color), 8%, 60%);
  --input-color: hsl(var(--hue-color), 24%, 97%);
  --body-color: hsl(var(--hue-color), 100%, 99%);
  --white-color: #fff;
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 75%);
  --body-font: "Open Sans", sans-serif;
  --title-font: "Raleway", sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --font-medium: 500;
  --font-semi-bold: 600;
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*=============== PENGATURAN MODE GELAP ===============*/
body.dark-theme {
  --first-color-second: hsl(var(--hue-color), 54%, 12%);
  --title-color: hsl(var(--hue-color), 24%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 29%, 12%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

/*=============== DASAR & PENGATURAN UMUM ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}
h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--title-font);
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  cursor: pointer;
  border: none;
}
.main {
  overflow-x: hidden;
}

/*=============== KELAS BANTUAN (Reusable) ===============*/
.section {
  padding: 4.5rem 0 2.5rem;
}
.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-2);
}
.container {
  max-width: 968px;
  margin-left: var(--mb-1);
  margin-right: var(--mb-1);
}
.grid {
  display: grid;
  gap: 1.5rem;
}
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  transition: 0.3s;
}
.button:hover {
  background-color: var(--first-color-alt);
}

/*=============== HEADER & NAVIGASI ===============*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
  transition: background-color 0.4s;
}
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo,
.nav__toggle {
  color: var(--white-color);
}
.nav__logo {
  font-weight: var(--font-semi-bold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__logo-img {
  width: 70px;
  height: 70px;
}
.nav__toggle {
  font-size: 1.2rem;
  cursor: pointer;
}
.nav__menu {
  position: relative;
}
.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}
.nav__link {
  color: var(--text-color-light);
  font-weight: var(--font-semi-bold);
}
.nav__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}
.nav__dark {
  display: flex;
  align-items: center;
  column-gap: 2rem;
  position: absolute;
  left: 3rem;
  bottom: 4rem;
}
.change-theme {
  color: var(--text-color);
  cursor: pointer;
  font-size: 1rem;
}
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 0 4px rgba(14, 55, 63, 0.15);
}
.scroll-header .nav__logo,
.scroll-header .nav__toggle {
  color: var(--title-color);
}

/*=============== SLIDER GAMBAR DI HALAMAN UTAMA (HOME) ===============*/
.home {
  position: relative;
  height: 100vh;
  align-content: center;
}
.home__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.home__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.home__slide.active-slide {
  opacity: 1;
}
.home__slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
  z-index: 2;
}
.slider__arrow {
  font-size: 2.5rem;
  color: var(--white-color);
  cursor: pointer;
  background-color: hsla(0, 0%, 0%, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.slider__arrow:hover {
  background-color: hsla(0, 0%, 0%, 0.4);
}
.home__container {
  position: relative;
  z-index: 3;
  height: calc(100vh - var(--header-height));
  align-content: center;
  row-gap: 3rem;
}
.home__data-subtitle,
.home__data-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.home__data-subtitle {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white-color) !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--mb-0-5);
  line-height: 1.2;
}

.home__data-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white-color) !important;
  margin-bottom: var(--mb-2-5);
}

.subtitle-small {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 1px;
}
.home__social {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}
.home__social-link {
  font-size: 1.2rem;
  width: max-content;
  color: var(--white-color);
}

/*=============== SEKSI TENTANG KAMI (ABOUT) ===============*/
.about__container {
  row-gap: 2.5rem;
}
.about__data {
  text-align: center;
}
.about__description {
  margin-bottom: var(--mb-2);
}
.about__img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.about__img-overlay {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px hsla(var(--hue-color), 24%, 15%, 0.1);
}
.about__img-one,
.about__img-two {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}
.about__img-one:hover,
.about__img-two:hover {
  transform: scale(1.1);
}

/*=============== SEKSI SEJARAH (HISTORY) ===============*/
.discover__container {
  padding-top: 2rem;
}

/* ========================================================== */
/* KODE PERBAIKAN UNTUK GAMBAR DI SEKSI INFO PELANGGAN        */
/* ========================================================== */
.place__container {
  grid-template-columns: repeat(2, 1fr); /* Membuat 2 kolom di mobile */
  justify-content: center;
  gap: 1.5rem;
}
.place__card {
  position: relative;
  overflow: hidden;
  height: auto; /* Hapus tinggi tetap */
  aspect-ratio: 4 / 3; /* PAKSA BENTUK KOTAK (4:3) YANG PROPORSIONAL */
}
.place__img {
  width: 100%;
  height: 100%; /* Buat gambar mengisi seluruh area kartu */
  object-fit: cover; /* Pastikan gambar tidak gepeng dan menutupi area */
  transition: 0.3s;
}
.place__card:hover .place__img {
  transform: scale(1.1);
}
.place__content,
.place__title {
  color: var(--white-color);
}
.place__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
  background: hsla(0, 0%, 0%, 0.3);
}
.place__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  margin-bottom: var(--mb-1-25);
}
.place__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
}
/* ========================================================== */
/* AKHIR DARI KODE PERBAIKAN                                  */
/* ========================================================== */

/*=============== SEKSI HUBUNGI KAMI (SUBSCRIBE) ===============*/
.subscribe__bg {
  background-color: var(--first-color-second);
  padding: 2.5rem 0;
}
.subscribe__title,
.subscribe__description {
  color: var(--white-color);
}
.subscribe__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
}
.subscribe__container {
  text-align: center;
}

/*=============== FOOTER ===============*/
.footer__container {
  row-gap: 5rem;
}
.footer__content {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}
.footer__title,
.footer__subtitle {
  font-size: var(--h3-font-size);
}
.footer__title {
  margin-bottom: var(--mb-0-5);
}
.footer__description {
  margin-bottom: var(--mb-2);
}
.footer__subtitle {
  margin-bottom: var(--mb-1);
}
.footer__item {
  margin-bottom: var(--mb-0-75);
}
.footer__link {
  color: var(--text-color);
}
.footer__link:hover {
  color: var(--title-color);
}
.footer__rights {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  text-align: center;
}
.footer__copy {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/*=============== SCROLL UP BUTTON ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  padding: 0.5rem;
  display: flex;
  opacity: 0.9;
  z-index: var(--z-tooltip);
  transition: 0.4s;
}
.scrollup:hover {
  background-color: var(--first-color-alt);
  opacity: 1;
}
.scrollup__icon {
  color: var(--white-color);
  font-size: 1.2rem;
}
.show-scroll {
  bottom: 5rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
}
::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
}

/*=============== MEDIA QUERIES (RESPONSIVE DESIGN) ===============*/
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--body-color);
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    box-shadow: -1px 0 4px rgba(14, 55, 63, 0.15);
    padding: 3rem;
    transition: 0.4s;
  }
  .show-menu {
    right: 0;
  }
}
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__link {
    color: var(--white-color);
    text-transform: initial;
  }
  .nav__dark {
    position: initial;
  }
  .nav__menu {
    display: flex;
    align-items: center;
    column-gap: 1rem;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .change-theme-name {
    display: none;
  }
  .change-theme {
    color: var(--white-color);
  }
  .scroll-header .nav__link {
    color: var(--text-color);
    text-shadow: none;
  }
  .scroll-header .change-theme {
    color: var(--text-color);
  }
  .section {
    padding: 7rem 0 2rem;
  }
  .home__container {
    height: 100vh;
    grid-template-rows: 1.8fr 0.5fr;
  }
  .home__data {
    align-self: flex-end;
  }
  .home__social {
    flex-direction: row;
    align-self: flex-end;
    margin-bottom: 3rem;
    column-gap: 2.5rem;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .about__data,
  .about__title {
    text-align: initial;
  }
  .about__img-one,
  .about__img-two {
    height: 300px;
  }
  .place__container {
    padding-top: 2rem;
    grid-template-columns: repeat(3, 1fr);
  } /* Diubah menjadi 3 kolom untuk tablet */
  .subscribe__bg {
    background: none;
    padding: 0;
  }
  .subscribe__container {
    background-color: var(--first-color-second);
    padding: 3.5rem 0;
  }
  .footer__rights {
    flex-direction: row;
    justify-content: space-between;
  }
  .home__data-subtitle {
    font-size: 4rem;
  }
  .subtitle-small {
    font-size: 1.75rem;
  }
  .home__data-title {
    font-size: 1.5rem;
  }
}
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .place__container {
    gap: 3rem 2rem;
  }
}
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1024px;
  }
}
@media screen and (min-height: 721px) {
  body {
    margin: 0;
  }
  .home__container,
  .home__slider,
  .home__slide {
    height: 100vh;
  }
}
