main{
    width: 100vw;
}

.landingSection{

    display: flex;

    background-image: url("../assets/HeaderGraphicUpdated.png");
    height: 90vh;
    width: 100vw;
    top: 0;
    padding-top: 86px;
    align-items: center;

    && h1{
        text-transform: uppercase;
    }
}

.bannerText .contactUsButton{
    display: none;
}

.homePageSection {
    padding-top: 10%;
    padding-bottom: 10%;
    transition: all 0.5s ease-in-out;
}

.homepage-section-text{
    width: 45%;
    transition: width 0.4s ease-in-out;
    && h1{
        font-weight: 600;
        font-size: 42px;
        text-transform: uppercase;
        margin-bottom: 0;
        margin-top: 0;
    }
    && p{
        font-size: 18px;
        padding-top: 1.3em;
        padding-bottom: 1.3em;
        margin: 0;
    }
}

.rightPositionImage{
    object-position: right !important;
}

#building-energy-homepage-section{
    width: 100vw;
    position: relative;
    padding: 0;
    margin: 0;
    transition: none;

    && img{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    && .homepage-section-text{
        color: #F4F4F4;
        margin-bottom: 5em;
        transition: all 0.5s ease-in-out;
    }

    && ol {
        direction: rtl;
        list-style-type: none;
        color: rgba(255, 255, 255, 0.3);
        font-size: 18px;
        line-height: 28px;
        transition: all 0.3s ease-in-out;
        padding-right: 0;

        & > li {
            counter-increment: customlistcounter;
            transition: all 0.3s ease-in-out;
            width: fit-content;
            display: block;
            margin-bottom: 10px;
            margin-right: 30px;

            &::before {
                content: counter(customlistcounter, decimal-leading-zero) " ";
                float: right;
                margin-right: -30px;
                display: inline-block;
            }

            &:nth-child(1) {
                counter-reset: customlistcounter;
            }


            &:hover{
                color: #F4F4F4;
                cursor: pointer;
            }
        }
    }

    .selected-li{
        color: #F4F4F4;
    }
}

.image-filter-homepage{
    background-color: rgba(15, 36, 0, 0.76);
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
}

.buildingEnergySlides, .projectSlides, .marketsServedBackground{
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.projectSlides{
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /*background-repeat: no-repeat;*/
    /*background-position: center;*/
    /*background-size: cover;*/
    /*background-image: url("../assets/MidtownThermalControlCenter.png");*/
}

.projectSlides.activeSlide, .buildingEnergySlides.activeSlide {
    opacity: 1;
}

#award-winning-projects-homepage{
    display: grid;
    grid-template-columns: 50% 50%;
    height: 95vh;
    transition: all 0.5s ease-in-out;

    && .homepage-section-text{
        color: black;
    }

    && h1{
        color: black;
        margin-top: 0;
    }

    && .award-winning-projects-homepage-main{
        grid-column: 1;
        margin-right: 0;
        padding-bottom: 10%;
        padding-top: 10%;
        display:flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
        margin-left: auto;
        width: 40vw;
        max-width: 600px;
    }

    && .homepage-section-text{
        width: 90%;
        /*margin-left: auto;*/
        padding-right: 10%;
        margin-bottom: 5%;
    }

    .featuredSuccessAwardText {
        font-size: 14px;
        text-align: center;
        & p {
            color: #777;
            margin-top: unset;
        }
    }

    .featuredSuccessAwardSection {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 90%;
        /*max-width: 600px;*/
        /*margin-left: auto;*/
        padding-right: 10%;
        gap: 20px;
    }

    .homepage-awards-row-one, .homepage-awards-row-two{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .homepage-awards-row-two{
        justify-content: space-evenly;
    }

    .featuredSuccessAwardWrapper {
        display: grid;
        grid-template-rows: 70px auto;
        max-width: fit-content;

        && p{
            margin-bottom: 0;
        }
    }

    .featuredSuccessAwardImage {
        text-align: center;

        & img{
            height: 70px;
            width: auto;
        }
    }

    && .award-winning-projects-homepage-image-container{
        grid-column: 2;
        padding: 0;
        width: 100%;
        min-height: max-content;
        position: relative;
        top: 0;
        margin: 0;

        .homepage-section-text{
            width: 70%;
            height: 90%;
            max-width: 600px;
            margin-right: auto;
            margin-left: 0;
            margin-bottom: 0;
            padding-right: 0;
            padding-left: 10%;
            padding-bottom: 10%;
        }
    }

    && .project-image-homepage{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    && .image-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        opacity: 1;
        background: linear-gradient(
                to top,
                rgb(0, 0, 0) 0%,
                rgba(0, 0, 0, 0) 50%
        );
    }

    && .project-info{
        /* match the padding in award-winning-projects-homepage-main*/
        width: 100%;
        height: 100%;
        align-content: end;
        color: white;
        text-transform: uppercase;

        && h1{
            color: #FFFFFF;
            width: 80%;
            font-size: 38px;

        }

        && .homepage-section-text{
            margin-bottom: 0;
        }

        && p{
            margin: 0;
            padding-top: 1em;
            padding-bottom: 1em;
        }

    }
}

.project-category{
    background: radial-gradient(69.9% 110.16% at 17.58% 4.3%, rgba(20, 150, 68, 0.25) 0%, rgba(150, 186, 58, 0.1) 78.06%);

    text-transform: capitalize;
    border: rgba(83, 134, 76, 0.38) 2px solid;

    color: #FFFFFF;
    font-weight: 400;
    font-size: 16px;
    text-align: center;

    /* match buttons */
    min-height: 32px;
    max-height: fit-content;
    width: fit-content;
    padding: 0 20px;

    border-radius: 20px;
    text-decoration: none;
    align-content: center;
    transition: all 0.3s ease-in-out;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    gap: 10px;
    position: initial;

    && .category-icon{
        height: 20px;
        width: auto;
    }
}

#diverseMarketsServed{
    position: relative;
    padding: 0;
    margin: 0;
    transition: all 0.5s ease-in-out;
    width: 100%;

    && .marketsServedBackground{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    && .homepage-section-text{
        color: white;
        transition: all 0.5s ease-in-out;
        width: 50%;
        && p{
            width: 90%;
        }
    }

    .padding{
        padding: 5% 0px;
        width: 100%;
        height: 100%;
    }
}

.diverseMarketBackgroundFilter{
    position: relative;
    width: 100%;
    min-height: max-content;
    margin: 0;
    background: linear-gradient(178.95deg, rgba(5, 19, 32, 0.3) 0.89%, rgba(5, 19, 32, 0.5) 48.96%, #051320 99.1%);
    backdrop-filter: blur(3.05px);
    border-bottom: 2px #051320 solid;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: fit-content;
    gap: 20px;
    padding: 10% 0;
}
.carouselContainer{
    display: flex;
    align-items: center;

}
.carouselWrapper{
    width: 100%;
    max-height: calc(326px + 40px + 80px);
    height: calc(20vw + 42px + 80px);
    min-height: calc(120px + 40px + 80px);

    overflow-x: hidden;
    position: relative;
    justify-items: center;
}

.arrowsContainer {
    position: absolute;
    top: 0;
    width: 80%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    padding-top: 14vw;
    z-index: 100;
}

.leftSlideArrow{
    left: 1vw;
}

.rightSlideArrow{
    left: calc(99vw - 44px - 15px);
}

.slidesArrow{
    position: absolute;
    top: calc( 10px + (max(min(20vw + 2px, 326px), 120px) - (max(min(20vw + 2px, 326px), 120px) * 0.7)) + ((max(min(20vw + 2px, 326px), 120px) * 0.7)/2) - 22px);
    z-index: 100;
    background: #0909094D;
    backdrop-filter: blur(4px);
    width: 44px;
    height: 44px;
    border: 1px solid #FFFFFF4D;
    border-radius: 50%;
    display: flex;
    justify-items: center;
    justify-content: center;
    align-content: center;
    align-items: center;
    cursor: pointer;

    & img{
        width: 16px;
        height: auto;
    }
}

.slidesArrow:hover{
    background: rgba(0, 0, 0, 0.37);
}

.arrowLeft {
    rotate: 180deg;
}

.firstMarketsServedSlideShowContainer, .secondMarketsServedSlideShowContainer {
    display: flex;
    flex-direction: row;
    width: fit-content;
    min-height: max-content;
    position: absolute;
    padding-top: 10px;
    left:0;
    top:0;
    transition: transform 0.7s ease-in-out;
}

.firstMarketsServedSlideShowContainer{
    left: calc( 50vw -
            calc(max(min(calc(20vw + 2px), 326px), 120px) / 2)
        );
}

.secondMarketsServedSlideShowContainer{
    left: calc( 50vw +
            calc(max(min(calc(20vw + 2px), 326px), 120px) / 2)
                +
                max(min(calc(20vw + 2px), 326px), 120px)
        * -10);
}

.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
    overflow-clip-margin: unset;
    vertical-align: middle;
}


.mySlides{
    max-width: 324px;
    width: calc(20vw + 2px);
    min-width: 120px;
    max-height: calc(326px + 40px + 66px);
    height: calc(20vw + 42px + 66px);
    min-height: calc(120px + 40px + 66px);
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 40px;
    padding-bottom: 2px;

    .slidesImageWrapper{
        max-height: 326px;
        max-width: 326px;
        width: calc(20vw + 2px);
        height: calc(20vw + 2px);
        min-width: 120px;
        min-height: 120px;
        display: flex;
        justify-content: center;
        align-items: end;

    }

    .gradient-border {
        border-radius: 50%;
        display: flex;
        max-height: calc(326px * 0.7);
        max-width: calc(326px * 0.7);
        width: calc((20vw + 2px) * 0.7);
        height: calc((20vw + 2px) * 0.7);
        min-width: calc(120px * 0.7);
        min-height: calc(120px * 0.7);
        /*width: 100%;*/
        /*height: 70%;*/
        aspect-ratio: 1 / 1;
        justify-content: center;
        align-items: end;
        /*margin-top: calc(max(min((20vw + 2px) * 0.3, (326px * 0.3)), (120px * 0.3)));*/
    }

    && .circle-container{
        border-radius: 50%;
        overflow: hidden;
        position: relative;
        width: calc(100% - 2px);
        height: calc(100% - 2px);
    }

    .details{
        display: flex;
        flex-direction: column;
        font-weight: 400;
        color: #F4F4F4;
        font-size: 16px;
        width: 100%;
        height: 66px;
        align-items: center;
        align-content: center;
        justify-content: center;
        justify-items: center;

        .icon{
            opacity: 0;
            height: 25px;
            width: auto;

            && img{
                height: 100%;
                width: auto;
            }
        }

        && p{
            margin-top: 10px;
            margin-bottom: 5px;
            opacity: 1;
            color: rgba(153, 153, 153, 0.2);
            text-align: center;
        }

        && .left-text{
            opacity: 1;
            background: linear-gradient(90deg, rgba(153, 153, 153, 0.2) 0%, rgba(255, 255, 255, 0.5) 100%);
            color: transparent;
            background-clip: text;
            transition: opacity 0.5s ease-in-out;
        }

        && .right-text{
            opacity: 1;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(153, 153, 153, 0.2) 100%);
            color: transparent;
            background-clip: text;
            transition: opacity 0.5s ease-in-out;
        }

        .line{
            opacity: 0;
            width: 56px;
            height: 2px;
            border-radius: 50%;
            background: linear-gradient(90deg, rgba(110, 180, 65, 0) 10.61%, #179744 50.69%, rgba(116, 182, 65, 0) 91.91%);
        }
    }

    .inactiveSlideFilter{
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        top: 0;
        opacity: 1;
        transition: height 0.6s ease-in-out,
                    width 0.6s ease-in-out,
                    opacity 0.6s ease-in-out;

        background: radial-gradient(47.49% 69.6% at 13.07% 13.07%, rgba(23, 28, 35, 0.3) 0%, rgba(5, 19, 32, 0.8) 100%);
    }
}

.mySlides.activeSlide{
    padding: 0;

    .details {
        font-weight: 600;
        color: #F4F4F4;
        opacity: 1;

        && p{
            transition: opacity 0.5s ease-in-out;
            color: #F4F4F4;
        }
    }

    .gradient-border{
        background: linear-gradient(135deg, #B0F359 30.5%, #51AA42 67.11%);
        box-shadow: 0px 0px 6px 3px rgba(254, 228, 33, 0.63);
        align-items: center;
        margin-top:0;
        transition: height 0.7s ease-in-out,
                    width 0.7s ease-in-out,
                    background 1s ease-in-out,
                    box-shadow 1s ease-in-out;
        max-height: 326px;
        max-width: 326px;
        width: calc(20vw + 2px);
        height: calc(20vw + 2px);
        min-width: 120px;
        min-height: 120px;
        aspect-ratio: 1 / 1;
    }

    .line, .icon{
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
    }

    .line{
        padding-bottom: 0;
    }
}


.joinTeamSection{
    background-image: url("../assets/TorontoSkyLine_updated.png");
    background-position: center;
    background-size: cover;
    grid-template-columns: 1fr;
    height: 90vh;
    /*max-height: 632px;*/
    width: 100%;
    grid-row-gap: 100px;
    margin-top: 0;
    display: flex;
    flex-direction: column;

    align-items: start;
}
.joinTeamBannerTextContainer {
    /*height: max-content;*/
    padding-top: 5%;
    padding-bottom: 10%;
    display: block;
    flex-direction: column;
    justify-items: right;
    text-align: end;
    justify-content: end;
    height: 100%;
    transition: all 0.5s ease-in-out;

    .homepage-section-text{
        width: 60%;
    }

    && p{
        color: white;
    }
}

@media (max-width: 1000px) {
    #award-winning-projects-homepage{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: fit-content;


        && .award-winning-projects-homepage-main{
            grid-row: 1;
            grid-column: 1;
            gap: 60px;
            width: 80%;
            margin: auto;
            max-width: unset;

            & .homepage-section-text br{
                display: none;
            }

            .homepage-section-text, .featuredSuccessAwardSection{
                /*width: 80%;*/
                /*margin: auto;*/
                padding-right: 0;
                width: 100%;
            }

            .featuredSuccessAwardSection{
                max-width: 600px;
                margin: auto;
            }
        }

        && .award-winning-projects-homepage-image-container{
            grid-row: 2;
            grid-column: 1;
            height: 90vh
        }
    }
}

@media (max-width: 950px) {
    .homepage-section-text {
        width: 95%;

        && h1{
            font-size: 32px;
        }
    }

    .bannerText h1 {
        font-size: 32px;
    }

    .bannerText .contactUsButton{
        display: block;
    }

    #award-winning-projects-homepage{
        .project-info {
            && h1{
                font-size: 28px !important;
            }

            && p{
                font-size: 16px;
            }
        }
    }

    .joinTeamBannerTextContainer{
        padding-top: 10%;
    }


    #building-energy-homepage-section{
        && ol {
            direction: ltr;
            color: rgba(255, 255, 255, 0.3);
            padding-left: 0;
            transition: all 0.5s ease-in-out;

            & > li {
                margin-right: 0;
                margin-left: 30px;

                &::before {
                    float: left;
                    margin-right: 0;
                    margin-left: -30px;
                }
            }
        }
    }

    #diverseMarketsServed{
        && .homepage-section-text{
            width: 95%;
        }
    }

    .joinTeamBannerTextContainer {
        justify-items: start;
        text-align: start;
        justify-content: start;

        .homepage-section-text{
            width: 95%;
        }
    }
}

@media (max-width: 600px) {

    .bannerText br{
        display: none;
    }

    #award-winning-projects-homepage {
        && .project-info{
            && h1 {
                width: 90%;
            }
        }

        .featuredSuccessAwardImage img {
            height: 40px;
            transition: height 0.3s ease-in-out;
        }

        .featuredSuccessAwardWrapper{
            grid-template-rows: 50px auto;
        }

    }

    .joinTeamBannerTextContainer br{
        display: none;
    }

    .mySlides{
        .details{
            font-size: 14px;
        }
    }
}




