/* projects.css - Lala Builders and Decor - Projects Page */

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 140px 0 70px;
    text-align: center;
    margin-top: 0;
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   STATS BANNER
   ============================================ */
.stats-banner {
    background: var(--black);
    padding: 50px 0;
    border-bottom: 1px solid rgba(200,169,81,0.2);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.stat-box {
    flex: 1;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   PROJECT TABS
   ============================================ */
.project-tabs-section {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px;
    z-index: 98;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--gray);
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.tab-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    padding: 60px 0;
    background: var(--off-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-badge.completed {
    background: #4CAF50;
    color: white;
}

.project-badge.ongoing {
    background: var(--gold);
    color: var(--black);
}

.project-badge.upcoming {
    background: #2196F3;
    color: white;
}

.gallery-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.project-details {
    padding: 25px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-location {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.project-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
}

.project-info-item i {
    color: var(--gold);
    width: 20px;
}

.project-description {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-year {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

.view-gallery-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-gallery-btn:hover {
    background: var(--gold);
    color: var(--black);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

/* ============================================
   CTA SECTION
   ============================================ */
.project-cta {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 70px 20px;
    text-align: center;
}

.cta-content h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content {
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
}

.lightbox-caption h3 {
    color: var(--gold);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    color: var(--black);
}

.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.lightbox-thumbnail {
    width: 80px;
    height: 60px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-thumbnail.active,
.lightbox-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 0 2px var(--gold);
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 110px 0 50px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .stats-row {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .project-tabs-section {
        top: 70px;
    }
    
    .tab-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-img {
        height: 220px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    .lightbox-thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .project-info-grid {
        gap: 10px;
    }
    
    .project-info-item {
        font-size: 0.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}