* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background-color: #cdcbcb;
  color: #fff;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 2rem 4rem;
  position: sticky;
  top: 0;
  height: 111px;
  z-index: 999;
}

.logo img {
  height: 40px;
  width: auto;
}
.logo img:hover{
  transform: scale(1.05);
  transition: all 0.3s ease;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  position: relative;
}

nav a.active::after,
nav a:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #fff;
}

section {
  margin: 0;
}

/* HERO SECTION */
.product-hero {
  position: relative;
  overflow: hidden;
}
.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.product-hero h1 {
  font-size: 3rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* PRODUK SECTION */
.product-section {
  padding: 5rem 2rem;
  background-color: #fefaf5;
  display: flex;
  flex-direction: column;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-right: -25vw;
  position: relative;
  z-index: 1;
}

.product-row.reverse {
  flex-direction: row-reverse;
  margin-right: 0;
  margin-left: -25vw;
}

.product-img {
  z-index: 2;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.product-img img {
  width: 500px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-img:hover img {
  transform: scale(1.05);
}

.product-desc {
  background-color: #292A29;
  color: white;
  padding: 4rem;
  flex: 1;
  max-width: 1000px;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.product-desc:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.desc-content {
  max-width: 500px;
}

.desc-content.pertama {
  margin-left: 20px;
}

.desc-content.reverse {
  margin-left: 350px;
}

.product-desc h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: andora;
  font-weight: 80;
}

.product-desc p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  max-width: 600px;
}

/* FOOTER */
footer {
  background: #292A29;
  padding: 2rem;
  text-align: left;
}

.footer-content {
  max-width: 440px;
  margin-left: 130px;
}

.contact h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 0.3rem;
}

.footer-line {
  border: none;
  border-top: 1px solid #ccc;
  margin-top: 2rem;
  width: 1680px;
  margin-bottom: 1rem;
  margin-left: -160px;
}

footer p {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #ccc;
}


@font-face {
  font-family: andora;
  src: url(fonts/Andora\ Modern\ Serif.otf);
}


.reveal {
  opacity: 0;
  transform: translateX(0);
}

.reveal.active.fade-left {
  animation: fadeInLeft 1s ease-out forwards;
}

.reveal.active.fade-right {
  animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@media (max-width: 768px) {
  .product-row {
    flex-direction: column;
    margin: 0;
  }

  .product-row.reverse {
    flex-direction: column;
    margin: 0;
  }

  .desc-content.reverse,
  .desc-content.pertama {
    margin-left: 0;
  }

  .footer-line {
    width: 100%;
    margin-left: 0;
  }
}
