@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400&display=swap');

/* Reset + font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
}
body, html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
   box-sizing: border-box;
  width: 100vw;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
  transition:
    height 0.3s ease,
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    border-bottom 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  height: 75px;
}

.navbar .nav-links a {
  /* width:100%;
  text-align: center; */
  color: white;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
  color: #5b2c0f;
}

.navbar .logo img {
  transition: filter 0.3s ease;
}

.navbar.scrolled .logo img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(67%) saturate(599%) hue-rotate(0deg) brightness(90%) contrast(85%);
}

.logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 24px;
  font-size: 16px;
  transition: opacity 0.2s ease;
  font-weight: 600;
}

.nav-links a:hover {
  opacity: 0.85;
}

.navbar .main-content-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Container */
.main-content-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 10px;
}

.btn {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  transition: color 0.3s ease;
  z-index: 0;
  background-clip: padding-box;
}

/* Background animation layer */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

/* Slide background in on hover */
.btn:hover::before {
  transform: translateY(0);
}

/* Secondary button */
.btn.secondary {
  background-color: white;
  color: #96422F;
}

.btn.secondary::before {
  background-color: #96422F;
}

.btn.secondary:hover {
  color: white;
}

/* Primary button */
.btn.primary {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.btn.primary::before {
  background-color: white;
}

.btn.primary:hover {
  color: #96422F;
}

/* Disable opacity change on hover */
.btn:hover {
  opacity: 1;
}

/* Burger icon - hidden on desktop */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 15;
}

.burger span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Background image for mobile */


/* Mobile-only buttons */
.btn-mobile {
  display: none;
  pointer-events: none;
}

@media (max-width: 768px) {
  .btn-desktop {
    display: none;
  }

  .btn-mobile {
    display: block;
    pointer-events: auto;
    position: relative; /* Đảm bảo ::before hoạt động đúng */
  }
}

/* Responsive navbar */
@media (max-width: 768px) {
  .navbar.scrolled .nav-links a {
    color: #ffffff;
  }

  .burger {
    display: flex;
  }

  .navbar.scrolled .burger span {
    background: #5b2c0f;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    width: 200px;
    flex-direction: column;
    padding: 10px;
    border-radius: 0 0 0 6px;
  }

  .nav-links.active {
    display: flex;
    margin-right: 10px;
    border-radius: 5px;
    background: rgba(91, 44, 15, 0.95);
  }

  .nav-links a {
    margin: 10px 0;
    font-size: 12px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-content {
    bottom: 30px;
    left: 20px;
    right: 20px;
  }

.navbar .nav-links a {
  width:100%;
  text-align: center;

}
  .hero-content h1 {
    font-size: 32px;
  }

  .buttons {
    gap: 8px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 24px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}
