:root {
  --nav-bg-dark: rgba(0, 0, 0, 0.8);
  --nav-bg-light: rgba(255, 255, 255, 0.8);
  --text-dark: #ffffff;
  --text-light: #000000;
  --accent-color: #00c6ff;
}

.hero{
  height: 50px;
}
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--nav-bg);
  z-index: 1000;
  transition: background-color 0.3s;
  height: 50px;
}

.nav-container {
  width: 80vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  height: 50px;
}

.logo-img {
  height: 40px;
  width: auto;
  justify-content: left;
  margin-left: 0px;
  padding-left: 0px;
  transform: translateX(-1.5vw);
}

.nav-content {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-right: 2rem;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  transition: color 0.3s ease;
}

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 24px;
  height: 24px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  transition: background-color 0.3s, opacity 0.3s, transform 0.3s;
  left: 0;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
  opacity: 0;
  transform: translateY(10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  opacity: 0;
  transform: translateY(-10px);
}

@media (max-width: 768px) {
  
  .main-nav {
      transform: translateY(-4vh);
      height: 70px;
  }

  .nav-container {
      flex-wrap: wrap;
  }

  .logo-img {
      height: 40px;
      width: auto;
      transform: translateY(2vh);
  }

  .menu-toggle {
      transform: translateY(2vh);
      display: block;
      order: 2;
  }

  .nav-content {
      flex-basis: 100%;
      display: none;
      flex-direction: column;
      align-items: center;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-color);
      background-color: var(--nav-bg);
      backdrop-filter: blur(10px);
  }

  .nav-content.active {
      display: flex;
  }

  .nav-links {
      flex-direction: column;
      margin-right: 0;
      margin-bottom: 1rem;
      width: 100%;
  }

  .nav-links li {
      margin-left: 0;
      margin-bottom: 0.5rem;
      text-align: center;
  }

  .nav-links a {
      display: block;
      padding: 0.5rem 0;
  }

  .theme-toggle {
      margin-top: 1rem;
  }
}

/* Light theme */
body.light {
  --nav-bg: var(--nav-bg-light);
  --text-color: var(--text-light);
  --border-color: rgba(0, 0, 0, 0.1);
}

body.light .sun-icon {
  display: none;
}

body.light .moon-icon {
  display: inline-block;
}

/* Dark theme */
body.dark {
  --nav-bg: var(--nav-bg-dark);
  --text-color: var(--text-dark);
  --border-color: rgba(255, 255, 255, 0.1);
}

body.dark .sun-icon {
  display: inline-block;
}

body.dark .moon-icon {
  display: none;
}