*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root{
    --bg-color: #ffffff;
    --second-bg-color: #bdbdbd;
    --text-color: #1f242d;
    --main-color: rgb(47, 47, 47);
}

html{
    font-size: 62.5%;
    overflow-x: hidden;

}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
  padding: 10rem 9% 2rem;  
  margin-bottom: 60px;
  margin-left: 30px;
  margin-right: 30px;
  display: block
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
    cursor: pointer;
}

.navbar a{
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
 color: var(--main-color);  
}

#menu-icon{
    font-size: 3rem;
    color: var(--text-color);
    display: none;

}
h1{
    font-size: 34px;
}
h3{
    font-size: 14px;
    font-weight: 500;
    color: #747474;
}
p{
    font-size: 14px;
    font-weight: 300;
}
div{
    margin-top: 2rem;
}
.celeb{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 800;
    transition: .5s ease;
    font-size: medium;
}

.btn:hover{
    box-shadow: none;
}
.mock-up{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mock-up img{
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -15%);
    max-height: 90vh;
}
.intro{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.intro h1{
    font-size: 64px;
    font-weight: 200px;
}

.rotate{
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    background: #e1ecf9;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    max-height: 80vh;
}
.solution img{
    position: absolute;
    display: flex;
    height: 170vh;
    transform: rotate(-45deg)
}
.blocks{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.block{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: start;
    width: 20%;
    margin: 8rem;
}
.block h1{
    font-size: 68px;
}
.result{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 40px;
    gap: 2rem;
}
.results img{
    width: 30vw;
}
.result .text-description{
    max-width: 700px;
}
.hat-content {    
    font-size: 14px;
  }
.hat-content {
  color: #a7a7a7;
  font-family: Gt america extended, sans-serif;
  font-size: 16px;
  line-height: 140%;
}

.container-content {
    max-width: 100%;
    min-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }
  .p-content {
    font-size: 14px;
  }
.p-content {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 160%;
  display: inline-block;
}
.title-content {
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    font-size: 30px;
    display: flex;
  }
.result img{
    border-radius: 20px;
    box-shadow: 0 0 1rem var(--main-color);
}

.tools{
    margin-top: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.scroller {
    max-width: 600px;
    
}
.scroller[data-animated="true"]{
    overflow:hidden;
    
}
.scroller__inner{
    padding-block: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}
.scroller .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
   
}
.photo{
    max-width: 50%;
    margin-top: 4rem;
    border-radius: 20px;
    box-shadow: 0 0 1rem var(--main-color);
}
.extras{
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;  
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
  }
  
  .footer-text p {
      font-size: 1.6rem;
  }
  
  .footer-iconTop a{
      display: inline-flex;
      justify-content: center;
      align-items: center;
      padding: .8rem;
      background: var(--main-color);
      border-radius: .8rem;
      transition: .5s ease;
  }
  
  .footer-iconTop a:hover{
      box-shadow: 0 0 1rem var(--main-color);
  
  }
  
  .footer-iconTop a i{
      font-size: 2.4rem;
      color: var(--second-bg-color);
  }

  .cutoff-text{
    --max-lines: 5;
    --line-height: 1.4;

    /* display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--max-lines); */

    max-height: calc(var(--max-lines) * 1em * var(--line-height));
    line-height: var(--line-height);

    overflow: hidden;
    position: relative;
    transition: max-height 1s ease-in-out;
    
}
.cutoff-text:has(+ .expand-btn:not(:checked))::before{
    content: "";
    position: absolute;
    height: calc(1em * var(--line-height));
    width: 100%;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, white);
    transition: opacity 1s ease;
}
.expand-btn{
    appearance: none;
    border: 2px solid black;
    padding: .5em;
    border-radius: .25em;
    cursor: pointer;
    margin-top: 1rem;
    
}
.expand-btn:hover{
    background-color: #ccc;

}
.expand-btn::before{
    content: "Read more";
    
}
.expand-btn:checked::before{
    content: "Show less";
}
.cutoff-text:has(+ .expand-btn:checked) {
    max-height: none;
    
}

  /* BREAKPOINTS */
 @media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
    .rotate{
        max-height: 50vh;
    }
 }

 @media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .services{
        padding-bottom: 7rem;
    }

    .portfolio{
        padding-bottom: 7rem;
    }
    .contact{
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }
    .blocks{
        display: block;
        

    }
    .block{
        min-width: 300px;
    }
    .rotate .photo{
        max-height: 60vh;
    }
    .mock-up img{
        max-height: 80vh;
    }
    .photo{
        max-width: 80vw;
    }
    .intro h1{
        font-size: 50px;
    }
 }

 @media (max-width: 768px){
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;

    }

    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home{
        flex-direction: column;
    }

    .home-content h3{
        font-size: 2.6rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }

    .about{
        flex-direction: column-reverse;
    }
    .about img{
        width: 70vw;
        margin-top: 4rem;
    }

    .services h2{
       margin-bottom: 3rem; 
    }

    .portfolio h2{
        margin-bottom: 3rem;
    }

    .portfolio-container{
        grid-template-columns: repeat(2, 1fr);
    }
    .blocks{
        display: block;
        

    }
    .block{
        min-width: 300px;
    }
    .photo{
        max-width: 80%;
        margin-top: 2rem;
    }
    .result{
        flex-direction: column;
    }
    .result img{
        min-width: 400px;
    }
    .rotate{
        max-height: 50vh;
    }
    .mock-up img{
        max-width: 90vw;
    }
    .photo{
        max-width: 80vw;
    }
 }

 
 @media (max-width: 617px){
    .portfolio-container{
        grid-template-columns: 1fr;
    }
    .blocks{
        display: block;
        

    }
    .block{
        min-width: 300px;
    }
    .result{
        flex-direction: column;
    }
    .mock-up img{
        max-width: 80vw;
    }
 }

 @media (max-width: 450px){
    html{
        font-size: 50%;
    }

    .contact form .input-box{
        width: 100%;
    }
 }

 @media (max-width: 365px){
    .home-img img{
        width: 90vw;
    }

    .about-img img{
        width: 90vw;
    }

    .footer{
        flex-direction: column-reverse;
    }

    .footer p{
        text-align: center;
        margin-top: 2rem;
    }
    .extras{
       display: none;
    }
    .result{
        flex-direction: column;
    }
    
 }