/* Body & General Styles */
body {
  background: linear-gradient(
    to bottom right,
    #e5d4ef,
    #d4e4f7,
    #fff3c4,
    #fddde6
  );
  color: #333;
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  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;
  }
}

/* Header */
header {
  background: linear-gradient(to right, #dccdf0, #fbd0dc);
  padding: clamp(20px, 5vw, 25px) 15px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

header:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

header h2 {
  margin: 0;
  color: #b83280;
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Form Komentar */
.form-komentar {
  max-width: 90%;
  width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-komentar h3 {
  font-size: clamp(20px, 4vw, 24px);
  color: #b83280;
  margin-bottom: 15px;
  text-align: center;
}

.form-komentar label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #6b214e;
}

.form-komentar input,
.form-komentar textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: clamp(14px, 2.5vw, 16px);
}

.form-komentar textarea {
  resize: vertical;
}

.form-komentar button {
  background: #fbb6ce;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: clamp(14px, 2.5vw, 16px);
  transition: background-color 0.3s ease;
}

.form-komentar button:hover {
  background: #f9a6c1;
}

.alert {
  max-width: 90%;
  width: 600px;
  margin: 10px auto;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-size: clamp(14px, 2.5vw, 16px);
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
}

/* Kontainer Komentar */
.konten {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 15px;
}

/* Kotak Komentar */
.komentar {
  background-color: #ffe4ec;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 600px;
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.komentar:hover {
  transform: translateY(-5px);
}

.komentar strong {
  color: #b83280;
  font-size: clamp(16px, 3vw, 18px);
  display: block;
  margin-bottom: 8px;
}

.komentar p {
  margin: 10px 0;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #333;
}

.komentar small {
  color: #888;
  font-size: clamp(12px, 2vw, 13px);
}

/* Footer */
footer {
  background: linear-gradient(to right, #e5d4ef, #fddde6);
  text-align: center;
  padding: 15px;
  color: #6b214e;
  font-size: clamp(10px, 2vw, 12px);
}

footer p {
  font-size: clamp(10px, 2vw, 12px);
  color: #b83280;
  font-weight: 400;
  margin: 8px auto 0;
  display: inline-block;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(to right, #e5d4ef, #fddde6);
    position: absolute;
    top: 60px;
    left: 0;
    padding: 0;
  }

  .nav-links.active {
    max-height: 300px;
    padding: 10px 0;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .nav-links li:first-child {
    margin-top: 10px;
  }

  .nav-links a {
    display: block;
    padding: 10px;
  }

  /* Header */
  header {
    padding: 15px;
  }

  /* Form Komentar */
  .form-komentar {
    padding: 15px;
  }

  /* Konten */
  .konten {
    padding: 20px 10px;
  }

  .komentar {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .navbar .logo img {
    height: 60px;
  }

  header h2 {
    font-size: 20px;
  }

  .form-komentar h3 {
    font-size: 18px;
  }

  .komentar {
    min-height: 120px;
  }

  .komentar strong {
    font-size: 14px;
  }

  .komentar p {
    font-size: 14px;
  }

  .komentar small {
    font-size: 12px;
  }
}
