/* ===================================
   Project Detail Page Styles
   (Fat & Jhorle project pages)
   =================================== */

/* Project Page Body */
.project-page {
    background: var(--bg-primary);
}

.project-container {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Project Description Section */
.project-description-section {
    margin-bottom: 4rem;
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.15);
}

.detail-card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.detail-card p {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Project Text */
.project-text {
    margin-bottom: 4rem;
}

.project-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.project-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 4rem;
}

.gallery-section .section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95), transparent);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Project CTA Section */
.project-cta {
    margin-top: 2rem;
}

.project-cta .cta-content {
    text-align: center;
    padding: 3rem;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.project-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.project-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: lightboxZoom 0.3s ease forwards;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--text-primary);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 280px;
    }
    
    .project-cta .cta-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .project-details-grid {
        grid-template-columns: 1fr;
    }
    
    .project-cta .cta-buttons {
        flex-direction: column;
    }
    
    .project-cta .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}
