:root {
  --primary-color: #130d37;
  /*secondary-color: ;
      tertiary-color: ;*/
  --pg-border-color: #8e328f;
}

* {
  padding: 0;
  margin: 0;
}

body {
  color: white;
  font-family: "Titillium Web", sans-serif;
  overflow: hidden;
}

.wrapper {
  height: 100vh;
  width: 100vw;
  overflow-y: scroll;
  background-color: black;
}

.wrapper nav {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
}

/* .wrapper nav {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    z-index: 10;
    width: calc(100%);
    height: 80px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100%);
} */

main {
  background-color: black;
  height: 100vh;
  position: relative;
}

main .bg {
  width: 100%;
  height: 100%;
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
}

main .hue {
  z-index: 1;
  background-color: rgb(0, 0, 0);
  opacity: 0.6;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: fadeIn 1s;
}

@keyframes fadeIn {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

main nav {
  background-image: black;
  z-index: 10;
  width: calc(100% - 7px);
  height: 80px;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
}

main nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 7px);
}

nav h1 {
  font-size: 2em;
  padding-left: 40px;
}

.navbar {
  display: flex;
  width: 600px;
  padding-right: 70px;
  justify-content: space-between;
}

.navbar a {
  text-decoration: none;
  color: white;
}

.nov {
  color: #eebdff;
}

.navbar a div {
  padding: 5px;
  border-bottom: 2px solid transparent;
}

.navbar a div:hover {
  border-bottom: 2px solid white;
  animation: fadein 0.5s;
}

@keyframes fadein {
  0% {
    border-bottom: 2px solid transparent;
  }

  100% {
    border-bottom: 2px solid white;
  }
}

@media screen and (max-width: 950px) {
  .about-links {
    flex-direction: column;
    gap: 10px !important;
  }

  .about-links a {
    width: fit-content;
  }
}

@media screen and (max-width: 850px) {
  main nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 20px 0 !important;
  }

  main nav div h1 {
    padding: 0 !important;
  }

  .navbar {
    padding: 10px 0px 0px 0px !important;
    width: 80%;
  }
}

@media screen and (max-width: 420px) {
  .navbar {
    display: none;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px !important;
    background-color: #000;
    width: 100%;
  }

  .hamburger-nav {
    background-color: #000;
  }

  .upper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 40px !important;
    overflow: hidden;
    /* fix overflow issue */
    width: calc(100% - 80px);
  }

  .hamburger-menu {
    display: block;
    cursor: pointer;
  }

  .hamburger-menu .bar {
    width: 30px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
  }

  .person-modal-wrapper {
    top: 50% !important;
  }
}

.content {
  background-color: black;
  height: 100vh;
  top: 80px;
  width: 100%;
}

.bg-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.bg-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: fadeInImage 1s;
}

.bg-image-container .title {
  animation: slideInLeft 1s;
}

.bg-image-container .scroll-down {
  animation: slideInUp 1s;
}

@keyframes fadeInImage {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

.scroll-down {
  position: absolute;
  bottom: 100px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 5px;
  align-items: center;
}

.bg-image-container .title {
  position: absolute;
  top: 40%;
  left: 10%;
  font-size: 6em;
  color: white;
  /* color: #eebdff; */
  /* text-shadow: 0 0 10px #8e328f, 0 0 20px #8e328f, 0 0 30px #8e328f;  */
  text-shadow: 0 0 10px rgb(35, 22, 82), 0 0 10px rgb(35, 22, 82),
    0 0 10px rgb(35, 22, 82);
}

.opacity-layer {
  background-color: rgb(0, 0, 0);
  opacity: 0.6;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: fadeIn 1s;
}

@keyframes fadeIn {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.about-container {
  /* height: 100%; */
  border-radius: 15px;
  padding: 80px 200px;
  /* background: linear-gradient(90deg, #fbc2eb96 0%, #a6c1ee 100%); */
  background: linear-gradient(to bottom right, #4b1948, #442f69);
  /* background: linear-gradient(to bottom,rgba(43,20,9,255), #442f69 ); */
  position: relative;
  overflow: hidden;
}

.developers {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
}

@keyframes devSlideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.dev-title {
  font-size: 1em;
  font-weight: 550;
}

.devs-container {
  display: flex;
  flex-direction: row;
  gap: 50px;
  /* justify-content: flex-start; */
  /* max-width: 850px; */
}

.dev {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 450px;
  align-items: left;
  text-align: center;
}

.dev-image-container {
  width: 400px;
  aspect-ratio: 1/1;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.citation {
  word-wrap: break-word;
}

@media screen and (max-width: 1000px) {
  .devs-container {
    justify-content: center;
    max-width: 100%;
  }

  .dev-image-container {
    width: 100%;
    /* change aspect ratio to noen */
    aspect-ratio: initial;
  }
}

.dev-button {
  display: none;
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #c3c3c3;
  color: black;
  font-size: 0.8em;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  border-radius: 15px;
  text-align: center;
}

@keyframes fadeInButton {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOutButton {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.dev-button:hover {
  background-color: #858585;
  transition: all 0.3s ease-in-out;
}

.dev-text-container {
  margin-top: 10px;
}

.dev img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  object-position: center;
  display: flex;
}

.dev-name {
  font-size: 1.5em;
  font-weight: 550;
}

.dev-role {
  font-size: 1em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.534);
}

/* modal */
.person-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  overflow-y: scroll;
}

.nikhil,
.aayush {
  display: none;
}

.person-modal-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  max-width: 400px;
  height: 100%;
  max-height: 700px;
  overflow-y: auto;
  background: linear-gradient(to bottom right, #4b1948, #442f69);
  z-index: 2;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  animation: zoomIn 1s;
}

@keyframes zoomIn {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes zoomOut {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.5);
  }
}

.person-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.person-name {
  font-size: 2em;
  font-weight: 400;
}

.person-role {
  font-size: 1em;
  font-weight: 400;
  color: rgb(175, 175, 175);
}

.person-modal-header-right .close-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  cursor: pointer;
  background-color: transparent;
  color: white;
  padding: 10px 18px;
  border: 1px solid #858585;
}

.person-modal-header-right .close-button:hover {
  background-color: #858585;
  transition: all 0.3s ease-in-out;
}

.person-modal-image-container {
  height: 300px;
}

.person-modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
}

.person-modal-section {
  margin-top: 20px;
}

.person-modal-section-title {
  font-size: 0.8em;
  font-weight: 400;
  color: rgb(175, 175, 175);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.title-num {
  border-radius: 50%;
  border: 1px solid #c7c6c6;
  padding: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 15px;
  color: #c7c6c6;
}

.wbm-comp {
  margin-top: 50px !important;
}

.about-section {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
}

.about-section p {
  color: #c9c9c9;
}

.class-title-container {
  margin-bottom: 20px;
  opacity: 0;
}

@keyframes loadIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.class-title-container h1 {
  font-size: 2.5em;
}

.about-links {
  display: flex;
  gap: 30px;
}

.about-links a {
  color: #c9c9c9;
  font-size: 1em;
  font-weight: 400;
  text-decoration: none;
}

.about-links a:hover {
  text-decoration: underline;
  transition: all 0.3s ease-in-out;
}

.citations-list {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  opacity: 0;
}

.citations .dev-title {
  margin-bottom: 10px;
  color: #e7e6e6;
}

.citation-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #c9c9c9;
}

footer {
  background-color: black;
  color: white;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.footer-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 80%;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  padding: 20px;
}

.footer-sections {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.footer-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.footer-section h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #c2c2c2;
  text-align: left;
}

.foooter-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li a {
  color: #c2c2c2;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 400;
  margin-bottom: 5px;
}

.footer-section li a:hover {
  color: #eebdff;
  border-bottom: 1px solid #eebdff;
  transition: all 0.2s ease-in;
}

::-webkit-scrollbar {
  width: 7px;
  background-color: black;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #333;
  width: 7px;
  border-radius: 5px;
}

@media screen and (max-width: 650px) {
  .footer-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
  }

  .footer-sections {
    margin-top: 20px;
  }
}

@media screen and (max-width: 420px) {
  .footer-wrapper {
    width: 80%;
    text-align: center;
  }

  .footer-top {
    padding: 0px !important;
  }

  .footer-sections {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
  }

  .footer-section h3 {
    font-size: 1.1em;
  }

  .footer-section li a {
    font-size: 0.8em;
  }

  .footer-bottom p {
    font-size: 0.85em;
  }
}

@media screen and (max-width: 1250px) {
  .dev-image-container {
    height: 400px;
  }

  .about-container {
    padding: 80px;
  }
}

@media screen and (max-width: 850px) {
  .about-container {
    text-align: center;
  }

  .person-modal-section-title {
    justify-content: center;
  }

  .person-modal {
    text-align: center;
  }

  .person-name,
  .person-role {
    text-align: left;
  }

  .about-links {
    justify-content: center;
    align-items: center;
  }

  .title {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 3.5em !important;
  }

  .bg-image-container .title {
    animation: fadeTitle 1s ease-in-out;
  }

  @keyframes fadeTitle {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  .person-modal-wrapper {
    top: 55% !important;
  }
}

@media screen and (max-width: 750px) {
  .devs-container {
    flex-direction: column;
    gap: 50px;
  }
}

@media screen and (max-width: 550px) {
  .person-name {
    font-size: 1.2em;
  }

  .person-role {
    font-size: 0.9em;
  }

  .person-modal-header-right .close-button {
    font-size: 0.9em;
    padding: 5px 10px;
  }
}

@media screen and (max-width: 420px) {
  .about-container {
    padding: 40px;
  }

  .about-links {
    flex-direction: column;
    gap: 10px !important;
  }

  .class-title-container h1 {
    font-size: 2em;
  }

  .about-links a,
  .about-section p,
  .citation-text,
  .class-title-container p {
    font-size: 0.9em;
  }
}

@media screen and (max-height: 800px) {
  .person-modal-wrapper {
    max-height: 75%;
  }
}
