nav {
  width: 100%;
  height: 120px;
  padding: 0;
  position: relative;
  top: 50px;
  
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  
  background-image: url("../assets/nav-bg-2.png");
  background-size: auto 100%;
  background-position: center center;
  background-repeat: repeat-x;

  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
  
  overflow: visible;
}

nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.3); */
  z-index: 0;
}

@media (max-width: 768px) {
  nav {
    height: 70px;
    top: 80px;
  }
}

#verdant-logo {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  height: 120px;
  cursor: pointer;
}

#verdant-logo > img {
  height: 250px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

@media (max-width: 768px) {
  #verdant-logo {
    height: 60px;
    top: 20%;
    transform: translate(-50%, -50%);
  }
  
  #verdant-logo > img {
    height: 180px;
  }
}

.nav-left,
.nav-right {
  z-index: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.nav-left {
  right: calc(50% + 285px);
}

.nav-right {
  left: calc(50% + 285px);
}

@media (max-width: 1400px) {
  .nav-left {
    right: calc(50% + 150px);
  }
  
  .nav-right {
    left: calc(50% + 150px);
  }
}

@media (max-width: 1024px) {
  .nav-left {
    left: 5%;
  }
  
  .nav-right {
    right: 5%;
  }
}

.nav-left > ul,
.nav-right > ul {
  display: flex;
  flex-flow: row nowrap;
  gap: 50px;
}

.nav-left > ul > li,
.nav-right > ul > li {
  display: block;
  position: relative;
}

.nav-left > ul > li > a,
.nav-right > ul > li > a {
  --b: 3px;
  --s: .45em;
  --color: #978062b1;
  
  color: white;
  text-decoration: none;

  font-family: "Lato";
  font-size: 1rem;
  font-weight: 700;

  text-transform: uppercase;

  display: block;
  padding: calc(.5em + var(--s)) calc(.9em + var(--s));

  transition: .3s linear, color 0s, background-color 0s;
  border-radius: 5px;
  /* background: 
    conic-gradient(from 90deg at var(--b) var(--b), #0000 90deg, var(--color) 0) 
    var(--s) var(--s) / calc(100% - var(--b) - 2 * var(--s)) calc(100% - var(--b) - 2 * var(--s)); */
  outline: var(--b) solid #0000;
  outline-offset: .6em;
  border: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.nav-left > ul > li > a:hover,
.nav-right > ul > li > a:hover {
  transform: scale(1.1);
  /* background: 
    conic-gradient(from 90deg at var(--b) var(--b), #0000 90deg, var(--color) 0) 
    var(--s) var(--s) / calc(100% - var(--b) - 2 * var(--s)) calc(100% - var(--b) - 2 * var(--s)); */
  filter: brightness(1.2);
}

@keyframes wind {
  0% { background-position: 0% 0%, 0 0, var(--s) var(--s); }
  100% { background-position: 100% 0%, 0 0, var(--s) var(--s); }
}

/* Mobile menu button */
#mobile-menu-btn {
  width: 1.5rem;
  height: 1.5rem;
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

#mobile-menu-btn > div {
  background-color: #ffffff;
  height: 0.2rem;
  width: 1.5rem;
  transition: transform 250ms ease-in 0s, opacity 250ms, width 250ms;
  transform-origin: left center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#mobile-menu-btn > div:nth-child(2) {
  width: 1.3rem;
}

#mobile-menu-btn > div:nth-child(3) {
  width: 1.1rem;
}

#mobile-menu-btn.active > div:nth-child(1) {
  transform: rotate(45deg);
}

#mobile-menu-btn.active > div:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.active > div:nth-child(3) {
  transform: rotate(-45deg);
  width: 1.5rem;
}

/* Mobile Navigation */
@media (max-width: 920px) {
  nav {
    height: 80px;
  }
  
  /* FORCE RESET - Remove all desktop styles */
  .nav-left > ul > li > a,
  .nav-right > ul > li > a,
  .nav-left > ul > li > a:link,
  .nav-right > ul > li > a:link,
  .nav-left > ul > li > a:visited,
  .nav-right > ul > li > a:visited {
    all: unset !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 25px 20px !important;
    color: #ffffff !important;
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
    text-align: center !important;
    font-family: "Lato", sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
  }

  .nav-left > ul > li > a:hover,
  .nav-right > ul > li > a:hover {
    background-color: rgba(138, 148, 107, 0.3) !important;
    background-image: none !important;
    background: rgba(138, 148, 107, 0.3) !important;
  }
  
  /* Hide desktop nav items and icons */
  .nav-left {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 10, 0.98) !important;
    z-index: 999 !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    padding-top: 100px !important;
    padding-bottom: 50px !important;
    transform: none !important;
  }

  .nav-left.active {
    left: 0 !important;
  }
  
  /* Make nav-right always visible inside nav-left on mobile */
  .nav-right {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100vh !important;
    background: transparent !important;
    padding-top: 100px !important;
    padding-bottom: 50px !important;
    transform: none !important;
    z-index: 999 !important;
    overflow-y: auto !important;
    transition: left 0.3s ease !important;
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .nav-right.active {
    left: 0 !important;
    pointer-events: auto !important;
  }
  
  /* Position nav-right list below nav-left list */
  .nav-left > ul {
    padding-bottom: 0 !important;
  }
  
  .nav-right > ul {
    padding-top: 0 !important;
    margin-top: 0 !important;
    /* Push down to appear after nav-left items (2 items × ~66px each) */
    transform: translateY(132px) !important;
  }
  
  /* Remove border from first item of nav-right to avoid double border */
  .nav-right > ul > li:first-child {
    border-top: none !important;
  }

  .nav-left > ul,
  .nav-right > ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .nav-left > ul > li,
  .nav-right > ul > li {
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0 !important;
  }

  .nav-left > ul > li:last-child,
  .nav-right > ul > li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  /* Hide decorative icons on mobile */
  .icon-1,
  .icon-2,
  .icon-3 {
    display: none !important;
  }

  /* Language selector button */
  .language-selector {
    margin: 20px auto !important;
    width: fit-content !important;
  }

  /* Mobile menu button */
  #mobile-menu-btn {
    display: flex !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
  }
}

/* Leaf/Plant SVG Icons */
.icon-1,
.icon-2,
.icon-3 {
  position: absolute;
  transform-origin: 50% 0;
  transition: all 0.3s ease-in-out;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.icon-1 svg,
.icon-2 svg,
.icon-3 svg {
  width: 100%;
  height: 100%;
}

.icon-1 .fil0,
.icon-2 .fil0,
.icon-3 .fil0 {
  fill: #8A946B;
}

.icon-1 {
  top: 0;
  right: 0;
  width: 25px;
  transform-origin: 0 0;
  transform: rotate(10deg);
}

.icon-2 {
  top: 0;
  left: 25px;
  width: 12px;
  transform: rotate(10deg);
}

.icon-3 {
  top: 0;
  left: 0;
  width: 18px;
  transform: rotate(-5deg);
}

.nav-left > ul > li:hover .icon-1,
.nav-right > ul > li:hover .icon-1 {
  animation: slay-1 3s cubic-bezier(0.52, 0, 0.58, 1) infinite;
  transform: scale(1.1) rotate(10deg);
}

.nav-left > ul > li:hover .icon-2,
.nav-right > ul > li:hover .icon-2 {
  animation: slay-2 3s cubic-bezier(0.52, 0, 0.58, 1) 1s infinite;
  transform: scale(1.1) rotate(10deg);
}

.nav-left > ul > li:hover .icon-3,
.nav-right > ul > li:hover .icon-3 {
  animation: slay-3 2s cubic-bezier(0.52, 0, 0.58, 1) 1s infinite;
  transform: scale(1.1) rotate(-5deg);
}

@keyframes slay-1 {
  0% { transform: scale(1.1) rotate(10deg); }
  50% { transform: scale(1.1) rotate(-5deg); }
  100% { transform: scale(1.1) rotate(10deg); }
}

@keyframes slay-2 {
  0% { transform: scale(1.1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(15deg); }
  100% { transform: scale(1.1) rotate(0deg); }
}

@keyframes slay-3 {
  0% { transform: scale(1.1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(-5deg); }
  100% { transform: scale(1.1) rotate(0deg); }
}

/* Language Selector Button */
.language-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  
  background: rgba(138, 148, 107, 0.2);
  border: 2px solid rgba(138, 148, 107, 0.5);
  border-radius: 50px;
  padding: 8px 14px;
  
  color: #8A946B;
  font-family: "Lato";
  font-size: 0.85rem;
  font-weight: 700;
  
  cursor: pointer;
  transition: all 0.3s ease;
  
  align-self: center;
  justify-content: center;
}

.language-selector:hover {
  background: rgba(138, 148, 107, 0.3);
  border-color: #8A946B;
  transform: scale(1.05);
}

.language-selector i {
  font-size: 1rem;
}

.nav-right > ul > li {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 920px) {
  .language-selector {
    width: auto;
    margin: 0 auto;
  }
}
