@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Ubuntu:wght@300&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: #f4f4f0; 
    margin: 0;
}


/* Home Page */
#home {
    height: 100vh;
    width: 100%;
}

h1 {
    font-family: "Roboto Slab", "Times New Roman", serif;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 10px;
}

.asci {
    z-index: 3;
    position: relative;
    height: 100vh;
    max-width: 94vh;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%);
}

.asci img {
    height: 94vh;
    position:absolute;
    object-fit: cover;
    width: 100%;
    bottom: 0px;
}

.titleblock:hover {
    animation-name: reveal_face;
    animation-duration: 2.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

@keyframes reveal_face {
    from {opacity: 90%;}
    to {opacity: 10%;}
}

.titleblock {
    background-color: #868F6E;
    opacity: 90%;
    border-radius: 10px;
    position: absolute;
    height: auto;
    width: 60%;
    color:#000000;
    padding: 20px;
    padding-left: 50px;
    padding-right: 50px;
    text-align: center;
    clear: none;
    z-index: 4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.titleblock h1 {
    font-size: 85px;
    position: relative;
    margin: 0;
}

.titleblock h2 {
    font-weight: 500;
    padding-top: 0%;
    font-size: 40px;
    margin: 0;
    position: relative;
}

.titleblock h3 {
    font-weight: 500;
    padding-top: 0%;
    font-size: 25px;
    margin: 0;
    position: relative;
}

/* Projects styling */

#projects {
    padding-top: 5px;
    background-color: #2A2C36;
    height: auto;
    position: relative;
    padding-bottom: 20px;
}

#projects h1 {
    color: #F4F4F0;
    font-size: 50px;
    margin-bottom: 5px;
    margin-top: 45px;
}

.project h3 {
    font-size: 40px;
    text-decoration: none;
    color: #F4F4F0;
    margin: 0;
    padding: 20px;
    padding-bottom: 10px;
}

.project p {
    font-size: 25px;
    color: #F4F4F0;
    margin: 4px;
}

.project img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-container {
    margin-left: 10%;
    margin-right: 10%;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 20px;
    row-gap: 20px;
    align-items: center;
}

.project {
    position: relative;
    background-color: #F4F4F0;
    padding: 10px;
    border-radius: 20px;
    height: 40vh;
    overflow: hidden;
}

.caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #2A2C36;
    padding: 10px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: auto;
    border-color: #f4f4f0;
    border-width: 5px;
    border-style: solid;
    text-align: center;
    z-index: 10;
}


.project:hover img {
    transform: scale(1.1);
}

.project:hover .caption {
    opacity: 1;
}


@keyframes hidden {
    from {opacity: 0%;}
    to {opacity: 100%;}
} 

@media (max-width:1100px) {
    .project-container {
        margin-left: 10%;
        margin-right: 10%;
        display: grid;
        grid-template-columns: auto;
        column-gap: 20px;
        row-gap: 20px;
    }
}

.toprojects {
    z-index: 4;
    position: relative;
    margin-bottom: 40px;
    bottom: 60px;
}

.toprojects a{
    position: absolute;
    font-weight: 550;
    font-size: 25px;
    color: #F4F4F0;
    text-align: center;
    text-decoration: none;
    width: auto;
    background-color: #535A56;
    border-radius: 30px;
    padding: 10px;
    padding-inline: 25px;
    left: 50%;
    transform: translate(-50%);
}

/* Project pages */

.project-pages {
    margin-left: 15%;
    margin-right: 15%;
    height: auto;
}

.project-pages-main {
    position: relative;
    background-color: #bccbb9;
    margin-bottom: 15px;
    border-radius: 20px;
    padding: 40px;
}

/* .project-pages img {
    position: relative;
    left: 50%;
    transform: translate(-50%);
    height: 75vh;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 15px;
} */

.project-pages h1 {
    color: #F4F4F0;
    font-size: 50px;
    margin-bottom: 5px;
    margin-top: 55px;
}

.project-pages-main ul {
    display: table;
    text-align: left;
    font-weight: 530;
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 0px;
    padding-bottom: 15px;
    font-size: 25px;
    line-height: 150%;
}

.project-pages-main a {
    color: #535a56;
}

.project-pages-main p {
    margin-left: 40px;
    margin-right: 40px;
    font-size: 25px;
    line-height: 150%;
}

.slideshow {
    position: relative;
    width: 100%;
}

.slide img, video{
    position: relative;
    left: 50%;
    transform: translate(-50%);
    border-radius: 20px;
    max-width: 100%;
    width: auto;
    height: 70vh;
    object-fit: cover;
    margin-bottom: 10px;
}

@media (max-width:1100px) {
    .slide img , video{
        height: auto;
    }
}

.prev, .next {
    position: absolute;
    cursor: pointer;
    top: 50%;
    width: auto;
    margin-top: -50px;
    font-size: 10vh;
    color: #F4F4F0;
    font-weight: bold;
    font-size: 65px;
    transition: 0.6s ease;
    border-radius: 3px;
    user-select: none;
}

.prev {
    left: -65px;
}

.next {
    right: -65px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 3px;
    background-color: #F4F4F0;
    display: inline-block;
    transition: background-color 0.6s ease;
    top: 50%;
    margin-bottom: 15px;
}

.prev:hover, .next:hover {
    color: #868F6E;
}
.active, .dot:hover {
    background-color: #868F6E;
    border: solid;
    border-color: #535A56;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.back-button a {
    position: absolute;
    font-weight: 550;
    margin-bottom: 40px;
    text-decoration: none;
    font-size: 20px;
    background-color: #535A56;
    color: #F4F4F0;
    border-radius: 20px;
    padding: 6px;
    padding-inline: 13px;
    left: 50%;
    transform: translate(-50%);

}

.back-button {
    margin-bottom: 40px;
}

.back-button:hover {
    opacity: 100%;
}

/* Connect*/

#connect {
    background-color: #F4F4F0;
    height: 25vh;
    position: relative;
}

#connect h1 {
    margin-top: 25px;
    margin-bottom: 25px;
    font-size: 50px;
}

.icon-container {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 10px;
    margin-left: 30%;
    margin-right: 30%;
    height: 60px;
}
.icon {
    margin: auto;
}
.icon img{
    position: center;
    object-fit: fill;
    height: 60px;
    width: auto;
}


/*Navigation styling*/

@keyframes menufade {
    from {background-color: #535a56;}
    to {background-color: #868f7e;}
}

.nav {
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    white-space: nowrap;
    height: auto;
    background-color: #535a56;
    width: 100%;
    text-align: left;
    position: fixed;
    top: 0%;
    left: 0%;
    z-index: 999;
}

.nav ol {
    padding-left: 10px;
}
.nav a {
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 650;
    padding: 8px;
}

.nav li {
    display: inline-block;
}
  
.nav a:hover {
    animation-name: menufade;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}




/*colors scheme
#F4F4F0 - Light background - Light shade
#868F6E - Battleship Grey - light accent
#535A56 - Dark Green - Main color
#9AA0AF - Gray - Dark accent
#2A2C36 - Deep Purple - Dark Shade
*/