/* ========================================
   PROJECT DETAIL PAGE STYLES
   ======================================== */

/* Project Hero Section */
.project-hero {
    min-height: 70vh;
    position: relative;
    padding-top: 120px;
    background: #000;
    overflow: hidden;
}

.project-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d1d1d1;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.back-link i {
    font-size: 0.8rem;
}

.project-category-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(209, 209, 209, 0.1);
    border: 1px solid rgba(209, 209, 209, 0.3);
    color: #d1d1d1;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.project-hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: #d1d1d1;
    margin: 20px 0;
    line-height: 1.1;
    font-weight: 400;
}

.project-hero-subtitle {
    font-size: 1.2rem;
    color: #8b8378;
    margin-top: 10px;
}

.project-hero-image {
    width: 100%;
    height: 60vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback for missing images */
.project-hero-image:empty::after,
.gallery-item img[src*=".jpg"]:not([src])::after {
    content: 'Image Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #707070;
    font-size: 1.2rem;
    text-align: center;
}

/* Project Overview Section */
.project-overview {
    padding: 100px 0;
    background: #000;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.overview-main .section-title {
    font-size: 2rem;
    color: #d1d1d1;
    margin-bottom: 30px;
}

.project-description {
    color: #8b8378;
    line-height: 1.8;
}

.project-description p {
    margin-bottom: 20px;
}

/* Project Details Card */
.project-details-card,
.project-features-card {
    background: rgba(209, 209, 209, 0.03);
    border: 1px solid rgba(209, 209, 209, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.project-details-card h3,
.project-features-card h3 {
    color: #d1d1d1;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(209, 209, 209, 0.1);
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-label {
    color: #707070;
    font-size: 0.9rem;
}

.detail-value {
    color: #d1d1d1;
    font-weight: 500;
}

/* Features List */
.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: #8b8378;
}

.features-list li i {
    color: #d1d1d1;
    font-size: 0.8rem;
}

/* Project Gallery Section */
.project-gallery {
    padding: 100px 0;
    background: #000;
}

.project-gallery .section-title {
    font-size: 2rem;
    color: #d1d1d1;
    margin-bottom: 50px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid rgba(209, 209, 209, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder text for missing gallery images */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item img[alt]::before {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #707070;
    font-size: 0.9rem;
    text-align: center;
    white-space: pre-wrap;
    max-width: 80%;
}

.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption p {
    color: #d1d1d1;
    font-size: 0.9rem;
    margin: 0;
}

/* Design Philosophy Section */
.design-philosophy {
    padding: 100px 0;
    background: #000;
}

.design-philosophy .section-title {
    font-size: 2rem;
    color: #d1d1d1;
    margin-bottom: 50px;
    text-align: center;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.philosophy-item {
    text-align: center;
    padding: 40px 30px;
    background: rgba(209, 209, 209, 0.03);
    border: 1px solid rgba(209, 209, 209, 0.1);
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-10px);
    border-color: rgba(209, 209, 209, 0.3);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(209, 209, 209, 0.3);
    border-radius: 50%;
}

.philosophy-icon i {
    font-size: 2rem;
    color: #d1d1d1;
}

.philosophy-item h3 {
    color: #d1d1d1;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.philosophy-item p {
    color: #8b8378;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Related Projects Section */
.related-projects {
    padding: 100px 0;
    background: #000;
}

.related-projects .section-title {
    font-size: 2rem;
    color: #d1d1d1;
    margin-bottom: 50px;
    text-align: center;
}

.cta-center {
    text-align: center;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .overview-sidebar {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .project-hero {
        min-height: 50vh;
        padding-top: 100px;
    }
    
    .project-hero-title {
        font-size: 2.5rem;
    }
    
    .project-hero-subtitle {
        font-size: 1rem;
    }
    
    .project-hero-image {
        height: 40vh;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-overview,
    .project-gallery,
    .design-philosophy,
    .related-projects {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .project-hero-title {
        font-size: 2rem;
    }
    
    .back-link {
        font-size: 0.85rem;
    }
    
    .project-details-card,
    .project-features-card {
        padding: 20px;
    }
}
