body {
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
  background-image: url(../img/background.jpeg);
  background-size: cover;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

header {
  color: white;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  z-index: 1;
  grid-column: 1/-1;
}
header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .header-content .name-container {
  text-align: left;
}
header .header-content nav ul {
  list-style: none;
  display: flex;
}
header .header-content nav ul a {
  text-decoration: none;
  color: white;
  margin: 0 20px;
}
header .header-content nav ul a:hover {
  color: #f2b56a;
}
header .header-content nav ul a.active {
  font-weight: bold;
}

.main {
  padding: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  color: white;
}
.main .project-container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.main .project-container .project-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease-in-out;
}
.main .project-container .project-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.main .project-container .project-image:hover {
  transform: scale(1.1);
}
.main .project-container .project-info {
  position: relative;
  z-index: 3;
  padding: 30px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin-top: -50px;
  flex-grow: 1;
}
.main .project-container .project-info h2 {
  margin-bottom: 10px;
}
.main .project-container .project-info p {
  margin-bottom: 20px;
}
.main .project-container .project-info a {
  color: white;
  display: inline-block;
  text-decoration: none;
}
.main .project-container .project-info a:hover {
  text-decoration: underline;
  color: antiquewhite;
}

.about-page {
  padding: 50px;
}
.about-page .about-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-page .about-content h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.about-page .about-content p {
  font-size: 1.2em;
  line-height: 1.5;
}
.about-page .about-section {
  margin-top: 30px;
}
.about-page .about-section h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
}
.about-page .about-section p {
  font-size: 1.2em;
  line-height: 1.5;
}

.contact-page {
  padding: 50px;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
}

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

button {
  background-color: #411761;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
@media (max-width: 480px) {
  .main, .contact-content {
    padding: 20px;
  }
}
footer {
  color: white;
  padding: 20px;
  grid-column: 1/-1;
}
footer .footer-content {
  display: flex;
  justify-content: space-between;
}
footer .footer-content .social-icons a {
  margin-left: 10px;
}
footer .footer-content .social-icons a img {
  width: 20px;
  height: 20px;
}