/* ========= COLOR PALETTE ========= */
:root {
  --warna-biru: #60B5FF;
  --warna-biru-muda: #AFDDFF; 
  --warna-biru-pastel: #E8F9FD;
  --warna-abu: #222831;
}
/* ========= BASE ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  background-color: white;
  color: var(--warna-abu);
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
section {
  height: 100vh;
  min-height: fit-content;
  padding: 4rem 2rem;
}
h2 {
  margin-top: 1rem;
}
.flex-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

/* ========= NAVBAR ========= */
header {
  position: fixed;
  width: 100%;
  padding: 1.5rem 2rem;
  transition: all .5s ease;
  z-index: 9999;
}
.scrolled {
  position: fixed;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(to bottom, #60b5ffdc, #afdcffd0);
  backdrop-filter: blur(8px); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.scrolled a, .scrolled .hamburger {
  color: var(--warna-abu);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: all .3s ease;
}
.hamburger {
  display: none;
  font-size: 24px;
  background-color: transparent;
  border: none;
  border-radius: 100%;
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hamburger:hover {
  transform: scale(1.1);
}
.hamburger:active {
  transform: scale(0.95);
}

/* ========= HOME ========= */
#home {
  background: gray url('img/home.jpg') no-repeat center center / cover fixed;
  background-position: 35% center;
  background-blend-mode: multiply; /*Buat background jadi gelap*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.home-content h1, .home-content p {
  color: white;
  text-shadow: 0 0 8px rgba(29, 29, 29, 0.9);
}
.home-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.home-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--warna-biru);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--warna-biru-muda);
  transform: scale(1.1);
}

/* ========= ABOUT ========= */
#about {
  display: flex;
  flex-direction: column;
}
#about h2 {
  width: 100%;
}
.about-content {
  flex: 2;
}
article {
  margin-bottom: 1rem;
}
article h3 {
  margin-bottom: 1rem;
}
article ul {
  list-style: disc inside;
}
aside {
  flex: 1;
}
aside img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 1rem;
}
aside p {
  font-size: 1rem;
}

/* ========= DESTINATIONS ========= */
#destination {
  background: var(--warna-biru-pastel);
}
#destination .flex-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 4rem;
}
.destination-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.destination-card {
  background: white;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 150px;
  max-width: 300px;
  text-align: center;
}
.destination-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.destination-card h3 {
  margin-bottom: 0.5rem;
}
.destination-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.destination-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ========= FOOTER ========= */
footer {
  background: var(--warna-abu);
  color: white;
  padding: 2rem;
  text-align: center;
}

/* ========= RESPONSIVE MEDIA QUERY ========= */
@media (max-width: 768px) {
  .flex-wrapper {
    flex-direction: column;
  }
  nav {
    position: relative;
  }
  nav ul {
    gap: 1rem;
  }
  .nav_menu {
    display: none;
  }
  .show {
    display: inline;
    position: absolute;
    top: 100%; right: 30%;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    border: gray 1px solid;
    border-radius: 5px;
    width: 200px;
    transform: translateX(100%);
    z-index: 99;
    color: var(--warna-abu);
  }
  .nav_menu ul {
    flex-direction: column;
  }
  .nav_menu ul li a {
    display: block;
    padding: 1rem;
    color: var(--warna-abu);
  }
  .hamburger {
    display: block;
  }
  .destination-list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #destination .flex-wrapper {
    display: flex;
    justify-content: center;
    padding: 0rem;
  }
}

@media (max-width: 480px) {
  .home-content h1 {
    font-size: 2rem;
  }
  .home-content p {
    font-size: 1rem;
  }
}
