/* Reset dan Dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

/* Body */
body {
  background: linear-gradient(
    to bottom right,
    #e5d4ef,
    #d4e4f7,
    #fff3c4,
    #fddde6
  );
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #e5d4ef, #fddde6);
  padding: 10px 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  transition: background 0.3s ease;
}

.navbar:hover {
  background: linear-gradient(to right, #dccdf0, #fbd0dc);
}

.navbar .logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .logo img {
  height: clamp(80px, 15vw, 100px);
  width: auto;
  object-fit: contain;
  margin-top: -4px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #6b214e;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav Links (di luar navbar) */
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li:first-child {
  margin-left: 0;
}

.nav-links a {
  text-decoration: none;
  color: #6b214e;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: #b83280;
  color: white;
  transform: scale(1.05);
}

/* Active state for nav links */
.nav-links.show {
  display: flex !important;
}

/* Responsif untuk menu */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
    height: auto;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to right, #e5d4ef, #fddde6);
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.show {
    display: flex !important;
    max-height: 450px;
    padding: 10px 0;
  }

  .nav-links li {
    margin: 8px 0; /* Dikurangi dari 10px */
    text-align: center;
  }

  .nav-links li:first-child {
    margin-top: 8px; /* Dikurangi dari 10px */
  }

  .nav-links a {
    color: #4a1a38;
    font-size: 16px; /* Dikurangi dari 18px */
    padding: 8px 15px; /* Dikurangi dari 10px 20px */
    display: block;
  }
}

/* Pastikan nav-links tetap terlihat di layar besar */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: clamp(60vh, 100vh, 80vh);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  border-radius: 16px;
  text-align: left;
  max-width: 90%;
}

.hero h2 {
  font-size: clamp(24px, 5vw, 32px);
  margin-bottom: 1rem;
  background: linear-gradient(to right, #e0c3fc, #fdbbcb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(14px, 2.5vw, 16px);
  background: linear-gradient(to right, #e0c3fc, #fdbbcb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Umum */
.section {
  padding: clamp(2rem, 5vw, 4rem) 2rem;
  text-align: center;
}

.section h2 {
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 1rem;
  color: #ff69b4;
}

/* About Section */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 90%;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: clamp(200px, 40vw, 300px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #ffcdcd;
}

.about-text {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h2 {
  font-size: clamp(22px, 4vw, 28px);
  color: #ff69b4;
}

.about-text h3 {
  font-size: clamp(16px, 3vw, 18px);
  font-weight: normal;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.5;
}

.about-text .btn {
  background-color: #ff69b4;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: clamp(14px, 2.5vw, 16px);
  text-decoration: none;
  transition: background 0.3s ease;
  width: fit-content;
}

.about-text .btn:hover {
  background-color: #ff85c1;
}

/* Product Section */
.product-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  background-color: #fff;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  width: clamp(200px, 30vw, 300px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.05);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: clamp(16px, 3vw, 18px);
  margin-bottom: 0.5rem;
  color: #333;
}

.product-card .price {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #ff69b4;
  margin-bottom: 1rem;
}

.product-card .btn {
  background-color: #ff69b4;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: clamp(14px, 2.5vw, 16px);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product-card .btn:hover {
  background-color: #ff85c1;
}

/* News Section */
.news-wrapper {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
}

.news-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background-color: #fff;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  width: clamp(200px, 30vw, 300px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: scale(1.05);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.news-card h3 {
  font-size: clamp(16px, 3vw, 18px);
  margin-bottom: 0.5rem;
  color: #333;
}

.news-card .btn {
  background-color: #ff69b4;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: clamp(14px, 2.5vw, 16px);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.news-card .btn:hover {
  background-color: #ff85c1;
}

.news-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.news-nav .btn {
  background-color: #ff69b4;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: clamp(14px, 2.5vw, 16px);
  text-decoration: none;
  transition: background 0.3s ease;
}

.news-nav .btn:hover {
  background-color: #ff85c1;
}

/* Comments Section */
.comment-form {
  max-width: 90%;
  width: 600px;
  margin: 2rem auto;
  text-align: left;
}

.comment-form label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
  font-size: clamp(14px, 2.5vw, 16px);
}

.comment-form input,
.comment-form textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: clamp(14px, 2.5vw, 16px);
  width: 100%;
}

.comment-form button {
  background-color: #ff69b4;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
  font-size: clamp(14px, 2.5vw, 16px);
  cursor: pointer;
  transition: background 0.3s ease;
}

.comment-form button:hover {
  background-color: #ff85c1;
}

.comment-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.comment-card {
  background-color: #fff;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  width: clamp(200px, 30vw, 300px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comment-card h3 {
  font-size: clamp(16px, 3vw, 18px);
  margin-bottom: 0.5rem;
  color: #ff69b4;
}

.comment-card p {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #333;
}

.comment-card .date {
  font-size: clamp(12px, 2vw, 14px);
  color: #888;
}

.alert {
  background-color: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem auto;
  max-width: 90%;
  text-align: center;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #333;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  max-width: 90%;
  width: 600px;
  text-align: center;
  position: relative;
}

.modal-item {
  display: none;
}

.modal-item img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.modal-item h1 {
  color: #ff69b4;
  font-size: clamp(20px, 4vw, 24px);
  margin-bottom: 0.5rem;
}

.modal-item h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: clamp(14px, 2.5vw, 16px);
}

.modal-item .price,
.modal-item .date {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #ff69b4;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.close-btn:hover {
  color: #ff69b4;
}

/* Footer */
footer {
  background: linear-gradient(to right, #e5d4ef, #fddde6);
  text-align: center;
  padding: 20px;
  color: #6b214e;
  font-size: clamp(12px, 2vw, 14px);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
    height: auto;
  }

  .hamburger {
    display: flex;
  }

  /* Hero Section */
  .hero {
    height: auto;
    padding: 3rem 1rem;
  }

  .hero-content {
    padding: 1.5rem;
    text-align: center;
  }

  /* About Section */
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
    align-items: center;
  }

  /* Product & News & Comment Sections */
  .product-container,
  .news-container,
  .comment-container {
    flex-direction: column;
    align-items: center;
  }

  .product-card,
  .news-card,
  .comment-card {
    width: 100%;
    max-width: 350px;
  }

  .product-card img,
  .news-card img {
    height: 180px;
  }

  /* News Nav */
  .news-nav {
    justify-content: center;
  }

  /* Comments Form */
  .comment-form {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .navbar .logo img {
    height: 60px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero p {
    font-size: 14px;
  }

  .section h2 {
    font-size: 18px;
  }

  .about-text h2 {
    font-size: 18px;
  }

  .about-text h3 {
    font-size: 14px;
  }

  .about-image img {
    max-width: 200px;
  }

  .product-card img,
  .news-card img {
    height: 150px;
  }

  .product-card h3,
  .news-card h3,
  .comment-card h3 {
    font-size: 14px;
  }

  .product-card .price,
  .modal-item .price,
  .modal-item .date {
    font-size: 14px;
  }

  .modal-item h1 {
    font-size: 18px;
  }

  .modal-item h3 {
    font-size: 14px;
  }

  .comment-form label,
  .comment-form input,
  .comment-form textarea,
  .comment-form button {
    font-size: 14px;
  }

  .comment-card p {
    font-size: 14px;
  }

  .comment-card .date {
    font-size: 12px;
  }

  footer {
    font-size: 12px;
  }
}