body,
h1,
h2,
h3,
p,
ul,
li,
form,
input,
textarea,
button {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
}

body {
  background: linear-gradient(to right, #f0f8ff, #e6f2ff);
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #007acc;
  color: #fff;
  padding: 20px;
  text-align: center;
}

nav ul {
  list-style-type: none;
}

nav ul li {
  display: inline;
  margin-right: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.4s ease;
}

nav ul li a:hover {
  color: #ffc107;
}

section {
  padding: 60px 0;
}

section h2 {
  margin-bottom: 30px;
  text-align: center;
  font-size: 32px;
  color: #333;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.profile {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-right: 30px;
  margin-bottom: 20px;
}

.about-content p {
  flex: 1;
  color: #555;
}

.project-card-link {
  text-decoration: none;
}

.project-card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.project-category-wrapper {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.web-projects {
  background-color: #e6f2ff;
  border-left: 5px solid #007acc;
}

.other-projects {
  background-color: #f0f0f0;
  border-left: 5px solid #ffc107;
}

.project-category-card h3 {
  font-size: 28px;
  color: #007acc;
  margin-bottom: 20px;
  border-bottom: 2px solid #007acc;
}

.project-media {
  background-color: #ccc;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.project-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.project-images img {
  width: calc(25% - 10px);
  height: 100%;
  object-fit: contain;
}

.project-images img:first-child {
  padding-left: 0;
}

.project-images img:last-child {
  padding-right: 0;
}

.project-content {
  display: flex;
  padding: 30px;
}

.project-details {
  flex: 1;
  margin-right: 30px;
}

.project-details h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.project-details p {
  margin-bottom: 15px;
  color: #555;
}

.project-details ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #555;
  margin-bottom: 20px;
}

.project-details ul li {
  margin-bottom: 10px;
}

.project-tech {
  background-color: #e0f7fa;
  padding: 20px;
  border-radius: 5px;
  flex: 0 0 300px;
}

.project-tech h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #007acc;
}

.project-tech ul {
  list-style-type: none;
  margin-left: 0;
}

.project-tech ul li {
  margin-bottom: 5px;
  color: #555;
}

form {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  background-color: #fff;
}

label {
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

textarea {
  resize: none;
}

.btn {
  background-color: #007acc;
  color: #fff;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.btn:hover {
  background-color: #005f99;
}

.message-container {
  background-color: #f0f8ff;
  border: 1px solid #007acc;
  color: #007acc;
  padding: 12px;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  display: none;
  max-width: 500px;
  margin: 20px auto;
}

.message-container.success {
  background-color: #e6f9f0;
  border-color: #00a86b;
  color: #00a86b;
}

.message-container.error {
  background-color: #ffe6e6;
  border-color: #ff4d4d;
  color: #ff4d4d;
}

footer {
  background-color: #007acc;
  color: #fff;
  text-align: center;
  padding: 20px;
}

footer .social-links a {
  color: #ffc107;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: #fff;
}

@media screen and (max-width: 768px) {
  nav ul li {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .project-content {
    flex-direction: column;
  }

  .project-details {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .project-tech {
    flex: 1;
  }

  form {
    padding: 0 20px;
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 10px;
  }

  header {
    padding: 10px;
  }

  .project-images {
    flex-wrap: wrap;
  }

  .project-images img {
    width: calc(50% - 10px);
    height: 50%;
  }
}
