.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.2rem 0;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand Styling */
.navbar-brand {
  flex: 0 0 auto;
}

.navbar-brand .brand-link {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 0.5rem;
}

.brand-text-logo {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
  filter: brightness(0);
}

.navbar-brand .brand-link:hover {
  opacity: 0.8;
}

/* Center Menu Styling */
.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 3rem;
  align-items: center;
  margin: 0;
  padding: 0;
  position: relative;
}

.navbar-menu li a {
  font-family: 'Poppins', sans-serif;
  color: #1e363b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-menu li a:hover {
  color: #000;
}

.navbar-menu li a.active {
  color: #000;
  font-weight: 600;
}

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.98);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li {
  opacity: 1 !important;
  transform: none !important;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.5rem !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  color: #444 !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: none !important;
}

.dropdown-menu li a:hover {
  color: #1a3a3a !important;
  background: rgba(26, 58, 58, 0.05);
  padding-left: 1.75rem !important;
}

@media (min-width: 969px) {
  .nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background-color: #1e363b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

/* Actions Styling */
.navbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.desktop-shop-btn .btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-shop-btn {
  display: none;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #1e363b;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.hamburger:hover {
  color: #000;
  transform: scale(1.1);
}

/* Hide mobile close button in desktop */
.mobile-close-btn {
  display: none !important;
}

/* Responsive Design */

/* Tablet View */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 0 2rem;
  }

  .navbar-menu {
    gap: 2rem;
  }

  .brand-logo {
    height: 45px;
  }
}

/* Mobile View */
@media (max-width: 968px) {
  .nav-indicator {
    display: none;
  }

  .navbar-center {
    position: static;
    /* Reset flex behavior for mobile menu */
  }

  .desktop-shop-btn {
    display: none;
  }

  .mobile-shop-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
  }

  .mobile-shop-btn .btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Show hamburger menu */
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide menu by default on mobile */
  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 80%;
    max-width: 400px;
    height: 100vh;
    padding: 2rem;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
  }

  /* Hide mobile close button by default */
  .mobile-close-btn {
    display: none !important;
  }

  /* Show menu when active */
  .navbar-menu.active {
    right: 0;
  }

  /* Mobile menu items */
  .navbar-menu li {
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .navbar-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger animation for menu items */
  .navbar-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .navbar-menu.active li:nth-child(2) {
    transition-delay: 0.2s;
  }

  .navbar-menu.active li:nth-child(3) {
    transition-delay: 0.3s;
  }

  .navbar-menu.active li:nth-child(4) {
    transition-delay: 0.4s;
  }

  .navbar-menu.active li:nth-child(5) {
    transition-delay: 0.5s;
  }

  .navbar-menu.active li:nth-child(6) {
    transition-delay: 0.6s;
  }

  .navbar-menu.active li:nth-child(7) {
    transition-delay: 0.7s;
  }

  .navbar-menu.active li:nth-child(8) {
    transition-delay: 0.8s;
  }

  .navbar-menu li a {
    font-size: 1.2rem;
    padding: 0.8rem 0;
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  /* Mobile Dropdown */
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-dropdown .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-menu li a {
    font-size: 1rem !important;
    padding: 0.6rem 0 0.6rem 1.25rem !important;
    color: #555 !important;
    border-bottom: none !important;
  }

  .dropdown-menu li a:hover {
    padding-left: 1.5rem !important;
    background: transparent;
  }

  /* Mobile close button inside menu */
  .mobile-close-btn {
    display: block !important;
    width: 100%;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: none !important;
  }

  .close-menu-btn {
    background: none;
    border: none;
    color: #1e363b;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.05);
  }

  .close-menu-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .navbar-container {
    padding: 0 1.5rem;
  }

  .brand-logo {
    height: 40px;
  }

  .brand-text-logo {
    height: 40px;
  }
}

/* Menu Overlay for Mobile */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}