/* CSS for Projects Section */

@import url(style.css);

.container-projects {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--highlight2) transparent;
    position: relative;
}

.container-projects::-webkit-scrollbar {
    height: 8px; 
}

.container-projects::-webkit-scrollbar-track {
    background: transparent;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.project-card:hover {
    box-shadow: 0 8px 16px var(--shadow);
    transform: translateY(-5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    display: inline-block;
}

.tag.python {
    background-color: #306998;
}

.tag.c {
    background-color: #1f113a;
}

.tag.data-science {
    background-color: #4CAF50;
}

.tag.deep-learning {
    background-color: #00b7ff;
}

.tag.html {
    background-color: #E34F26;
}

.tag.css {
    background-color: #1572B6;
}

.tag.bash {
    background-color: #384232;
}

.tag.statistical-analysis {
    background-color: #e2861e;
}

.tag.machine-learning {
    background-color: aquamarine;
}


.project-description {
    color: #333;
    font-size: 1.75rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: left;
}

.more-info {
    align-self: flex-start;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.5rem;
    text-decoration: none;
    text-align: center;
    background-color: var(--highlight);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.more-info:hover,
.more-info:focus,
.more-info:active {
    background-color: var(--highlight2);
    text-decoration: none;
    color: white !important;
    outline: none;
}

@media (max-width: 999px) {

    .project-card {
        height: 420px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .project-image {
        min-height: 120px;
        max-height: 150px;
        flex-shrink: 0;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project-content {
        flex: 1;                           
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 8px;
    }

    .project-content > * {
        flex-shrink: 0;
    }

    .more-info {
        flex-shrink: 0;                     
        margin-top: 10px;
    }

    .project-content::-webkit-scrollbar {
        width: none;
    }
}