/* ---------------------------------------
   1. RESET & DASAR
------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* ---------------------------------------
   2. NAVBAR
------------------------------------------ */
/* Navbar dasar */
nav {
  background-color: #1e1e1e;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Responsive untuk layar kecil */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: #1e1e1e;
    height: calc(100vh - 60px);
    width: 200px;
    flex-direction: column;
    padding-top: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
  }

  nav ul.active {
    transform: translateX(0);
  }

  nav ul li {
    margin: 1.5rem 0;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }
}

/* Hamburger aktif (animasi silang) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ---------------------------------------
   3. HERO SECTION
------------------------------------------ */
header {
    background: url('../img/hero.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e1e1e;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: black;
}

.btn {
    background-color: #f0b90b;
    color: #1e1e1e;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #e5a800;
}

/* ---------------------------------------
   4. SECTIONS
------------------------------------------ */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* ---------------------------------------
   5. DESTINASI
------------------------------------------ */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.destination-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.destination-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-item h3 {
    margin: 1rem 0 0.5rem;
}

.destination-item p {
    padding: 0 1rem 1rem;
}

.destination-item:hover {
    transform: scale(1.02);
}

/* ---------------------------------------
   6. PAKET TUR
------------------------------------------ */
.tour-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tour-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.tour-item h3 {
    margin-bottom: 0.5rem;
}

.tour-item p {
    margin-bottom: 1rem;
}

/* ---------------------------------------
   7. TESTIMONI
------------------------------------------ */
.testimonial-slider {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial-item {
    background-color: #fefefe;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-item cite {
    font-weight: bold;
    color: #666;
}

/* ---------------------------------------
   8. FORM KONTAK
------------------------------------------ */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: auto;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
}

/* ---------------------------------------
   9. FOOTER
------------------------------------------ */
footer {
    background-color: #1e1e1e;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0.3rem 0;
}

/* ---------------------------------------
   10. RESPONSIF
------------------------------------------ */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .tour-list {
        align-items: center;
    }
}
