/* ************************* */
/*      Section Header       */
/* ************************* */

.header {
  height: 6.4rem;
  padding: 0 6.4rem;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  z-index: 1;
}

.main-nav-list {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 3.2rem;
  padding: 1.4rem;
  flex-wrap: nowrap;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  padding: 1.2rem 2.4rem;
  border-bottom: 1px solid #fff;
  outline: 1px solid #fff;
  background-color: #0f0f0f;
  transition: all 0.3s;
  position: relative;
  white-space: nowrap;
}

.main-nav-link:hover,
.main-nav-link:active {
  background-color: #fff;
  color: #0f0f0f;
}

.main-nav-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background-color: #fff;
}

/* ************************* */
/*      Section Gallery       */
/* ************************* */
.section-portfolio {
  padding: 6.4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #0f0f0f;
  gap: 3.2rem;
  position: relative;
}

.projects {
  margin: 0 3.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 3.2rem;
  row-gap: 3.2rem;
  width: 100%;
}

.project {
  display: flex;
  height: 25rem;
  width: 100%;

  position: relative;
  transition: 0.9s;
  transform-style: preserve-3d;
}
.project-wrapper {
  position: relative;
}

.project-wrapper:first-child:after {
  content: "NEW";
  font-weight: 600;
  font-size: 1.2rem;
  display: inline-block;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  background-color: yellow;
  padding: 0.5rem 1rem;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -50%);
}

.card-btn {
  position: absolute;
  width: 5rem;
  height: 5rem;
  bottom: 10%;
  right: 10%;
  border-radius: 50%;
  background-color: #c30d3e;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

.card-btn:hover {
  outline: 7px solid #d51a4c;
}

.card-btn:active {
  outline: none;
  background-color: #8f092b;
  width: 7rem;
  height: 7rem;
  transform: translate(1rem, 1rem);
}

.flip {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  text-align: center;
  backface-visibility: hidden;
  transition: 0.9s;
  transform-style: preserve-3d;
}

.front {
  transform: rotateY(0deg);
}

.project-img {
  width: 100%;
  height: 100%;
  filter: blur(1px);
  filter: brightness(70%);
  position: relative;
}

.front-title {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 500;
  font-size: 3rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.back {
  transform: rotateY(-180deg);
  background-color: #d21949;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem;
}

.project-title {
  font-weight: 500;
  font-size: 2.4rem;
  margin-top: 1.8rem;
}

.project-description {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #f6d2db;
}

.project-tags {
  display: flex;
  gap: 1rem;
}

.tag {
  padding: 0.4rem 0.8rem;
  border-radius: 10000px;
  background-color: #c30d3e;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.project-link:link,
.project-link:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  background-color: #f6d2db;
  color: #c30d3e;
  border-radius: 9999px;
  width: auto;
  text-align: center;
  align-self: flex-start;
  transition: all 0.3s;
}

.project-link:hover,
.project-link:active {
  background-color: #ffe2e9;
  padding: 0.9rem 1.8rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn-more:link,
.btn-more:visited {
  display: inline-block;
  font-weight: 600;
  font-size: 1.2rem;
  background-color: #ff322f;
  color: #fff;
  text-decoration: none;
  padding: 1.2rem 2.4rem;

  border: 1px solid #c30d3e;
  outline: 1px solid #c30d3e;
  outline-offset: 5px;

  transition: all 0.3s;
  position: relative;
}

.btn-more:hover,
.btn-more:active {
  outline: 3px solid #c30d3e;
}

/* ************************* */
/*      Section Footer       */
/* ************************* */

.footer {
  padding: 3.2rem 0;
  /* margin: 0 6.4rem; */
  z-index: 3;
  background-color: #fff;
  position: relative;
}

.footer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
}

.footer-btn {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 1.6rem;
  text-transform: uppercase;
  /* letter-spacing: 0.3px; */
}

.footer-icon-btn:link,
.footer-icon-btn:visited {
  color: #1a1a1a;
  font-size: 6rem;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-icon-btn:hover,
.footer-icon-btn:active {
  color: #545454;
}

.footer-content p:first-child {
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-content p:last-child {
  font-size: 20rem;
  color: #f0f0f0;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 3.2rem;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 1.6rem;
  font-weight: 500;
  padding: 0.9rem 1.8rem;
  border-radius: 99999px;
  text-transform: uppercase;
  border: 2px solid #1a1a1a;
}
