/* Base Styles (as before) */
.projcard-container {
    margin: 50px 0;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.projcard {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 40px;
    border-radius: 10px;
    background-color: #fff;
    border: 2px solid #ddd;
    font-size: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.projcard:hover {
    box-shadow: 0 34px 32px -33px rgba(0, 0, 0, 0.18);
    transform: translate(0px, -3px);
}

/* Image and Textbox Styles (as before) */
.projcard-img {
    position: absolute;
    height: 300px !important;
    width: 400px !important;
    top: 0;
    left: 0;
    transition: transform 0.2s ease;
}

.projcard-textbox {
    position: absolute;
    top: 7%;
    bottom: 7%;
    left: 430px;
    width: calc(100% - 470px);
    font-size: 17px;
}

.projcard-subtitle {
    color: black;

}

/* Media Queries */

/* For screens up to 768px */
@media (max-width: 768px) {
    .projcard-container {
        padding: 15px;
        margin: -70px 0;
        width: calc(100% - 30px);
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .projcard {
        height: 35vh;
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 10px;
    }

    .projcard-img {
        width: 100%;
        /* Full width images */
        height: auto;
        /* Maintain aspect ratio */
        margin-bottom: 10px;
        /* Add some space below the image */
    }

    .projcard-textbox {
        padding: 5px;
        /* Add padding inside the textbox */
        left: 0;
        /* Align to the left */
        right: 0;
        /* Align to the right */
        width: auto;
        /* Allow width to be flexible */
    }

    .projcard-title {
        font-size: 20px;
        color: white;
        background: rgba(255, 255, 255, 0.1);
        /* Semi-transparent background */
        backdrop-filter: blur(10px);
        /* Background blur */
        -webkit-backdrop-filter: blur(10px);
        /* For Safari */
        border-radius: 11px;
        /* Soft rounded edges */
        padding: 4px 74px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        /* Subtle shadow for depth */
        border: 1px solid rgba(255, 255, 255, 0.2);
        /* Light border for effect */
        text-align: center;
    }

    .projcard-subtitle {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        /* Semi-transparent background */
        backdrop-filter: blur(10px);
        /* Background blur */
        -webkit-backdrop-filter: blur(10px);
        /* For Safari */
        border-radius: 8px;
        /* Slightly smaller rounded corners than the title */
        padding: 8px 15px;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
        /* Subtle shadow for depth */
        border: 1px solid rgba(255, 255, 255, 0.2);
        /* Light border for the glass effect */
    }

    /* .projcard-description { */
        /* font-size: 14px; */
        /* display: none; */

    /* } */

    .projcard-subtitle {
        color: white;
    }
}


/* .projcard-description {
    font-size: 14px; 
    display: none;
} */

.projcard-tagbox button {
    font-size: 20px;
    /* Adjust button font size */
    padding: 8px 15px;
    /* Adjust padding */
    width: 25%;
    /* Full-width buttons */
}

@media (min-width: 768px) and (max-width: 1024px) {
    .projcard-container {
        margin: 50px 0;
        width: 100%;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .projcard {
        position: relative;
        width: 100%;
        height: 300px;
        margin-bottom: 40px;
        border-radius: 10px;
        background-color: #fff;
        border: 2px solid #ddd;
        font-size: 18px;
        overflow: hidden;
        cursor: pointer;
        box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
        transition: box-shadow 0.4s ease, transform 0.4s ease;
    }

    .projcard:hover {
        box-shadow: 0 34px 32px -33px rgba(0, 0, 0, 0.18);
        transform: translate(0px, -3px);
    }

    /* Image and Textbox Styles (as before) */
    .projcard-img {
        position: absolute;
        height: 300px !important;
        width: 400px !important;
        top: 0;
        left: 0;
        transition: transform 0.2s ease;
    }

    .projcard-textbox {
        position: absolute;
        top: 7%;
        bottom: 7%;
        left: 430px;
        width: calc(100% - 470px);
        font-size: 17px;
    }

    .projcard-subtitle {
        color: black;
    }

    .projcard-title {
        color: black;
    }
}

@media (min-width: 540px) and (max-width: 720px) {
    .projcard-img {
        position: absolute;
        height: 300px !important;
        width: 475px !important;
        top: 0;
        left: 0;
        transition: transform 0.2s ease;
    }

}

@media (min-width: 360px) and (max-width: 740px) {
    .projcard-description {
        font-size: 14px;
        display: none;
    }

}

@media (min-width: 344px) and (max-width: 852px) {
    .projcard-description {
        font-size: 14px;
        display: none;
    }

}

/* For screens up to 600px */
@media (max-width: 600px) {
    .projcard {
        margin-bottom: 20px;
        /* Reduce bottom margin */
    }

    .projcard-title {
        font-size: 18px;
        margin-bottom: 8px;
        /* Smaller title size */
    }

    .projcard-description {
        font-size: 12px;
        /* Smaller description size */
    }

    .projcard-tagbox button {
        font-size: 18px;
        /* Smaller button font size */
        padding: 6px 12px;
        /* Smaller padding */
    }
}

@media (min-width: 411px) and (max-width: 916px) {
    .projcard-tagbox button {
        width: 40%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .projcard-tagbox button {
        width: 50%;
    }
}

/* For screens up to 400px */
@media (max-width: 400px) {
    .projcard-title {
        font-size: 16px;
        margin-bottom: 8px;
        /* Further reduce title size */
    }

    .projcard-description {
        font-size: 12px;
        /* Maintain description size */
    }

    .projcard-tagbox button {
        font-size: 16px;
        /* Smaller button font size */
        padding: 5px 10px;
        /* Smaller padding */
    }

    .projcard-container {
        margin: -70px 0;
        width: 100%;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .projcard-tagbox button {
        bottom: 3%;
        font-size: 14px;
        cursor: default;
        user-select: none;
        padding: 10px 20px;
        border-radius: 25px;
        text-decoration: none;
        border: none;
        outline: none;
        background: #e4b96e;
        box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
        transition: box-shadow 0.2s ease, transform 0.2s ease;
        width: 40%;
    }
}

/* Additional Styles (Colors, Bars) (as before) */
.projcard-bar {
    left: -2px;
    width: 50px;
    height: 5px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #424242;
    transition: width 0.2s ease;
}

/* Colors based on class (as before) */
.projcard-blue .projcard-bar {
    background-color: #e4b96e;
}

.projcard-red .projcard-bar {
    background-color: #e4b96e;
}

.projcard-green .projcard-bar {
    background-color: #e4b96e;
}

.projcard-yellow .projcard-bar {
    background-color: #e4b96e;
}

.projcard-orange .projcard-bar {
    background-color: #e4b96e;
}

.projcard-brown .projcard-bar {
    background-color: #e4b96e;
}

.projcard-grey .projcard-bar {
    background-color: #e4b96e;
}

.projcard-customcolor .projcard-bar {
    background-color: var(--projcard-color);
}

.projcard-description {
    z-index: 10;
    font-size: 15px;
    color: #424242;
    height: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.projcard-tagbox button {
    bottom: 3%;
    font-size: 14px;
    cursor: default;
    user-select: none;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    border: none;
    outline: none;
    background: #e4b96e;
    box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.projcard-tagbox a {
    text-decoration: none;
    color: white;
}