@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
html{
    scroll-behavior: smooth;
}
body, html{
    margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
}
body, button{
    background-color: #f8e7cd ;
    font-family: 'Cal Sans', sans-serif;
    font-style: normal;
    color: #2d2d2d;
    /* font-weight: bold; */
    flex-wrap: wrap;     
    transition-delay: 0.35s; 
  
}
.index{
    background-color: #bd4d34 ;
    color: #f8e7cd;
}
h1{
    background-color: #F9E0BB;
    color:#342F43;
    padding: 10px 30px;
    border-radius: 33px;
    

}
h2{
    font-family: 'neulis-neue', sans-serif;
    font-weight: 900;
    font-size: 45pt;
    color: #bd4d34;
}
h3{
    font-size: 1.6em;
    padding: 10px 17px;
    background-color:#8AA944;
    border: 5px solid #8AA944;
    border-radius: 30px;
    color:#fff3e2;
    width:fit-content; 

}
h4{
    font-size: 1.6em;
    padding: 10px 17px;
    background-color:#443B65;
    border-radius: 30px;
    color:#F9E0BB;
    width:fit-content; 
    margin: 20px auto;
}
h5{
    font-size: 2.5em;
    color: #F9E0BB;
    padding: 15px 20px;
    border-radius: 15px;
    font-style: italic;
    /* text-decoration: underline; */
}
.big-text{
    font-family: 'neulis-neue', sans-serif;
    font-size: 1.4em;
    padding: 0;
    background-color: none;
    font-weight: 500;
    color: #bd4d34;
}
a{  font-family: 'neulis-neue', sans-serif;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0px;
    color: #F9E0BB;
    text-decoration: none;
    font-size: 1.9em;
    padding: 10px 40px;
    margin: 20px auto;
    border-radius: 30px;
    transition: 0.35s;
    background-color:transparent;
}
p{
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1.2em;
    line-height: 1.5em;
    /* margin-bottom: 40px; */
}
section{
    display: block;
    /* place-items: center; */
    align-content: center;
    padding: 7vw 15vw 15vw 15vw;
    transform: none !important; /* remove old hidden transforms */

    min-height: 100vh;
}

.front-page-text{
    left: 50%;
    transform: translate(-50%, -50%);
    position: relative;
    margin-top: 50vh;
    margin-bottom: 40vh;
    width: fit-content;

}
.front-page-text>h2{
    font-size: 6rem;
    color: #f8e7cd; 
    background-color: transparent; 
    margin: auto; 
    width: fit-content;
    padding: 0; 
    font-family: 'neulis-neue', sans-serif;
    font-weight: 900;
    font-style: normal;
    letter-spacing: -2px;
    line-height: 60px;
}
.front-page-text>p{
    color: #f8e7cd;
}
.hidden {
    opacity: 1;          /* visible by default */
    transform: none;
  }
  
  .hidden.animate {
    opacity: 0;
    transform: translateX(-40px);
  }
  
  .show {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

.logos{
    display: flex;
}
.logo:nth-child(2){
    transition-delay: 200ms;
}
.logo:nth-child(3){
    transition-delay: 400ms;
}
.logo:nth-child(3){
    transition-delay: 600ms;
}

b{ font-weight: 700}
a:hover{
    color: #bd4d34;
    background-color:  #f8e7cd;
}
li{
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 1.2em;
    line-height: 1.5em;
}
.window{
    border: 5px solid #F9E0BB;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.content{
    padding: 0 40px 40px 40px;
}
.window-buttons{
    padding-left: 20px;
    padding-top: 20px;
}

#green{background-color: rgb(135, 206, 88);}
#yellow{background-color:#ffce49;}
#red{background-color:rgb(255, 77, 130);}

.dot-button {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    display: inline-block;
    padding: 0px 0px 0px 0px;
    border: none;
    text-align: center;
    text-decoration: none;
    margin-right: 5px;
    transition: 0.15s;

  }
.dot-button:hover{
    opacity: 0.5;
}
.topnav{
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 100;
    background-color: #bd4d34;
    top:0;
    left:0;
    width: 100%;
    
}
#namenav{
    /* border: 6px solid #342F43; */
    border-radius: 30px;
    border-style: inline;
    /* justify-content: space-around; */
    /* align-self: center; */
}
.gallery{
    display: flex; 
    flex-direction: row;
    margin: 50px 10vw 0;
}
.featured{
    border: 0;
    /* margin-bottom: 5%; */
    background-color: transparent;
    margin: 0% 5% 7.5% 5%;
    position: relative;
}
.featured>img{
    border-radius: 5%;
    width: 100%;
    transition: 0.35s;
}
.featured>a{
    position: absolute;
    color: #342F43;
    background-color:  #F9E0BB;
    right: 1.5vw;
    text-align: right;
    font-size: 1.7rem;  
}
.featured:hover>a{
    color: #F9E0BB;
    background-color: #342F43;
}
.project{
    border: 0;
    margin: 2%;
    background-color: transparent;
    position: relative;
    text-align: left;
}
.project>a{
    color: #342F43;
    background-color:  #F9E0BB;
    font-size: 1.7rem;  
}
.project:hover>a{
    color: #F9E0BB;
    background-color: #342F43;
}
.scroll{
    display:flex;
    flex-direction: column;
    width: 50%;
}
.illustration>button{
    text-align: center;
    margin: auto;
    /* width: 70vh; */
    max-width: 60vw;
    /* margin: 0 25%; */
}
.illustration{ 
    flex-direction: column;
    margin: 150px 25vw 100px;
}
.illustration>button{
    margin-bottom: 40px;
}
.header{
    margin: 100px auto 30px;
    width: fit-content;
}
.slider-arrows{
    position: fixed;
    bottom: 40px;
    left: 50vw;
    transform: translateX(-50%);
    margin: 25px 0;
}
.slider-arrows>button{
    border: none;
    background-color: transparent;
}
.w3-button{
    background-color: #4BB57C;
    color:#342F43;
    font-size: 2rem;
}
.w3-button:hover{
    background-color: #342F43;
    color:#F9E0BB;
}
.photo-grid{
    display:flex;
    flex-wrap: wrap;
    align-content: space-between;
    gap: 20px;
    margin: 20px 0;
}
.three-row-photo-grid{
    display: grid;
    width: 100%;
    height: fit-content;
    grid-gap: 20px;
    grid-template-columns: auto auto auto;
    /* grid-template-rows: auto auto auto; */

    /* aspect-ratio: 1 / 1; */
}
.three-row-photo-grid>a{
    position: relative;
    min-height: 200px; /* or aspect-ratio */
}

.three-row-photo-grid>a>img{
   position: absolute;
    max-height: 5em;
    max-width: 7em;
    /* padding: 2em; */
    object-fit: contain;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display:inline-block;
    filter: brightness(10000);

}


.three-row-photo-grid>img{

     width: 100%;
}
 
 
.three-row-photo-grid> a{
    width: 100%;
    background-color: #bd4d34;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    font-family: 'neulis-neue', sans-serif;
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    
}
.three-row-photo-grid> a:hover{
    background-color: #f8e7cd;
    /* box-shadow: inset 0 0px 0px #bd4d34; */
    outline: 4px solid #bd4d34; /* Outline does not affect box model */
    transition: 0.35s;
}
.three-row-photo-grid> a:hover p{
    color:  #bd4d34;  

}
.three-row-photo-grid> .evergreen:hover{
    background-color: #bd4d34;
    /* box-shadow: inset 0 0px 0px #bd4d34; */
    outline: none; /* Outline does not affect box model */
    transition: 0.35s;
}

.three-row-photo-grid>a:hover img{
    filter: brightness(1);

}
.three-row-photo-grid>a>p{
    display:inline-block;
    position: absolute;
    margin: auto;
    color: #f8e7cd;
    font-family: 'Cal Sans', sans-serif;
    font-weight: 600;
    font-size: 15pt;
    bottom: 0;
    padding: 20px;
}


.photo-grid>img{
    width: calc(50% - 10px);
    border-radius: 20px;
    height: 100%;
    align-self: center;
    margin: auto;
}
.photo-grid>div{
    width: calc(50% - 10px);
    border-radius: 20px;
    height: 100%;
    align-self: center;
    margin: auto;
}
.lead-image{
    /* margin: 10px; */
    border-radius: 15px;
    width: 100%;
}
.click-image{
    border-radius: 30px;
    /* border: 7px solid transparent; */
    transition: 0.35s;
    outline: 7px solid transparent; /* Outline does not affect box model */
}
.click-image:hover{
    outline: 7px solid #8AA944;

}
.project-page{
    display: flex; 
    flex-direction: row;
    flex-direction: column;
    margin: 50px 20vw 100px;
}
.project-page>h3{
    margin: 30px 0 15px 0 ;
}
.project-page>p{
    margin: 10px 0;
}
.project-page>button{
    border: none;
    margin: 0;
    padding: 0;
}
.slider{
    display: grid;
    border: none;
    text-decoration: none;
    margin: 125px 10vw 50px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 5vw;
    row-gap: 20px;
    grid-template-areas: 
    "image text";
}
.slider-text{
    grid-area: text;
    height: fit-content;
    text-align: left;
    width: 100%;
    display: inline-block;

    /* margin-top: 50%; transform: translateY(-50%); */
}
.slider-text>p{
    width: 100%;
    display: inline-block;
}
.slider-image{
    /* margin: 10px 10% 30px; */
    border-radius: 30px;
    grid-area: image;
    width: 35vw;
    border: 7px solid transparent;
    transition: 0.35s;
}

.slider-image:hover{
    border: 7px solid #4BB57C;

}
.front-page-image{
    border-radius: 30px;
    grid-area: image;
    width: 35vw;
    margin-right: 2.5vw;
    border: 7px solid transparent;

}
.resume{
    margin: 0;
    padding:0;
    display:inline-block;
}

.resume-text{
    font-size: 25px;

}
.resume-text:hover{
    background-color: #f8e7cd;
    color: #8AA944;
    transition: 0.35s;
}
.slider-text>a{
    font-size: 1.4em;
    padding: 10px 17px;
    background-color:#4BB57C;
    border: 5px solid #4BB57C;
    border-radius: 30px;
    color:#342F43;
    width:fit-content; 
    display: inline-block;
    margin: 10px 10px 10px 0px;
}
.slider-text>a:hover{
    background-color:#342F43;
    color:#4BB57C;
}
.slider> button{
    border: none;
}
.project-column{
    display: grid;
    border: none;
    text-decoration: none;
    margin: 0px 20vw 50px;
    grid-template-columns: 50% 50%;

    column-gap: 5vw;
    row-gap: 20px;
    grid-template-areas: 
    "image text";
}
.project-column>h2{
    display:inline;
}
.column-image{
    border-radius: 30px;
    width: 100%;
    grid-area: image;
    border: 7px solid transparent;
    transition: 0.35s;

}
.column-image:hover{
    border: 7px solid #4BB57C;
    transition: 0.35s;

}
.project-column> button{
    border: none;
}
.text-left{
    grid-area: image;
    height: fit-content;
    text-align: left;
    /* width: 100%; */
    /* margin-top: 50%; transform: translateY(-50%); */
}

.image-right{
    /* margin: 10px 10% 30px; */
    grid-area: text;
    border-radius: 30px;
    width: 100%;
    border: 7px solid transparent;
    transition: 0.35s;
}
.about{
    display: flex; 
    flex-direction: row;
    margin: 125px 10vw 0;
    flex-direction: column;
    margin: 125px 20vw 0px;
}
.subheader{
    margin: 90px 10vw 0;
    text-align: center;
}
.subheader>a{
    margin: auto 15px auto;
    font-size: 25px;
    font-weight: 100;
    padding: 7px 30px;
}
.active{
    color: #f8e7cd;
    background-color:  transparent;
    border: 4px solid #f8e7cd;
    padding: 7px 40px;
}
.active:hover{
    color: #bd4d34;
    background-color:  #f8e7cd;
    border: 4px solid #f8e7cd;
}

.skills>a{
    font-size: 1.3em;
    border: 5px solid #443B65;
    margin: 10px 10px 10px 0;
    background-color: #443B65;
    color: #fff3e2;
    display: inline-block;
}
.yellow{
    background-color: #F9E0BB;
    color:#342F43;
    border: 6px solid #F9E0BB;
}
.yellow:hover{
    background-color: #342F43;
    color:#F9E0BB;
}
#first-nav-item{
    position: absolute; 
    margin-left: 15%; 
    transform: translate(-50%, 0)
}
#second-nav-item{
    font-weight: 900;

    position: relative; 
    margin-left: 50%; 
    transform: translate(-50%, 0)
}
#third-nav-item{
    position: absolute; 
    margin-left: 85%; 
    transform: translate(-50%, 0)
}
.arrow {
    border: solid #F9E0BB;
    border-width: 0 8px 8px 0;
    margin-top: 20px;
    display: inline-block;
    padding: 8px;
  }
.explore-projects{
    font-size: 1.4em;
    padding: 10px 17px;
    background-color:#4BB57C;
    border: 5px solid #4BB57C;
    border-radius: 30px;
    color:#342F43;
    width:fit-content; 
    display: inline-block;
    margin: 10px 10px 10px 0px;

}
.arrow:hover {
    opacity: 0.5;
}

  .right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
  }
  
  .left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
  }
  
  .up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
  }
  
  .down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
  }  
  @media screen and (max-width: 1200px) {

    section{
        display: block;
        padding: 7vw 5vw;
    
        /* min-height: 100vh; */
    }
      
    .three-row-photo-grid {
      display: grid;
      width: 100%;
      gap: 20px;
  
      grid-template-columns: 1fr;
      height: auto;
    }
  
    .three-row-photo-grid > a {
        display: flex;
        flex-direction: column;
        align-items: center;   /* centers the image */
        justify-content: flex-start;
        gap: 0.75rem;
      
        text-decoration: none;
        min-height: 320px;
    }
  
    .three-row-photo-grid > a > img {
        display: block;
        width: 100%;
        max-width: 40vw;   /* or whatever fits your design */
        max-height: 35vw;
        height: auto;
        object-fit: contain; 
      }

    .three-row-photo-grid > a > p{
        align-self: flex-start;   /* overrides centering */
        text-align: left;
        width: 100%;
    }
    
    .scroll{
        width: 100%;
    }
    img{
        width:90vw;
    }
    .gallery{
        display: block; 
        flex-direction: row;
        margin: auto;
    }
    .featured>a{
        margin:12px;
    }
    .topnav{
        width: 100%;
    }
    .topnav>a{
        padding: 10px 15px;
        text-align: center;
        font-size: 1.2em;
    }
    #first-nav-item{
        position: relative; 
        margin-left: auto; 
        transform: translate(0, 0)
    }
    #second-nav-item{
        position: relative; 
        margin-left: auto; 
        transform: translate(0, 0);
        bottom: 5%;
    }
    #third-nav-item{
        position: relative;
        margin-left: auto;
        transform: translate(0, 0);
    }
    .subheader{
        margin: 10vh 3% 0;
        /* text-align: left; */
    }
    .illustration{ 
        flex-direction: column;
        margin: 8vh 5% 0px;
    }
    .illustration>button{
        max-width: none;
    }
    .project-page, .about{
        display: flex;
        flex-direction: column;
        margin: 8vh auto 30px;
        width: 90%;
      }
    .lead-image{
        margin: 0;
        border-radius: 10px;
        width:100%;
    }
    .project-page>h3{
        margin: 30px 0 15px 0 ;
    }
   
    
    .header{
        margin: 30px auto 20px;
        text-align: center;
    }
    
    .skills{
        flex-flow: row wrap;
        margin-bottom: 10px;
    }
    .skills>a{
        margin: 10px 10px 0px 0px;
        padding: 10px 20px;
    }
    .featured>a{
        font-size: 22.5px;
    }
    h2{ font-size: 45px;}
    h3{ font-size: 20px;}
    h4{ font-size: 20px; font-weight: 600;}
    a{ font-size: 20px;}
    .skills>a{font-size: 17px;}
    .photo-grid>div{
        width: 100%;
        border-radius: 20px;
        height: 100%;
        align-self: center;
        margin: auto;
    }
    .slider{
        display: grid;
        border: none;
        width: 100%;
        text-decoration: none;
        /* margin: 20px 0 20px;
        padding: inherit 5vw inherit; */
        margin: 8vh 5% 30px;
        width: 90%;
        grid-template-columns: 1fr;
        column-gap: 5vw;
        grid-template-areas: 
        "text "
        "image";
    }
    .slider-image{ 
        margin-left: -10px;
        /* transform: translatex(-50%); */
        width: 102%;
    }
    .slider-text{
        width: 100%;
        /* margin-left: 50%; */
        /* transform: translateX(-50%); */
        margin-top: 0%; ;
    }
    .slider-text>a{
        font-size: 17px;;
    }
    .explore-projects{
        font-size: 17px;;
    }

    .slider-text>h3{
        width: fit-content;
        /* margin-left: 50%; */
        /* transform: translatex(-50%); */
    }
    .project-column{
        display: grid;
        border: none;
        text-decoration: none;
        margin: 20px 5vw 20px;
        grid-template-columns: 1fr;
        column-gap: 5vw;
        grid-template-areas: 
        "text "
        "image";
    }
    
    .front-page-image{
        width: 95%;
    }
    #namenav{
        padding: 8px 25px;
        font-size: 1.5rem;
    }

    .front-page-text{
        font-size: 4rem;
        color: #f8e7cd; 
        background-color: transparent; 
       
        font-style: normal;
        letter-spacing: 0;
    }
    .front-page-text>h2{
        font-size:70px;
    }
    .front-page-text>a{
        font-size:15px;
    }
    .last{
        padding-bottom: 30px;
    }
    body{margin: 0;}


}
  
  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    .hidden {
      opacity: 1;
      transform: none;
      filter: none;
      transition: none;
    }
  
    .show {
      opacity: 1;
    }
  }

@media (hover: none) and (pointer: coarse) {
    .hidden {
      filter: none !important;
    }
  }
  @supports (-webkit-touch-callout: none) {
    .hidden {
      filter: none !important;
    }
  }

/* Make sure to take away extra space on sides on tablet version */