@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500&display=swap");
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

nav {
  font-weight: 600;
  padding: 15px 20px;
  color: var(--text-main);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.8rem;
  font-family: "Dancing Script", cursive;
  color: var(--primary-purple);
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-purple);
}

/* ----------NAV TOGGLE BUTTON ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 18px;
  justify-content: space-between;
}

.nav-toggle span {
  height: 3px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}
/* ========== Navbar Large Screen Responsive (1024px+) ========== */

/* Desktop Large (1440px and up) */
@media (min-width: 1440px) {
  nav {
    padding: 20px 50px;
  }

  .nav-container {
    max-width: 1600px;
  }

  .nav-logo {
    font-size: 2.2rem;
  }

  .nav-links {
    gap: 3rem;
    font-size: 1.1rem;
  }

  .nav-links a {
    padding: 8px 12px;
    position: relative;
  }

  /* Enhanced hover effect */
  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }
}

/* Ultra Wide (1920px and up) */
@media (min-width: 1920px) {
  nav {
    padding: 25px 80px;
  }

  .nav-container {
    max-width: 1800px;
  }

  .nav-logo {
    font-size: 2.5rem;
  }

  .nav-links {
    gap: 4rem;
    font-size: 1.2rem;
  }

  .nav-links a {
    padding: 10px 15px;
  }

  .nav-links a::after {
    height: 4px;
  }
}

/* 4K and Beyond (2560px and up) */
@media (min-width: 2560px) {
  nav {
    padding: 30px 100px;
  }

  .nav-container {
    max-width: 2200px;
  }

  .nav-logo {
    font-size: 3rem;
  }

  .nav-links {
    gap: 5rem;
    font-size: 1.4rem;
  }

  .nav-links a {
    padding: 12px 18px;
  }
}

/* General enhancements for all large screens (1024px+) */
@media (min-width: 1024px) {
  /* Smooth backdrop blur enhancement */
  #navbar {
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  /* Add subtle animation on scroll (optional - requires JS) */
  #navbar.scrolled {
    padding: 10px 0;
    transition: padding 0.3s ease;
  }

  /* Better link interaction */
  .nav-links li {
    position: relative;
  }

  .nav-links a {
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    color: var(--primary-purple);
    transform: translateY(-2px);
  }

  /* Active link styling */
  .nav-links a.active {
    color: var(--primary-purple);
    font-weight: 600;
  }
}
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    width: 100%;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    background-color: var(--bg-white);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    max-height: 300px;
    opacity: 1;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-button {
    display: none;
  }
  .cart-link {
    display: block;
  }

  /* toggle animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

/* --- NAVBAR DARK MODE --- */
body.dark-mode #navbar {
  background: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid var(--border-color);
}

body.dark-mode .nav-logo {
  color: var(--primary-purple); /* Or keep it as is if it looks good */
}

body.dark-mode .nav-links {
  color: var(--text-primary);
}

body.dark-mode .nav-toggle span {
  background: var(--text-primary);
}

@media (max-width: 768px) {
  body.dark-mode .nav-links {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
  }
}
