/* styles.css */

:root {
  --bg: #fff;
  --text: #111;
  --accent: #c60000;
  --contrast: #000;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid #ddd;
  z-index: 10;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
}

nav a:hover {
  color: var(--contrast);
}

header .logo {
  height: 60px;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section {
  margin-bottom: 4rem;
}

h1, h2 {
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

button, input, textarea {
  font-family: inherit;
}

form {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
}

input, textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.7rem;
  margin-bottom: 1rem;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: var(--contrast);
}

/* animated background */
.hero {
  position: relative;
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.hero h1 {
  position: relative;
  color: var(--bg);
  font-size: 2.5rem;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  header img {
    height: 40px;
    margin-bottom: 0.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }
}


@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  header img {
    height: 40px;
    margin-bottom: 0.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  header {
    flex-direction: column;
    align-items: center;
  }

  header img {
    height: 40px;
    margin-bottom: 0.5rem;
  }
}
