/* ===== WebStarts Portfolio — Filterable Grid ===== */

/* Intro Text */
.ws-portfolio-intro {
    font-size: 17px;
    color: #6b7280;
    max-width: 640px;
    margin: 16px auto 0;
    text-align: center;
    line-height: 1.6;
    font-weight: 400;
    font-family: "Inter", sans-serif;
}

/* Filter bar */
.ws-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-top: 36px;
    margin-bottom: 18px;
}
.ws-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fd3f00;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(253,63,0,.22);
    flex-shrink: 0;
}
.ws-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 16px center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 46px;
    padding: 0 42px 0 18px;
    font-size: 14.5px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    min-width: 210px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.ws-filter-select:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.ws-filter-select:focus {
    outline: none;
    border-color: #fd3f00;
    box-shadow: 0 0 0 3px rgba(253, 63, 0, 0.15);
}

/* Reset / Cross Filter Button */
.ws-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fd3f00;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(253, 63, 0, 0.22);
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
}
.ws-filter-reset:hover {
    background: #e03700;
    transform: scale(1.08);
}

/* Dynamic Project Count */
.ws-filter-count {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 40px;
    font-family: "Inter", sans-serif;
}
.ws-filter-count span {
    font-weight: 700;
    color: #0f172a;
}

/* Grid */
.ws-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 992px) { .ws-portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ws-portfolio-grid { grid-template-columns: 1fr; } }

/* Card */
.ws-pcard {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(17,24,39,.06);
    transition: transform .25s ease, box-shadow .25s ease;
    position:relative;
    cursor:pointer;
}
.ws-pcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20,20,50,.12);
}
.ws-pcard-img {
    position: relative;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}
.ws-pcard-img.has-img {
    background: #0b0c10;
}
.ws-pcard-img .ws-pcard-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    z-index: 1;
    transform: scale(1.2);
    transition: transform 0.35s ease;
}
.ws-pcard:hover .ws-pcard-bg-img {
    transform: scale(1.3);
}
.ws-pcard-img .ws-pcard-bg-img.fit-contain {
    object-fit: contain;
    padding: 8px;
}
.ws-pcard-img.has-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 2;
    pointer-events: none;
}
.ws-pcard-img.has-img .ws-pcard-tag {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.ws-pcard-img.has-img .ws-pcard-sub {
    display: none;
}
.ws-pcard-img .ws-pcard-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 3;
}
.ws-pcard-img .ws-pcard-sub {
    font-size: 15px;
    font-weight: 500;
    opacity: .95;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
/* theme variants */
.ws-theme-blue   { background: linear-gradient(135deg,#0693e3 0%,#9b51e0 100%); }
.ws-theme-light  { background: linear-gradient(135deg,#f5f7fa 0%,#e8edf3 100%); color:#1a1a2e; }
.ws-theme-dark   { background: linear-gradient(135deg,#1a1a2e 0%,#2d2d44 100%); }
.ws-theme-green  { background: linear-gradient(135deg,#00d084 0%,#0693e3 100%); }
.ws-theme-orange { background: linear-gradient(135deg,#fd3f00 0%,#fcb900 100%); }
.ws-theme-purple { background: linear-gradient(135deg,#b019d6 0%,#fd3f00 100%); }

.ws-pcard-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ws-pcard-title { font-size: 18px; font-weight: 700; color: #1a1a2e; margin: 0 0 8px; line-height: 1.3; }
.ws-pcard-desc { font-size: 13.5px; color: #6b7280; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.ws-pcard-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 16px; }
.ws-pcard-tags span {
    color: #8a909c;
    font-size: 12px;
    font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
}
.ws-pcard-tags span + span::before { content: "· "; color: #c0c4cc; }
.ws-pcard-link {
    color: #0693e3;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ws-pcard-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}
.ws-pcard-link:hover { gap: 10px; }
.ws-pcard-link .arrow { transition: transform .2s; }
.ws-pcard-link:hover .arrow { transform: translateX(3px); }

.ws-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    margin: 10px 0 30px;
}
.ws-empty-icon {
    font-size: 38px;
    color: #fd3f00;
    margin-bottom: 12px;
}
.ws-empty-text {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 20px;
    font-family: "Inter", sans-serif;
}
.ws-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fd3f00;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(253, 63, 0, 0.25);
    font-family: "Inter", sans-serif;
}
.ws-clear-btn:hover {
    background: #e03700;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(253, 63, 0, 0.35);
}

@media (max-width: 768px) {
    .ws-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .ws-filter-select {
        width: 100%;
        min-width: 0;
    }
    .ws-filter-icon {
        align-self: center;
    }
}

.ag-projects-3-area.pt-100.pb-100 {
    background: #f7f8fa;
}
/* ===== DETAIL PAGE ===== */
.ws-detail-area { background: #f7f8fa; }
.ws-back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: #6b7280; font-weight: 600; font-size: 14px; text-decoration: none;
    margin-bottom: 28px;
}
.ws-back-link:hover { color: #fd3f00; gap: 11px; }
.ws-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.ws-detail-content { position: sticky; top: 100px; }
.ws-detail-tag {
    display: inline-block; background: rgba(253,63,0,.1); color: #fd3f00;
    font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}
.ws-detail-h1 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 38px; font-weight: 700; color: #1a1a2e; line-height: 1.15; margin: 0 0 10px;
}
.ws-detail-sub { font-size: 17px; color: #6b7280; margin: 0 0 24px; font-family: "Inter", sans-serif; }
.ws-detail-meta {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
    background: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(17,24,39,.05);
}
.ws-meta-item { display: flex; flex-direction: column; gap: 3px; }
.ws-meta-k { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9aa1ad; font-weight: 600; }
.ws-meta-v { font-size: 15px; color: #1a1a2e; font-weight: 600; }
.ws-detail-h3 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 26px 0 12px;
}
.ws-detail-p { font-size: 15px; line-height: 1.7; color: #4b5563; margin: 0; font-family: "Inter", sans-serif; }
.ws-feature-list { list-style: none; padding: 0; margin: 0; }
.ws-feature-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; color: #4b5563; padding: 7px 0; font-family: "Inter", sans-serif;
}
.ws-feature-list li i { color: #fd3f00; font-size: 18px; }
.ws-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-detail-tags span {
    background: #fff; border: 1px solid #e6e8ec; color: #374151;
    font-size: 13px; padding: 6px 14px; border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ws-detail-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 30px; background: #fd3f00; color: #fff;
    font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 10px;
    text-decoration: none; transition: transform .2s, box-shadow .2s;
    font-family: "Space Grotesk", "Inter", sans-serif;
}
.ws-detail-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(253,63,0,.3); }
.ws-detail-cta .arrow { transition: transform .2s; }
.ws-detail-cta-row { margin-top: 28px; }
.ws-detail-links { display: flex; flex-wrap: wrap; gap: 14px; }
.ws-detail-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px; border-radius: 10px;
    background: #fd3f00; color: #fff; font-weight: 600; font-size: 15px;
    text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.ws-detail-cta i { font-size: 18px; }
.ws-detail-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(253,63,0,.3); }
.ws-detail-cta .arrow { transition: transform .2s; }
.ws-detail-cta:hover .arrow { transform: translateX(4px); }
.ws-detail-cta-ghost { background: #fff; color: #1a1a2e; border: 1.5px solid #e2e5ea; box-shadow: 0 4px 14px rgba(17,24,39,.05); }
.ws-detail-cta-ghost:hover { box-shadow: 0 8px 20px rgba(17,24,39,.1); border-color: #fd3f00; color: #fd3f00; }

/* Stats band under images (fills the gap below thumbnails) */
.ws-detail-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    background: #fff; border-radius: 14px; padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(17,24,39,.05);
}
.ws-stat { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.ws-stat + .ws-stat { border-left: 1px solid #eef0f3; }
.ws-stat-v { font-family: "Space Grotesk","Inter",sans-serif; font-size: 17px; font-weight: 700; color: #1a1a2e; }
.ws-stat-k { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9aa1ad; font-weight: 600; }

/* NEXT PROJECT nav */
.ws-next-project {
    margin-top: 60px; padding-top: 34px; border-top: 1px solid #e7e9ee;
    display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.ws-next-label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: #9aa1ad; font-weight: 600; }
.ws-next-link {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: "Space Grotesk","Inter",sans-serif; font-size: 26px; font-weight: 700;
    color: #1a1a2e; text-decoration: none; transition: color .2s, gap .2s;
}
.ws-next-link i { font-size: 24px; color: #fd3f00; transition: transform .2s; }
.ws-next-link:hover { color: #fd3f00; gap: 20px; }
.ws-next-link:hover i { transform: translateX(6px); }

@media (max-width: 900px) {
    .ws-detail-stats { grid-template-columns: repeat(3, 1fr); }
    .ws-next-link { font-size: 20px; }
}

/* RIGHT media */
.ws-detail-media { display: flex; flex-direction: column; gap: 16px; }
.ws-detail-main-img {
    border-radius: 16px; overflow: hidden; background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(17,24,39,.06);
    width: 100%; height: auto;
}
.ws-detail-main-img img { width: 100%; height: auto; max-height: 540px; object-fit: contain; display: block; border-radius: 16px; }
.ws-detail-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
.ws-thumb {
    border-radius: 12px; overflow: hidden; cursor: pointer;
    border: 2px solid #e2e8f0; transition: border-color .2s, transform .2s; background: #ffffff;
    width: 100%; height: 90px; object-fit: contain; display: block; padding: 4px;
}
.ws-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 10px; }
.ws-thumb.is-active { border-color: #fd3f00; }
.ws-thumb:hover { transform: translateY(-3px); }

@media (max-width: 900px) {
    .ws-detail-grid { grid-template-columns: 1fr; gap: 36px; }
    .ws-detail-content { position: static; }
    .ws-detail-h1 { font-size: 26px; line-height: 1.2; }
    .ws-detail-sub { font-size: 14px; }
    .ws-detail-meta { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ws-detail-thumbs { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
    .ws-thumb { height: 75px; }
    .ws-detail-main-img img { max-height: 320px; }
}
.ws-pcard { animation: wsFade .35s ease; }
@keyframes wsFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
