/* ===========================================================
   PROJECTS SECTION
=========================================================== */

.projects-section {
    padding: 6rem 0;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.projects-header {
    max-width: 760px;
    margin: 0 auto 5rem;
    text-align: center;
}

.projects-title {
    margin: 1rem 0;
}

.projects-subtitle {
    line-height: 1.8;
    opacity: .8;
}

/* ===========================================================
   FEATURED PROJECT
=========================================================== */

.featured-project {

    display: grid;
    grid-template-columns: 1.15fr 1fr;

    gap: 4rem;

    align-items: center;

    padding:2.5rem;

    overflow: hidden;

    transition: transform .35s ease,
    box-shadow .35s ease;

}

.featured-project:hover {

    transform: translateY(-6px);

}

.featured-project-image {

    height: 100%;

}

.featured-project-image img {

    width: 100%;
    height: 100%;

    min-height: 420px;

    object-fit: cover;

    border-radius: 18px;

    display: block;

}

.featured-project-info {

    display: flex;

    flex-direction: column;

}

.project-company {

    display: inline-block;

    margin-bottom: .75rem;

    font-size: .85rem;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;

    color: var(--color-accent);

}

.project-title {

    font-size: clamp(2.5rem, 5vw, 3.6rem);

    line-height: 1.05;

    margin-bottom: .75rem;

}

.project-role {

    font-size: 1rem;

    font-weight: 600;

    opacity: .8;

    margin-bottom: 2rem;

}

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

.project-meta {

    display: grid;

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

    gap: 1.5rem;

    margin-bottom: 2rem;

}

.meta-item {

    display: flex;

    flex-direction: column;

}

.meta-label {

    font-size: .75rem;

    text-transform: uppercase;

    letter-spacing: .12em;

    margin-bottom: .35rem;

    opacity: .6;

}

.meta-value {

    font-weight: 700;

    font-size: 1rem;

}

.project-description {

    line-height: 1.9;

    opacity: .85;

    margin-bottom: 2rem;

}

.project-tags {

    display: flex;

    flex-wrap: wrap;

    gap: .75rem;

}

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

.projects-grid {

    margin-top: 5rem;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 2rem;

}

.project-card {

    padding:1.75rem;

    transition:
            transform .3s ease,
            box-shadow .3s ease;

}

.project-card:hover {

    transform: translateY(-6px);

}

.project-card h3 {

    margin-bottom: 1rem;

    font-size: 1.5rem;

}

.project-card p {

    line-height: 1.8;

    opacity: .82;

    margin-bottom: 1.5rem;

}

/* ===========================================================
   RESPONSIVE
=========================================================== */

@media (max-width: 992px) {

    .featured-project {

        grid-template-columns: 1fr;

        gap: 2.5rem;

    }

    .featured-project-image img {

        height:100%;

        min-height:360px;

        max-height:520px;

        object-fit:cover;

    }

}

@media (max-width: 768px) {

    .projects-section {

        padding: 5rem 0;

    }

    .projects-container {

        padding: 0 1.25rem;

    }

    .project-meta {

        grid-template-columns: 1fr;

    }

    .project-title {

        font-size: 2.4rem;

    }

}

@media (max-width: 480px) {

    .featured-project {

        padding: 1.75rem;

    }

    .project-card {

        padding: 1.5rem;

    }

}

/* ===========================================================
   PROJECT VIEWER
=========================================================== */

.project-view {

    display: none;

    margin-top: 3rem;

    padding: 2.5rem;

}

.project-header {

    display: grid;

    grid-template-columns: 320px 1fr;

    gap: 3rem;

    align-items: start;

}

.project-cover {

    width: 100%;

    aspect-ratio: 9 / 16;

    border-radius: 18px;

    overflow: hidden;

}

.project-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.project-summary h2 {

    margin: .5rem 0;

}

.project-company {

    text-transform: uppercase;

    letter-spacing: .15em;

    opacity: .7;

}

.project-role {

    opacity: .8;

    margin-bottom: 1.5rem;

}

.project-section {

    margin-top: 3rem;

}

.project-gallery {

    display: grid;

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

    gap: 1rem;

}

.project-technologies {

    display: flex;

    flex-wrap: wrap;

    gap: .75rem;

}
#project-contributions {

    display: flex;

    flex-direction: column;

    gap: 1rem;

    padding-left: 1.25rem;

}

#project-contributions li {

    line-height: 1.7;

}
.project-gallery {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));

    gap: 1rem;

}

.project-gallery img {

    width: 100%;

    height: auto;

    border-radius: 14px;

    cursor: pointer;

    transition: .25s;

}

.project-gallery img:hover {

    transform: scale(1.02);

}
.project-links {

    display: flex;

    gap: 1rem;

    margin-top: 1.5rem;

}

.project-link-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: .5rem;

    padding: .85rem 1.5rem;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 600;

    color: var(--color-text);

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

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

    transition: all .25s ease;

}

.project-link-button:hover {

    border-color: var(--color-accent);

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(0,120,255,.15);

}
.project-card.active {

    border: 1px solid var(--color-accent);

    transform: translateY(-6px);

    box-shadow: 0 12px 32px rgba(0,120,255,.18);

}

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

.project-lightbox {

    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

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

    opacity: 0;

    visibility: hidden;

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

    z-index: 9999;

}

.project-lightbox.active {

    opacity: 1;

    visibility: visible;

}

.project-lightbox img {

    max-width: 90%;

    max-height: 85vh;

    border-radius: 16px;

    box-shadow: 0 20px 60px rgba(0,0,0,.5);

}

.lightbox-close {

    position: absolute;

    top: 2rem;

    right: 2rem;

    width: 50px;

    height: 50px;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    font-size: 1.5rem;

    color: white;

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

}

.lightbox-navigation {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 60px;

    height: 60px;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    font-size: 2rem;

    color: white;

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

}

.lightbox-previous {

    left: 2rem;

}

.lightbox-next {

    right: 2rem;

}

.lightbox-close:hover,
.lightbox-navigation:hover {

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

}