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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.7;
  color: #2c3e50;
  background-color: #f8f9fa;
  font-size: 16px;
}

.navcontainer {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #3a404c;
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

a {
  color: #3182ce;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2c5aa0;
  text-decoration: underline;
}

/* Lists */
ul,
ol {
  margin-bottom: 0.15rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Code */
code {
  background-color: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family:
    "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 0.9em;
  color: #e53e3e;
}

pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.9rem;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #3182ce;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #4a5568;
  font-style: italic;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background-color: #f7fafc;
  font-weight: 600;
  color: #2d3748;
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 2rem 0;
}

header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #004baf;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding-top: 8px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
  line-height: 1;
}

.nav-links a:hover {
  color: #007bff;
}

main {
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
}

/* Content sections */
section {
  margin-bottom: 3rem;
}

section:last-child {
  margin-bottom: 0;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
  color: #1a202c;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #3182ce;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn:hover {
  background: #2c5aa0;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Forms */
.message-form {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.875rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  background-color: #fff;
  color: #2c3e50;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #a0aec0;
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.btn-primary {
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

footer {
  color: #4a5568;
  font-size: 0.9rem;
  text-align: center;
  padding: 2.5rem 0;
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
  background-color: #fff;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.dots::after {
  content: "";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}
