/* ============================================================
   PROJECT PAGE
   ============================================================ */


@import url('./root.css');
@import url('./global.css');


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {

    box-sizing: border-box;

    margin: 0;
    padding: 0;

}


html {

    scroll-behavior: smooth;

    font-size: 16px;

}


body {
    font-family: "Montserrat", sans-serif;
    background-color: #0A0A0A;
    color: #D1D5DB;
    line-height: 1.6;
    overflow-x: hidden;
}


body.lightbox-open {

    overflow: hidden;

}


img {

    max-width: 100%;

    height: auto;

    display: block;

}


button {

    font-family: inherit;

}


a {

    text-decoration: none;

}


/* ============================================================
   CONTAINER
   ============================================================ */

.container {
    width: 100%;
    max-width: 1640px;
    margin-inline: auto;
    padding-inline: 24px;
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.slide-on-scroll {

    opacity: 0;

    transform:
        translate3d(0, 50px, 0);

    will-change:
        transform,
        opacity;

    transition:
        opacity .85s cubic-bezier(.16, 1, .3, 1),
        transform .85s cubic-bezier(.16, 1, .3, 1);

}


.slide-left {

    transform:
        translate3d(-70px, 0, 0);

}


.slide-right {

    transform:
        translate3d(70px, 0, 0);

}


.slide-up {

    transform:
        translate3d(0, 50px, 0);

}


.slide-on-scroll.is-visible {

    opacity: 1;

    transform:
        translate3d(0, 0, 0);

}





/* ============================================================
   PROJECT SECTION
   ============================================================ */

.projects-section {
    padding: 90px 0 110px;
    background: #0A0A0A;
}


.projects-heading {

    max-width: 800px;

    margin:
        0 auto 55px;

    text-align: center;

}


.projects-tag {

    display: inline-block;

    margin-bottom: 12px;

    color:
        var(--accent-color);

    font-size: .82rem;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;

}


.projects-title {

    color:
        var(--white);

    font-size:
        clamp(2rem, 4vw, 3rem);

    font-weight: 800;

    line-height: 1.2;

    margin-bottom: 15px;

}


.projects-description {

    color: #A3A3A3;

    font-size: 1rem;

    line-height: 1.8;

}


/* ============================================================
   PROJECT FILTER CONTROLS
   ============================================================ */

.project-filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.project-filter-btn {
    padding: 10px 24px;
    border-radius: 9999px;
    background: #141414;
    border: 1px solid #262626;
    color: #D1D5DB;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.project-filter-btn:hover,
.project-filter-btn.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(165, 0, 13, 0.35);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

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

.project-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #262626;
    border-radius: 20px;
    background: #141414;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
}


.project-card:focus-visible {

    outline:
        2px solid var(--accent-color);

    outline-offset: 4px;

}


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

.project-img-box {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background:
        #1A1A1A;

}


.project-img-box::after {

    content: '';

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, .65),
            transparent 55%);

}


.project-img-box img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .7s cubic-bezier(.16, 1, .3, 1);

}


.project-card:hover .project-img-box img {

    transform:
        scale(1.07);

}


/* ============================================================
   PROJECT INFO
   ============================================================ */

.project-info {

    padding:
        22px 22px 25px;

}


.project-category {

    display: inline-block;

    margin-bottom: 10px;

    color:
        var(--accent-color);

    font-size: .72rem;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}


.project-title {

    color:
        var(--white);

    font-size: 1.15rem;

    font-weight: 800;

    line-height: 1.35;

    margin-bottom: 8px;

}


.project-desc {

    color: #999999;

    font-size: .9rem;

    line-height: 1.65;

}


/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}


.lightbox-modal.is-active {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;

}


.lightbox-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, .90);

    backdrop-filter:
        blur(8px);

}


.lightbox-container {

    position: relative;

    z-index: 2;

    width:
        min(100%, 1000px);

    max-height: 92vh;

    overflow: auto;

    border:
        1px solid rgba(255, 255, 255, .1);

    border-radius: 18px;

    background:
        #111111;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .7);

    transform:
        scale(.95) translateY(20px);

    transition:
        transform .35s ease;

}


.lightbox-modal.is-active .lightbox-container {

    transform:
        scale(1) translateY(0);

}


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

.lightbox-image-wrap {

    width: 100%;

    background:
        #000000;

}


.lightbox-image-wrap img {

    width: 100%;

    max-height: 65vh;

    object-fit: contain;

    margin-inline: auto;

}


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

.lightbox-content {

    padding:
        25px 30px 30px;

}


.lightbox-content h2 {

    color:
        var(--white);

    font-size:
        clamp(1.3rem, 3vw, 1.8rem);

    font-weight: 800;

    line-height: 1.3;

    margin-bottom: 8px;

}


.lightbox-content p {

    color: #A3A3A3;

    font-size: .95rem;

    line-height: 1.7;

}


/* ============================================================
   LIGHTBOX CLOSE
   ============================================================ */

.lightbox-close {

    position: absolute;

    top: 15px;

    right: 15px;

    z-index: 5;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    color:
        var(--white);

    background:
        rgba(0, 0, 0, .65);

    cursor: pointer;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;

}


.lightbox-close:hover {

    color:
        var(--black);

    background:
        var(--accent-color);

    transform:
        rotate(90deg);

}


/* ============================================================
   LIGHTBOX PREVIOUS / NEXT
   ============================================================ */

.lightbox-nav {

    position: absolute;

    top: 42%;

    z-index: 5;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    color:
        var(--white);

    background:
        rgba(0, 0, 0, .70);

    cursor: pointer;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;

}


.lightbox-nav:hover {

    color:
        var(--black);

    background:
        var(--accent-color);

}


.lightbox-prev {

    left: 15px;

}


.lightbox-next {

    right: 15px;

}


.lightbox-nav.is-hidden {

    display: none;
}