/* OVERIDE STYLES */

p {
  color : #414141
}

/* PORTFOLIO SECTION  */

.about-me-text {
  font-size : 20px;
}



.portfolio-project-container {
  display: grid;
  grid-template-columns: 48% 48%;
  grid-template-rows: auto; /* Only one row */
  max-width: 100%;
  gap: 4%;
  margin-bottom: 200px;
}

.step-container-margin {
  margin-bottom: 100px;
}

.portfolio-left-container,
.portfolio-right-container {
  align-self: center; /* Center vertically */
}

.has-demo-link {
  position: relative; /* Ensure this is set */
  cursor: pointer;
}

.reverse-project-containers {
  grid-template-areas: "right left";
}

.portfolio-project-container:not(.reverse-project-containers) {
  grid-template-areas: "left right";
}

.portfolio-image {
  width: 100%;
  height: auto;
  box-shadow: 5px 15px 15px rgba(46, 46, 46, 0.2);
  border-radius: 5px;
}

.has-demo-link .portfolio-image {
  transition: filter 0.3s;
}

.portfolio-section-title {
  font-size : 60px;
  margin-bottom : 80px;
}

.project-description {
  margin-bottom : 20px;
}

.mobile-title {
  grid-area: mobile;
  display: none;
}

.desktop-title {
  font-size : 30px;
}

.portfolio-left-container {
  grid-area: left;
}

.portfolio-right-container {
  grid-area: right;
}

.has-demo-link:hover .portfolio-image {
  filter: brightness(40%);
}

.portfolio-right-container a {
  display: block;
}

.has-demo-link .view-demo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 23px;
  opacity: 0;
  transition: opacity 0.3s;
}

.has-demo-link:hover .view-demo-text {
  opacity: 1;
}


/* Media query for smaller screens */
@media screen and (max-width: 768px) {

  .about-me-text {
    font-size : 16px;
  }

  p li {
    font-size : 16px;
  }

  .portfolio-section-title-container {
    text-align: center; /* Center the text */
  }

  .portfolio-section-title {
    margin-left: auto;  /* Center the title horizontally */
    margin-right: auto;
    margin-top: -30px;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: block;
    font-size : 35px;
  }

  .portfolio-project-container {
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto;
    margin-left: 0;
    gap : 10px;
    margin-bottom: 50px;
  }

  .step-container-margin {
    margin-bottom: 50px;
  }

  .reverse-project-containers {
    grid-template-areas:
      "mobile"
      "right"
      "left";
  }

  .portfolio-project-container:not(.reverse-project-containers) {
    grid-template-areas:
      "mobile"
      "right"
      "left";
  }

  .portfolio-section-title {
    margin-bottom : 50px;
    font-size : 50px;
  }

  .portfolio-left-container,
  .portfolio-right-container,
  .portfolio-section-title-container {
    width: 100%;
    margin-right : auto;
    margin-left: auto; 
  }

  .portfolio-image {
    box-shadow: 5px 5px 10px rgba(105, 105, 105, 0.2);
    border-radius: 5px;
    margin-bottom : 10px;
    width : 100%;
    height : 100%;
  }
}


.project-page-h1 {
  font-size : 75px;
}

.project-page-h2 {
  font-size : 50px;
}

.project-page-technologies {
  display: column;
  flex-direction: column;
  align-items :flex-end;
  margin-bottom : 25px;
}

.project-page-technologies ul {
  list-style-type: none;
  padding: 0;
}

.project-page-technologies ul li {
  display: inline-block;
  font-size: 20px;
  margin-right: 10px;
  margin-bottom: 20px;
  background-color: #D9D9D9;
  color: black;
  padding: 5px 10px;
  border-radius: 5px;
}



.project-page-image {
  max-width: 100%;
  height: auto;
  box-shadow: 5px 10px 10px rgba(46, 46, 46, 0.1);
  border-radius: 5px;
  margin-bottom : 25px;
}


.project-page-container {
  padding-bottom : 25px;
  padding-top : 25px;
}

.grey-background {
  background-color: #f2f3f5;
}

.project-page-description {
  margin-bottom : 15px;
}

.project-page-buttons-container {
  margin-bottom : 25px;
}

.key-features {
  color : black;

}

.key-features li {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.key-features li:last-child {
  margin-bottom: 0;
}

figcaption {
  font-size : 15px !important;
}

.project-page-list li {
  color : #414141;
  list-style-type : disc;
  margin-left : 16px;
}

.title-paragraph-container {
  margin-bottom : 50px;
}