:root {
  --primary: #4d15d9;
  --primary-dark: #35109a;
  --accent: #007bff;
  --background: #eef4ff;
  --surface: #ffffff;
  --text: #252525;
  --muted: #666;
  --border: #dfe5ef;
  --shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behaviour: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--background);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }
a:hover { color: var(--primary); }

.site-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1.5rem 1rem 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.site-header h1 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

main {
  width: min(100% - 2rem, 900px);
  margin: 2rem auto;
  flex: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
  color: var(--primary);
}

.card h2 { font-size: 1.5rem; }
.card h3 { font-size: 1.15rem; }

.project-list {
  display: grid;
  gap: 1rem;
}

.project {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafcff;
}

.project h3 { margin-bottom: 0.5rem; }

.button,
input[type="submit"] {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
input[type="submit"]:hover {
  background: var(--primary);
  color: #fff;
}

.resource-list {
  margin: 0;
  padding-left: 1.25rem;
}

.resource-list li { margin: 0.5rem 0; }

.form-group { margin-bottom: 1rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: 2px solid rgba(0, 123, 255, 0.25); border-color: var(--accent); }

.site-footer {
  margin-top: auto;
  padding: 1.25rem 1rem;
  background: #202033;
  color: #fff;
  text-align: center;
}

.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: #fff; }

.error-page {
  width: min(100% - 2rem, 700px);
  margin: auto;
  text-align: center;
}

.error-page h1 { font-size: clamp(4rem, 12vw, 7rem); margin-bottom: 0; color: var(--primary); }

@media (max-width: 600px) {
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { text-align: center; }
  main { width: min(100% - 1rem, 900px); margin: 1rem auto; }
}
