/* ========== ANIMATIONS (OPTIMIZED) ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* ========== BODY & MAIN LAYOUT ========== */
body {
  margin: 0;
  padding: 0;
}

main {
  min-height: 300px;
}

/* ========== SCROLL ANIMATIONS ========== */
.scroll-animate {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.scroll-animate-left.animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translate3d(30px, 0, 0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.scroll-animate-right.animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Animation delays */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* Hover animations */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
  transform: translate3d(0, -5px, 0);
}

.hover-scale {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* ========== HEADER STYLES ========== */
.site-header {
  background: #fff8f7;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.navbar-brand img { 
  height: 48px; 
}

.navbar-nav .nav-link {
  color: #111;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  position: relative;
}

/* Active: gạch chân màu nâu */
.navbar-nav .nav-link.active {
  color: #7a4b12;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 48%;
  max-width: 120px;
  height: 3px;
  background: #7a4b12;
  border-radius: 2px;
}

/* Make nav items flex and add gap for small screens */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Desktop: center navbar and spread items evenly */
@media (min-width: 992px) {
  .navbar-collapse { 
    justify-content: center; 
  }

  .navbar-nav {
    width: 56%;
    max-width: 820px;
    justify-content: space-between;
    gap: 0;
  }
}

/* ========== FOOTER STYLES ========== */
.site-footer {
  background: #1f1b18;
  color: #e9e6e2;
  font-size: 14px;
}

.site-footer .footer-logo { 
  height: 56px; 
}

.site-footer .footer-address { 
  color: rgba(233,230,226,0.85); 
  margin: 10px; 
  line-height: 1.5; 
}

.site-footer .footer-title { 
  color: #fff; 
  font-weight: 600; 
  margin-bottom: .75rem; 
}

/* footer - links */
.site-footer a { 
  color: rgba(233,230,226,0.9); 
  text-decoration: none; 
}

.site-footer a:hover { 
  color: #b78940; 
}

/* footer - social */
.site-footer .footer-social .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: #fff;
  margin-right: .5rem;
}

.site-footer .footer-social .social svg { 
  display: block; 
}

/* footer - layout */
.footer-sep {
  border-color: rgba(183,137,64,0.25);
  margin: 1.75rem 0;
  opacity: .6;
}

.footer-bottom .copyright { 
  color: #b78940; 
  font-weight: 600; 
}

/* footer - responsive tweaks */
@media (max-width: 767.98px) {
  .site-footer { 
    font-size: 13px; 
  }
  .footer-bottom { 
    flex-direction: column; 
    gap: .5rem; 
    align-items: flex-start; 
  }
}

