/* ************************* */
/*      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 Hero       */
/* ************************* */
.section-hero {
  background-image: linear-gradient(to bottom, transparent, #0f0f0f),
    url("../imgs/bkg_img.webp");
  background-size: cover;
  background-position: center 70%;
  padding: 6.4rem 0;
  height: 100vh;
  /* margin-top: 6.4rem; */
  position: sticky;
  top: 0;
  z-index: 1;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.2rem;
  min-height: 40.7rem;
}

.section-hero:after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: block;
  content: "";

  background-image: url("../imgs/dust_texture.webp");
  opacity: 40%;
  background-position: center 40%;
  pointer-events: none;
}

#container3D {
  /* background-color: #000; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: -1;
  height: 50rem;
  width: 50rem;
  border-radius: 50%;
  overflow: hidden;
  /* border: 2px solid #ff322f; */
}

#container3D:after {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: block;
  content: "";
  border-radius: 50%;
  backdrop-filter: blur(1px);
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.8rem;
}

.title-name {
  display: flex;
  /* color: #ee1e1a; */
  color: #c30d3e;
  font-size: 20rem;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.title-role {
  color: #fff;
  font-size: 5.4rem;
  justify-self: center;
  text-transform: uppercase;
  font-weight: 600;
}

.icon-btn:link,
.icon-btn:visited {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  position: absolute;
  bottom: 5%; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  z-index: 999; /* Ensure it's above other elements */
  color: rgba(255, 255, 255, 0.3);
  font-size: 8rem;
  pointer-events: auto;
  transition: all 0.3s;
}

.icon-btn:hover,
.icon-btn:active {
  color: rgba(255, 255, 255, 0.5);
}

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

.projects {
  margin: 0 3.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-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;
}

.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;
  box-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;
  background-color: #c30d3e;
  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 About Me      */
/* ************************* */
.section-about {
  padding: 6.4rem 0;
  background-color: #0f0f0f;
  z-index: 3;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* height: 150vh; temp */
}

.about-content {
  margin: 3.2rem 3.2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  justify-items: center;
}

.about-img {
  width: 80%;
}

.about-text-box {
  color: #e0e0e0;
  line-height: 1.6;
  font-weight: 400;
  font-size: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 3.2rem;
  justify-self: flex-start;
  letter-spacing: 1;
}

/* ************************* */
/*      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;
}
