/* HEADER */
#header{
    /* background: url(../media/homepage/reference/ref1.jpg) no-repeat center center;
    background-size: cover; */
    width: 100%;
    min-height: 40lvh;
    padding-top: var(--navbar-height);

    display: flex;
    justify-content: center;
    align-items: center;
}
#header-container{
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 0px;
    color: var(--clr-3);

    text-align: center;
}

#header-title{
    font-size: calc(var(--font-size) * 3);
    font-weight: 700;
}

#header-subtitle{
    font-size: calc(var(--font-size) * 1.3);
    font-weight: 500;
    margin: 20px 0;
    max-width: 700px;
    line-height: 2;

}

#header-link{
    padding: 10px;
    margin-top: 10px;

    display: flex;
    justify-content: center;
    align-items: center;
}
#header-link-icon{
    width: 40px;
    filter: brightness(0) saturate(100%) invert(9%) sepia(7%) saturate(2933%) hue-rotate(169deg) brightness(96%) contrast(88%);
}


/* MAIN */
#main{
    width: 100%;
    padding: 100px 0;
}

/* ABOUT */
#reference{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#reference-container{
    flex-direction: column;
}


#reference-title{
    border-top-right-radius: var(--border-radius-3);
    border-bottom-right-radius: var(--border-radius-3);
    padding: 5px 30px;
}
#reference-title::after{
    width: var(--title-left-0);
    right: calc(100% - 5px);
}



#reference-block{
    width: 100%;
    margin-top: 50px;

    
}

.reference-items{
    
    display: inline-block !important;
    width: 500px;
    min-height: 300px;
    background: #ccc;
    margin-bottom: 10px;

    z-index: 10;
    position: relative;
    color: var(--clr-1);
    opacity: 0;
}
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
    }
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reference-items.animate__fadeIn {
    -webkit-animation: fadeIn .5s linear forwards;
    animation: fadeIn .5s linear forwards;
}
.reference-items:nth-child(1){grid-area: one;}
.reference-items:nth-child(2){grid-area: two;}
.reference-items:nth-child(3){grid-area: three;}

.reference-items-img{
    z-index: -1;
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.reference-items-group{
    position: relative;
    width: 100%;
    min-height: 300px;

    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    text-align: left;
    transition: background-color .2s ease, color .2s ease;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
@media (hover: hover) and (pointer: fine) {
    .reference-items-group:hover{
        background-color: rgba(255, 255, 255, 0.9);
        color: var(--clr-3);
    }
    .reference-items-group:hover .reference-items-text{
        color: var(--clr-3);
    }
}

.reference-items-title{
    width: fit-content;
    position: relative;
    font-size: calc(var(--font-size) * 1.5);
    font-weight: 600;
    padding-bottom: 5px;
}
.reference-items-title::after{
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    background-color: var(--clr-1);
    width: 60%;
    height: 2.5px;
    transition: background-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .reference-items-group:hover .reference-items-title::after{
        background-color: var(--clr-3);
    }
}

.reference-items-year{
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 40px;
    font-size: calc(var(--font-size) * 1.2);
    font-weight: 600;

}

.reference-items-text{
    font-size: calc(var(--font-size) * 1.2);
    font-weight: 500;
    margin: 25px 0;
    color: var(--clr-7);
    transition: color .2s ease;

}

.reference-items-icon{
    background-color: var(--clr-1);
    padding: 5px 15px;
    border-radius: var(--border-radius-1);
    width: fit-content;
    transition: background-color .2s ease;

    display: flex;
    justify-content: center;
    align-items: center;
}
@media (hover: hover) and (pointer: fine) {
    .reference-items-group:hover .reference-items-icon{
        background-color: var(--clr-3);
    }
    .reference-items-group:hover .reference-items-icon img{
        filter: brightness(0) saturate(100%) invert(100%) sepia(0%);
    }
}
.reference-items-icon img{
    transition: filter .2s ease;

}

#reference-link{
    max-width: 200px;
    width: 100%;
    text-align: center;
    z-index: 10;
    position: relative;
    background-color: var(--clr-6);
    border-radius: var(--border-radius-2);
    color: var(--clr-1);
    font-size: calc(var(--font-size) * 1.2);
    font-weight: 600;
    padding: 5px 0;
    margin-top: 40px;
    transition: color .2s ease;

    display: flex;
    justify-content: center;
    align-items: center;
}
#reference-link::after{
    z-index: -1;
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background-color: var(--clr-1);
    border-radius: var(--border-radius-2);
    transition: width .2s ease, border .2s ease;
}
@media (hover: hover) and (pointer: fine) {
    #reference-link:hover::after{
        width: 100%;
        border: 1px var(--clr-4) solid;
    }
    #reference-link:hover{
        color: var(--clr-4);
    }
}





@media screen and (max-width: 530px) {
    #reference-container{
        max-width: none;
        width: 100%;
        padding: 0 10px;
    }
    .reference-items{
        width: 350px;
    }
}
@media screen and (max-width: 380px) {
    .reference-items{
        width: 300px;
    }
}
@media screen and (max-width: 330px) {
    .reference-items{
        width: 250px;
    }
}