@font-face {
    font-family: "manrope";
    src: url("../font/Manrope-Regular.ttf");
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
  }
  
  @font-face {
    font-family: "manropebold";
    src: url("../font/Manrope-Bold.ttf");
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
  }

  @font-face {
    font-family: "marriweather";
    src: url("../font/Merriweather_24pt-SemiBold.ttf");
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
  }


  html {
    --white: #ffffff;
    --transwhite: rgba(100, 100, 100, 0.2);
    --gray-white: #EAEAEA;
    --blue: #1D4ED8;
    --yellow: #FFFFB3;
    --brown: #693B0B;
    --seablue: #B8DBD9;
    --orange: #ED5513;
    --charcoal: #222823;
    --blue-black: #15192F;
    --gray: #4D4D4D;
    --black: black;
    scroll-behavior: smooth;
  
    --textbody: 'manrope', Arial, sans-serif;
    --texttitle: 'manropebold', Arial, sans-serif; 
    --texttitle2: 'marriweather', serif;
  
  }

  * {
    box-sizing: border-box;
}



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

  body {
    letter-spacing: 0.5px;
    line-height: 1.6;
    justify-self: center;
    background-color: var(--gray-white);
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    
    p{
      font-family: var(--textbody);
      font-size: 16px;
      color: var(--gray);
    }

    h1, h2, h3 {
      font-family: var(--texttitle);
      color: var(--black);
    }
    
  }

  

  /* header */
  header {
    justify-self: center;
    display: flex;
    justify-content: space-between;
    width: min(650px, 90vw);
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, 
    rgba(17, 17, 26, 0.05) 0px 8px 32px;
    border-radius: 35px;
    padding: 0 20px;
    margin: 25px;
    font-size: 13px;
    font-family: var(--texttitle);
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    background-color: var(--transwhite);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    #hname {
        color: var(--blue);
    }

    .toprow img {
      width: 40px;
    }

  

    #menuBtn {
      display: none;
    }

    #hright {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;

        a {
            border: 3px solid transparent;
            padding: 5px 12px;
            border-radius: 30px;
            transition: all 0.3s ease-in-out;
        }

        a:hover {
            border-color: var(--blue);
        }
    }
  }


  #welcomefull {
    display: flex;
    justify-content: space-between;
    gap: 100px;
    align-items: center;
    background-color: var(--white);
    padding: 150px 100px 80px 100px;

    #welcomeanim {
      width: 800px;
      border-radius: 20px;
    }


    /* welcome section */
  #welcome {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  
    font-family: var(--texttitle);
    margin-bottom: 30px;
    /* border-bottom: 2px solid var(--gray); */
    
  
    

    #cat {
        font-size: 12px;
        letter-spacing: 2px;
        font-weight: bold;
    }

    #intro {
        margin: 10px 0;
        

        h1 {
            margin: 0;
        }


        h3 {
          margin: 0;
          font-family: var(--textbody);
        }

        button {

            font-family: var(--textbody);
            margin: 0;
            padding: 10px 15px;
            color: var(--white);
            background-color: var(--blue);
            border: 3px solid var(--blue);
            border-radius: 30px;
            transition: all 0.3s ease-in-out;

            a {
                color: var(--white);
                font-size: 18px;
                margin: 0;
            }
        }

        button:hover {
            color: var(--black);
            background-color: transparent;

            a{
                color: var(--black);
            }
        }

        #aboutbtn {
            justify-self: flex-start;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 50px 0;
        }
    }
  }
  }


  

  .graytext {
    color: var(--gray);
  }

  .yellw {
    color: var(--orange);
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fadein {
    opacity: 0;
    animation: fadeIn 1.0s ease-out forwards;
  }

  #aboutbtn {
    opacity: 0;
    animation: fadeIn 1.0s ease-out forwards;
  }

  .btitle {
        font-family: var(--texttitle2);
        color: var(--orange);
    }


    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px); /* start lower */
      }
      to {
        opacity: 1;
        transform: translateY(0);   /* slide into place */
      }
    }

.fadeup {
  animation: fadeInUp 1.0s ease-out forwards;
}

.scaleview {
  transition: transform 1.0s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.scaleview.in-view {
  transform: scale(1.05);
}


  /* projects */
  #projects {
    padding: 60px 100px;
    justify-self: center;


    .casegrid {
      display: grid;
      grid-template-columns: repeat(2, 1fr); 
      grid-template-rows: repeat(2, auto);  
      gap: 80px;
    }
    .casestudy {
      background-color: var(--white);
      padding: 20px;
      justify-items: center;
      width: 100%;
      max-width: 750px;
      border-radius: 25px;
      cursor: pointer;
      position: relative;

      p {
        margin: 0;
      }

      h2 {
        margin-bottom: 0;
      }

      .hide {
        display: none;
      }

      img{
      width: 100%;
      height: auto;
      border-radius: 15px;
      object-fit: cover;
      transition: filter 0.4s ease, transform 0.4s ease;
    }


    .overlay {
      position: absolute;
      bottom: 160px;
      left: 40px;
      max-width: 500px;
      opacity: 0;
      transition: opacity 0.4s ease, transform 0.4s ease;
      transform: translateY(20px);

      button {
        font-family: var(--textbody);
        margin: 0;
        padding: 6px 12px;
        background-color: var(--white);
        border-radius: 30px;
        border: transparent;

        p {
          color: var(--black);
        }
      }
    }

    }

    .casestudy:hover img {
      filter: brightness(50%);

    }

    .casestudy:hover .overlay {
      opacity: 1;
      transform: translateY(0);
    }
    
  }

  .fadeload {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
  }
  


/* About Page */
#aboutpage {
  padding: 150px 100px 80px 100px;
  background-color: var(--white);
  
  

  p {
    font-family: var(--texttitle);
  }

  h1 {
    font-family: var(--texttitle);
    color: var(--blue);
    margin: 0;
  }

   .me {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      gap: 120px;
      padding: 0 100px;
      margin-bottom: 50px;

      #prof {
        width: auto;
        height: 550px;
        border-radius: 0 120px 120px 120px;
      }

      p {
        margin-bottom: 30px;

        span {
          color: var(--orange)
        }
      }

      .boutt {
        font-family: var(--texttitle2);
        color: var(--orange);
        font-size: 55px;
        margin: 0;
      }

      
    }

}

#skills {
      padding: 0 100px;

      h2 {
        color: var(--blue);
      }

      .skill-list {
        overflow: hidden;
        width: 100%;
        white-space: nowrap;
      

        /* fade edges */
        -webkit-mask-image: linear-gradient(
          to right,
          transparent,
          black 10%,
          black 90%,
          transparent
        );

        mask-image: linear-gradient(
          to right,
          transparent,
          black 10%,
          black 90%,
          transparent
        );

      }

      .track {
        display: flex;
        gap: 50px;
        width: max-content;
        animation: autoscroll 2s linear infinite;
        -webkit-animation: autoscroll 20s linear infinite;
      }

      .skillset {
        display: flex;
        align-items: center;
        gap: 50px;
      }

      .skillset img {
        width: 60px;
        flex-shrink: 0;
      }

      

    }

@keyframes autoscroll {
  0% {
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  100% {
    transform: translateX(-33.33%);
    -webkit-transform: translateX(-33.33%);
  }
}

#contct {
  padding: 50px 200px 80px 200px;

  .contactumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
  }

  .contacttext p {
    font-size: 25px;
    max-width: 600px;
    width: 100%;
  }

  .contactlinks {
    display: flex;
    gap: 40px;
  }

  p {
      font-family: var(--texttitle);
    }


  h2 {
    color: var(--blue);
    margin-bottom: 30px;
  }

  #proff {
    width: auto;
    height: 400px;
    border-radius: 120px 0 120px 120px;
  }

  .links {
    display: flex;
    flex-direction: column;
    justify-items: center;
    
    gap: 20px;
    width: 100%;

    a {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    a:hover {
      scale: 1.05;

      p {
        color: var(--orange);
      }
    }
  }

  .links img {
    width: 50px;
    background-color: var(--white);
    padding: 10px;
    border-radius: 10px;
  }


}


#welcomefull,
#projects,
#aboutpage,
#contct {
  padding-left: clamp(20px, 5vw, 100px);
  padding-right: clamp(20px, 5vw, 100px);
}



  footer {
    background-image: linear-gradient(var(--black), var(--blue-black));
    color: var(--white);
    padding: 50px 150px;
    margin: 70px 0 0 0;
    justify-self: stretch;
    width: 100%;
    margin: 70px 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


    h2 {
        color: var(--gray);
        justify-self: center;
      }

      hr {
        width: 100%;
      }

    #footdiv {
      width: 100%;
      display: flex;
      justify-content: space-between;
      margin: 40px 0;


      h1{
        font-family: var(--texttitle);
        /* font-size: 50px; */
        color: var(--white);
        margin: 0;
      }

      

      #footnav {
        display: flex;
        /* flex-direction: column; */
        justify-content: flex-end;
        align-items: flex-end;
        gap: 20px;
        
        h2 {
          margin: 8px;
        }
  
        a img {
          width: 50px;
          background-color: var(--white);
          padding: 10px;
          border-radius: 10px;
        }

        a img:hover {
          background-color: var(--orange);
        }
      
      }
    }

  h2 {
    justify-self: center;
    margin: 40px;
  }

  h2 a {
    color: var(--white);
    border: 3px solid transparent;
    padding: 2px 12px;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
  }

  h2 a:hover {
      border-color: var(--white);
  }

  }


  /* 1750px Media Query */
@media (max-width: 1750px) {
  body {
    margin: 0;
    max-width: 1750px;
  }

  #welcomefull {
    padding: 150px 80px 80px 80px;
    
    #welcomeanim {
      max-width: 700px;
      width: auto;
    }
  }

  #projects {
    padding: 60px 80px;
    
    .casegrid {
      gap: 60px;
    }
    
    .casestudy {
      max-width: 700px;
      width: 100%;
      
      .overlay {
        bottom: 150px;
        left: 35px;
        max-width: 450px;
      }
    }
  }

  #aboutpage {
    padding: 150px 80px 80px 80px;
    
    .me {
      padding: 0 80px;
      gap: 100px;
      
      #prof {
        height: 500px;
      }
    }
  }

  #skills {
    padding: 0 80px;
  }

  #contct {
    padding: 50px 150px 80px 150px;
    
    .contacttext p {
      width: 550px;
    }
    
    #proff {
      height: 380px;
    }
  }

  footer {
    padding: 50px 120px;
  }
}
  



/* 1200px Media Query */
@media (max-width: 1370px) {
  body {
    margin: 0 auto;
    max-width: 1350px;
  }

  #welcomefull {
    padding: 150px 60px 80px 60px;
    gap: 60px;
    
    #welcomeanim {
      width: 500px;
    }
    

    #welcome {
      max-width: 600px;
      width: 100%;

      #intro {
        h1 {
          font-size: 26px;
          line-height: 38px;
        }
        
        h3 {
          font-size: 18px;
        }
      }
    }
  }

  #projects {
    padding: 50px 60px;
    
    .casegrid {
      gap: 60px;
    }
    
    .casestudy {
      width: 100%;

      .hide {
        display: block;
        color: var(--orange);
        font-family: var(--texttitle);
        margin-top: 10px;
      }
      
      .overlay {
        bottom: 200px;
        left: 25px;
        max-width: 500px;
        
        button {
          padding: 5px 10px;
        }
      }
    }
  }

  #aboutpage {
    padding: 150px 60px 80px 60px;
    
    .me {
      padding: 0 60px;
      gap: 60px;
      
      #prof {
        height: 500px;
      }
      
      .boutt {
        font-size: 42px;
      }
      
      p {
        font-size: 18px;
      }
    }

  }

  #skills {
    padding: 0 60px;
    
    .skillset {
      gap: 40px;
    }
    
    .skillset img {
      width: 55px;
    }
  }

  #contct {
    padding: 40px 100px 60px 100px;
    
    .contacttext p {
      width: 450px;
      font-size: 20px;
    }
    
    .contactumb {
      gap: 60px;
    }
    
    #proff {
      height: 400px;
    }
    
    .links {
      gap: 15px;
    }
    
    .links img {
      width: 45px;
    }
  }

  footer {
    padding: 40px 80px;
    
    #footdiv {
      margin: 30px 0;
    }
    
    h2 {
      margin: 30px;
    }
  }
}



/* Tablets (max-width: 1024px) */
@media (max-width: 1030px) {

  body {
    margin: 0;
    max-width: 100%;
  }

  header {
    width: min(550px, 90vw);

    #hright {
      gap: 10px;
    }
  }

  #welcomefull {
    padding: 150px 40px 0 40px;
    gap: 40px;
    
    
    #welcomeanim {
      width: 100%;
      max-width: 500px;
      
    }
    
    #welcome {
      width: 100%;
      max-width: 400px;
      margin: 0;

      
      #intro {
        h1 {
          font-size: 28px;
          line-height: 40px;
        }
        
        #aboutbtn {
          margin: 30px 0;
        }
      }
    }
  }

  #projects {
    padding: 40px 50px;
    justify-self: center;
    
    
    .casestudy {
      width: 100%;
      max-width: 500px;
      
      .overlay {
        bottom: 230px;
        left: 30px;
        right: 20px;
        max-width: unset;
      }
    }
  }

  #aboutpage {
    padding: 130px 50px 50px 50px;
    
    .me {
      padding: 0;
      gap: 40px;
      
      #prof {
        max-height: 500px;
        height: 100%;
        width: 100%;
      }
      
      .boutt {
        font-size: 35px;
      }
    }
  }

  #skills {
    padding: 0;
  }

  #contct {
    padding: 40px 50px;
    
    .contactumb {
      gap: 40px;
    }
    
    .contacttext {
      text-align: center;
      
      p {
        width: 100%;
        max-width: 500px;
        font-size: 20px;
        text-align: start;
      }
    }
    
    .contactumb {
      gap: 20px;

      .contactlinks {
        width: 100%;
      }
    }
    
    #proff {
      max-height: 350px;
      height: 100%;
    }
  }

  footer {
    padding: 40px 50px;
    
    #footdiv {
      flex-direction: column;
      justify-content: center;
      gap: 30px;
      
      #footnav {
        justify-content: center;
        align-items: center;
      }
    }
    
    h2 {
      margin: 20px;
      text-align: center;
    }
  }
}

/* small tablet (max-width: 8000px) */
@media (max-width: 850px) {

  body {
    margin: 0;
  }

  header {
    width: min(300px, 90vw);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;

    .toprow {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;

      h2 {
        margin: 0;
      }
    }

    #hright {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 200px;
      text-align: center;
      padding-top: 15px;
      animation: slideDown 0.3s ease forwards;

      button {
        width: 100px;
      }

      h2 {
        margin: 0;
      }
    }

    #hright.open {
      display: flex;
      
    }

    #menuBtn {
      font-size: 32px;
      cursor: pointer;
      display: block;
    }
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #welcomefull {
    padding: 120px 30px 20px 30px;
    flex-direction: column;
    justify-content: center;

    #welcomeanim {
      order: -1;
      max-width: 700px;
    }

    #welcome {
      max-width: 700px;
    }
    
  }

  #projects {
    justify-self: center;
    padding: 30px 50px;
    justify-self: center;

    .casegrid {
      grid-template-columns: 1fr;
    }
    
    .casestudy {
      max-width: 600px;

      .overlay {
        bottom: 200px;
        
      }
    }
  }

  #aboutpage {
    padding: 120px 30px 60px 30px;
    width: 100%;
    
    .me {
      flex-direction: column;
      justify-content: center;
      align-self: center;

      #prof {
        max-height: 500px;
        height: 100%;
        width: auto;

      }
      
      .boutt {
        font-size: 32px;
      }
    }
  }

  #skills {
    padding: 0 30px;
  }

  #contct {
    padding: 30px;


    
    .contactumb {
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .links {
      gap: 5px;

      a {
        gap: 7px;
      }

    }

    .contactlinks {
      justify-content: center;
      align-items: center;
    }

    #proff {
      max-height: 250px;
      border-radius: 60px 0 60px 60px;
    }
    
    .contacttext p {
      font-size: 18px;
    }
  }

  footer {
    padding: 30px 20px;
    
    #footdiv {
      h1 {
        font-size: 28px;
      }
    }
  }
}

/* Mobile Phones (max-width: 500px) */
@media (max-width: 500px) {

  header {
    padding: 10px 15px;
    top: 15px;
  }

  #welcomefull {
    padding: 120px 20px 0 20px;
    
    #welcomeanim {
      max-width: 400px;
    }

    #welcome {
      max-width: 400px;

      #cat {
        font-size: 9px;
      }
      
      #intro {
        h1, h2 {
          font-size: 22px;
          line-height: 30px;
        }

        
        button {
          width: 100%;
          padding: 12px;
          
          a {
            font-size: 16px;
          }
        }
        
        #aboutbtn {
          margin: 20px 0;
        }
      }
    }
  }

  #projects {
    padding: 20px 30px;
    
    .casegrid {
      gap: 40px;
    }
    
    .casestudy {
      padding: 15px;
      border-radius: 15px;
      
      img {
        border-radius: 10px;
      }
      
      .overlay {
        bottom: 200px;
        
        
        button {
          padding: 4px 10px;
          
          p {
            font-size: 10px;
          }
        }
      }
      
      h2 {
        font-size: 20px;
      }
      
      p {
        font-size: 14px;
      }
    }
  }

  #aboutpage {
    padding: 120px 20px 40px 20px;
    
    .me {

      #prof {
        height: auto;
        width: 100%;
        max-width: 400px;
      }
      
      .boutt {
        font-size: 28px;
      }
      
      p {
        font-size: 14px;
      }
    }
  }

  #skills {
    padding: 0;
    
    .skillset {
      gap: 30px;
    }
    
    .skillset img {
      width: 40px;
    }
  }

  #contct {
    padding: 30px 20px;

    #proff {
      max-height: 300px;
    }
    
    
    .contacttext p {
      font-size: 16px;
    }

    .links {
      gap: 25px;
    }
    
  

    .links a p {
      display: none;
    }
  }

  footer {
    padding: 30px 15px;
    
    #footdiv {
      gap: 20px;
      
      h1 {
        font-size: 24px;
      }
      
      #footnav {
        gap: 15px;
        
        a img {
          width: 40px;
          padding: 8px;
        }
        
        h2 {
          font-size: 16px;
          margin: 4px;
        }
      }
    }
    
    h2 {
      margin: 20px 0;
      font-size: 16px;
      
      a {
        padding: 2px 8px;
      }
    }
  }
}

/* Extra Small Mobile Phones (max-width: 360px) */
@media (max-width: 360px) {
  body {
    margin: 0 15px;
  }

  header {
    width: 280px;
  }

  #welcomefull {
    #welcome {
      #intro {
        h1 {
          font-size: 20px;
          line-height: 28px;
        }
      }
    }
  }

  #aboutpage {
    .me {
      .boutt {
        font-size: 24px;
      }
    }
  }

  footer {
    #footdiv {
      h1 {
        font-size: 20px;
      }
    }
  }
}