* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* keeps it above other elements */
  background-color: #04846C;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;

}

.logo {
  display: flex;
}

.logo_text {
  font-size: 1rem;
  display: flex;
  /* enable flexbox */
  justify-content: center;
  /* horizontal center */
  align-items: center;
  /* vertical center */
}

.logo_img img {
  max-height: 110px;
  /* Image stays within navbar height */
  width: auto;
  /* keeps proportions */
  display: flex;
  /* enable flexbox */
  justify-content: center;
  /* horizontal center */
  align-items: center;
  /* vertical center */
  padding: -9px -19px;
}

.nav-cart-btn {
  position: relative;
  font-size: 1.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
  position: relative;
  padding: 5px 0;
  display: flex;
  /* enable flexbox */
  justify-content: center;
  /* horizontal center */
  align-items: center;

}



.nav-underline {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: white;
  transition: all 0.4s ease;
}

.nav-links a:hover {
  cursor: pointer;
}

#contact_bg {
  background-color: #EDB80A;
  padding: 8px 12px;
  border-radius: 6px;
}

#contact_bg:hover {
  background-color: #c49706;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    background: #04846C;
    position: absolute;
    top: 70px;
    right: 0;
    width: 250px;
    padding: 20px;
    border-radius: 0 0 0 10px;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.2);
    
    /* Sliding animation */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s !important;
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }

  #contact_bg {
    margin-top: 10px;
    text-align: center;
  }

  .nav-underline {
    display: none; /* Hide underline on mobile */
  }
  
  .user-menu {
      margin: 10px auto;
  }
}

/* Dark Mode Overrides for Navbar Mobile Menu */
html.dark .nav-links, body.dark .nav-links {
    background-color: #0a1614;
    border-left: 1px solid #2d3a45;
    border-bottom: 1px solid #2d3a45;
}