/* =========================================================
   AKMAL PORTFOLIO — PROJECTS
   ========================================================= */


/* ---------------------------------------------------------
   SECTION
   --------------------------------------------------------- */

.projects-section {

    position: relative;

    width: 100%;

    padding:
        140px
        6vw
        160px;

    background: transparent;

    overflow: hidden;

}


/* ---------------------------------------------------------
   BACKGROUND DETAIL
   --------------------------------------------------------- */

.projects-section::before {

    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: -250px;
    top: 200px;

    background:
        radial-gradient(
            circle,
            rgba(
                212,
                175,
                55,
                0.06
            ),
            transparent 70%
        );

    pointer-events: none;

}


/* ---------------------------------------------------------
   CONTAINER
   --------------------------------------------------------- */

.projects-container {

    position: relative;

    max-width: 1400px;

    margin: 0 auto;

    z-index: 1;

}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.projects-header {

    max-width: 650px;

    margin-bottom: 70px;

}


.projects-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

    color:
        var(--gold);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.3em;

    text-transform: uppercase;

}


.projects-eyebrow::before {

    content: "";

    width: 30px;

    height: 1px;

    background:
        var(--gold);

}


.projects-title {

    margin: 0;

    font-size:
        clamp(
            60px,
            9vw,
            120px
        );

    line-height: 0.85;

    letter-spacing:
        -0.05em;

    font-weight: 800;

    color:
        var(--white);

}


.projects-intro {

    max-width: 500px;

    margin:
        28px 0 0;

    color:
        var(--text-muted);

    font-size: 15px;

    line-height: 1.8;

}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.projects-categories {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    grid-template-rows:
        320px
        190px;

    gap: 18px;

}


/* ---------------------------------------------------------
   CATEGORY BUTTON
   --------------------------------------------------------- */

.project-category {

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    align-items: flex-start;

    padding: 30px;

    border: 1px solid
        rgba(
            212,
            175,
            55,
            0.16
        );

    background:
        linear-gradient(
            145deg,
            rgba(
                16,
                38,
                64,
                0.65
            ),
            rgba(
                5,
                11,
                20,
                0.92
            )
        );

    color:
        var(--white);

    cursor: pointer;

    text-align: left;

    transition:
        transform 0.45s ease,
        border-color 0.45s ease,
        background 0.45s ease,
        box-shadow 0.45s ease;

    overflow: hidden;

}


/* ---------------------------------------------------------
   LARGE WEBSITE BUTTON
   --------------------------------------------------------- */

.project-category-main {

    grid-column:
        1 / -1;

    grid-row:
        1;

    justify-content:
        flex-end;

    padding:
        clamp(
            35px,
            5vw,
            70px
        );

}


/* ---------------------------------------------------------
   HOVER
   --------------------------------------------------------- */

.project-category::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at
            20% 20%,
            rgba(
                212,
                175,
                55,
                0.12
            ),
            transparent 55%
        );

    opacity: 0;

    transition:
        opacity 0.45s ease;

}


.project-category:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(
            212,
            175,
            55,
            0.55
        );

    box-shadow:
        0 20px 60px
        rgba(
            0,
            0,
            0,
            0.25
        );

}


.project-category:hover::before {

    opacity: 1;

}


/* ---------------------------------------------------------
   ACTIVE
   --------------------------------------------------------- */

.project-category.active {

    border-color:
        var(--gold);

    box-shadow:
        0 0 0 1px
        rgba(
            212,
            175,
            55,
            0.12
        );

}


.project-category.active::after {

    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background:
        var(--gold);

    box-shadow:
        0 0 25px
        rgba(
            212,
            175,
            55,
            0.45
        );

}


/* ---------------------------------------------------------
   NUMBER
   --------------------------------------------------------- */

.category-number {

    position: relative;

    color:
        var(--gold);

    font-size: 12px;

    font-weight: 600;

    letter-spacing:
        0.15em;

    z-index: 1;

}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.category-content {

    position: relative;

    display: flex;

    flex-direction: column;

    gap: 8px;

    z-index: 1;

}


.category-title {

    font-size:
        clamp(
            22px,
            3vw,
            44px
        );

    line-height: 1;

    font-weight: 700;

    letter-spacing:
        -0.03em;

}


.category-description {

    max-width: 430px;

    color:
        var(--text-muted);

    font-size: 13px;

    line-height: 1.5;

}


/* ---------------------------------------------------------
   LARGE WEBSITE TITLE
   --------------------------------------------------------- */

.project-category-main
.category-title {

    font-size:
        clamp(
            42px,
            6vw,
            82px
        );

}


.project-category-main
.category-description {

    font-size: 14px;

}


/* ---------------------------------------------------------
   ARROW
   --------------------------------------------------------- */

.category-arrow {

    position: absolute;

    right: 30px;
    top: 30px;

    font-size: 25px;

    color:
        var(--gold);

    opacity: 0.6;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease;

    z-index: 2;

}


.project-category:hover
.category-arrow {

    transform:
        translate(
            5px,
            -5px
        );

    opacity: 1;

}


/* =========================================================
   PROJECT DISPLAY
   ========================================================= */

.projects-display {

    margin-top: 80px;

    border-top:
        1px solid
        rgba(
            212,
            175,
            55,
            0.16
        );

}


.projects-display-header {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    padding:
        25px 0;

}


.display-label {

    color:
        var(--text-muted);

    font-size: 10px;

    letter-spacing:
        0.25em;

    text-transform:
        uppercase;

}


.display-category {

    color:
        var(--gold);

    font-size: 14px;

    font-weight: 600;

}


/* ---------------------------------------------------------
   PROJECT LIST
   --------------------------------------------------------- */

.projects-list {

    min-height: 180px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;

}


/* ---------------------------------------------------------
   PROJECT ITEM CARDS
   --------------------------------------------------------- */


.project-item {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(212,175,55,0.06);
    background: rgba(8,21,37,0.45);
}

.project-thumb {
    width: 320px;
    height: 200px;
    flex: 0 0 320px;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.25s ease;
}

.project-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
    text-align: left;
}

/* Hover overlay and label */
.project-thumb::after {
    content: "VIEW";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.18em;
    background: rgba(0,0,0,0);
    opacity: 0;
    transition: background 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}

.project-image-button:hover .project-thumb::after,
.project-thumb:hover::after {
    background: rgba(0,0,0,0.45);
    opacity: 1;
}

.project-image-button:hover .project-thumb img,
.project-thumb:hover img {
    transform: scale(1.03);
    filter: brightness(0.85);
}

.project-info .project-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: var(--white);
}

.project-info .project-excerpt {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.project-description-button {
    align-self: flex-start;
    margin-top: auto;
    padding: 11px 14px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold-light);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    transition: background 0.25s ease, color 0.25s ease;
}

.project-description-button:hover,
.project-description-button:focus-visible {
    background: var(--gold);
    color: var(--navy-dark);
    outline: none;
}

.project-description-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.project-description-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-description-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.82);
    backdrop-filter: blur(8px);
}

.project-description-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
    width: min(900px, 100%);
    max-height: min(650px, 90vh);
    overflow: auto;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: var(--navy);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.3s ease;
}

.project-description-modal.is-open .project-description-dialog {
    transform: translateY(0) scale(1);
}

.project-description-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    background: #111;
}

.project-description-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 42px 42px;
}

.project-description-content h3 {
    margin: 16px 0 18px;
    color: var(--white);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
}

.project-description-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.project-description-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(5, 11, 20, 0.7);
    color: var(--gold-light);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.project-description-close:hover,
.project-description-close:focus-visible {
    background: var(--gold);
    color: var(--navy-dark);
    outline: none;
}

.project-description-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: min(260px, 100%);
    margin-top: 30px;
    padding: 15px 18px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-decoration: none;
}

.project-description-link span {
    font-size: 18px;
    letter-spacing: 0;
}

.project-image-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.project-image-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-image-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.9);
    backdrop-filter: blur(6px);
}

.project-image-dialog {
    position: relative;
    display: grid;
    place-items: center;
    width: min(850px, 88vw);
    height: min(650px, 82vh);
    padding: 28px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: var(--navy);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
    transform: scale(0.97);
    transition: transform 0.3s ease;
}

.project-image-modal.is-open .project-image-dialog {
    transform: scale(1);
}

.project-image-full {
    width: 100%;
    height: 100%;
    max-height: calc(100% - 28px);
    object-fit: contain;
}

.project-image-title {
    position: absolute;
    left: 28px;
    bottom: 16px;
    margin: 0;
    color: var(--white);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-image-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(5, 11, 20, 0.85);
    color: var(--gold-light);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.project-image-close:hover,
.project-image-close:focus-visible {
    background: var(--gold);
    color: var(--navy-dark);
    outline: none;
}


.projects-empty {

    display: flex;

    align-items:
        center;

    gap: 30px;

    padding:
        35px;

    border:
        1px solid
        rgba(
            212,
            175,
            55,
            0.1
        );

    background:
        rgba(
            8,
            21,
            37,
            0.5
        );

}


.empty-number {

    color:
        var(--gold);

    font-size: 12px;

    letter-spacing:
        0.15em;

}


.projects-empty h3 {

    margin: 0 0 8px;

    font-size: 20px;

    color:
        var(--white);

}


.projects-empty p {

    margin: 0;

    color:
        var(--text-muted);

    font-size: 13px;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .projects-section {

        padding:
            100px
            20px
            110px;

    }


    .projects-header {

        margin-bottom: 45px;

    }


    .projects-title {

        font-size:
            clamp(
                55px,
                18vw,
                90px
            );

    }


    .projects-intro {

        font-size: 13px;

    }


    .projects-categories {

        display: grid;

        grid-template-columns:
            1fr;

        grid-template-rows:
            260px
            repeat(
                3,
                150px
            );

        gap: 12px;

    }


    .project-category-main {

        grid-column:
            1;

        grid-row:
            1;

    }


    .project-category {

        padding: 24px;

    }


    .project-category-main
    .category-title {

        font-size:
            clamp(
                38px,
                13vw,
                58px
            );

    }


    .category-title {

        font-size: 25px;

    }


    .category-description {

        font-size: 11px;

    }


    .category-arrow {

        right: 22px;
        top: 22px;

    }


    .projects-display {

        margin-top: 55px;

    }

    /* single column on small screens */
    .projects-list {
        grid-template-columns: 1fr;
    }

    .project-thumb {
        width: 100%;
        height: 180px;
        flex: 0 0 auto;
    }

    .project-description-modal {
        padding: 14px;
    }

    .project-description-dialog {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }

    .project-description-image {
        min-height: 190px;
        max-height: 240px;
    }

    .project-description-content {
        padding: 34px 24px 28px;
    }

    .projects-empty {

        padding: 25px;

        gap: 20px;

    }

}


/* ---------------------------------------------------------
   SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 400px) {

    .projects-section {

        padding-left: 15px;
        padding-right: 15px;

    }


    .projects-categories {

        grid-template-rows:
            230px
            repeat(
                3,
                135px
            );

    }

}
/* =========================================================
   VIEW MORE — GOLD
   ========================================================= */

.projects-view-more {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    margin-top: 62px;

    padding: 20px 25px;

    border: 1px solid
        var(--gold);

    background:
        var(--gold);

    color:
        var(--navy-dark);

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.2em;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;

}


.projects-view-more span:last-child {

    font-size: 20px;

    letter-spacing: 0;

    transition:
        transform 0.35s ease;

}


/* ---------------------------------------------------------
   HOVER
   --------------------------------------------------------- */

.projects-view-more:hover {

    background:
        var(--gold-light);

    color:
        var(--navy-dark);

    border-color:
        var(--gold-light);

    box-shadow:
        0 10px 35px
        rgba(
            212,
            175,
            55,
            0.25
        );

    transform:
        translateY(-3px);

}


.projects-view-more:hover
span:last-child {

    transform:
        translateX(7px);

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .projects-view-more {

        padding:
            18px 20px;

    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .projects-view-more {

        padding:
            18px 20px;

    }

}