/* Default styles */
.header-cst .container-fluid {
    width: 100%;
    padding: 15px;
    position: relative;
    margin: 100px 0 0 0;
}

.header-cst .container-fluid:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48%;
    /*background-image: linear-gradient(to top, var(--theme-color) 50%, transparent);*/
    opacity: 0.98;
    backdrop-filter: blur(2px);
}

.header-cst .img {
    height: 580px;
    border-radius: 10px;
}

.header-cst .caption {
    position: relative;
    margin-top: -290px;
    z-index: 4;
}

.header-cst .caption h1 {
    font-size: 9vw;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    transform: scaleX(1.2);
    transition: all 1s ease;
    transition-delay: 2s;
}

.header-cst .caption h1.normal {
    transform: scaleX(1);
}

/* Project cards images */
.work-card .card-item {
    margin-bottom: 30px;
}

.work-card .card-item .img {
    position: relative;
    height: 600px;
    max-height: 600px;
    border-radius: 0px 10px 10px 0px;
    overflow: hidden;
    background: var(--theme-color);
}


.work-card .card-item .img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.work-card .card-item .tags {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--theme-color);
    backdrop-filter: blur(40px);
    border-radius: 10px;
    padding: 10px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    /*margin-top: 20px;*/
}

.work-card .card-item .tags p {
    color: #fff;
    font-size: 16px;
    font-weight: 500;

}

.work-card .card-item .tags .logo img {
    height: 70px;
    width: 250px;
    object-fit: cover;
    filter: brightness(2.5) contrast(1.5) saturate(1.5);
}

.work-card .card-item .fit-img h5 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    font-size: 140px;
    font-family: "Six Caps", sans-serif;
    line-height: 1;
    letter-spacing: normal;
    z-index: 3;
}

.project-details {
    padding: 20px;
    background-color: var(--theme-color);
    border-radius: 10px 0px 0px 10px;
    height: 600px;
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-details h5 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
    font-family: ui-monospace;
    border-bottom:  1px solid #ffffff22;
}

.project-details .btn-details {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-details .btn-details button {
    background-color: transparent;
    border: 1px solid #fff;
    outline: none;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
}

.project-details p {
    color: var(--main-color) !important;
    /*line-height: 2.5;*/
}

.details-content p {
    margin: 15px 0;
}

.details-content p strong {
    font-weight: 500;
    font-size: 1.25rem; /* Slightly bigger font size */

}

.details-content p {
    font-weight: normal;
    font-size: 1rem;
    font-family: fangsong;
}

.row > .col-md-6 {
    padding: 0px;
}

.cards .card-item .row {
    padding: 0px 10px;
}


.carousel-indicators {
    opacity: 0 !important;
}

@media screen and (max-width: 1440px) {
    .header-cst .container-fluid:after {
        bottom: -40px;
        height: 50%;
    }
}

/* Responsive styles for 1280px */
@media (max-width: 1279px) {
    .header-cst .caption h1 {
        font-size: 15vw;
    }

    .project-details {
        height: 600px;
    }

    .work-card .card-item .img {
        height: 550px;
    }

    .work-card .card-item .fit-img h5 {
        font-size: 120px;
    }

    .details-content p {
        margin: 10px 0;
    }
}

/* Responsive styles for 768px */
@media (max-width: 767px) {
    .header-cst .container-fluid {
        margin: 50px 0 0 0;
    }

    .header-cst .img {
        height: 400px;
    }

    .header-cst .caption {
        margin-top: -200px;
    }

    .header-cst .caption h1 {
        font-size: 12vw;
    }

    .work-card .card-item .img {
        height: 450px;
    }

    .work-card .card-item .fit-img h5 {
        font-size: 90px;
    }

    .details-content p {
        margin: 10px 0;
    }
}

/* Responsive styles for 480px */
@media screen and (max-width: 480px) {
    .header-cst .container-fluid {
        margin: 85px 0 0 0;
        padding: 10px;
    }

    .header-cst .img {
        height: 415px;
    }

    .header-cst .caption {
        margin-top: -220px;
    }

    .header-cst .caption h1 {
        font-size: 60px;
    }

    .header-cst .caption h4 {
        font-size: 1.7rem;
    }

    .work-card .card-item .img img {
        object-fit: cover;
        height: -webkit-fill-available;
        padding: 2px;
    }

    .work-card .card-item .img {
        height: 450px;
        border-radius: 0px 0px 10px 10px;
    }

    .work-card .card-item .fit-img h5 {
        font-size: 60px;
    }

    .work-card .card-item .tags .logo img {
        height: 50px;
        width: 200px;
    }

    .work-card .card-item .tags {
        flex-direction: column;
    }

    .project-det {
        place-self: start;
    }

    .project-details .btn-details button {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .project-details {
        height: 550px;
        border-radius: 10px 10px 0px 0px;
    }
}
