/* =====================================================
   LEAP INTERIORS - Project Gallery Page
   ===================================================== */

/* === Project Hero === */
.project-hero {
    padding: 140px 0 60px;
    background: var(--bg-section);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    transition: var(--transition);
}

.back-link:hover {
    gap: 14px;
    color: var(--primary-light);
}

.project-hero-content {
    max-width: 700px;
}

.project-category-badge {
    display: inline-block;
    background: rgba(200, 164, 92, 0.15);
    border: 1px solid rgba(200, 164, 92, 0.3);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.project-hero-content h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-hero-content p {
    font-size: 17px;
    color: var(--gray-light);
    line-height: 1.8;
}

/* === Gallery Grid === */
.project-gallery {
    background: var(--bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-card {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-overlay i {
    font-size: 28px;
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(200, 164, 92, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-overlay i {
    transform: scale(1);
}

/* === Lightbox Navigation === */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--primary);
    color: var(--dark);
}

.lightbox-prev {
    right: 20px;
}

.lightbox-next {
    left: 20px;
}

/* === Related Projects === */
.related-projects {
    background: var(--bg-section);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: var(--dark-2);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 164, 92, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.related-card-img {
    height: 220px;
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .related-card-img img {
    transform: scale(1.1);
}

.related-card-content {
    padding: 24px;
}

.related-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.related-card-content p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
}

.related-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

/* === Empty State === */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.gallery-empty i {
    font-size: 60px;
    color: var(--dark-4);
    margin-bottom: 20px;
}

.gallery-empty h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.gallery-empty p {
    color: var(--gray);
    font-size: 16px;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 120px 0 40px;
    }

    .project-hero-content h1 {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .lightbox-prev {
        right: 10px;
    }

    .lightbox-next {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
