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

.header {
  height: 6.4rem;
  padding: 0 6.4rem;
  background-color: #0f0f0f;
}

.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; /* Adjust this value to set the offset */
  width: 100%;
  height: 1px; /* Adjust the thickness of the second border */
  background-color: #fff;
}

/* ************************* */
/*      Project Header       */
/* ************************* */
.proj-header {
  background-image: linear-gradient(
    to bottom,
    rgba(195, 13, 62, 0.3),
    rgba(195, 13, 62, 0.3)
  );
  background-size: cover;
  background-position: center 80%;
  height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem; /* Optional: add padding */
}

.proj-link {
  display: flex;
  align-items: center;
  background-color: #000;
  border-radius: 99999px;
  text-decoration: none;
  min-width: 8.5rem;
  position: relative;
}

.proj-link span {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.proj-link .link-icon {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  border: 2px solid #000;
  transition: all 0.3s;
}

.proj-link:hover .link-icon,
.proj-link:active .link-icon {
  background-color: #000;
  color: #fff;
  outline: 2px solid #fff;
}

.link-icon.r {
  right: -5%;
}

.link-icon.l {
  left: -5%;
}

.proj-link.r {
  justify-content: flex-start;
}

.proj-link.r span {
  padding: 1rem 2rem 1rem 1.3rem;
}

.proj-link.l {
  justify-content: flex-end;
}

.proj-link.l span {
  padding: 1rem 1.3rem 1rem 2rem;
}

.proj-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 120rem;
  width: 100%; /* Ensure it takes full width */
  margin: 0 auto;
  padding: 0 1rem; /* Add padding if needed */
}

.proj-header-main h1 {
  color: #fff;
  font-weight: 700;
  font-size: 3.6rem;
  text-align: center; /* Center the text */
  margin: 0 1rem; /* Add margin if needed */
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.date {
  color: #fff;
  align-self: center;
  margin-bottom: 2.2rem;
  font-weight: 500;
  font-size: 1.8rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.gallery-link:link,
.gallery-link:visited {
  color: #f6d2db;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.4rem;
  margin-left: 3.2rem;
}

.gallery-link:hover,
.gallery-link:active {
  color: #fff;
}

/* ************************* */
/*      Section Body       */
/* ************************* */

.section-body {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  max-width: 900px;
  margin: 2rem auto;
}

.proj-body {
  width: 100%;
}

.proj-body h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #0056b3;
  text-align: center;
  margin-bottom: 1.5rem;
}

.proj-body h3 {
  font-weight: 700;
  font-size: 1.8rem;
  color: #0056b3;
  text-align: left;
  margin-bottom: 1rem;
}

.proj-body h4 {
  font-weight: 700;
  font-size: 1.4rem;
  color: #0056b3;
  text-align: left;
  margin-bottom: 1rem;
}

.proj-body p {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.equation {
  font-family: "Courier New", Courier, monospace;
  background-color: #eaf4ff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.video-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.3rem;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.proj_img {
  display: block;
  margin: 0 auto;
  overflow: hidden;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.3rem;
  background-color: #002246;
  align-self: center;
}

.img_medium {
  max-width: 50%;
}

.img_small {
  max-width: 20%;
}

.bkg-none {
  background-color: #fff;
}

pre {
  max-width: 70%;
  margin: 0 auto;
  margin-bottom: 1.3rem;
}

.proj-li {
  margin-left: 1.5rem; /* Add left margin */
  font-size: 1.2rem; /* Adjust font size if needed */
}

.proj-li::marker {
  font-size: 1.5rem; /* Increase the size of the bullet point */
  color: #0056b3; /* Optional: change the color of the bullet point */
}

.pdf-down:link,
.pdf-down:visited {
  text-decoration: none;
  font-size: 1.4rem;
  padding: 1.2rem 2.4rem;
  background-color: #cce5ff;
  border-radius: 9999px;
  color: #0056b3;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.pdf-down:hover,
.pdf-down:active {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  background-color: #d9ebff;
}

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