/* Portfolio Popup Styles */
.portfolio-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-popup-overlay.active {
    opacity: 1;
}

.portfolio-popup-content {
    background: #1a1a1a;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    width: 900px;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.portfolio-popup-overlay.active .portfolio-popup-content {
    transform: scale(1) translateY(0);
}

.portfolio-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.portfolio-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.portfolio-popup-inner {
    display: flex;
    flex-direction: row;
    min-height: 500px;
}

.portfolio-popup-image {
    flex: 1;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.portfolio-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
}

.portfolio-popup-details {
    flex: 1;
    padding: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.portfolio-popup-header {
    margin-bottom: 25px;
}

.portfolio-popup-brand {
    font-size: 12px;
    font-weight: 600;
    color: #b8860b;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.portfolio-popup-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    font-family: 'Autography', cursive;
}

.portfolio-popup-year {
    font-size: 18px;
    color: #b8860b;
    font-weight: 500;
    display: block;
    margin-top: 5px;
}

.portfolio-popup-genre {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-popup-genre strong {
    color: #b8860b;
    font-weight: 600;
}

.portfolio-popup-genre span {
    color: #ccc;
    font-weight: 400;
}

.portfolio-popup-description {
    flex: 1;
}

.portfolio-popup-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
    font-weight: 300;
}

.portfolio-popup-actions {
    margin-top: 30px;
}

.portfolio-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.portfolio-watch-btn:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    color: #fff !important;
}

.portfolio-watch-btn i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-popup-content {
        width: 95%;
        max-height: 90%;
        margin: 20px;
    }
    
    .portfolio-popup-inner {
        flex-direction: column;
        min-height: auto;
        max-height: calc(90vh - 40px);
        overflow-y: auto;
    }
    
    .portfolio-popup-image {
        min-height: 300px;
        max-height: 40vh;
        flex: none;
    }
    
    .portfolio-popup-image img {
        object-fit: contain;
        background: #000;
    }
    
    .portfolio-popup-image {
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .portfolio-popup-details {
        padding: 25px;
        flex: 1;
        overflow-y: auto;
    }
    
    .portfolio-popup-title {
        font-size: 28px;
    }
    
    .portfolio-popup-description p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .portfolio-popup-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .portfolio-popup-content {
        width: 98%;
        margin: 10px;
    }
    
    .portfolio-popup-details {
        padding: 20px;
    }
    
    .portfolio-popup-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .portfolio-popup-image {
        min-height: 250px;
        max-height: 35vh;
    }
    
    .portfolio-popup-year {
        font-size: 16px;
    }
    
    .portfolio-popup-genre {
        margin-bottom: 20px;
        font-size: 14px;
    }
    
    .portfolio-popup-description p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .portfolio-popup-close {
        top: 8px;
        right: 12px;
        font-size: 22px;
        width: 32px;
        height: 32px;
    }
}

/* Custom scrollbar for popup content */
.portfolio-popup-details::-webkit-scrollbar {
    width: 6px;
}

.portfolio-popup-details::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.portfolio-popup-details::-webkit-scrollbar-thumb {
    background: #b8860b;
    border-radius: 3px;
}

.portfolio-popup-details::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
} 