/* ===== PORTFOLIO MODAL STYLES ===== */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

.portfolio-modal-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-in-out;
}

.portfolio-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10;
}

.portfolio-modal-close:hover {
    background-color: rgba(0,0,0,0.7);
    transform: rotate(90deg);
}

.portfolio-modal-body {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
}

.portfolio-modal-image {
    flex: 1;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
}

.portfolio-modal-text {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-modal-title {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: 300;
    color: #333;
}

.portfolio-modal-subtitle {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-modal-tag {
    background-color: #1A1A1A;
    color: #f1f1f1;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.portfolio-modal-image-mobile {
    display: none;
}

.portfolio-modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.portfolio-modal-details {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    border-left: 4px solid #c81e1e;
    padding-left: 20px;
    margin-top: 20px;
}

.portfolio-modal-button {
    background-color: #c81e1e;
    color: #ffffff;
    padding: 12px 25px;
    border: 2px solid #c81e1e;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    max-width: none;
    white-space: nowrap;
}

.portfolio-modal-button:hover {
    background-color: #ffffff;
    color: #c81e1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 30, 30, 0.3);
    text-decoration: none;
    border: 2px solid #c81e1e;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .portfolio-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .portfolio-modal-body {
        flex-direction: column;
    }
    
    .portfolio-modal-image {
        height: 300px;
        min-width: 100%;
        width: 100%;
        background: none;
        background-color: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .portfolio-modal-image-mobile {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .portfolio-modal-text {
        padding: 30px 20px;
        padding-top: 40px;
    }
    
    .portfolio-modal-title {
        font-size: 1.5rem;
    }
    
    .portfolio-modal-close {
        top: 15px;
        right: 15px;
        z-index: 1001;
    }
}
/* ===== END PORTFOLIO MODAL STYLES ===== */
