/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(
    to bottom right,
    #e5d4ef,
    #d4e4f7,
    #fff3c4,
    #fddde6
  );
  color: #333;
  font-family: "Roboto", sans-serif;
  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(10px, 5vw, 20px) 15px;
  text-align: center;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(80px, 15vw, 100px);
}

header:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

header .header-content h2 {
  font-size: 20px;
}

/* Gallery Section */
.gallery {
  max-width: 90%;
  width: 1000px;
  margin: 30px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  transition: transform 0.4s ease-in-out;
}

.gallery:hover {
  transform: scale(1.03);
}

.gallery h2 {
  color: #d63384;
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: capitalize;
  text-align: center;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item h3 {
  color: #b83280;
  font-size: clamp(16px, 3vw, 18px);
  margin-top: 10px;
  font-weight: 500;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 15px;
  max-width: 90%;
  width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-item {
  display: none;
  text-align: center;
}

.modal-item h2 {
  color: #d63384;
  font-size: clamp(20px, 4vw, 24px);
  margin-bottom: 15px;
}

.modal-item img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-item .detail {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.modal-item .date {
  font-size: clamp(12px, 2vw, 14px);
  color: #888;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #b83280;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #d63384;
}

/* 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;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  /* Header */
  header {
    padding: 15px;
    height: 80px;
  }

  /* Gallery */
  .gallery {
    padding: 15px;
    margin: 20px auto;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .gallery-item img {
    height: 150px;
  }

  /* Modal */
  .modal-content {
    margin: 10% auto;
    padding: 15px;
    width: 90%;
  }
}

@media (max-width: 480px) {
  .navbar .logo img {
    height: 60px;
  }

  header .header-content h2 {
    font-size: 20px;
  }

  .gallery h2 {
    font-size: 18px;
  }

  .gallery-item h3 {
    font-size: 14px;
  }

  .gallery-item img {
    height: 120px;
  }

  .modal-item h2 {
    font-size: 18px;
  }

  .modal-item .detail {
    font-size: 14px;
  }

  .modal-item .date {
    font-size: 12px;
  }
}