body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  color: #222;
}

nav {
  background: #333;
  padding: 0.5em 0;
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  position: absolute;
  top: 0.75em;
  left: 1em;
  z-index: 100;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger:before,
.menu-toggle .hamburger:after {
  display: block;
  background: #fff;
  height: 4px;
  width: 28px;
  border-radius: 2px;
  position: absolute;
  content: '';
  transition: all 0.3s ease;
}

.menu-toggle .hamburger {
  top: 18px;
  left: 6px;
  position: relative;
}

.menu-toggle .hamburger:before {
  top: -10px;
  left: 0;
  position: absolute;
}

.menu-toggle .hamburger:after {
  top: 10px;
  left: 0;
  position: absolute;
}

.menu-toggle.open .hamburger {
  background: transparent;
}
.menu-toggle.open .hamburger:before {
  transform: rotate(45deg) translate(5px,5px);
}
.menu-toggle.open .hamburger:after {
  transform: rotate(-45deg) translate(5px,-5px);
}

nav ul.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  transition: max-height 0.3s ease;
}

nav ul li {
  margin: 0 1em;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: background 0.2s;
  display: block;
}

nav ul li a:hover, nav ul li a.active {
  background: #555;
}

main {
  min-height: 70vh;
  padding: 2em 1em 4em 1em;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
}

form {
  max-width: 500px;
  margin: 0 auto;
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.75em;
  margin: 0.5em 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box;
}

button[type="submit"] {
  background: #333;
  color: #fff;
  border: none;
  padding: 0.75em 2em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}

button[type="submit"]:hover {
  background: #555;
}

/* Responsive Styles */
@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }
  nav ul.nav-list {
    flex-direction: column;
    align-items: flex-start;
    background: #333;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  nav ul.nav-list.open {
    max-height: 500px;
    transition: max-height 0.3s ease;
  }
  nav ul li {
    margin: 0.5em 0;
    width: 100%;
  }
  nav ul li a {
    width: 100%;
    padding: 1em 1em;
    font-size: 1.1em;
    border-radius: 0;
  }
  footer {
    position: static;
    padding: 1em 0;
  }
}

@media (max-width: 480px) {
  nav ul li a {
    padding: 0.75em 0.5em;
    font-size: 1em;
  }
  main {
    padding: 0.5em 0.25em 2em 0.25em;
  }
  h1 {
    font-size: 1.5em;
  }
  form {
    padding: 0.5em;
  }
}