*{
    box-sizing: border-box;
}

body, div, ul, li, a, h1, h2, h3, h4, h5, p{
    margin: 0;
    padding: 0;
}

body{
    --bg-color: #fbf7f25d;
    --light-color: #fbf7f2;
    --dark-color: #b97e74;
    --text-color: #606060;
    background-color: var(--bg-color);
    font-family: Starsight;
    color: var(--text-color);
    font-weight: 200;
}

h1, h2, h3, h4, h5{
    font-weight: 200;
}

p{
    letter-spacing: 0.9px;
}

.button{
    color: var(--light-color);
    padding: 10px 23px;
    border-radius: 20px;
    background-color: var(--text-color);
    transition: background-color 0.18s;
    text-decoration: none;
    font-size: 1.4em;
}

.button:hover{
    background-color: var(--dark-color);
}

/*  HEADER SECTION  */
header{
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 -4px 10px var(--text-color);
    background-color: var(--light-color);
}

.header__container{
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    padding-left: 20px;
    align-items: center;
    position: relative;
}

.header__content-container{
    display: flex;
    gap: 30px;
    align-items: center;
}

.header__translate-button{
    width: 40px;
}

.header__translate-button img{
    object-fit: cover;
    width: 100%;
}

.header__checkbox{
    display: none;
}

.header__nav{
    display: none;
    background-color: var(--light-color);
    position: absolute;
    width: 150px;
    height: calc(100dvh - 50px);
    top: 50px;
    right: 0;
    padding: 15px;
    font-size: 1.3em;
}

.header__nav-list{
    display: flex;
    flex-direction: column;
    height: inherit;
    align-items: center;
    padding-top: 20px;
    gap: 15px;
}

.header__nav-list:last-child a{
    font-size: 1em;
}

.header__nav-item{
    list-style: none;
}

.header__nav-item a{
    text-decoration: none;
}

.item a{
    color: var(--text-color);
    transition: color 0.18s;
}

.item a:hover{
    color: var(--dark-color);
}

.button__header{
    font-size: 18px;
}

.header__nav-item:last-child{
    margin-top: 10px;
}

.header__checkbox:checked ~ .header__nav{
    display: flex;
    flex-direction: column;
}

.header__logo-container{
    height: 30px;
}

.header__logo{
    height: inherit;
}

.header__open-nav-button{
    transition: color 0.8s;
}

.header__open-nav-button img{
    width: 30px;
    filter: invert(52%) sepia(2%) saturate(12%) hue-rotate(351deg) brightness(89%) contrast(93%);
}

.close__button{
    display: none;
}

.header__checkbox:checked ~ .header__open-nav-button .close__button{
    display: block;
}

.header__checkbox:checked ~ .header__open-nav-button .open__button{
    display: none;
}

/*  HEADER QUERIES  */

@media screen and (min-width: 850px){

    .header{
        padding: 20px 0;
    }

    .header__nav{
        display: flex;
        position: static;
        height: inherit;
        width: inherit;
    }

    .header__nav-list{
        align-items: center;
        padding: 0;
    }

    .header__nav-list{
        flex-direction: row;
        gap: 20px;
    }

    .header__open-nav-button{
        display: none;
    }

    .header__nav-item:last-child{
        margin-top: 0;
    }

    .button{
        margin-left: 15px;
    }

}

/*  HEADER ENDS  */

/*  MAIN SECTION  */

.hero{
    container-name: hero;
    container-type: inline-size;
}

.hero__container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1300px;
    height: calc(100dvh - 50px);
    padding-top: 10px;
    gap: 10px;
}

.hero__img{
    height: 150px;
    max-height: 65dvh;
    flex-grow: 1;
    padding: 5px 15px;
    min-width: 320px;
    width: 100%;
}

.hero__img img{
    width: 100%;
    object-fit: cover;
    object-position: 0 60%;
    border-radius: 30px;
    height: 100%;
    
}

.hero__content{
    padding: 18px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 40vh;
}

.hero__content h1, .hero__content h2{
    text-align: center;
    font-size: 4.5dvh;
    text-wrap: balance;
}

.hero__content h1{
    font-size: 6.5dvh;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.hero__content a{
    margin: 0;
    margin-top: 10px;
}

/*  MAIN QUERIES  */

@container hero (min-width: 720px){
    .hero__container{
        flex-direction: row;
        height: calc(100dvh - 71px);;
        padding: 15px 0;
        margin: auto;
        gap: 10px;
    }

    .hero__img{
        order: 1;
        height: 100%;
        width: 60%;
        max-height: 80dvh;
    }

    .hero__img img{
        width: 100%;
        padding: 0;
        object-position: 50% 80%;
    }

    .hero__content{
        justify-content: center;
        width: 50%;
    }

    .hero__content a{
        margin-top: 20px;
    }
    .hero__content h1{
        font-size: 3.5em;
    }
    .hero__content h2{
        font-size: 1.8em;
    }
}

@container hero (min-height: 570px){
    .hero__img{
    height: 90%;
    }
}
/*  MAIN ENDS  */

/*  PORTFOLIO SECTION  */

.portfolio{
    height: auto;
    background-color: var(--dark-color);
    container-name: portfolio;
    container-type: inline-size;
}

.portfolio__container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    color: var(--light-color);
    padding: 15px;
    height: inherit;
    margin-top: 20px;
    max-width: 1300px;
    margin: auto;
}

.portfolio__title{
    font-size: 2.5rem;
}

.portfolio__samples{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.portfolio__sample{
    height: 250px;
}

.portfolio__sample img{
    object-fit: cover;
    width: 100%;
    height: inherit;
    border-radius: 30px;
}

.portfolio__button{
    background-color: var(--light-color);
    color: var(--text-color);
}

.portfolio__button:hover{
    background-color: var(--text-color);
    color: var(--light-color);
}

/*  PORTFOLIO QUERIES  */

@container portfolio (min-width: 500px){
    .portfolio__samples{
        flex-direction: row;
    }
    .portfolio__sample{
        height: clamp(12em, 40vw, 20em);
    }
    .portfolio__container{
        padding: 30px;
        gap: 40px;
    }
}

/*  PORTFOLIO ENDS  */


/*  STUDIO SECTION  */
.studio{
    container-name: studio;
    container-type: inline-size;
}

.studio__container{
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 30px;
    justify-content: center;
    max-width: 1300px;
    margin: auto;
    margin-top: 15px;
}

.studio__title{
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.studio__img{
    height: 300px;
}

.studio__img img{
    width: 100%;
    height: inherit;
    border-radius: 30px;
    object-fit: cover;
}

.studio__content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.3em;
}

.studio__p{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.studio__p p{
    text-align: center;
    text-wrap: balance;
    font-size: clamp(1.2rem, 1vw, 3rem);
    font-family: Montserrat;
}

.studio__p p:last-child{
    color: var(--dark-color);
    font-family: Starsight;
    letter-spacing: 1px;
    font-size: 1.3rem;
}

.studio__buttons{
    margin-top: 20px;
}

.studio__buttons a{
    color: #fff;
}

.red__button{
    background-color: var(--dark-color);
    margin-top: 10px;
}

.red__button:hover{
    background-color: var(--text-color);
}

/*  STUDIO QUERIES  */
@container studio (min-width: 720px){
    .studio__container{
        flex-direction: row;
        margin-top: 30px;
    }
    .studio__img{
        height: 400px;
        min-width: 50%;
        border-radius: 30px;
    }
}
/*  STUDIO ENDS  */

/*  SERVICES SECTION  */
.services__container{
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

.services__title{
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-top: 40px;
}

.services__grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(40%, 500px));
    grid-template-rows: repeat(2, 200px);
    margin: auto;
    gap: 15px;
    padding: 15px;
}

.services__grid-img{
    position: relative;
}

.services__grid-img h4{
    position: absolute;
    z-index: 10;
    color: var(--light-color);
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    margin: 0;
    font-size: clamp(1.6em, 4vw, 1.9em);
}

.services__grid-img img{
    width: 100%;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    filter:sepia(-10);
    opacity: 0.9;
    filter: brightness(65%);
}

/*  SERVICES ENDS  */

/*  EXPERIENCE SECTION  */

.experience{
    margin: 20px 0;
    background-color: var(--dark-color);
    container-name: experience;
    container-type: inline-size;
    z-index: 10;
}

.experience__container{
    max-width: 1300px;
    padding: 30px;
    margin: auto;
}

.experience__title{
    text-align: center;
    font-size: 2em;
    color: var(--light-color);
    padding-bottom: 30px;
    text-wrap: balance;
}

.experience__grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    grid-template-rows: auto;
    gap: 12px;
    place-content: center;
    
}

.experience__grid-item{
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.experience__grid-item img{
    filter: invert(52%) sepia(2%) saturate(12%) hue-rotate(351deg) brightness(89%) contrast(93%);
    width: 40px;
}

.experience__grid-item h5{
    font-size: 1.3em;
    margin-top: 5px;
}

.experience__grid-item p{
    font-size: 1em;
    padding: 10px 0 10px 0;
    font-family: Montserrat;
}

.item-title{
    letter-spacing: 0.9px;
}

/*  EXPERIENCE QUERIES  */

@container experience (min-width: 700px){
    .experience__grid{
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }
}

/*  EXPERIENCE ENDS  */

/*  FAQ SECTION  */

.faq__container{
    max-width: 1100px;
    margin: auto;
    padding: 20px 10px;
    container-name: faq;
    container-type: inline-size;
}

.faq__container h4{
    font-size: 1.5em;
    padding-left: 10px;
}

.faq__container details{
    margin: 7px;
    padding: 7px;
    max-height: 55px;
    transition: max-height 2s;
    overflow: hidden;
}

.faq__container details[open]{
    max-height: 550px;
}

.faq__container details[open] .faq__answer{
    animation: show 1s .3s both;
}

.faq__question{
    border-bottom: 1.5px solid var(--text-color);
    letter-spacing: 1px;
    padding-bottom: 4px;
    position: relative;
    font-size: clamp(1.1em, 3vw, 1.3em);
}

.faq__question::marker{
    content: '';
}

.faq__question::before{
    content:'';
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    clip-path: polygon(100% 43%, 50% 100%, 0 43%, 8% 36%, 50% 82%, 92% 36%);
    background-color: var(--text-color);
    transition: clip-path .4s;
}

details[open] .faq__question::before{
    content:'';
    clip-path: polygon(100% 57%, 50% 0%, 0 57%, 8% 64%, 50% 18%, 92% 64%);
}

.faq__answer{
    padding: 10px 20px;
    font-size: 1.1em;
    font-family: Montserrat;
}

@keyframes show {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

/*  FAQ ENDS  */

/*  REVIEWS SECTION  */
.reviews {
    max-width: 1000px;
    margin: auto;
    padding: 45px;
    padding-top: 10px;
    container-name: reviews;
    container-type: inline-size;
}

.reviews__title {
    text-align: center;
    font-size: 2em;
    padding-bottom: 30px;
    text-wrap: balance;
    letter-spacing: 1px;
}

.reviews__container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.reviews__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 40px;
    padding-right: 15px;
    box-shadow: 0 5px 10px #0003;
    border-radius: 20px;
    position: relative;
    margin-left: 10px;
    background-color: var(--light-color);
}

.logo__circle{
    width: 80px;
    height: 80px;
    position: absolute;
    top: calc(50% - 25px);
    left: -40px;
}

.logo__circle img {
    width: 100%;
    border-radius: 50%;
}

.reviews__item-title {
    font-size: 18px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.reviews__item-p {
    padding-left: 5px;
    font-family: Montserrat;
    font-size: 14px;
}


@container reviews (min-width: 400px) {
    .reviews__item-title {
        font-size: 25px;
    }
    .reviews__item-p {
        font-size: 16px;
    }
    .logo__circle {
        width: 80px;
        height: 80px;
        top: calc(50% - 40px);
    }
}

/*  REVIEWS ENDS  */

/*  FOOTER SECTION  */
.footer{
    background-color: var(--light-color);
    container-name: footer_page;
    container-type: inline-size;
}

.footer__container{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: auto;
    padding: 20px 0 8px 0;
}

.footer__content{
    display: flex;
    padding: 20px 13px;
    gap: 30px;
    width: 100%;
    justify-content: space-evenly;
    font-size: 1em;
}

.footer__contact a{
    color: var(--text-color);
    transition: color 0.3s;
}

.footer__contact a:hover{
    color: var(--dark-color);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__container > p{
    font-size: 1em;
    margin: 10px 0;
}

.footer__container > p:last-child{
    margin: auto;
}

.footer__social{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.footer__social img{
    width: 23px;
    filter: invert(39%) sepia(0%) saturate(0%) hue-rotate(191deg) brightness(93%) contrast(89%);
    transition: filter 0.2s;
}

.footer__social img:hover{
    filter: invert(51%) sepia(2%) saturate(6934%) hue-rotate(320deg) brightness(106%) contrast(73%);
}


@container footer_page (min-width: 400px) {
    .footer__content{
        font-size: 1.2em;
    }
}
/*  FOOTER ENDS  */

.powerBy {
    background-color: #000; 
    text-align: center; 
    font-size: 16px;
    color: #bbb;
    font-family: sans-serif;
    padding: 15px;
}

.powerBy a {
    color: #eee;
}