/* Portfolio Modal Styles */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.portfolio-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-content {
    position: relative;
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.portfolio-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.portfolio-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.portfolio-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
    position: relative;
}
.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-portfolio {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1001;
}

.close-portfolio:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.portfolio-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    background: #28bc7c;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.portfolio-item h4 {
    padding: 15px 20px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.empty-portfolio {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-portfolio i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-portfolio h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.empty-portfolio p {
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-content {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }
    
    .portfolio-header {
        padding: 25px 20px;
    }
    
    .portfolio-header h2 {
        font-size: 24px;
    }
    
    .portfolio-header p {
        font-size: 14px;
    }
    
    .portfolio-grid {
        padding: 20px;
    }
    
    .close-portfolio {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    .portfolio-item h4 {
        padding: 12px 15px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .portfolio-content {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .portfolio-header {
        padding: 20px 15px;
    }
    
    .portfolio-header h2 {
        font-size: 22px;
    }
    
    .portfolio-grid {
        padding: 15px;
    }
    
    .close-portfolio {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}