/* dasar */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* ====== NAVBAR ====== */
nav {
  background: #333;
  color: #fff;
  padding: 12px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}

nav .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-right: 30px;
}

/* brand (logo + title) */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* logo */
img {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  width: 150px;
}
.logo {
  width: 70px;
  height: 70px;
}

/* fade-in text */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.fade-in-text {
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}
h1 { margin: 0; font-size: 20px; color: #fff; }

/* ===== desktop nav ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.daftar-scale li {
  list-style: none;
  padding: 10px;
  margin-bottom: 5px;
  background-color: cornflowerblue;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}
.daftar-scale li:hover {
  transform: scale(1.07);
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* ===== hamburger button (hidden on desktop) ===== */
.hamburger {
  display: none; 
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}
.hamburger:focus { 
  outline: 2px solid #fff; 
  border-radius: 6px; 
}

/* bars */
.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background-color: cornflowerblue;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* animate to X when active */
.hamburger.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== existing hero/services/etc (keperluan layout) ===== */
.hero {
  height: 100vh;
  background: url("casuaal.jpg") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  padding-top: 120px;
}
.hero h1 {
  color: #fff;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: black;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}
.hero button {
  padding: 12px 25px;
  display: inline-block;
  border: none;
  border-radius: 5px;
  background: cornflowerblue;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* ABOUT */
#about { 
  padding: 50px 20px; 
  max-width: 1000px; 
  height: auto; 
  margin: auto; 
  text-align: left; 
}
.newspaper { column-count: 1; }
.gambar-float { 
  float: right; 
  margin-left: 0px; 
}
.ukuran-responsif { 
  width: 100%; 
  height: auto; 
  max-width: 200px; 
}
.image-hover { 
  filter: grayscale(100%); 
  transition: filter 0.5s ease-in-out; 
}
.image-hover:hover { filter: grayscale(0%); }

/* SERVICES */
#services { 
  color: #000; 
  padding: 50px 20px; 
  background: #333; 
}
.services-container { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
  max-width: 1000px; 
  margin: auto; 
}
.service-box { 
  background: white; 
  padding: 20px; 
  border-radius: 8px; 
  text-align: center; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
}
.centered-image { 
  display: block; 
  margin: 0 auto; 
  width: 50%; 
}
/* Gambar di service box */
.service-box img {
  display: block;
  margin: 0 auto;
  width: 80%;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efek timbul saat hover */
.service-box img:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 20px rgba(0,0,0,0.35);
}

/* MODAL */
.modal { 
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background: rgba(0,0,0,0.6); 
}
.modal-content { 
  background: #fff; 
  color: #000; 
  margin: 10% auto; 
  padding: 20px; 
  border-radius: 12px; 
  width: 80%; 
  max-width: 500px; 
  animation: fadeIn 0.4s ease; 
}
.close { 
  float: right; 
  font-size: 24px; 
  font-weight: bold; 
  cursor: pointer; 
  color: #333; 
}
.close:hover { color: #e74c3c; }

/* GALLERY */
.gallery-container { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
  justify-items: center; 
  padding: 20px; 
}
.gallery-item img { 
  width: 100%; 
  max-width: 300px; 
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
  transition: transform 0.3s; 
}
.gallery-item img:hover { transform: scale(1.05); }
.gallery-item figcaption { margin-top: 8px; 
  font-size: 14px; 
  color: #333; 
  font-weight: bold; 
}
/* Modal Gambar */
.img-modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

/* Gambar dalam modal */
.img-modal-content {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 90vh;
  border-radius: 8px;
}

/* Caption */
#caption {
  margin: 15px auto;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

/* Tombol close */
.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.close-modal:hover {
  color: #f00;
}

/* CONTACT */
#contact { padding: 50px 20px; }
.contact-form { 
  max-width: 600px; 
  margin: auto; 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
}
.contact-form input, .contact-form textarea { 
  padding: 12px; 
  border: 1px solid #ccc; 
  border-radius: 6px; 
  font-size: 16px; 
}
.contact-form button { 
  padding: 12px; 
  border: none; 
  border-radius: 6px; 
  background: #333; 
  color: white; 
  font-size: 16px; 
  cursor: pointer; 
}
.contact-form button:hover { background: #333; }
#contact h2 {
  text-align: center;
}

/* FOOTER */
.footer { 
  background-color: #333; 
  color: #fff; 
  text-align: center; 
  padding: 20px 10px; 
  margin-top: 40px; 
  font-size: 14px; 
}
.footer p { margin: 5px 0; }

/* ====== SOCIAL LINKS ====== */
/* Social links pakai gambar */
.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a img {
  width: 50px;         
  height: 50px;
  border-radius: 50%;  
  object-fit: cover;   
  background: #f1f1f1; 
  padding: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.social-links a img:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  /* hide desktop nav, show hamburger */
  .hamburger {
    display: inline-block;
  }

  /* starting state: hide the nav (mobile) */
  .daftar-scale {
    display: none;
    position: absolute;
    top: 64px; /* di bawah navbar */
    right: 12px;
    width: 220px;
    background: #333;
    padding: 12px;
    border-radius: 8px;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .daftar-scale li {
    margin: 8px 0;
    padding: 10px;
    background-color: cornflowerblue;
    border-radius: 6px;
    text-align: center;
  }
  .daftar-scale li a { display: block; }

  /* visible state */
  .daftar-scale.show {
    display: flex;
  }

  /* make navbar wrap nicely */
  .navbar {
    align-items: center;
  }

  /* adjust hero font etc */
  .hero h1 { font-size: 32px; }
  .services-container { grid-template-columns: 1fr; }
}

/* small polish: ensure ul stays inline on larger screens if .show accidentally applied */
@media (min-width: 769px) {
  .daftar-scale { display: flex !important; position: static; width: auto; background: transparent; box-shadow: none; padding: 0; }
  .hamburger { display: none !important; }
}