.page-header h1 {
    font-size: 2.8rem;
    padding-top: 110px;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    padding-top: 20px;
    line-height: 1.6;
}

.works-feed {
    padding: 20px 0 80px;
}

.works-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.works-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.work-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.work-image {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-content {
    padding: 30px;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.work-category {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.work-date {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.work-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.work-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.work-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #f0f9ff;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.feature-tag i {
    font-size: 0.8rem;
}

.work-stats {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.works-cta {
    margin-top: 80px;
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    color: white;
}

.cta-content h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin-top: 70px;
        padding: 15px 0;
    }

    .page-header {
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 2.2rem;
        padding-top: 50px;
    }

    .work-image {
        height: 390px;
    }

    .work-content {
        padding: 20px;
    }

    .work-title {
        font-size: 1.4rem;
    }

    .work-features {
        gap: 8px;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .work-stats {
        flex-direction: column;
        gap: 20px;
    }

    .works-cta {
        padding: 30px 20px;
        margin-top: 60px;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.85rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
        padding-top: 50px;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .work-image {
        height: 300px;
    }

    .work-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .work-title {
        font-size: 1.3rem;
    }

    .work-description {
        font-size: 0.95rem;
    }

    .works-cta {
        padding: 25px 15px;
        margin-top: 50px;
    }

    .cta-content h2 {
        font-size: 1.4rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    display: block;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.inline-image-link {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.inline-image-link:hover {
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
    }

    .modal-close {
        top: -35px;
        right: 0;
        font-size: 35px;
    }

    .modal-caption {
        font-size: 14px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: -30px;
        font-size: 30px;
    }
}