/* Global Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: #337ab7;
}

a:hover {
  color: #23527c;
}

/* Header Styles */

#header {
  background-color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

#header nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

#header nav li {
  margin-right: 20px;
}

#header nav a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease-in-out;
}

#header nav a:hover {
  color: #ccc;
}

/* Hero Styles */

#hero {
  background-image: linear-gradient(to bottom, #333, #555);
  padding: 5em;
  text-align: center;
}

#hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

#hero p {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
}

#hero button {
  background-color: #337ab7;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

/* About Styles */

#about {
  padding: 5em;
  text-align: center;
}

#about h2 {
  margin-top: 0;
}

#about p {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
}

#about img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* Projects Styles */

#projects {
  padding: 5em;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-items: center;
}

.project-grid article {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project-grid h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.project-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Contact Styles */

#contact {
  padding: 5em;
  text-align: center;
}

#contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#contact input, #contact textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#contact button {
  background-color: #337ab7;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

/* Footer Styles */

#footer {
  background-color: #333;
  padding: 2em;
  text-align: center;
  color: #fff;
}
