/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #eee;
  }
  header, footer {
    background-color: #1e1e1e;
    color: #fff;
  }
  nav {
    background-color: #222;
  }
  nav a {
    color: #eee;
  }
  nav a:hover {
    background-color: #333;
  }
}

.wrapper {
  flex: 1;
}

header {
  background-color: #212121;
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

nav {
  background-color: #333;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
}

nav a:hover {
  background-color: #444;
}

.hero {
  background: url('https://images.unsplash.com/photo-1581090700227-1c5800f9f565') no-repeat center center/cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero h1 {
  font-size: 2.5rem;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

footer {
  background-color: #212121;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: auto;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    flex-direction: column;
    display: none;
  }

  nav.open {
    display: flex;
  }

  nav a {
    text-align: center;
  }
}
