﻿.projects-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
}

.project-preview {
    flex: 1;
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
    border-radius: 0px 90px 0px 90px !important;
    height: 500px;
}

    .project-preview:hover {
        opacity: 1;
        box-shadow: 10px 10px 0 rgba(255, 255, 255, 1) !important;
    }

.preview-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0px 90px 0px 90px !important;
}

.project-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-description {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'gendy', sans-serif !important;
    font-weight: 500 !important;
    padding: 1rem;
}

.projects-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

    .projects-list::-webkit-scrollbar {
        width: 8px;
    }

    .projects-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .projects-list::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }

        .projects-list::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.4);
        }

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .project-item:hover {
        background: rgba(255, 255, 255, 0.4);
        padding-left: 2rem;
        transform: scale(1.02);
    }

.project-name {
    font-size: 1.2rem;
    color: white;
    transition: transform 0.3s ease;
    font-family: 'gendy', sans-serif !important;
    font-weight: 500 !important;
}

.project-item:hover .project-name {
    transform: translateX(10px);
}

.visit-button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 500 !important;
}

    .visit-button:hover {
        background: rgba(255, 255, 255, 1);
        color: black;
    }

@media screen and (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .project-description {
        font-size: 0.8rem;
    }

    .project-preview {
        width: 100%;
        aspect-ratio: 16/9;
        margin-bottom: 1rem;
        min-height: unset;
    }

    .preview-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .project-gif {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project-overlay {
        padding: 1rem;
    }

    .projects-list {
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
    }

    .project-item {
        min-width: 280px;
        scroll-snap-align: start;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;

    }

        .project-item:hover {
            padding-left: 1rem;
        }

            .project-item:hover .project-name {
                transform: none;
            }

    .project-name {
        font-size: 1rem;
        transition: none;
    }

    .visit-button {
        width: 100%;
        padding: 0.75rem;
    }

    .projects-list::-webkit-scrollbar {
        height: 6px;
    }

    .projects-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    .projects-list::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
    }

    .scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: background 0.3s ease;
    }

        .scroll-dot.active {
            background: rgba(255, 255, 255, 0.8);
        }
}

@media screen and (max-width: 380px) {
    .project-item {
        min-width: 240px;
    }
}
