* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

/* HEADER */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  background-color: #5d4037;
  color: white;
}

.logo {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
  text-decoration: underline;
}

/* HERO SECTION */
.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.85;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: bold;
  color: white;
  padding: 1em;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

/* OWNER PROFILE */
.owner-profile {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f4ef;
}

.owner-profile h3 {
  font-size: 24px;
  color: #5d4037;
  margin-bottom: 20px;
}

.why-us {
  text-align: center;
  padding: 50px 20px;
}

.center-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.owner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.owner-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #8d6e63;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.owner-container p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  max-width: 600px;
}

/* MAIN */
main {
  padding: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  margin-bottom: 1em;
}

/* MORE LINKS SECTION */
.more-links {
  background: #fff8f1;
  padding: 2em;
  text-align: center;
}

.more-links h3 {
  font-size: 22px;
  color: #5d4037;
  margin-bottom: 1em;
}

.link-boxes {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.link-card {
  background-color: #fff;
  padding: 1.2em;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.link-card:hover {
  transform: scale(1.03);
  background-color: #f1e8e3;
}

/* PRODUCT GALLERY */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  padding: 2em;
}

.product {
  background-color: #fff;
  border-radius: 10px;
  padding: 1em;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.product:hover {
  transform: scale(1.03);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  margin-bottom: 0.5em;
}

/* INTRO SECTIONS */
.intro {
  margin-bottom: 2em;
  padding: 1em;
  background: #fff;
  border-radius: 10px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1em;
  background-color: #5d4037;
  color: white;
  margin-top: 2em;
}

/* RESPONSIVE NAVIGATION & ELEMENTS */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text {
    font-size: 1.4rem;
    padding: 0 1em;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }

  .owner-container {
    flex-direction: column;
    text-align: center;
  }

  .link-boxes {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .owner-container {
    flex-direction: row;
    text-align: left;
  }

  .owner-container p {
    margin-left: 20px;
  }

  .link-boxes {
    flex-direction: row;
    justify-content: center;
    gap: 2em;
  }
}
/* Efek fade-in untuk bagian halaman */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

/* Keyframe animasi */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  animation: fadein 0.5s ease;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

@keyframes fadein{
    from {opacity:0;}
    to {opacity:1;}
}
why-us {
  padding: 40px 20px;
  text-align: center;
  background-color: #fdfdfd;
}

.produk h3{
    text-align: center;
}

.produk-galeri{
    text-align: center;
}
