/*body {*/
/*    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;*/
/*    background: #f7f8fa;*/
/*    color: #333;*/
/*}*/

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    border: none;
    background: #e9ecef;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-btn:hover {
    background: #dbe0e4;
    transform: translateY(-1px);
}

.page-btn.active {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.page-btn:disabled {
    background: #f1f3f5;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.page-btn.prev,
.page-btn.next {
    font-weight: 700;
    padding: 0.5rem 1.25rem;
}


.portfolio-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.portfolio-header {
    background: white;
    border-top: 4px solid #3b82f6;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #212223;
    margin-bottom: 0.5rem;
}

.portfolio-header p {
    color: #555;
    max-width: 650px;
    margin: 0 auto;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-container button {
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    background: #e9ecef;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.filter-container button:hover {
    background: #dbe0e4;
}

.filter-container button.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 16px;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

@media screen and (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card {
        flex-direction: row;
    }

    .project-card--aside {
        width: 50%;
    }

    .project-card--content {
        width: 50%;
    }
}

.project-card--aside {
    display: flex;
    gap: 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-card--aside img {
    object-fit: cover;
}

.project-card--content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: start;
}

.project-card--meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.project-card--meta-type {
    font-weight: 600;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

.project-card--meta-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.project-card--meta-status.live {
    background: #22c55e;
}

.project-card--meta-status.offline {
    background: #facc15;
}

.project-card--meta-status.other {
    background: #9ca3af;
}

.project-card--content-title {
    font-size: large;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}

.project-card--content-description {
    color: #555;
    margin-bottom: 1rem;
    line-clamp: 4;
}

.project-card--content-link {
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
    display: inline-block;
    justify-self: baseline;
}

.project-card--content-link:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 3rem 0;
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: larger;
    margin-bottom: 0.75rem;
}

/* === Portfolio Modal === */
.portfolio-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.portfolio-modal.active {
    display: flex;
}

.portfolio-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.portfolio-modal__content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    max-width: 720px;
    width: 90%;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1;
    overflow-y: auto;
    max-height: 90vh;
    animation: modal-fade-in 0.25s ease-out;
}

.portfolio-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

.portfolio-modal__close:hover {
    color: #000;
}

.portfolio-modal__image {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.portfolio-modal__type {
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.portfolio-modal__desc {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-modal__link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.portfolio-modal__link:hover {
    background: #2563eb;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
