/*==================================================
                ABOUT HERO
==================================================*/

.about-hero{
    width:100%;
    padding-top:88px;
}


/*====================================
            HERO IMAGE
====================================*/

.about-hero-image{

    width:100%;
    height:70vh;

    position: relative;

    overflow:hidden;

}

.about-hero-image img{

    width:100%;
    height:100%;

    display: block;

    object-fit:cover;
    object-position:center;

}

/*==================================================
                DARK OVERLAY
==================================================*/

.about-hero-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    z-index: 1;

}


/*==================================================
                ABOUT US TITLE
==================================================*/

.about-hero-title {

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    z-index: 2;

    margin: 0;

    width: 100%;

    text-align: center;

    font-family:var(--heading-font);

    font-size: 16px;

    font-weight: 400;

    line-height: 1.2;

    color: #ffffff;

    letter-spacing: 1px;

}



/*====================================
            DESCRIPTION
====================================*/

.about-hero-content{

    width:min(92%, 1100px);

    margin:0 auto;

    padding:24px 0 70px;

    text-align:center;

}

.about-hero-content p{

    font-family:var(--body-font);

    font-size:16px;

    font-weight:400;

    line-height:1.8;

    color:var(--primary);

    margin:0;

}

/*==================================================
                RESPONSIVE
==================================================*/


/*------------------------------
        991px
------------------------------*/

@media(max-width:991px){

    .about-hero{

        padding-top:80px;

    }

    .about-hero-image{

        height:50vh;

    }

    .about-hero-title {

        font-size: 16px;

    }

    .about-hero-content{

        padding:25px 0 60px;

    }

}


/*------------------------------
        576px
------------------------------*/

@media(max-width:576px){

    .about-hero{

        padding-top:72px;

    }

    .about-hero-image{

        height:50vh;

    }

    .about-hero-title {

        font-size: 16px;

        letter-spacing: 0.8px;

    }

    .about-hero-content{

        width:88%;

        padding:24px 0 50px;

    }

    .about-hero-content p{

        font-size:16px;

        line-height:1.8;

    }

}










/*=======project==========*/

/* ==================================================
        PROJECT SECTION
================================================== */

.projects-section {

    width: 100%;

    padding: 40px 0 90px;

    background: #FFFFFF;

    overflow: hidden;

}



/* ==================================================
        FILTERS
================================================== */

.projects-filters {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 45px;

}


.project-filter {

    padding: 9px 24px;

    background: transparent;

    border: 1px solid #777;

    border-radius: 0;

    font-family: var(--body-font);

    font-size: 14px;

    font-weight: 400;

    color: var(--primary);

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;

}


.project-filter:hover,
.project-filter.active {

    background: var(--primary);

    color: #FFFFFF;

    border-color: var(--primary);

}



/* ==================================================
        PROJECT BLOCK
================================================== */

.project-block {

    width: 100%;

    margin-bottom: 85px;

}


.project-block:last-child {

    margin-bottom: 0;

}



/* ==================================================
        PROJECT NAME
================================================== */

.project-name {

    margin: 0 0 30px;

    text-align: center;

    font-family:var(--heading-font);

    font-size: 20px;

    font-weight: 400;

    line-height: 1.3;

    color: var(--primary);

}



/* ==================================================
        CAROUSEL AREA
================================================== */

.project-carousel-area {

    position: relative;

    width: calc(100% - 140px);

    margin: 0 auto;

}



/* ==================================================
        CAROUSEL
================================================== */

.project-carousel {

    width: 100%;

    display: flex;

    gap: 8px;

    overflow-x: auto;

    overflow-y: hidden;

    scroll-behavior: auto;

    scrollbar-width: none;

    padding: 0;

    cursor: grab;

}


.project-carousel::-webkit-scrollbar {

    display: none;

}


.project-carousel:active {

    cursor: grabbing;

}



/* ==================================================
        PROJECT IMAGE
================================================== */

.project-image {

    /*flex: 0 0 calc((100% - 16px) / 3);

    width: calc((100% - 16px) / 3);

    height: 500px;*/

    flex: 0 0 30%;
    width: 50%;
    height: 400px;

    padding: 0;

    border: 0;

    background: none;

    overflow: hidden;

    cursor: pointer;

    display: block;

}


.project-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s cubic-bezier(.2,.7,.2,1),
        filter 0.4s ease;

}



/* ==================================================
        IMAGE HOVER
================================================== */

.project-image:hover img {

    transform: scale(1.05);

    filter: brightness(0.88);

}



/* ==================================================
        CAROUSEL ARROWS
================================================== */

.project-arrow {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 42px;

    height: 42px;

    border: 0;

    border-radius: 50%;

    background: rgba(25, 25, 25, 0.65);

    color: #FFFFFF;

    font-size: 20px;

    line-height: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;

}


.project-arrow:hover {

    background: rgba(25, 25, 25, 0.9);

    transform: translateY(-50%) scale(1.08);

}


.project-arrow-left {

    left: -21px;

}


.project-arrow-right {

    right: -21px;

}



/* ==================================================
        DESCRIPTION
================================================== */

.project-description {

    width: min(90%, 1000px);

    margin: 28px auto 0;

    text-align: center;

}


.project-description p {

    margin: 0;

    font-family: var(--body-font);

    font-size: 16px;

    font-weight: 400;

    line-height: 1.8;

    color: var(--primary);

}



/* ==================================================
        LIGHTBOX
================================================== */

.project-lightbox {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.90);

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

}


.project-lightbox.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}



/* ==================================================
        LIGHTBOX CONTENT
================================================== */

.lightbox-content {

    width: min(85vw, 1100px);

    height: 85vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}


.lightbox-content img {

    max-width: 85vw;

    max-height: 75vh;

    width: auto;

    height: auto;

    object-fit: contain;

    display: block;

}


.lightbox-content h3 {

    margin: 18px 0 0;

    color: #FFFFFF;

    font-family:var(--heading-font);

    font-size: 20px;

    font-weight: 400;

    text-align: center;

}



/* ==================================================
        LIGHTBOX CLOSE
================================================== */

.lightbox-close {

    position: absolute;

    top: 25px;

    right: 30px;

    width: 45px;

    height: 45px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #FFFFFF;

    font-size: 40px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    z-index: 10;

    transition: transform 0.3s ease;

}


.lightbox-close:hover {

    transform: rotate(90deg);

}



/* ==================================================
        LIGHTBOX ARROWS
================================================== */

.lightbox-arrow {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 52px;

    height: 52px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.6);

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: #FFFFFF;

    font-size: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;

}


.lightbox-arrow:hover {

    background: rgba(255,255,255,.20);

    transform: translateY(-50%) scale(1.08);

}


.lightbox-prev {

    left: 30px;

}


.lightbox-next {

    right: 30px;

}



/* ==================================================
        TABLET
================================================== */

@media (max-width: 991px) {

    .projects-section {

        padding: 60px 0 75px;

    }


    .projects-filters {

        gap: 10px;

        margin-bottom: 38px;

    }


    .project-filter {

        padding: 8px 18px;

        font-size: 13px;

    }


    .project-block {

        margin-bottom: 70px;

    }


    .project-name {

        font-size: 24px;

        margin-bottom: 25px;

    }


    .project-carousel-area {

        width: calc(100% - 100px);

    }


    .project-image {

        /*flex: 0 0 calc((100% - 16px) / 3);

        width: calc((100% - 16px) / 3);

        height: 390px;*/

        flex: 0 0 30%;
        width: 30%;
        height: 300px;

    }


    .project-arrow {

        width: 38px;

        height: 38px;

        font-size: 18px;

    }


    .project-arrow-left {

        left: -19px;

    }


    .project-arrow-right {

        right: -19px;

    }


    .project-description {

        margin-top: 25px;

    }


    .project-description p {

        font-size: 15px;

    }

}



/* ==================================================
        MOBILE
================================================== */

@media (max-width: 576px) {

    .projects-section {

        padding: 45px 0 60px;

    }


    .projects-filters {

        width: 92%;

        margin: 0 auto 35px;

        gap: 8px;

    }


    .project-filter {

        padding: 7px 14px;

        font-size: 12px;

    }


    .project-block {

        margin-bottom: 60px;

    }


    .project-name {

        font-size: 21px;

        margin-bottom: 22px;

    }


    .project-carousel-area {

        width: calc(100% - 70px);

    }


    .project-carousel {

        gap: 8px;

    }


    .project-image {

        /*flex: 0 0 100%;

        width: 100%;

        height: auto;

        aspect-ratio: 4 / 5;*/

        flex: 0 0 75%;

        width: 75%;

        height: auto;

        aspect-ratio: 4 / 5;

    }


    .project-arrow {

        width: 34px;

        height: 34px;

        font-size: 16px;

    }


    .project-arrow-left {

        left: -17px;

    }


    .project-arrow-right {

        right: -17px;

    }


    .project-description {

        width: 88%;

        margin-top: 24px;

    }


    .project-description p {

        font-size: 14px;

        line-height: 1.7;

    }



    /* ==========================
       LIGHTBOX MOBILE
    ========================== */

    .lightbox-content {

        width: 90vw;

        height: 80vh;

    }


    .lightbox-content img {

        max-width: 88vw;

        max-height: 68vh;

    }


    .lightbox-content h3 {

        font-size: 17px;

        margin-top: 14px;

    }


    .lightbox-close {

        top: 15px;

        right: 15px;

        font-size: 32px;

    }


    .lightbox-arrow {

        width: 36px;

        height: 36px;

        font-size: 16px;

    }


    .lightbox-prev {

        left: 10px;

    }


    .lightbox-next {

        right: 10px;

    }

}