﻿.tokyo_tm_portfolio {
    padding: 60px 0;
}

.title_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.portfolio_filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter_btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #1B3C53;
    color: #b0b0b0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

    .filter_btn:hover,
    .filter_btn.active {
        background: #1B3C53;
        color: white;
        border-color: #1B3C53;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(27, 60, 83, 0.3);
    }

.list_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.portfolio_item {
    background: #34353A;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid #3e3f44;
}

    .portfolio_item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

.portfolio_image_wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.portfolio_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio_item:hover .portfolio_img {
    transform: scale(1.1);
}

.portfolio_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.view_btn {
    color: #fff;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio_item:hover .portfolio_overlay {
    opacity: 1;
}

.portfolio_item:hover .view_btn {
    transform: translateY(0);
}

.portfolio_title {
    padding: 20px;
    margin: 0;
    font-size: 18px;
    color: #fff;
    text-align: center;
}

.empty_state {
    text-align: center;
    padding: 50px 20px;
    color: #b0b0b0;
    grid-column: 1 / -1;
}

    .empty_state i {
        font-size: 48px;
        margin-bottom: 15px;
        color: #1B3C53;
    }

    .empty_state h3 {
        color: white;
        margin: 0 0 10px 0;
    }

.portfolio_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

    .portfolio_modal.active {
        display: block;
    }

.modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal_container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}

.modal_content {
    background: #34353A;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    cursor: auto;
}

.portfolio_modal.active .modal_content {
    transform: scale(1);
}

.modal_header {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid #444;
    position: relative;
}

.modal_tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-right: 0;
}

.tag {
    padding: 10px 20px;
    background: #1B3C53;
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.modal_title {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: #fff;
    padding-right: 0;
}

.modal_meta {
    display: flex;
    gap: 30px;
    color: #b0b0b0;
    font-size: 14px;
}

.meta_item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal_body {
    padding: 30px 40px 40px 40px;
}

.modal_slider_wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2b30;
    margin-bottom: 30px;
    height: 400px;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.modal_slider {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
}

    .modal_slider:active {
        cursor: grabbing;
    }

.slider_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

    .slider_slide.active {
        opacity: 1;
    }

.slider_image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1b20;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

    .slider_image:hover {
        transform: scale(1.02);
    }

.slider_dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 5;
}

.slider_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

    .slider_dot.active {
        background: #ff5e5e;
        transform: scale(1.3);
    }

.modal_description {
    font-size: 16px;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 25px;
    text-align: right;
}

.modal_features {
    margin: 25px 0;
}

    .modal_features h4,
    .modal_tech h4 {
        color: white;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 18px;
        text-align: right;
    }

.features_list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: right;
}

    .features_list li {
        color: #b0b0b0;
        padding: 8px 0;
        padding-left: 25px;
        position: relative;
        line-height: 1.6;
        text-align: right;
    }

        .features_list li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #1B3C53;
            font-weight: bold;
        }

.tech_stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: right;
}

    .tech_stack span {
        padding: 8px 18px;
        background: rgba(27, 60, 83, 0.2);
        color: #456882;
        border-radius: 25px;
        font-size: 14px;
        border: 1px solid #234C6A;
        font-weight: 500;
    }

.modal_links {
    display: flex;
    justify-content: flex-start;
}

.btn_live {
    display: inline-block;
    padding: 12px 30px;
    background: #1B3C53;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn_live:hover {
        background: #234C6A;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(35, 76, 106, 0.4);
    }

.image_zoom_modal {
    animation: zoomFadeIn 0.3s ease;
}

@keyframes zoomFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .title_flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .list_wrapper {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .modal_content {
        margin: 20px;
        max-height: 85vh;
    }

    .modal_slider_wrapper {
        height: 300px;
    }

    .modal_title {
        font-size: 24px;
    }

    .modal_header {
        padding: 30px 25px 15px 25px;
    }

    .modal_body {
        padding: 20px 25px 25px 25px;
    }

    .modal_tags {
        gap: 10px;
        margin-bottom: 20px;
    }

    .tag {
        padding: 8px 15px;
        font-size: 13px;
    }

    .modal_meta {
        flex-direction: column;
        gap: 10px;
    }
}
