/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: Georgia, system-ui, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100%;
}

html.dark {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark {
  background-color: #121212;
  color: #f0f0f0;
}

a {
  text-decoration: none;
  color: #444;
  transition: color 0.3s, background 0.3s;
}

a:hover {
  text-decoration: none;
}

body, header, main, footer {
  color: inherit;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links li {
  font-size: 1rem;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  overflow: hidden;
  color: #444;
}

body.dark .nav-links a {
  color: #ddd;
}

/* Glow effect on nav link hover */
.nav-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
  pointer-events: none;
}

body.dark .nav-links a::before {
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.nav-links a:hover::before {
  opacity: 1;
  width: 200%;
  height: 200%;
}

.nav-links a:hover {
  color: inherit;
}

.nav-close {
  background: transparent;
  border: 1px solid currentColor;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  color: inherit;
  margin-top: 2rem;
}

#theme-toggle {
  cursor: pointer;
  margin-left: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #888;
  border-radius: 999px;
  font-size: 0.875rem;
  background-color: transparent;
  transition: background-color 0.3s, color 0.3s;
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
  display: none;
  transition: transform 0.3s ease;
  margin-left: 1rem; /* Add space between toggle and hamburger */
}

.hamburger span {
  background: currentColor;
  position: absolute;
  height: 2px;
  width: 100%;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

main {
  padding: 4rem 2rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
  background-color: inherit;
  color: inherit;
}

body.dark a:hover {
  color: inherit;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #f4f4f4;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0;
    display: none;
    z-index: 1000;
    transition: background-color 0.3s, color 0.3s;
  }

  body.dark .nav-links {
    background-color: #121212;
  }

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

  .hamburger {
    display: block; /* Ensure hamburger shows up on mobile */
    position: relative;
    z-index: 1100;
    margin-left: 1rem;
  }
}
}
