/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #ff0000;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  transition: background 0.3s ease;
  border-radius: 4px;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255,255,255,0.3);
}

#darkModeToggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

main {
  flex-grow: 1;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: #ff0000;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #cc0000;
}

.features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.features article {
  background: white;
  padding: 1rem;
  flex: 1 1 250px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  text-align: center;
}

.tools-section ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.tools-section a.btn {
  margin-top: 1rem;
  display: inline-block;
}

.blog-posts article {
  background: white;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}

.blog-posts article h2 {
  margin-bottom: 0.5rem;
}

.blog-posts article a {
  color: #ff0000;
  text-decoration: none;
  font-weight: bold;
}

.blog-posts article a:hover {
  text-decoration: underline;
}

footer {
  background: #222;
  color: #eee;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

footer a {
  color: #ff5555;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Dark Mode */

body.dark-mode {
  background-color: #121212;
  color: #ddd;
}

body.dark-mode header {
  background: #bb0000;
}

body.dark-mode .nav-links li a,
body.dark-mode .nav-links li a.active,
body.dark-mode #darkModeToggle {
  color: #eee;
}

body.dark-mode .nav-links li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .features article,
body.dark-mode .blog-posts article,
body.dark-mode .tools-section ul {
  background: #1e1e1e;
  box-shadow: none;
}

body.dark-mode footer {
  background: #111;
  color: #bbb;
}
