/* =====================================================
   PROJECT SEARCH
===================================================== */

.project-search {
    width: 100%;
    max-width: 620px;

    margin: 0 auto 10px;
}


/* Search box */

.project-search-box {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 44px;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    background: #fff;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.project-search-box:focus-within {
    border-color: #cfcfcf;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .05);
}


/* Icon */

.project-search-icon {
    flex-shrink: 0;

    margin-left: 13px;

    color: #999;

    font-size: 19px;
}


/* Input */

#projectSearch {
    width: 100%;
    height: 100%;

    padding:
        0 42px 0 10px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #222;

    font-size: 12px;

    box-sizing: border-box;
}


#projectSearch::placeholder {
    color: #aaa;
}


/* Browser default X */

#projectSearch::-webkit-search-cancel-button {
    display: none;
}


/* Clear */

#clearProjectSearch {
    position: absolute;

    right: 8px;

    width: 27px;
    height: 27px;

    border: 0;
    border-radius: 50%;

    background: #f1f1f1;

    color: #666;

    font-size: 17px;

    cursor: pointer;
}


#clearProjectSearch:hover {
    background: #e7e7e7;
}


#clearProjectSearch[hidden] {
    display: none;
}


/* Hint */

.project-search-hint {
    margin-top: 8px;

    color: #999;

    font-size: 9px;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* Search hidden cards */

.project-card[hidden] {
    display: none !important;
}


/* No result */

.project-no-result {
    padding: 40px 20px;

    text-align: center;
}


.project-no-result strong {
    display: block;

    margin-bottom: 5px;

    color: #333;

    font-size: 14px;
}


.project-no-result span {
    color: #888;

    font-size: 11px;
}


@media (max-width: 600px) {

    .project-search {
        margin-bottom: 10px;
    }

    .project-search-box {
        height: 42px;
    }

    #projectSearch {
        font-size: 11px;
    }

    .project-search-hint {
        font-size: 8px;
    }

}


/* =========================================================
   STICKY PROJECT SEARCH
========================================================= */

.project-search {
    position: sticky;
    top: 5px;
    z-index: 100;
    width: 100%;
    max-width: 620px;
    margin: 0 auto 25px;
    padding: 8px 0;
    box-sizing: border-box;
}








.header-sow-light {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 75px;

    z-index: 1;
    pointer-events: none;

    /* Soft neutral light — works in both modes */
    background:
        linear-gradient(to bottom,
            rgba(128, 128, 128, 0.10) 0%,
            rgba(128, 128, 128, 0.065) 28%,
            rgba(128, 128, 128, 0.035) 58%,
            rgba(128, 128, 128, 0) 100%
        );

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    -webkit-mask-image:
        linear-gradient(to bottom,
            #000 0%,
            #000 25%,
            rgba(0, 0, 0, 0.75) 55%,
            rgba(0, 0, 0, 0.3) 78%,
            transparent 100%
        );

    mask-image:
        linear-gradient(to bottom,
            #000 0%,
            #000 25%,
            rgba(0, 0, 0, 0.75) 55%,
            rgba(0, 0, 0, 0.3) 78%,
            transparent 100%
        );
}





























/* =========================================================
   PROJECT SECTION — COMPLETE CSS
========================================================= */

.projects-section {
    width: 100%;
    box-sizing: border-box;
    padding: 72px 15px ;
}

.projects-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.projects-header {
    text-align: center;
    margin-bottom: 12px;
}

.projects-header span {
    display: inline-block;

    color: #888;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .7px;
}

.projects-header h2 {
    margin: 6px 0;

    color: var(--text-color,#111);

    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.projects-header p {
    margin: 0;

    color: #777;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   SEARCH
========================================================= */

.project-search {
    width: 100%;
    max-width: 620px;

    margin: 0 auto 10px;
}

.project-search-box {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 44px;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    background: #fff;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.project-search-box:focus-within {
    border-color: #ccc;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .05);
}

.project-search-icon {
    flex-shrink: 0;

    margin-left: 13px;

    color: #999;

    font-size: 19px;

    line-height: 1;
}

#projectSearch {
    width: 100%;
    height: 100%;

    padding: 0 42px 0 10px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #222;

    font-size: 12px;

    box-sizing: border-box;
}

#projectSearch::placeholder {
    color: #aaa;
}

#projectSearch::-webkit-search-cancel-button {
    display: none;
}

#clearProjectSearch {
    position: absolute;

    right: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    border: 0;
    border-radius: 50%;

    background: #f1f1f1;

    color: #666;

    font-size: 17px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

#clearProjectSearch:hover {
    background: #e7e7e7;
    transform: scale(1.05);
}

#clearProjectSearch[hidden] {
    display: none;
}

.project-search-hint {
    margin-top: 8px;

    color: #999;

    font-size: 9px;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   PROJECT GRID

   IMPORTANT:
   auto-fill use kiya gaya hai.

   Isse agar search me sirf 1 card bache,
   card poori width nahi lega.
========================================================= */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill,
            minmax(250px, 1fr));

    gap: 18px;

    width: 100%;

    align-items: start;

    justify-content: start;

    box-sizing: border-box;
}


/* Search ke baad hidden cards */

.project-card[hidden] {
    display: none !important;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {
    position: relative;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    display: block;

    align-self: start;

    overflow: hidden;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e7e7e7;

    border-radius: 14px;

    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* =========================================================
   HOVER
========================================================= */

.project-card:hover {
    transform: translateY(-5px);

    border-color: #dcdcdc;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, .08);
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    height: auto;

    overflow: hidden;

    background: #eee;

    box-sizing: border-box;
}


/* =========================================================
   IMAGE
========================================================= */

.project-image img {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: cover;

    opacity: 0;

    transition:
        opacity .28s ease,
        transform .4s ease;
}


/* Image loaded */

.project-image.image-loaded img {
    opacity: 1;
}


/* Image hover */

.project-card:hover .project-image.image-loaded img {
    transform: scale(1.04);
}


/* =========================================================
   SKELETON
========================================================= */

.image-skeleton {
    position: absolute;

    inset: 0;

    z-index: 2;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(90deg,
            #eeeeee 20%,
            #f7f7f7 50%,
            #eeeeee 80%);

    background-size: 200% 100%;

    animation:
        projectSkeleton 1.15s linear infinite;

    transition:
        opacity .2s ease;
}

@keyframes projectSkeleton {

    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }

}

.project-image.image-loaded .image-skeleton {
    opacity: 0;

    pointer-events: none;
}


/* =========================================================
   STATUS
========================================================= */

.project-status {
    position: absolute;

    top: 9px;
    right: 9px;

    z-index: 4;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 20px;

    padding: 4px 8px;

    box-sizing: border-box;

    border: 1px solid rgba(0, 0, 0, .05);

    border-radius: 5px;

    background:
        rgba(255, 255, 255, .9);

    color: #444;

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    backdrop-filter: blur(4px);
}


/* =========================================================
   CONTENT
========================================================= */

.project-content {
    width: 100%;

    padding: 14px;

    box-sizing: border-box;
}


/* =========================================================
   CATEGORY
========================================================= */

.project-category {
    display: block;

    width: fit-content;
    max-width: 100%;

    margin-bottom: 5px;

    color: #888;

    font-size: 9px;

    line-height: 1.3;

    font-weight: 700;

    text-transform: uppercase;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    transition:
        color .2s ease;
}

.project-card:hover .project-category {
    color: #555;
}


/* =========================================================
   TITLE
========================================================= */

.project-content h3 {
    width: 100%;

    margin: 0;

    color: #111;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 750;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.project-content p {
    display: -webkit-box;

    width: 100%;

    margin: 7px 0 13px;

    color: #777;

    font-size: 11.5px;

    line-height: 1.55;

    -webkit-line-clamp: 2;
    line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   META
========================================================= */

.project-meta {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(0, 1fr);

    gap: 10px;

    width: 100%;

    padding: 10px 0;

    border-top:
        1px solid #eee;

    border-bottom:
        1px solid #eee;

    box-sizing: border-box;
}

.project-meta div {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.project-meta small {
    color: #aaa;

    font-size: 8px;

    line-height: 1.2;
}

.project-meta strong {
    min-width: 0;

    color: #444;

    font-size: 10px;

    line-height: 1.3;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   FOOTER
========================================================= */

.project-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    width: 100%;

    padding-top: 11px;

    box-sizing: border-box;
}

.project-footer>span {
    min-width: 0;

    color: #aaa;

    font-size: 8px;

    line-height: 1.3;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   VIEW BUTTON
========================================================= */

.project-footer a {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 5px 9px;

    box-sizing: border-box;

    border-radius: 5px;

    background: #111;

    color: #fff;

    text-decoration: none;

    font-size: 9px;

    line-height: 1;

    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}

.project-footer a:hover {
    background: #222;

    transform:
        translateY(-1px);
}


/* =========================================================
   IMAGE SHINE
========================================================= */

.project-image::after {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    z-index: 3;

    width: 65%;
    height: 100%;

    pointer-events: none;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .22),
            transparent);

    transform: skewX(-18deg);

    transition:
        left .6s ease;
}

.project-card:hover .project-image::after {
    left: 140%;
}


/* =========================================================
   NO RESULT
========================================================= */

.project-no-result {
    width: 100%;

    padding: 45px 20px;

    text-align: center;

    box-sizing: border-box;
}

.project-no-result strong {
    display: block;

    margin-bottom: 5px;

    color: #333;

    font-size: 14px;
}

.project-no-result span {
    color: #888;

    font-size: 11px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .projects-section {
        padding:45px 12px;
    }

    .projects-header {
        margin-bottom: 25px;
    }

    .projects-header h2 {
        font-size: 27px;
    }

    .projects-header p {
        font-size: 12px;
    }

    .projects-grid {

        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));

        gap: 11px;

        align-items: start;
    }

    .project-content {
        padding: 11px;
    }

    .project-content h3 {
        font-size: 16px;
    }

    .project-content p {
        font-size: 10.5px;
    }

    .project-image {
        aspect-ratio: 16 / 9;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .projects-section {
        padding:
            38px 9px;
    }

    .projects-grid {
        gap: 8px;
    }

    .project-content {
        padding: 9px;
    }

    .project-content h3 {
        font-size: 15px;
    }

    .project-content p {
        font-size: 10px;

        margin-top: 6px;
        margin-bottom: 10px;
    }

    .project-meta {
        gap: 6px;

        padding: 8px 0;
    }

    .project-footer {
        padding-top: 8px;
    }

    .project-footer a {
        padding:
            5px 7px;

        font-size: 8px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 701px) and (max-width: 1050px) {

    .projects-grid {

        grid-template-columns:
            repeat(3,
                minmax(0, 1fr));

        gap: 14px;
    }

}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media (min-width: 1350px) {

    .projects-grid {
        gap: 20px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .project-card,
    .project-image img,
    .project-footer a,
    .project-image::after {

        transition: none !important;
    }

    .image-skeleton {
        animation: none !important;
    }

}