/* Reset some basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: Georgia, 'Times New Roman', Times, serif;
  scroll-behavior: smooth;
}

/* Topbar styles */
.topbar {
  position: fixed;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  z-index: 1000;
}

.topbar .container {
  display: flex;
  justify-content: center;
}

.topbar a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.topbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Header styles */
.header {
  height: 100vh;
  background-image: url('header-bg.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding-top: 60px; /* To account for the fixed topbar */
}

.header-content h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.header-content p {
  font-size: 1.5em;
}

/* Section styles */
section {
  padding: 100px 120px;
  text-align: center;
}

.about, .projects, .contact {
  background-color: #f4f4f4;
}

.about h2, .projects h2, .contact h2 {
  margin-bottom: 20px;
  font-size: 2.5em;
}

.about p, .projects p, .contact p {
  font-size: 1.2em;
}

/* About section styles */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
}

.about-description {
  flex: 2;
  padding-left: 100px;
  padding-right: 100px;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 10px;
  padding-right: 100px;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
}

.about button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 20px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.about button:hover {
  background-color: #320c9b;
}

/* Project container styles */
.project-container {
  display: flex;
  flex-wrap: wrap; /* Wrap projects to the next row */
  justify-content: center;
}

.project {
  flex: 0 0 45%; /* Adjust width to fit two projects in a row */
  background-color: white;
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project:nth-child(even) {
  margin-right: 0; /* Remove right margin for even projects */
}

.project:nth-child(odd) {
  margin-left: 0; /* Remove left margin for odd projects */
}

.project-image, .project-description {
  width: 100%;
}

.project-image img {
  max-width: 100%;
  border-radius: 10px;
}

.project-description h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.project-description p {
  font-size: 1.2em;
}

/* Contact form styles */
.contact-info p:last-child {
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form label {
  margin: 10px 0 5px;
}

form input, form textarea {
  padding: 10px;
  width: 80%;
  margin-bottom: 20px;
}

form button {
  padding: 10px 20px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
}

form button:hover {
  background-color: #320c9b;
}

/* Footer styles */
.footer {
  background-color: #333;
  color: white;
  padding: 10px 0;
  text-align: center;
}

/* Parallax effect for sections */
.header, .about, .projects, .contact {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.about {
  background-image: url('about-bg.jpg');
}

.projects {
  background-image: url('projects-bg.jpg');
}

.contact {
  background-image: url('contact-bg.jpg');
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 2.5em;
  }

  .header-content p {
    font-size: 1.2em;
  }

  section {
    padding: 50px 20px;
  }

  .about-description, .about-image {
    padding: 0;
    text-align: center;
  }

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

  .about-description {
    padding-bottom: 20px;
  }

  .project {
    flex: 0 0 90%; /* Adjust width for mobile screens */
  }

  form input, form textarea {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-content h1 {
    font-size: 2em;
  }

  .header-content p {
    font-size: 1em;
  }

  .about h2, .projects h2, .contact h2 {
    font-size: 2em;
  }

  .about p, .projects p, .contact p {
    font-size: 1em;
  }

  .about button {
    padding: 10px 20px;
  }

  .project-description p {
    font-size: 1em;
  }

  form button {
    padding: 10px 15px;
  }
}
