@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500&display=swap');
/*@font-face {
    font-family: Book Antiqua;
    src: url('../fonts/book-antiqua.ttf');
}

@font-face {
    font-family: Bookman;
    src: url('../fonts/bookman-old.ttf');
}*/

body {
    min-height: 100vh;
    min-width: 100vw;
    margin: 0;
    overflow-x: hidden;
    overflow-y: overlay;
}

section {
    min-height: 100vh;
    background-size: cover;
    background-position-x: center;
}
  
html {
    scroll-behavior: smooth;
    font-family: Rubik;
}

/*///////PROJECT OVERLAY///////*/
body.inactive {
    overflow-y: hidden;
}

/*PROJECT OVERLAY*/
#project-overlay #content {
    overflow: auto;
    position: fixed;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    /*max-height: calc(100vh - 100px);*/
    height: calc(100vh - 100px);
    max-width: 1100px;
    width: calc(100vw - 160px);
    background: #efefef;
    background: #efefef;
    opacity: 0;  
    transition: opacity 0.4s linear 0.1s, visibility 0s linear 0.5s;
    visibility: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    padding: 30px 50px;
    border-radius: 4px;
  }
  
  #project-overlay.active #content {
    visibility: visible;
    transition: opacity 0.4s linear 0.1s, visibility 0s linear 0s;
    opacity: 1;
  }
  
  #project-overlay .overlay-background {
    position: fixed;
    z-index: 2;
    background: black;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.4s linear 0.1s, visibility 0s linear 0.5s;
    visibility: hidden;
  }
  
  #project-overlay .overlay-background.overlay-project {
    z-index: 3;
  }
  
  #project-overlay.active .overlay-background {
    opacity: 0.5;
    transition: opacity 0.4s linear 0.1s, visibility 0s linear 0s;
    visibility: visible;
  }
  
  .project-header {
    align-items: center;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
  }
  
  #content p {
    font-size: 16px;
  }
  
  #content h2 {
    font-size: 22px;
    margin: 30px auto 10px;
    font-weight: 400;
  }
  
  #content h3 {
    color: #666;
    font-size: 18px;
    font-weight: 400;
    margin: 5px 0 0;
  }
  
  #content h1 {
    color: #546e6d;
    font-size: 38px;
    font-weight: 400;
    margin: 0 0 5px;
  }
  
  #content h4 {
    color: #333;
    font-size: 22px;
    margin: 1px 0;
    font-weight: 400;
  }
  
  .project-content-link.project-link {
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 400;
    font-size: 17px;
    padding: 12px 24px;
  }
  
  .project-content-link:hover {
    text-decoration: none;
    color: #ffffff83;
  }
  
  .project-content-links-container {
    margin-top: 30px;
    display: flex;
  }
  
  .project-image-container {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    margin: 10px 25px;
    overflow: hidden;
  }
  
  .project-image-container .project-image {
    width: 100%;
    height: 100%;
  }
  
  .project-title-container {
    display: flex;
    flex-flow: column wrap;
  }
  
  .overlay-close:after {
    content: " ";
    width: 32px;
    height: 32px;
    top: 20px;
    right: 20px;
    position: absolute;
    background: url(../assets/close.png);
    background-size: contain;
    cursor: pointer;
    filter: grayscale(100%);
  }
  
  .overlay-close:hover:after {
    filter: grayscale(0%);
  }

  /*ASSETS PROJECTS*/
.project-content-top-container {
    display: flex;
    align-items: center;
  }
  
  .main-asset-container{
    margin-right: 20px;
    width: 44%;
    display: none;
  }
  
  .main-asset-container .video-asset {
    width: 100%;
  }
  
  .main-asset-container .image-asset {
    width: 100%;
    cursor: pointer;
  }
  
  .main-asset-text {
    width: 56%;
    width: 100%;
  }
  
  #projects .main-asset-text > h2.project-content-title {
    margin-top: 0;
  }

  /*///////////OTHER PROJECTS///////////*/
.other-projects .project-content-top-container:not(:first-child) {
    margin-top: 80px;
  }
  
  .other-projects .project-content-top-container:first-child{
    margin-top: 30px;
  }
  
  #content .other-projects .project-content-title {
    color: #546e6d;
  }
  
  .other-projects .project-content-link {
    font-size: 17px;
  }
  
  .other-projects .project-content-links-container {
    margin-top: 0;
  }
  
  .other-projects .project-content-top-container {
    align-items: initial;
  }

  .other-projects .main-asset-container {
      display: inherit;
  }
  
  .other-projects .main-asset-text {
    width: 56%;
    height: auto;
  }

  #content .other-projects h2 {
      margin-top :0;
  }

/*////////HEADER/////*/
.nav-header {
    /*background-image: url('../assets/asobo/header-bg.png');*/
    position: fixed;
    top:0;
    width: 100vw;
    z-index: 2;
    background-color: #f1eee8;
    height: 62px;
    box-shadow: 0 0 20px rgb(0 0 0 / 24%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-header .header-item .header-link {
    color: #546e6d;
    font-weight: 600;
    font-family: EB Garamond;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s;
    margin: 0 26px;
}

.nav-header .header-item .header-link:hover {
    color: #253334;
}

.nav-header a:first-child {
    margin-left: 0;
}

.nav-header a:last-child {
    margin-right: 0;
}

.nav-header .header-container {
    width: 78vw;
    max-width: 1140px;
    min-width: 600px;
    display: flex;
    justify-content: center;
}

/*//////////Backgrounds///////*/

#home{
    background-image: url('../assets/asobo/home-bg.jpg');
}

#home .home-trees, #skills .skills-mountains, #portfolio .portfolio-hills {
    position: absolute;
    bottom: 0;    
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    width: 100%;
    height: 0;
    padding-top: 66.64%;
    pointer-events: none;
}

#home .home-trees {
  background-image: url('../assets/asobo/home-trees.png?ver=1.1');
}

#skills .skills-mountains {
  background-image: url('../assets/asobo/skills-mountains.png?ver=1.1');
}

#portfolio .portfolio-hills {
  background-image: url('../assets/asobo/portfolio-hills.png?ver=1.1');
}

/*/////////////////////
/////////SKILLS////////
/////////////////////*/

#skills{
    position: relative;
    background-image: url('../assets/asobo/skills-bg.jpg');
}

#skills {
    display: flex;
    flex-flow: column;
    color: #ddd;
    font-weight: 400;
    font-size: calc(6.8px + 0.52vw);
}

#skills .skills-container {
    display: flex;
    width: 78vw;
    max-width: 1140px;
    min-width: 600px;
    margin: 0 auto 230px;
}

.section-title {
    font-family: Lora;
    margin: 80px auto 60px;
}

.section-title h1 {
    position: relative;
    font-weight: 500;
    font-size: calc(12px + 1.1vw);
    text-align: center;
}

.section-title h1:after {
    content: "";
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 1.5px;
    background-color: #ddd;
}

.section-title h1:before {
    position: absolute;
    bottom: 122%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 1.5px;
    background-color: #ddd;
}

#skills .skill-container {
    margin: 0 calc(20px + 1vw);
    display: flex;
    flex-flow: column;
    width: 100%;
    line-height: 1.4;
    color: #ddd;
}

#skills .skill-container:first-child {
    margin-left: 0;
}

#skills .skill-container:last-child {
    margin-right: 0;
}

#skills .skill-container p:last-child {
    line-height: 1.6;
}

#skills .skill-container ul {
    padding-inline-start: 17px;
}

#skills .skill-container ul li {
    margin-top: 8px;
}

#skills .skill-container h2 {
    color: #93b1b0;
    font-family: Lora;
    font-weight: 500;
    text-align: center;
    font-size: calc(9px + 0.9vw);
    margin-bottom: 0px;
}

#skills .skill-icon {
    width:calc(65px + 2.2vw);
    margin: 0 auto;
}

#skills div.skills-button a {
  background-color: #546e6d;
  color: #ddd;
}

#skills div.skills-button a:hover {
  background-color: #385251;
  color: #ddd;
}

#skills div.skills-button {
  bottom: 130px;
}

/*HOME*/
#home {
    position: relative;
}

#home .home-content {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: EB Garamon;
    left: 52%;
    transform: translate(-50%, -50%);
    top: 38%;
}


#home .home-content h2 {
    color: #555555;
    font-size: 29px;
    font-weight: 500;
    padding-top: 7px;
    z-index: 2;
}

#home .home-content h1 {
    padding-top: 30px;
    padding-bottom: 7px;
    color: #546e6d;
    font-size: 34px;
    font-weight: 500;
    position: relative;
}

#home .home-content h1:after {
    content: " ";
    position: absolute;
    top: 120%;
    left: 2px;
    width: 120px;
    height: 1.5px;
    background-color: #546e6d;
}



#home .home-content .home-image {
    max-width: 180px;
    margin-right: 40px;
}

#home .home-button, #skills .skills-button {
    position: absolute;
    bottom : 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

#home .home-button a, #skills .skills-button a {
    font-family: EB Garamon;
    font-size: 28px;
    text-decoration: none;
    color: #546e6d;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 8px 36px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 1);
    transition: background-color 0.3s;
}

#home .home-button a:hover, #skills .skills-button a {
    background-color: rgba(255, 255, 255, 1);
}

/*Portfolio*/
#portfolio {
    background-color: #f1eee8;
    display: flex;
    flex-flow: column;
    align-items: center;
    position: relative;
}

#portfolio .section-title h1:after, #portfolio .section-title h1:before {
    background-color: #546e6d;
}

#portfolio .section-title h1:after {
    top: 130%;
}

#portfolio .section-title h1 {
    color: #546e6d;
}

#portfolio .section-content, #about-me .section-content {
    width: 78vw;
    max-width: 1140px;
    min-width: 600px;
    margin-bottom: 12vh;
}

#portfolio .project-container {
    display: grid;
    grid-column-gap: 6%;
    grid-template-columns: 47% 47%;
    /*grid-template-columns: 500px auto;*/
    margin-bottom: 120px;
    margin-top: 30px;
}

#portfolio .project-container > div:first-child {
    grid-column-start: 1;
    grid-column-end: 2;
}

#portfolio .project-text-container {
    display: flex;
    flex-flow: column;
}

#portfolio .project-container > div:last-child {
    grid-column-start: 2;
    grid-column-end: 3;
}

#portfolio .project-text-container h2 {
    font-weight: 500;
    font-size: calc(12px + 1.1vw);
    font-family: 'Lora';
    margin: 0;
    color: #546e6d;
}

#portfolio .project-text-main {
    font-size: calc(7.5px + 0.6vw);
    margin: 8px 0 11px;
}

#portfolio .project-text-main p {
    margin: 4px 0;
}

#portfolio .project-text-main ul {
    list-style: none;
    padding-inline-start: 0;
    margin: 10px 0 5px;
}

#portfolio .project-text-main ul li {
    margin-top: 5px;
}

a.project-link {
    font-size: calc(7.5px + 0.6vw);
    text-decoration: none;
    color: #eee;
    background-color: #546e6d;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.5s, color 0.5s;
    width: max-content;
    margin-right: 15px;
}

a.project-link:hover {
    background-color: #395554;
}

.video-asset, .image-asset{
    width: 100%;
}

.image-asset {
  cursor: pointer;
}


/*/////////////////
////RESPONSIVE//////
//////////////////*/

@media screen and (max-width: 1000px){
  #project-overlay #content {
    max-height: 90vh;
    max-width: 90vw;
    padding: 20px 14px;
    width: 85vw;
  }

  #content p{
    font-size: 13px;
  }

  #content .project-header {
    margin-bottom: 10px;
  }

  #content h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }
  
  #content h1 {
    margin-top: 6px;
    font-size: 30px;
  }
  
  #content h4 {
    font-size: 20px;
    margin: 6px;
  }

  #content h2 {
    margin-top: 10px;
  }

  .project-header {
    text-align: center;
    flex-flow: column;
  }

  .section-title {
    margin: 60px auto 10px;
  }

  #skills .skills-container {
    max-width: 500px;
    width: 70vw;
    min-width: 0px;
    margin-bottom: 70px;
    flex-flow: column;
  }

  #skills .skill-container {
    margin: 20px 0;
  }

  #portfolio .section-content, #about-me .section-content {
    max-width: 500px;
    width: 76vw;
    min-width: 0px;
  }

  #content .in-ignis-veritas .project-content-item {
    max-width: 500px;
    width: 76vw;
    min-width: 0px;
    margin: auto;
  }

  #portfolio .project-container, #about-me div.about-me-item, #content .in-ignis-veritas .project-content-item {
    grid-template-columns: 100%;
    grid-column-gap: 0;
    margin-bottom: 30px;
  }

  #portfolio .project-container h2 {
    margin-top: 10px;
  }

  #portfolio .section-content .project-container > .project-text-container,  #about-me .section-content .about-me-item > .about-me-text-container, #content .in-ignis-veritas .project-text-container{
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 1;
    grid-column-end: 2;
  }
  #about-me .section-content .about-me-item > .about-me-text-container {
    margin: 20px 0 30px;
  }

  #portfolio .section-content .project-container > .project-asset-container,  #about-me .section-content .about-me-item > .about-me-images-container, #content .in-ignis-veritas .project-asset-container {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 1;
    grid-column-end: 2;
  }

  .other-projects .main-asset-container, .other-projects .main-asset-text {
    width: 100%;
    margin-top: 18px;
  }
  
  #content .other-projects .project-content-top-container {
    flex-flow: column;
    margin-top: 30px;
  }

  .nav-header .header-item .header-link {
    font-size: 19px;
    margin: 0 13px;
  }
  #content .in-ignis-veritas .project-text-container {
    margin-top: 15px;
  }

  .content.in-ignis-veritas .image-asset {
    width: 100%;
    max-width: 400px;
  }

}

/*////////IMAGE ASSETS PROJECTS/////*/
.images-container {
  display: flex;
  margin-top: 30px;
}

.images-container .project-images-item {
  margin-right: 20px;
  width: 300px;
}

.images-container .project-images-item img {
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

/*/////////MODAL IMAGE ////////*/
#modal-image {
  position: fixed;
  max-width:1020px;
  max-height:660px;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

/*////////ABOUT ME ///////*/
#about-me {
  background-color: #2d3f3f;
  display: flex;
  flex-flow: column;
  align-items: center;
  position: relative;
}

#about-me .section-title {
  color: #ddd;
  font-weight: 500;
  margin-bottom: 20px;
}

#about-me .about-me-item {
  display: grid;
  grid-template-columns: 47.5% 47.5%;
  grid-column-gap: 5%;
  color: #ddd;
  font-weight: 400;
  font-size: calc(7.2px + 0.57vw);
  line-height: 1.35;
}

#about-me .about-me-text-container {
  display: flex;
  align-items: center;
  flex-flow: row;
}

#about-me .about-me-images-container {
  display: grid;
  grid-template-columns: 47% 47%;
  grid-column-gap: 6%;
  margin: 45px auto;
}

#about-me .about-me-image {
  width: 100%;
  opacity: 0.7;
}

#about-me .highlight {
  color: #6ea6a3;
  display: contents;
}

/*///////////STEAM PROJECT/////////////*/
iframe {
  max-width: 100%;
}