/* Removed CSS variables and replaced with static values */

.background-container {
  padding-top: 5rem;
  width: 100%;
}

.page-title p {
  color: #c2bebe;
  padding-left: 32em;
  font-size: 1.1em;
  font-weight: 300;
}

@media screen and (max-width: 1024px) {
  html {
    font-size: 0.938rem;
  }
}

html {
  scroll-behavior: smooth;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  cursor: pointer;
}
button {
  border: none;
  outline: none;
}

body {
  color: hsl(240, 1%, 22%);
}
.container {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}
.grid {
  display: grid;
}

.section-title {
  text-align: center;
  font-size: 3em;
  font-weight: 300;
  padding-bottom: 0.5em;
  opacity: 0;
}
.section-title span {
  font-weight: 400;
}

.byFade4 {
  animation: byFade4 1.2s 1s ease both;
}

@keyframes byFade4 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}
.section-title::before {
  content: attr(data-heading);
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #e49551;
}
.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background-color: hsl(240, 92%, 46%);
  color: hsl(242, 8%, 95%);
  padding: 0.75rem 1.4rem;
  border-radius: 0.25rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
  transition: 0.4s;
}
.button::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: hsl(210, 10%, 23%);
  z-index: -1;
  transform-origin: center;
  transform: scale(0);
  border-radius: 0.25rem;
  transition: 0.3s;
}
.button:hover::after {
  transform: scale(1);
}
.form-submit-button {
  background: #43411e;
  width: 6.25rem;
  height: 2.5rem;
  color: #fff;
  border-radius: 20px;
  text-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2em;
  margin-top: 3%;
  padding-top: 0;
  cursor: pointer;
}
/* Main - Work */
#work {
  height: 100vh;
}
.work-container {
  grid-template-columns: repeat(3, 375px);
  gap: 1.8rem;
  justify-content: center;
  padding-top: 1rem;
}
.work-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 2rem;
}
.work-item {
  cursor: pointer;
  color: #43411e;
  padding: 0.25rem 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
}
.work-card {
  background-color: #e2884f;
  border-radius: 0.5rem;
}
.portfolio-item-details {
  display: none;
}
.work-img {
  border-radius: 0.5em 0.5em 0 0;
  margin-bottom: 0.5rem;
}
.work-title {
  padding-left: 0.5em;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

/* color: #e49551; */

.work-button {
  padding-left: 0.5em;
  padding-bottom: 1em;
  color: hsl(0, 2%, 90%);
  font-size: 1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
}
.work-button-icon {
  font-size: 1rem;
  transition: 0.4s;
}
.work-button:hover .work-button-icon {
  transform: translateX(0.25rem);
}
.active-work {
  background-color: #e49551;
  color: hsl(242, 8%, 95%);
}

.portfolio-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  transition: 0.4s;
}
.portfolio-popup.open {
  opacity: 1;
  visibility: visible;
}
.portfolio-popup-inner {
  background-color: hsl(242, 14%, 10%);
  width: 900px;
  border-radius: 0.5rem;
  border: 0.1px solid #383737;
  padding: 2.5rem;
  position: relative;
}

/* .portfolio-popup-inner::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(45deg, #ff6ec4, #cf730a);
  filter: blur(15px);
  border-radius: inherit;
} */
.portfolio-popup-content {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  column-gap: 3rem;
  color: aliceblue;
}
.portfolio-popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #e49551;
  cursor: pointer;
}
.portfolio-popup-img {
  border-radius: 0.5rem;
}
.portfolio-popup-subtitle {
  font-size: 0.813rem;
  margin-bottom: 0.25rem;
}
.details-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #e49551;
}
.details-description {
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.details-info li {
  margin-bottom: 0.75rem;
  text-transform: capitalize;
  font-size: 0.875rem;
}
.details-info li:last-child {
  margin-bottom: 0;
}
.details-info li span {
  font-weight: normal;
}
.details-info li a {
  text-transform: lowercase;
  color: #e49551;
}
@media screen and (max-width: 1216px) {
  .work-container {
    grid-template-columns: repeat(2, 330px);
    padding-bottom: 5em;
    gap: 3rem;
  }
  #work {
    height: auto;
  }
}
@media screen and (max-width: 800px) {
  .page-title p {
    padding-left: 14em;
  }
  .background-container {
    padding-bottom: 5em;
    width: 100%;
  }
  .work-container {
    grid-template-columns: 90%;
  }

  .portfolio-popup-inner {
    width: 420px;
    padding: 2.8rem 1.5rem 2.5rem;
  }
  .portfolio-popup-content {
    grid-template-columns: 1fr;
    row-gap: 1.6rem;
  }
  .details-title {
    font-size: var(--normal-font-size);
  }
  .portfolio-popup-close {
    top: 0.5rem;
  }

  #work {
    height: auto;
  }
}
