nav {
  background: rgba(255, 248, 240, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  background: rgba(255, 248, 240, 0.98);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  flex-wrap: nowrap;
  position: relative;
}

/* Logo Styles */
.logo {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #F9A8D4, #93C5FD, #6EE7B7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1001;
  flex-shrink: 0;
}

.logo i {
  background: none;
  -webkit-background-clip: unset;
  color: #F472B6;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.logo:hover i {
  transform: rotate(-10deg) scale(1.1);
}

/* Navigation Links - Desktop First */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #4B3B38;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links a:not(.btn-outline)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E07A5F;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:not(.btn-outline):hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #E07A5F;
}

/* Book Visit Button */
.nav-links .btn-outline {
  border: 2px solid #EECEB9;
  background: white;
  padding: 0.5rem 1.3rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links .btn-outline:hover {
  background: #FFE4D6;
  border-color: #E07A5F;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.2);
}

/* Hamburger Menu - Hidden by default on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 48px;
  min-height: 48px;
}

.hamburger:hover {
  background: rgba(224, 122, 95, 0.05);
}

.hamburger:focus-visible {
  border-color: #E07A5F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.2);
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #4B3B38;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-15px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay - Hidden by default */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Mobile Navigation Icons */
.mobile-icon {
  display: none;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  text-align: center;
  color: #E07A5F;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Tablets (920px - 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.2rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
}

/* Tablets (780px - 920px) */
@media (max-width: 920px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a {
    font-size: 0.85rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo i {
    font-size: 1.6rem;
  }
  
  .nav-links .btn-outline {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

/* Mobile Devices (< 780px) */
@media (max-width: 780px) {
  .nav-flex {
    padding: 0.8rem 0;
  }
  
  /* Show hamburger */
  .hamburger {
    display: flex;
  }
  
  /* Hide desktop navigation links by default on mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    height: 100dvh;
    background: #FFFAF5;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide the menu by default on mobile */
    display: flex;
    visibility: visible;
  }
  
  /* Show menu when active class is added */
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    white-space: normal;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Optional: Add animation for links when menu opens */
  .nav-links.active a {
    animation: slideIn 0.3s ease forwards;
  }
  
  .nav-links a:nth-child(1) { animation-delay: 0.05s; }
  .nav-links a:nth-child(2) { animation-delay: 0.1s; }
  .nav-links a:nth-child(3) { animation-delay: 0.15s; }
  .nav-links a:nth-child(4) { animation-delay: 0.2s; }
  .nav-links a:nth-child(5) { animation-delay: 0.25s; }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .nav-links a:not(.btn-outline) {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 0.9rem;
  }
  
  .nav-links a:not(.btn-outline)::after {
    display: none;
  }
  
  .nav-links .btn-outline {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.9rem;
    font-size: 1.05rem;
    background: #F59E7A;
    color: white;
    border-color: #F59E7A;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-links .btn-outline:hover {
    background: #E88762;
    border-color: #E88762;
    color: white;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .logo i {
    font-size: 1.5rem;
  }
  
  /* Show mobile icons */
  .mobile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .nav-links {
    width: 100%;
    max-width: 100%;
    padding: 4.5rem 1.5rem 2rem;
  }
  
  .nav-links a {
    font-size: 1rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .logo i {
    font-size: 1.3rem;
  }
  
  .hamburger span {
    width: 22px;
    height: 2.5px;
  }
}

/* Landscape Mode */
@media (max-width: 900px) and (orientation: landscape) {
  .nav-links {
    padding: 3.5rem 2rem 1.5rem;
    gap: 1rem;
    width: 50%;
  }
  
  .nav-links a {
    font-size: 0.95rem;
    padding: 0.4rem 0;
  }
  
  .nav-links a:not(.btn-outline) {
    padding-bottom: 0.6rem;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  nav {
    border-bottom-width: 0.5px;
  }
  
  .hamburger span {
    height: 2.5px;
  }
}

/* Desktop Fallback - Ensures nav-links are always visible on desktop */
@media (min-width: 781px) {
  .nav-links {
    display: flex !important;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    transform: none;
    flex-direction: row;
    pointer-events: all;
    right: auto;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .nav-overlay {
    display: none !important;
    visibility: hidden !important;
  }
  
  .nav-links.active {
    right: auto;
  }
}