* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background: black;
  color: white;
  overflow-y: auto;
  transition: background-color 0.5s, color 0.5s;
}

body.light-theme {
  background: white;
  color: black;
}

body.light-theme .navbar {
  background-color: rgba(255, 255, 255, 0.8);
}

body.light-theme .nav-links a {
  color: black;
}

#logo {
  height: 25px;
  margin-left: 10px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3)); /* Default for dark theme */
}

body.light-theme #logo {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3)); /* Overrides in light mode */
}

.navbar {
  width: 100%;
  height: 8%;
  padding: 1px 10px;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar img {
  height: 25px;
  margin-left: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
  padding-right: 10px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ec4899;
}

body.light-theme .nav-links a:hover {
  color: #ec4899;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1000;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

body.light-theme .hamburger-line {
  background-color: black;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-controls {
  display: none;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.3s ease;
}
.theme-toggle:hover {
  transform: scale(1.1);
}
.theme-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: transform 0.2s cubic-bezier(0.4,1.5,0.5,1);
}
.theme-toggle:hover svg {
  transform: scale(1.2);
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 1px 5px;
  }
  #logo {
    height: 20px;
    margin-left: 5px;
  }
  .nav-links {
    width: 250px;
    right: -250px;
  }
  .nav-links a {
    font-size: 16px;
    padding: 18px 25px;
  }
  .hamburger-line {
    width: 22px;
    height: 2px;
  }
  .mobile-controls {
    gap: 10px;
  }
}

@media screen and (max-width: 768px) {
  .mobile-controls .theme-toggle {
    display: inline-flex;
  }
  .nav-links .theme-toggle {
    display: none;
  }
  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }
  .nav-links.nav-active {
    right: 0;
  }
  .nav-links a {
    font-size: 18px;
    font-weight: 500;
    padding: 20px 30px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
  }
  .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
}
