/*
    projects-new.css
    Author: Mazin Omron
    Copyright © 2026 Mazin Omron All rights reserved.
*/

:root {
    --pj-primary: #576d5a;
    --pj-accent:  #7e998a;
    --pj-bg:      #f5f5f5;
    --pj-card:    #ffffff;
    --pj-text:    #2a2a2a;
    --pj-muted:   #6b6b6b;
    --pj-border:  #e3e3e3;
    --pj-shadow:  0 2px 14px rgba(0,0,0,0.06);
    --pj-shadow-h:0 10px 30px rgba(0,0,0,0.12);
    --pj-radius:  6px;
}

body {
    font-family: 'Urbanist', sans-serif;
    background: var(--pj-bg);
    color: var(--pj-text);
    padding-top: 80px;
    overflow-x: hidden;
}

/* ---------- INTRO ---------- */
.pj-intro {
    max-width: 900px;
    margin: 60px auto 30px;
    padding: 0 30px;
    text-align: center;
}
.pj-title {
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.pj-subtitle {
    color: var(--pj-muted);
    font-size: 17px;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- FILTERS ---------- */
.pj-filters-wrap {
    max-width: 1200px;
    margin: 30px auto 20px;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}
.pj-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pj-chip {
    background: transparent;
    border: 1px solid var(--pj-border);
    color: var(--pj-text);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pj-chip:hover {
    border-color: var(--pj-accent);
    color: var(--pj-accent);
}
.pj-chip.active {
    background: var(--pj-primary);
    border-color: var(--pj-primary);
    color: #fff;
}
.pj-sort {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--pj-muted);
}
.pj-sort select {
    border: 1px solid var(--pj-border);
    background: #fff;
    padding: 7px 10px;
    border-radius: var(--pj-radius);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

/* ---------- GRID ---------- */
.pj-grid-wrap {
    max-width: 1200px;
    margin: 20px auto 80px;
    padding: 0 30px;
}
.pj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}
.pj-card {
    background: var(--pj-card);
    border-radius: var(--pj-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--pj-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pj-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pj-shadow-h);
}
.pj-card-img {
    aspect-ratio: 4 / 3;
    background: #ddd center/cover no-repeat;
    position: relative;
}
.pj-card-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 40%);
}
.pj-card-type {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255,255,255,0.92);
    color: var(--pj-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 4px;
}
.pj-card-featured {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--pj-primary);
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.pj-card-body {
    padding: 18px 20px 22px;
}
.pj-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--pj-text);
}
.pj-card-meta {
    font-size: 13px;
    color: var(--pj-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pj-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--pj-muted);
}

/* ---------- SERVICES SECTION ---------- */
.pj-services {
    background: #eaeaea;
    padding: 80px 30px;
}
.pj-services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}
.pj-services-header h2 {
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 14px;
    color: #2a2a2a;
}
.pj-services-divider {
    width: 60px;
    height: 2px;
    background: var(--pj-accent);
    margin: 0 auto 20px;
    border-radius: 2px;
}
.pj-services-header p {
    color: var(--pj-muted);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}
.pj-services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.pj-service-card {
    background: #fff;
    padding: 32px 22px 28px;
    border-radius: var(--pj-radius);
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: var(--pj-shadow);
}
.pj-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pj-shadow-h);
}
.pj-service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: var(--pj-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pj-service-icon i {
    color: #fff;
    font-size: 22px;
}
.pj-service-card h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    color: #2a2a2a;
    line-height: 1.3;
}
.pj-service-card p {
    color: var(--pj-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- MODAL ---------- */
.pj-modal {
    position: fixed; inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pjFade 0.2s ease;
}
.pj-modal[hidden] { display: none; }
@keyframes pjFade {
    from { opacity: 0; } to { opacity: 1; }
}
.pj-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}
.pj-modal-inner {
    position: relative;
    background: #fff;
    width: min(1000px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--pj-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: pjSlide 0.25s ease;
}
@keyframes pjSlide {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.pj-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 5;
    width: 38px; height: 38px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pj-modal-close:hover { background: rgba(0,0,0,0.8); }

/* Modal content */
.pj-m-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #222 center/cover no-repeat;
}
.pj-m-body {
    padding: 32px clamp(20px, 4vw, 48px) 40px;
}
.pj-m-type {
    color: var(--pj-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.pj-m-title {
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 600;
    margin-bottom: 8px;
}
.pj-m-meta {
    color: var(--pj-muted);
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.pj-m-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pj-m-section { margin: 24px 0; }
.pj-m-section h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pj-primary);
    margin-bottom: 10px;
}
.pj-m-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}
.pj-m-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pj-m-tag {
    background: var(--pj-bg);
    color: var(--pj-primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.pj-m-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.pj-m-gallery img,
.pj-m-gallery video {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: zoom-in;
}
.pj-m-videos {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}
.pj-m-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}
.pj-m-video-embed iframe,
.pj-m-video-embed video {
    width: 100%; height: 100%;
    border: 0;
}
.pj-m-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.pj-m-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pj-primary);
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--pj-radius);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}
.pj-m-link:hover { background: var(--pj-accent); }

/* Lightbox for gallery click */
.pj-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.pj-lightbox[hidden] { display: none; }
.pj-lightbox img,
.pj-lightbox video {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
}

/* ---------- FOOTER ---------- */
.pj-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--pj-muted);
    font-size: 13px;
    border-top: 1px solid var(--pj-border);
    background: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .pj-filters-wrap { flex-direction: column; align-items: stretch; }
    .pj-sort { justify-content: flex-end; }
    .pj-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .pj-card-body { padding: 14px 16px 18px; }
    .pj-card-title { font-size: 16px; }
    .pj-m-body { padding: 24px 18px 30px; }
    .pj-services { padding: 60px 20px; }
}
