/* Universal Reset */
* {
  padding: 0;
  margin: 0;
}

/* Body */
body {
  background-color: #0f0e17;
  color: #a7a9be;
  overflow-x: hidden;
}

/* Font Definition */
@font-face {
  font-family: TAYBigBird;
  src: url('../fonts/TAYBigBird.ttf');
  font-weight: normal;
  font-style: normal;
}

/* Typography */
h1, h2, h3, h4, p, ul li, #project-selector {
  font-family: TAYBigBird, letter-gothic-std, monospace;
  display: block;
  margin: auto;
  font-weight: normal;
  font-style: normal;
}

h1 {
  font-size: 48px;
  line-height: 56px;
  padding-bottom: 30px;
}

h2 {
  font-size: 32px;
  line-height: 48px;
  color: #fffffe;
  margin-top: 40px;
}

h3 {
  margin-top: 40px;
  line-height: 32px;
  padding-bottom: 60px;
}

#collab {
  padding-bottom: 0px;
}

p {
  font-size: 14px;
  line-height: 28px;
  color: white;
}

a, ul li a {
  color: #a7a9be;
  text-decoration: none;
}

a:hover, ul li a:hover {
  border-bottom: 1px dotted #a7a9be;
}

a {
  color: #f25f4c;
}

a:hover {
  border-bottom: 1px dashed #f25f4c;
}

span, .job-title, .section .teaching-item .job-title {
  color: #fffffe;
}

/* Wrapper */
#wrapper {
  width: 80vw;
  margin: auto;
  text-align: center;
  padding-top: 80px;
  max-width: 1400px;
}

#wrapper h1, #wrapper h2, #wrapper h3, #wrapper p {
  width: 90%;
}

#wrapper h1 {
  margin-top: 50px;
}

/* Navigation */

#nav {
  /* border: 1px solid #666; */
  width: 100vw;
}

#nav ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  width: calc(100vw - 20px);
  background-color: rgba(15, 14, 23, 0.9);
  position: fixed;
  z-index: 1000;
  margin: auto;
  transition: transform 0.5s ease-in-out;
  border-bottom: 2px solid #141222;
  top: -2px
}

#nav ul.hidden {
  transform: translateY(-100%);
}

#nav ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  flex-basis: 0;
  text-align: center;
  padding: 40px 0;
  box-sizing: border-box;
}

ul #home-link {
  display: none !important;
}

ul #about-link, ul #recent-work-link {
  display: flex !important;
}

/* Photobooth */
#photobooth img {
  border: 3px solid #a7a9be;
  width: 25%;
  max-width: 300px;
  min-width: 150px;
  margin-top: 50px;
  rotate: -1.5deg;
  transition: 0.3s, transform 0.1s linear;
}

/* Portfolio */
.portfolio, .projects-featured, .projects-not-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: auto;
  margin-top: 30px;
  width: 90%;
  margin-bottom: 0px;
}

.portfolio {
  margin-bottom: 60px;
}

.projects-not-featured {
  /* grid-template-columns: repeat(4, 1fr); */
  margin-bottom: 80px;
}

.overview .work img {
  width: 100%; 
  margin-bottom: 10px;
}

.overview a {
  border-bottom: none;
}



/* Work */
.work {
  margin: 10px 0 20px;
  text-align: center;
  width: 100%;
}

.work p {
  margin-top: 5px;
  font-family: letter-gothic-std, monospace;
  font-weight: 400;
  margin-top: 20px;
}

.work h3 {
  margin: 0 auto 8px;
  padding: 0;
  width: 100%;
  text-align: center;
  line-height: 22px;
}

.work img {
  border-radius: 10px;
  width: 100%;
  margin-bottom: 30px;
}

.work a:hover {
  border-bottom: none;
}

#recent-work-headline {
  width: 90%;
  padding-bottom: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;  
  margin: auto;
  border-bottom: 1px dotted #fffffe;
}

#recent-work-headline h2, #recent-work-headline h3 {
  padding-bottom: 0px;
  line-height: 18px;
}

#recent-work-headline h2 {
  text-align: left;
}

#recent-work-headline h3 {
  text-align: right;
  margin: 0 0 0 0;
  margin-top: 40px;
}



/* Overlay and Resume */
#overlay {
  position: fixed;
  bottom: -300vh;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 14, 23, 0.99);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1200;
  transition: bottom 0.5s ease-in-out;
  overflow-y: auto;
}

#overlay.visible {
  bottom: 0;
}

#close-overlay {
  position: relative;
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  height: 50px;
}

#close-overlay p {
  display: block;
  font-size: 18px;
  font-family: TAYBigBird, letter-gothic-std, monospace;
  color: #fffffe;
  margin: auto;
  padding-top: 30px;
}

.resume-page {
  width: 80vw;
  margin: 0;
  padding: 200px 0;
  overflow-y: auto;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-column-gap: 40px;
}

.resume-page * {
  padding: 0;
  margin: 0;
}

.resume-page h2 {
  line-height: 30px;
}

.resume-page .contact-info {
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.5em;
  margin-bottom: 30px;
  border-bottom: 1px solid #fffffe;
  display: inline-block;
}

.experience-item,
.skills-item {
  margin-bottom: 15px;
}

.resume-page .section {
  margin-bottom: 60px;
}

.resume-page, .job-courses {
  color: #666;
  text-align: left;
}

.skills-item ul, .experience-item ul {
  position: relative;
  text-align: left;
  padding-left: 15px;
}

.resume-page ul li,
.resume-page p {
  display: block;
  text-align: left;
  font-family: letter-gothic-std, monospace;
  font-weight: 400;
}

.resume-page ul li {
  list-style-type: disc;
  display: list-item;
  line-height: 28px;
}

.skills-item ul li, .experience-item ul li {
  margin-bottom: 20px;
  color: #fffffe;
  font-size: 14px;
}

.education-item,
.experience-item,
.teaching-item {
  padding-bottom: 20px;
}

.section-title .education-item {
  padding: 0;
}

.job-duration,
.location,
.skills-item {
  padding-bottom: 20px;
}

.job-company {
  color: #a7a9be
}

#teaching-final {
  padding: 0;
}

.degree {
  color: #fffffe;
}

.skills-item p span {
  font-weight: 700;
  color: #fffffe;
}

.skills-item p {
  font-weight: 400;
  margin-bottom: 15px;
  color: #a7a9be;
}

.resume-header {
  display: grid;
  grid-template-columns: 5.5fr 3.25fr 3.25fr;
  padding-bottom: 60px;
  gap: 20px;
}

.resume-header h3 {
  line-height: 18px;
  margin: 10px 0;
}

#res-head-left, #res-head-center, #res-head-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#res-head-left img {
  padding-right: 20px;
  width: 100px;
  border-right: 1px dotted #fffffe;
}

#res-head-center, #res-head-right {
  border-left: 1px dotted #fffffe;
  padding-left: 20px;
}

#res-head-left h2 {
  padding: 0 15px;
  font-size: 1.5em;
}

#res-head-right #link-color-reset a {
  color: #a7a9be;
}

/* Box Animation */
.box {
  --mask-pos-x: 0px;
  --mask: radial-gradient(15.87px at 50% calc(100% + 11px), #0000 calc(99% - 2px), #000 calc(101% - 2px) 99%, #0000 101%) calc(50% - 20px + var(--mask-pos-x)) calc(50% - 6px + 0.5px)/40px 12px repeat-x,
          radial-gradient(15.87px at 50% -11px, #0000 calc(99% - 2px), #000 calc(101% - 2px) 99%, #0000 101%) calc(50% + var(--mask-pos-x)) calc(50% + 6px)/40px 12px repeat-x;
  mask: var(--mask);
  transition: 0.3s;
  background-color: #fffffe;
  animation: slideWaves 1.5s linear infinite normal;
}

@keyframes slideWaves {
  0% {
    --mask-pos-x: 0px;
  }
  100% {
    --mask-pos-x: -35vw;
  }
}

.footer-box {
  margin-top: 40px;
}

/* Mobile */
@media only screen and (max-width: 600px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  h1 {
    font-size: 32px;
    line-height: 48px;
  }

  h2 {
    font-size: 18px;
    line-height: 32px;
  }

  .portfolio, .projects-featured, .projects-not-featured {
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
    margin-top: 30px;
    margin-bottom: 60px;
  }

  #close-overlay {
    position: relative;
    top: 100px;
    z-index: 2000;
  }

  .resume-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas: " right " " left ";
  }

  .resume-header {
    grid-template-columns: 1fr;
    width: 90vw;
    gap: 20px;
    padding: 0;
    margin: 0;
    padding-bottom: 80px;
  }

  #res-head-left h2 {
    font-size: 22px;;
  }

  #res-head-right div h3, #res-head-center div h3 {
    font-size: 16px;
  }

  #res-head-right, #res-head-center {
    font-size: 16px;
    padding: 0px;
    margin: 0px;
    border: none;
  }

  #res-head-center, #res-head-right {
    display: none;
  }

  .resume-page {
    position: relative;
    padding-bottom: 0;
    width: 100%;
    margin: auto;
  }

  .skills-item {
    width: 90vw;
  }

  #left {
    grid-area: left;
    width: 100%;
  }

  #right {
    grid-area: right;
    width: 100%;
  }

  .work {
    margin-bottom: 60px;
  }

  #wrapper h1 {
    margin-top: 20px;
  }

  ul {
    width: 90vw;
  }

  ul li {
    padding: 20px 0;
    width: 90vw;
  }

  .overlay-content {
    width: 90vw;
  }

  #overlay {
    width: 100vw;
    padding: 0;
    margin: 0;
  }

  .experience-item ul, .experience-item ul li, .skills-item p, .resume-header, .section p {
    width: 90vw;
    padding-left: 0px;
  }

  #overlay-about h2 {
    display: block;
  }

  #footer p {
    font-size: 10px;
  }

  #footer h3 {
    line-height: 22px;
  }

  #selector p a, #selector #project-selector {
    font-size: 18px;
  }

  #selector #project-selector {
    width: 100%;
    text-align: left;
    position: relative;
    top: -4px
  }

  h3.see-all-projects a {
    color: #f25f4c;
  }

  #selector div:first-child {
    display: none;
  }

  .portfolio .overview .work {
    margin-bottom: 0px;
  }

  .projects-featured, .projects-not-featured, .work {
    margin: 0 0 0 0;
  }

  .work {
    margin-bottom: 40px;
  }

  .projects-featured {
    margin-bottom: 24px;
    margin-top: 40px;
  }

  .projects-not-featured {
    margin-bottom: 20px;
  }

  ul #home-link {
    display: flex !important;
  }

  ul #about-link, ul #recent-work-link, ul #linkedin-link {
    display: none !important;
  }

  #recent-work-headline {
    width: 100%;
  }

  .prev-project, .next-project {
    display: none;
  }

  /* #project-header {
    background-color: pink;
    width: 100%;
  }

  #project-header p {
    background-color: yellow;
  } */

}

/* Disable scrolling */
.no-scroll {
  overflow: hidden;
}

/* Projects */

#project-container {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#project-container.fade-in {
  opacity: 1;
}

#project-container ul li {
  width: 90%;
  line-height: 40px;
}

#project-container iframe, #project-container img.hero-media {
  width: 100%;
  margin-top: 40px;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
}

h2.project-title {
  color: #f25f4c;
  margin-left: 0;
}

h3.project-client, h3.project-role {
  margin: auto;
  margin-top: 0;
  padding-bottom: 0;
  margin-left: 0;
  text-align: left;
  line-height: 22px;
  font-size: 16px;
}

.project-title, .project-description, .project-skills-title, ul li, .tags, .project-category, .project-links-title {
  text-align: left;
}

.project-page {
  padding-top: 100px;
}

#project-head {
  display: block;
  width: 90%;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 30px;
}

.project-description, .project-description p, .project-description ul li {
  font-family: letter-gothic-std, monospace;
  font-weight: 400;
  padding-bottom: 20px;
}

#project-container .project-description ul li {
  list-style-type: none;
  display: list-item;
  line-height: 28px;
  font-size: 14px;
  color: white;
  padding-bottom: 15px;
}

.project-description h2 {
  font-size: 18px;
  border-bottom: 1px #a7a9be solid;
  display: block;
  margin-bottom: 20px;
}

#selector {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 20px;
  text-align: center;
  margin: 0 auto;
  border-bottom: 1px dotted #a7a9be;
  padding-bottom: 13px;
  margin-bottom: 40px;
}

#selector a {
  font-size: 24px
}

#selector a:hover {
  border: none;
}

#project-header {
  width: 100%;
  margin: auto;
  padding-bottom: 20px;
}

#project-header p {
  width: 100%;
  font-size: 32px;
  text-align: left;
}

#project-header p:last-child {
  color: #a7a9be;
  border-bottom: 1px dotted #a7a9be;
  padding-bottom: 15px;
  font-size: 24px;
}

#project-header a {
  color: #fffffe;
}

#project-header a:hover {
  border-bottom: none;
}

#selector div {
  flex: 1;
}



#selector div:first-child {
  text-align: left;
}

#selector div:nth-child(2), #selector div:nth-child(3){
  text-align: right;
}

#selector div:nth-child(3) p {
  width: 100%;
  text-align: right;
}

#selector select {
  margin-left: auto;
}

.tags {
  width: 90%;
  margin: 0 auto;
  margin-top: 20px;
  padding-bottom: 100px;
}

.tags h4.project-category {
  display: inline-block;
  padding: 10px;
  background-color:#a7a9be;
  color: #0f0e17;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;

}

.tags h4.project-category a {
  color: #0f0e17;
  border-bottom: none;
}

.skill {
  color: #fffffe;
  display: inline-block;
}

.project-skills-title, .project-links-title {
  padding-bottom: 0px;
  color: white;
}

ul.project-skills {
  padding-bottom: 40px;
}

#selector div p, #project-selector {
  font-size: 24px;
  padding-left: 0;
  margin-left: 0;
  text-align: left;
}

#selector div p {
  color: #a7a9be;
}

#project-selector {
  background-color: #0f0e17;
  color:#f25f4c;
  border: 0;
  text-align: right;
  margin: 3px 0px 0px 0px;
}

#project-selector:focus {
  outline: none;
}

.project-support-media-thumbnails {
  display: grid;
  width: 90%;
  margin: 0 auto;
  border-radius: 5px;
  text-align: left;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 20px;
  grid-row-gap: 18px

}

.project-support-media-thumbnails img {
  width: 100%; 
  height: auto; 
  border-radius: 5px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.project-support-media-thumbnails a:hover {
  border-bottom: 0;
}

ul.project-links li a {
  color:#f25f4c;
  border-bottom-color: #f25f4c;
}

ul.project-links {
  width: 100%;
}

/* Footer */
#footer {
  padding-top: 40px;
}

#footer h3 {
  padding-bottom: 40px;
}

#footer p {
  margin-top: 0;
  color: #a7a9be;
  padding-bottom: 60px;
}

#footer p span {
  color: #f25f4c;
  position: relative;
  top: 1px;
}

/* lightbox */

#lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: auto;
    width: 80%;
    
}

.lightbox-content img, .lightbox-content iframe {
    border-radius: 10px;
    max-height: 80vh;
    max-width: 80vw;
    margin: auto;
}

.lightbox-content iframe {
  width: 100%;
  height: 80vh;
}

#lightbox.fade-in {
  opacity: 1;
}

.prev, .next, .prev-project, .next-project {
    cursor: pointer;
    position: fixed;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    user-select: none;
}

.prev {
    left: 4%;
}

.next {
    right: 4%;
}

.prev-project {
  left: 1%;
}

.next-project {
  right: 1%;
}

.prev:hover, .next:hover, .prev-project:hover, .next-project:hover{
  border-bottom: none;
}

.close {
    position: fixed;
    top: 4%;
    right: 4%;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}



