/* Main container */
.mps-portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Tabs navigation */
.mps-tab-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.mps-tab-button {
    padding: 12px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mps-tab-button.active,
.mps-tab-button:hover {
    background: #fff;
    color: #684DF4;
    border-color: #684DF4;
    transform: translateY(-2px);
}

.mps-category-dropdown {
    padding: 10px 30px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    font-size: 16px; /* Slightly larger font size */
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none; /* Remove default dropdown arrow */
    position: relative;
}

/* Dropdown icon */
.mps-category-dropdown::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'FontAwesome';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-size: 12px;
    pointer-events: none;
}

.mps-category-dropdown:hover,
.mps-category-dropdown:focus {
    background: #fff;
    border-color: #684DF4;
    color: #684DF4;
}

/* Style for dropdown options */
.mps-category-dropdown option {
    font-size: 16px; /* Larger font size for options */
    padding: 12px; /* More padding for options */
    background: #fff;
    color: #333;
}

/* Projects grid */
.mps-tab-content {
    padding: 40px 0;
}
.mps-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.mps-project-item {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.mps-project-item:hover {
    transform: translateY(-5px);
}

/* Project Image */
.mps-project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

.mps-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mps-project-item:hover .mps-project-image img {
    transform: scale(1.1);
    opacity: 0.7;
}

.mps-project-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    background: #f9f9f9;
}

/* Clickable link */
.mps-project-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Title overlay on hover */
.mps-project-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.mps-project-item:hover .mps-project-title-overlay {
    opacity: 1;
}

.mps-project-title-overlay h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    visibility: visible;
}

/* Animation for grid items */
.animate-grid {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Single Project Page */
.mps-single-project-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.mps-single-project-image {
    flex: 1;
    min-width: 300px;
}

.mps-single-project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mps-single-project-details {
    flex: 1;
    min-width: 300px;
}

.mps-single-project-details h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.mps-single-project-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.mps-single-project-meta p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.mps-single-project-meta p strong {
    color: #000;
}

/* Animations for single project page */
.animate-page {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.animate-text {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
    animation-delay: 0.3s;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mps-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .mps-project-image {
        height: 250px;
    }
    .mps-single-project-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .mps-tab-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mps-tab-button {
        width: 30%;
        text-align: center;
    }
    /*
    .mps-category-dropdown {
        width: 100%;
    }*/
    
    .mps-projects-grid {
        grid-template-columns: 1fr;
    }
    .mps-project-image {
        height: 200px;
    }
}

.mps-no-projects {
    text-align: center;
    padding: 20px;
    color: #666;
}