/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding-top: 2.5rem;
}

.header-left h1 {
  font-size: 24px;
  font-weight: normal;
  margin-left: 4rem;
}

.header-left a {
  text-decoration: none;
  color: #000;
}

.header-right ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-right: 4rem;
}

.header-right ul li a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
}

main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.category h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 20px 0;
}

.project-item {
  width: calc(33.333% - 20px);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #000;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: scale(1.05); /* Scale up slightly on hover */
}

.project-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.project-item p {
  margin: 10px 0;
  color: #555;
  font-size: 14px;
}

footer {
  padding: 20px;
  text-align: center;
  background-color: #fff;
  border-top: 1px solid #ddd;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

h2 {
  font-size: 24px;
  margin-bottom: 3rem;
}

/* Photography page */
/* Web page */
/* UX page */

/* Thumbnail Styles */
.thumbnail {
  width: 300px;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  margin: 10px;
}

/* Darken effect on hover */
.thumbnail:hover {
  filter: brightness(70%); /* Darken the image on hover */
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 70px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

iframe {
  width: 90vw;
  height: 90vh;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 70vw;
  max-height: 90vh;
  height: auto;
  object-fit: contain;
}
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #f1f1f1;
  font-size: 40px;
  cursor: pointer;
}
.left-arrow {
  left: 20px;
}
.right-arrow {
  right: 20px;
}

/* Project Gallery Styles */
.project-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 20px 0;
}
.project {
  text-align: center;
  padding: 10px;
  width: calc(33% - 20px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 10px 10px;
}

/* Scale effect on hover */
.project:hover {
  transform: scale(1.02);
}

/* Description Styles */
.project-description {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
  padding: 0 10px;
  line-height: 1.5;
  text-align: left;
}

/* Description Styles */
.project-description {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
  padding: 0 10px;
}

/* End of pages  */

/* About page */
.about-main {
  margin-top: 4rem;
  display: flex;
  justify-content: center; /* Center the section */
  padding: 40px 20px; /* Add padding around the main content */
}

#about-section {
  display: flex;
  align-items: center;
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease; /* Animation */
}

#about-section.show {
  opacity: 1;
  transform: translateY(0);
}

.about-img {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  margin-right: 20px;
}

.about-description {
  flex: 1;
  font-size: 18px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
}

.contact-button {
  color: #b06a8f;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s;
}

.contact-button:hover {
  background-color: #b06a8f;
  color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .project-item,
  .project {
    width: 100%;
    margin: 10px 0;
  }

  .header-right ul {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0;
  }

  .header-left h1 {
    margin-left: 0; /* Center logo */
  }

  /* Adjust the thumbnail for mobile */
  .thumbnail {
    width: 100%;
    height: auto;
  }

  /* Modal Styles for images */
  .modal {
    padding: 10px;
  }

  .modal-content {
    width: 100%;
    height: auto;
  }

  /* Button styles */
  .contact-button {
    width: 100%; /* Full width for buttons */
  }
  #about-section {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .about-description {
    padding: 0 10px;
  }

  .about-img {
    max-width: 80%;
  }
}

@media (max-width: 480px) {
  .header-right ul {
    flex-direction: column;
  }
  .about-img {
    max-width: 100%;
  }
}
