/* NAVBAR */
.navbar {
  background: var(--maroon-deep);
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: clamp(70px, 8vh, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--gold);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(74, 14, 14, 0.95);
  height: 70px;
}

.logo {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo span {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}

.nav-links a {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream-dark);
  text-decoration: none;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: width .3s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-nav {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--maroon-deep);
  font-weight: 700;
  font-size: clamp(0.7rem, 1.1vw, 0.8125rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(200, 120, 10, 0.4);
  white-space: nowrap;
}

.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 120, 10, 0.6);
}
/* Burger Icon - UPDATE */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto; /* Dorong ke kanan */
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  margin: 3px 0;
  background: var(--cream);
  transition: 0.3s;
}

/* Animasi X tetap sama */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: var(--space-sm);
    padding: 1rem;
    height: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .cta-nav {
    margin-top: 0;
    font-size: 0.75rem;
    white-space: nowrap;
    display:none;
  }
  
  .navbar {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center;
    gap: 0;
    padding: 1rem clamp(1rem, 4vw, 2rem);
  }
  
  /* Nav-links tetap fixed overlay seperti sebelumnya */
  .nav-links {
    position: fixed;
    top: clamp(80px, 9vh, 90px);
    left: -100%;
    width: 100%;
    height: calc(100vh - clamp(80px, 9vh, 90px));
    flex-direction: column;
    background: rgba(74, 14, 14, 0.98);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 3rem 0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    padding: 1rem 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
  }
  
  .nav-links.active a {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-links a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links a:nth-child(2) { transition-delay: 0.15s; }
  .nav-links a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links a:nth-child(4) { transition-delay: 0.25s; }
  .nav-links a:nth-child(5) { transition-delay: 0.3s; }
  .nav-links a:nth-child(6) { transition-delay: 0.35s; }
  .nav-links a:nth-child(7) { transition-delay: 0.4s; }
}
