/* ===============================
   PROJECT SECTIONS
================================ */

.project-section {
    padding: 90px 40px;
    background: #f4f7fb;
}

.project-section.alt {
    background: #eef2f8;
}

/* Boxed content */
.section-content.boxed {
    max-width: 1200px;
    margin: auto;
    background: #ffffff;
    padding: 65px 60px;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.08);
    border-left: 6px solid var(--primary-color);
}

/* ===============================
   PROJECT HEADER
================================ */

.project-header {
    max-width: 820px;
    margin-bottom: 40px;
}

.project-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    letter-spacing: -0.3px;
}

.project-header .section-title::after {
    content: "";
    width: 55px;
    height: 4px;
    background: var(--secondary-color);
    display: block;
    margin-top: 14px;
    border-radius: 3px;
}

.project-header .section-description {
    margin-top: 18px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
}

/* ===============================
   IMAGE GRID
================================ */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

/* Images */
.project-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

/* ===============================
   LIGHTBOX
================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 42px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .section-content.boxed {
        padding: 45px 28px;
    }

    .project-header .section-title {
        font-size: 1.7rem;
    }
}
