/* Reset & dasar */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Background transparan */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/back.jpg") center/cover no-repeat;
  opacity: 0.4;
  z-index: -1;
}
body {
  position: relative;
  z-index: 0;
}

/* Layout utama */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 4rem;
}

/* Header */
header.container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;  /* ⬅️ penting */
  top: 0;            /* ⬅️ nempel di atas */
  z-index: 1000;     /* ⬅️ biar tidak ketimpa elemen lain */
  backdrop-filter: blur(4px); /* opsional: efek blur belakang */
}

.site-title {
  text-decoration: none;
  color: black;
}
.site-title h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

nav a {
  text-decoration: none;
  color: #333;
  margin-left: 2rem;
  font-weight: bold;
}

/* Intro Section */
.intro {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.intro h2 {
  margin-top: 0;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center; /* ⬅️ Tambahkan ini */
}

.intro p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  text-align: justify; /* ⬅️ Ini yang penting */
}

/* Galeri */
.gallery {
  display: flex;
  flex-direction: column; /* Ubah ke kolom */
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery img {
  width: 60%;
  margin: 0 auto;         /* ⬅️ Untuk membuat gambar berada di tengah */
  border-radius: 8px;
  height: auto;
  display: block;         /* ⬅️ Diperlukan agar margin auto bekerja */
}

/* Kontak */
.contact {
  margin-top: auto; /* ⬅️ mendorong ke bawah */
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 8px;
}

/* Footer */
footer {
  background-color: #f0f0f0;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 768px) {
  header.container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
  }

  nav {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .intro, .contact, .work-section {
    padding: 1rem;
  }

  .gallery img {
    width: 100%;         /* Gambar full width di mobile */
  }

  main {
    padding: 1rem;
  }

  .site-title h1 {
    font-size: 1.5rem;
  }

  .work-section h2, .contact h2, .intro h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  footer {
    font-size: 0.8rem;
    padding: 1rem;
  }
}