/* Reset and base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

header {
  background: #003366;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 1.75rem;
}

nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  gap: 1.25rem;
}

nav li {
}

nav a {
  color: #cfd9e7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #ff9800;
  padding-bottom: 2px;
}

main {
  padding: 2rem 0;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.hero h2 {
  margin-bottom: 1rem;
  color: #003366;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

button#learnMoreBtn {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

button#learnMoreBtn:hover {
  background-color: #e68a00;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.features article {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 300px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  max-width: 350px;
  text-align: center;
}

.features h3 {
  color: #003366;
  margin-bottom: 0.75rem;
}

.services-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.services-list li {
  background: white;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.services-list h3 {
  margin-top: 0;
  color: #003366;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1.5rem;
}

.project {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.project h3 {
  color: #003366;
  margin-top: 0;
}

form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: 3px solid #ff9800;
  border-color: #ff9800;
}

button[type="submit"] {
  background-color: #003366;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  cursor: pointer;
  border-radius: 25px;
  font-weight: 700;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #002244;
}

#formMessage {
  margin-top: 1rem;
  font-weight: 600;
  color: #d9534f;
  min-height: 1.5em;
}

footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.875rem;
  margin-top: 3rem;
}

/* 404 page specific */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h2 {
  font-size: 2rem;
  color: #d9534f;
  margin-bottom: 1rem;
}

.error-page p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

a.btn {
  text-decoration: none;
  background-color: #ff9800;
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

a.btn:hover {
  background-color: #e68a00;
}

/* Responsive Navigation for small screens */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .project-list {
    grid-template-columns: 1fr;
  }
}
