:root {
  --brown: #8b4513;
  --brown-light: #a0522d;
  --brown-dark: #654321;
  --white: #ffffff;
  --pale-orange: #ffe4b5;
  --pale-orange-light: #fff8dc;
  --accent: #d2691e;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--pale-orange);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enhanced Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: var(--pale-orange);
  z-index: 1000;
  border-bottom: 2px solid var(--brown);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  background: var(--brown);
}

.navbar.scrolled .nav-links a {
  color: var(--white);
}

.navbar.scrolled .social a {
  color: var(--white);
}

.navbar.scrolled .menu-toggle {
  color: var(--white);
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo img {
  height: 50px;
  transition: var(--transition);
}

.navbar.scrolled .logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--brown);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
  background-color: var(--brown-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--brown);
  transition: var(--transition);
}

.nav-links a.active {
  color: var(--brown-dark);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.social {
  display: flex;
  gap: 15px;
}

.social a {
  color: var(--brown);
  font-size: 18px;
  transition: var(--transition);
}

.social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--brown);
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--accent);
}

/* Gallery Header */
.gallery-header {
  padding: 150px 20px 60px;
  text-align: center;
  background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(139, 69, 19, 0.9)),
    url("https://res.cloudinary.com/dl4hjr1p2/image/upload/v1762379405/isi_ewu_emjsoz.jpg") center/cover no-repeat;
  background-attachment: fixed;
  color: var(--white);
  background-attachment: fixed;
}

.gallery-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.filter-buttons {
  margin-top: 25px;
}

.filter-btn {
  padding: 12px 24px;
  margin: 0 8px;
  border: none;
  background-color: var(--white);
  color: var(--brown);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--brown);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--brown);
  color: var(--white);
  transform: translateY(-3px);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 50px 30px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background-color: var(--white);
  height: 280px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
  border-radius: 12px;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.08);
  filter: brightness(0.8);
}

/* Hover Label Styles */
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 25px 15px 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-item:hover .gallery-label {
  transform: translateY(0);
}

.label-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.label-description {
  font-size: 0.9rem;
  opacity: 0.9;
  max-width: 90%;
  line-height: 1.4;
}

.label-icon {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: var(--pale-orange);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  display: none;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  z-index: 10000;
  transition: var(--transition);
  background: rgba(139, 69, 19, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  transform: scale(1.2);
  background: rgba(139, 69, 19, 0.9);
}

/* Mute/Unmute Button */
.mute-btn {
  position: absolute;
  top: 30px;
  right: 100px;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  z-index: 10000;
  transition: var(--transition);
  background: rgba(139, 69, 19, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none; /* Hidden by default, shown for videos */
}

.mute-btn:hover {
  transform: scale(1.2);
  background: rgba(139, 69, 19, 0.9);
}

/* Enhanced Lightbox with Labels */
.lightbox-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 30px 20px 25px;
  z-index: 10;
  text-align: center;
}

.lightbox-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.lightbox-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 80%;
  margin: 0 auto;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: var(--brown);
  color: var(--white);
  padding: 60px 20px 30px;
  margin-top: 40px;
}

.footer-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.footer-glass-inner {
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--pale-orange);
  text-decoration: none;
  transition: var(--transition);
  padding: 5px 0;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--white);
  padding-left: 8px;
}

.footer-column p,
.footer-column a {
  color: var(--pale-orange);
  font-size: 1rem;
  line-height: 1.6;
  text-decoration: none;
}

.footer-column a span {
  color: var(--pale-orange);
  font-size: 20px;
}

.footer-column a span:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--pale-orange);
  max-width: 1200px;
  margin: 40px auto 0;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: var(--white);
  font-size: 1.3rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--brown);
  background: var(--pale-orange);
  transform: translateY(-5px);
}

/* Floating Action Buttons */
#scrollTopBtn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--brown);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 998;
  display: none;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn:hover {
  transform: translateY(-5px) scale(1.1);
  background: var(--brown-light);
}

.whatsapp-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  animation: pulse 2s infinite;
  transition: var(--transition);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-chat:hover {
  transform: scale(1.1) rotate(10deg);
  animation: none;
}

.whatsapp-chat img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
}

/* Responsive Design */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px 60px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--brown);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    color: var(--white);
    font-size: 20px;
  }

  .navbar.scrolled .nav-links {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .menu-toggle {
    display: block;
  }

  .gallery-header {
    padding: 130px 20px 40px;
  }

  .gallery-header h1 {
    font-size: 2.2rem;
  }

  .gallery-header p {
    font-size: 1rem;
  }

  .filter-btn {
    padding: 10px 18px;
    margin: 5px;
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 30px 15px 50px;
  }

  .gallery-item {
    height: 240px;
  }

  .gallery-label {
    padding: 15px 10px 10px;
  }

  .label-title {
    font-size: 1rem;
  }

  .label-description {
    font-size: 0.8rem;
  }

  .lightbox-label {
    padding: 20px 15px 15px;
  }

  .lightbox-title {
    font-size: 1.1rem;
  }

  .lightbox-description {
    font-size: 0.9rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-glass {
    padding: 30px 20px;
  }

  #scrollTopBtn {
    bottom: 150px;
    right: 20px;
  }

  .mute-btn {
    top: 20px;
    right: 80px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .close-btn {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-header {
    padding: 120px 15px 30px;
  }

  .gallery-header h1 {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 10px 40px;
  }

  .gallery-item {
    height: 220px;
  }

  .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-btn {
    margin: 5px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .close-btn {
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    width: 35px;
    height: 35px;
  }

  .mute-btn {
    top: 15px;
    right: 65px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
