@font-face {
    font-family: 'BB';
    src: url('../fonts/BB-CondBold.woff2') format('woff2'),
         url('../fonts/BB-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --background-color: #ededed;
    --text-color: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'BB', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    height: 100%;
}



.intro{
    background-color: var(--text-color);
    color: var(--background-color);
    height: 100vh;
    width: 100%;
    font-size: clamp(1em, 3.5vw, 2.5em);
}
.outro{
    background-color: var(--text-color);
    color: var(--background-color);
    height: 10vh;
    width: 100%;
    font-size: clamp(1em, 3.5vw, 2.5em);
}

.social-icons *:hover {
    transform: scale(1.1);

}

.fully-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}


.centered {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
}




.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-color);
    color: var(--text-color);
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
}

.navbar a {
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
    width: 100%;
    height: 100%;
    padding: 2vh 3vw;
    transition: color 0.2s, background-color 0.2s;
}

.navbar a:hover {
    color: var(--background-color);
    opacity: 0.8;
    background-color: var(--text-color);
}


/* 50 / 50 section with photo and text */

.photo-text-section {
    display: flex;
    flex-direction: column;
}
.photo-side {
    flex: 1;
}
.fixed-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-side {
    flex: 1;
    width: 100%;
    height: 100%;
}

.text-side p {
    padding: 2vh 3vw;
}



.photo-side {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#photo-side-desktop {
    display: none;
}

ul {
    list-style: none;
}

ul li {
    margin-left: 10vw;
}

ul li a {
    color: var(--background-color);
    text-decoration: none;
}

input {
    pointer-events: none;
}


.contact {
    background-color: var(--text-color);
    color: var(--background-color);
    height: 100vh;
    width: 100%;
    font-size: clamp(1em, 1.5vw, 1.25em);
}

.projects{
    background-color: var(--text-color);
    color: var(--background-color);  
    font-size: clamp(1em, 3.5vw, 2.5em);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px 10px;
    grid-auto-flow: row;
    grid-template-areas:
      ". ."
      ". ."
      ". ."
      ". ."
      ". .";

  }

  .projects div {
    text-align: center;
    vertical-align: middle;
    line-height: 20vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s;
  }

  .projects div:hover {
    transform: scale(1.1);
  }

  .projects  a {
    text-decoration: none;
    color: var(--background-color)
  }


  .unused-project {
    visibility: hidden;
  }


  .back-button {
    margin: 10px;
    background-color: var(--background-color);
    width: 15vw;
    text-align: center;
    padding: 10px 60px;
    transition: scale 0.2s;
    
  }

  .back-button:hover {
    scale: 1.02;
  }

  
  .project a {
    text-decoration: none;
    color: var(--text-color);
  }

  .project .project-link {
    color: var(--background-color) !important;
    text-decoration: underline !important;
    font-weight: bold;
  }

  .project {
    background-color: var(--text-color);
    color: var(--background-color);
  }

  .project-image {
    color: var(--background-color);
    font-size: clamp(2em, 4vw, 3em);
    width: 100vw;
    height: 27vh;
    background-size:contain;
    text-align: center;
    vertical-align: middle;
    line-height: 27vh;
  }

  .project div p {
    margin: 20px;
  }

  .cv {
    width:80vw; 
    height:80vh;
  }


#outro-link {
    text-align: center;
    color: var(--background-color);
    text-decoration: none;
    padding: 2vh 3vw;
}

#contact-photo {
    height: 40vh;
}

#contact-text {
    padding: 40px;
}



@media (min-width: 768px) {
    .photo-text-section {   
        flex-direction: row;
    } body {
        font-size: 18px;
    }

    #photo-side-desktop {
        display:unset;
    }
    #photo-side-mobile {
        display:none;
    }

    .outro {
        height: 20vh;
        font-size: clamp(0.5em, 2vw, 1em);
    }

    #contact-photo {
        height: auto;
        width: 25vw;
        left: 5vw;
    }

    #contact-text {
        padding: 5vw;
    }


    .projects{
        background-color: var(--text-color);
        color: var(--background-color);
        height: 100vh;  
        width: 100vw;
        font-size: clamp(1em, 3.5vw, 2.5em);
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
        gap: 10px 10px;
        grid-auto-flow: row;
        grid-template-areas:
          ". . ."
          ". . ."
          ". . .";
    
      }

      .projects div {
        line-height: 33.3vh;
        
      }


      .project {
        background-color: var(--text-color);
        color: var(--background-color);
      }
    
      .project-image {
        color: var(--background-color);
        font-size: clamp(1em, 3.5vw, 2.5em);
        width: 100vw;
        height: 50vh;
        background-size:contain;
        text-align: center;
        vertical-align: middle;
        line-height: 50vh;
      }

      .project div p {
        margin: 50px 25vw;
      }
      
      .cv {
        width:40vw; 
        height:80vh;
      }
    

}

@media (min-width: 1024px) {
    body {
        font-size: 20px;
    }
}

@media (min-width: 1440px) {
    .photo-side {
        max-height: 60vh;
    }
    
    .fixed-photo {
        max-height: 60vh;
    }
}