
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
 
}


header {
  background-color: #280872;
  color: #fff;
  padding: 18px 30px;
  text-align: center;
  position: sticky;
  top:0;
  z-index: 1000;
  
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin: 0 0 10px 0;
  
  /*  animation: animasi fadeInDown saat halaman dimuat */
  animation: fadeInDown 0.9s ease both;
}

/* Keyframes untuk animasi fadeInDown */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header nav ul {
  list-style-type: none;
  padding: 0;
}

header nav ul li {
  display: inline;
  margin: 0px 10px;
  border-right: 1px dotted #f9f9f9;
  padding-right: 20px;
}

/* ::after pseudo-element + :hover pseudo-class: Animasi garis bawah link */
header nav ul li a {
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease; /*memberikan efek animasi */
}

/* Pseudo-element ::after: garis kuning muncul dari kiri saat kursor di arahkan */
header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #f0c040;
  transition: width 0.35s ease;
}

header nav ul li a:hover {
  font-weight: bold;
  color: #f0c040;
}

header nav ul li a:hover::after {
  width: 100%; 
}


section {
  padding: 70px 0;
  text-align: center;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1a0550;
  margin-bottom: 20px;
  display: inline-block;
}


.container {
  max-width: 960px;
  margin: auto;
  padding: 0 20px;
}


.menu-item {
  display: inline-block;
  width: 28%;
  margin: 15px 2%;
  vertical-align: top;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  /* box-shadow dan transition pada kartu menu */
  box-shadow: 0 4px 16px rgba(40, 8, 114, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* :hover pseudo-class dengan transform - terangkat saat hover */
.menu-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 14px 34px rgba(40, 8, 114, 0.22);
}

.menu-item img {
  max-width: 100%;
 
  border-radius: 12px;
}



#hours {
  background-color: #f9f9f9;
  padding: 60px 0;
}

#hours p {
  font-size: 18px;
  margin: 5px 0;
  color: #280872;
  font-weight: 600;
}


#location {
  margin-bottom: 20px;
}
footer {
  background-color: #280872;
  color: #fff;
  text-align: center;
  padding: 10px;
  position: fixed;
  bottom: 0;
  width: 100%;
  /* box-shadow footer */
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .menu-item {
    width: 80%;
    display: block;
    margin: 15px auto;
  }
  header h1 {
    font-size: 2rem;
  }
}
