/* Project Detail Page Styles */
.project-detail-page {
    background-color: var(--light-gray);
    padding: 64px 0;
    min-height: calc(100vh - 64px);
}

/* Back Navigation */
.back-navigation {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-red);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* Project Hero */
.project-hero {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.project-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--white);
}

.project-category-badge {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-hero-content p {
    font-size: 1.25rem;
    color: #e5e7eb;
}

/* Project Details Grid */
.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.detail-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.detail-card svg {
    color: var(--primary-red);
    margin-bottom: 0.75rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--dark);
}

/* Project Description */
.project-description {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.project-description h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.project-description h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.project-description p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.features-list li {
    color: var(--gray);
    padding-left: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

/* Project Gallery */
.project-gallery-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.project-gallery-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--dark);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.gallery-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
}

.gallery-caption p {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-close svg {
    display: block;
}

#lightboxImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-hero {
        height: 400px;
    }

    .project-hero-content h1 {
        font-size: 2rem;
    }

    .project-hero-content p {
        font-size: 1rem;
    }

    .project-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-description h2 {
        font-size: 1.5rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .project-hero {
        height: 300px;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
    }
}
