/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* Enhanced Styles */
body {
  background-image: url('assets/images/food-background.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  color: #fff;
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 0;
}

/* Enhanced Fixed Header with Soft Colors */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(201, 169, 110, 0.4);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

 /* Back Button with Soft Elegant Colors */
 .back-button {
  background: rgba(201, 169, 110, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(201, 169, 110, 0.3);
  text-decoration: none;
  color: #c9a96e;
}

.back-button:hover {
  background: rgba(201, 169, 110, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.3);
  color: #c9a96e;
}

/* Logo and Title Center */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-section img {
  max-width: 50px;
  filter: drop-shadow(0 4px 12px rgba(201, 169, 110, 0.4));
  transition: transform 0.3s ease;
  margin-bottom: 5px;
}

.logo-section img:hover {
  transform: scale(1.05);
}

/* Updated Event Title with Elegant Soft Gold */
.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #c9a96e;
  text-shadow: 0 2px 8px rgba(201, 169, 110, 0.3);
  letter-spacing: 1.8px;
  margin: 0;
  text-transform: uppercase;
}

/* Toggle Navigation with Soft Colors */
.nav-toggle {
  background: rgba(201, 169, 110, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(201, 169, 110, 0.3);
  position: relative;
}

.nav-toggle:hover {
  background: rgba(201, 169, 110, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.3);
}

.nav-toggle i {
  color: #c9a96e;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.nav-toggle.active i {
  transform: rotate(90deg);
}

/* Dropdown Navigation Menu with Soft Colors */
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(201, 169, 110, 0.3);
  overflow: hidden;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(201, 169, 110, 0.3);
}

.nav-item {
  display: block;
  padding: 15px 20px;
  color: #c9a96e;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(201, 169, 110, 0.15);
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-item:hover {
  background: rgba(201, 169, 110, 0.1);
  color: #c9a96e;
  padding-left: 25px;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #c9a96e;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-item:hover::before {
  transform: scaleY(1);
}

.nav-item.active {
  background: rgba(201, 169, 110, 0.2);
  color: #c9a96e;
}

.nav-item.active::before {
  transform: scaleY(1);
}

.nav-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Close dropdown when clicking outside */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  display: none;
}

/* Main Content - Adjusted for fixed header */
.main-content {
  margin-top: 90px;
  position: relative;
  z-index: 1;
}

/* Carousel Enhanced */
#promoCarousel {
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.carousel-item img {
  height: auto;
  width: 100%;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.carousel-item img:hover {
  transform: scale(1.02);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: -30px;
}

.carousel-control-next {
  right: -30px;
}

/* Menu Intro Enhanced */
.menu-intro {
  padding: 80px 0;
  background-color: #0f0f0f;
  background-image: url('../images/pattern.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  position: relative;
}

.menu-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(201,169,110,0.1)"/></svg>') repeat;
  opacity: 0.3;
  pointer-events: none;
}

.section-subtitle {
  color: #c9a96e;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.display-5 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #c9a96e;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.divider {
  width: 60px;
  height: 2px;
  background-color: #c9a96e;
  margin: 20px auto;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* Category Grid Enhanced - Following category_style_fix.css pattern */
.category-grid {
  margin-top: 60px;
  max-width: 1000px;
}

.category-box {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(201, 169, 110, 0.2);
  opacity: 1;
  transform: translateY(0);
}

.category-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(201, 169, 110, 0.2) 100%
  );
  transition: all 0.3s ease;
}

.category-box:hover::before {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(201, 169, 110, 0.4) 100%
  );
}

.category-box:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(201, 169, 110, 0.3);
  border-color: rgba(201, 169, 110, 0.6);
}

.category-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 70%,
    transparent 100%
  );
  transition: all 0.3s ease;
}

.category-box:hover .category-title {
  color: #c9a96e;
  text-shadow: 0 0 10px rgba(201, 169, 110, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 0 15px;
  }

  .main-content {
    margin-top: 85px;
  }

  .event-title {
    font-size: 1rem;
    letter-spacing: 1.2px;
  }

  .logo-section img {
    max-width: 45px;
  }

  .back-button,
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-dropdown {
    min-width: 180px;
    right: -10px;
  }

  .display-5 {
    font-size: 2.5rem;
  }

  .category-box {
    height: 180px;
  }

  .category-title {
    font-size: 1.2rem;
    padding: 20px 15px;
  }

  .carousel-control-prev {
    left: -20px;
  }

  .carousel-control-next {
    right: -20px;
  }
}

@media (max-width: 576px) {
  .main-content {
    margin-top: 80px;
  }

  .fixed-header {
    padding: 10px 0;
  }

  .event-title {
    font-size: 0.9rem;
  }

  .nav-dropdown {
    min-width: 160px;
    right: -5px;
  }

  .nav-item {
    padding: 12px 15px;
    font-size: 14px;
  }

  .category-box {
    height: 160px;
  }

  .category-title {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: flex !important;
    width: 40px;
    height: 40px;
    background: rgba(201, 169, 110, 0.8) !important;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }
}

/* Loading Animation */
.category-box {
  animation: fadeInUp 0.6s ease forwards;
}

.category-box:nth-child(1) { animation-delay: 0.1s; }
.category-box:nth-child(2) { animation-delay: 0.2s; }
.category-box:nth-child(3) { animation-delay: 0.3s; }
.category-box:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse effect untuk menarik perhatian */
.category-box:hover {
  animation: none;
}